1. Introduction
Epilepsy is a disease of abnormal brain discharge, which affects people of different ages [1,2]. As a chronic disease, epilepsy itself is not infectious, but its recurrence and sudden onset without warning could still bring considerable pressure to patients. The etiology of epilepsy can be roughly divided into structural, genetic, metabolic, and immune categories. The predisposing factors include prenatal or perinatal brain injury, genetic diseases of brain malformation, severe head injury, and brain infection [3,4]. During seizure in epilepsy, patients suddenly lose control of their bodies, often leading to fracture, bruising, and other conditions, which pose a threat to their safety [5].
Most patients can avoid seizures with the appropriate use of antiepileptic drugs, but for many low-income groups, the treatment options available to them are often limited [6,7]. An increasing number of new antiepileptic drugs have been invented in recent decades, but they still cannot achieve effective effects on all epilepsy treatments [8]. Surgery can be adopted for intractable epilepsy. Surgery mainly achieves the effect of treatment by removing epileptic lesions. The premise of treatment is to accurately locate the lesions. However, the propagation of electrical signals of neurons in the focus area will cause abnormal discharge in the normal area, so accurately locating them is not easy [9]. With the obvious disadvantages of surgery and drug treatment, electrical stimulation therapy has become an effective alternative intervention. Herrera et al. [10] reduced the frequency of seizures by more than 50% in two patients with brain stimulation treatment, with no adverse side effects. Koessler et al. [11] successfully alleviated epilepsy symptoms through high-frequency closed-loop stimulation experiments. In recent years, Ahammed et al. [12] put forward an intelligent system, which can quickly detect patients through machine learning and complete rescue tasks in actual scenarios. Frances-Villora et al. [13] proposed a low-delay epilepsy detection assistant system to help doctors quickly identify a large amount of information. Liang et al. [14] proposed a Koopman-MPC framework for real-time closed-loop electrical neuromodulation in epilepsy. These findings confirm the control of seizures by the basal ganglia circuit and the potential for treating epilepsy through electrical stimulation.
At present, the equipment for closed-loop nerve stimulation research is usually relatively large, which is not convenient for patients. The characteristic calculation of epilepsy is often implemented outside the chip, which is not desirable for deep stimulation. On the basis of the disadvantages of the existing design, an efficient time-domain feature detection method is proposed in this paper. The algorithm not only has high accuracy but also a small area and low power consumption after hardware design, thus meeting the requirements for intrusive equipment.
The rest of the paper is organized as follows: Section 2 introduces the overall block diagram and the proposed algorithm. Section 3 describes the circuit design of each module. The simulation results and analysis are shown in Section 4. Section 5 and Section 6 present the discussion and conclusion, respectively.
2. Closed-Loop System Architecture
The overall block diagram of the system is shown in Figure 1. The whole system includes five parts: electroencephalogram (EEG) signal acquisition, data converter circuits including analog to digital converter (ADC) and digital to analog converter (DAC), low dropout regulator (LDO), nerve stimulation, and epilepsy detection. In the figure, VDD represents the operating voltage of the chip, and serial peripheral interface (SPI) is the communication interface. A complete closed-loop system can be formed through these five parts.
2.1. Analog Front End and Stimulation Circuits
The LDO circuits provide each module with an output voltage that is relatively stable even with changes in the input voltage. The signal acquisition includes a low noise amplifier (LNA) and a low-pass filter (LPF) with a cut-off frequency of 100 Hz. The LNA circuit is designed to filter the noise interference and amplify the weak EEG signal. The effective frequency of EEG is generally not higher than 100 Hz, so the high-frequency noise is filtered by a low-pass filter, and the 50 Hz power frequency interference is filtered by the digital part. A 14-bit successive approximation (SAR) structure ADC was adopted to convert the analog EEG signal to digital data. The final accuracy of a three-stage capacitor structure and digital calibration design could reach 13.8 bits [15]. For the treatment of patients, a bipolar nerve stimulation pulse generator circuit can provide stimulation pulses through a digital signal control H-bridge, which is used to generate a stimulation current for the treatment of patients.
2.2. Novel Time Domain Detection Algorithm
Epilepsy detection algorithms often involve three parts, including time domain, time frequency, and nonlinear analyses. Time domain analysis is a straightforward method for examining the temporal features of EEG signals [16,17,18]. In the present study, four signal parameters were selected for epilepsy detection features: signal amplitude (AMP), signal slope (SLP), line length (LL), and energy (POWER) [19,20,21]. The calculation formulas are as follows:
(1)
(2)
(3)
(4)
where x(i) represents the EEG signal, and the timescale of i is 1 ns.After different feature parameters were extracted, thresholds were set in accordance with the proposed algorithm, and the results of comparing the threshold with the feature values were used to determine whether an epileptic event occurred.
For the time-domain detection algorithm, the result of threshold calculation directly determines the detection effect [22]. This paper presents an effective and easy to implement time domain threshold calculation method. Instead of the traditional complex threshold calculation, it uses the relationship between four adjacent eigenvalues (FV1, FV2, 112 FV3, and FV4) to calculate their average and standard deviation, and then using these to combine parameters which can be used as a new threshold. The eigenvalue and threshold are synchronous and constantly updated. The solution process is shown in Figure 2.
In Figure 2, four eigenvalues of FV1, FV2, FV3, and FV4 are entered in the first input first output (FIFO) cache. If a new eigenvalue comes in, it pushes out the oldest eigenvalue, FV4, as the new FV1, and the remaining features each replace the feature to their right. The mean value (AVE) and standard deviation value (STD) of the four features were obtained by calculation [23] using Equations (5) and (6), where f(i) represents the feature, as follows:
(5)
(6)
According to whether the algorithm can correctly detect epileptic signals and normal EEG signals, the confusion matrix of classification results can be obtained, as shown in Table 1. True positive (TP) indicates that the algorithm predicts the correct number of epilepsy signal samples; true negative (TN) indicates the correct number of normal EEG signal samples; false positive (FP) indicates the number of normal EEG signal samples predicted into epilepsy signal; false negative (FN) indicates the number of epilepsy signal samples predicted into a normal EEG signal.
The programming tool Python was used to simulate the proposed algorithm to obtain the best combination coefficients M and N for each parameter. For example, as shown in Table 2, Table 3, Table 4 and Table 5, through the simulation results, four indices, including the F2 score, recall rate, accuracy, and precision, of SLP can be obtained [24,25,26,27]. The specific definition is as follows:
(7)
(8)
(9)
(10)
Precision is based on the prediction result, and the proportion of the sample with the prediction as the positive example is predicted correctly. Accuracy represents the proportion of the number of correct predictions to the total number of positive and negative cases. The recall rate is based on actual samples. Among the samples that are positive examples, the proportion of the positive examples that are predicted correctly accounts for the total actual positive examples. The F2 score is a weighted and harmonic average of accuracy and recall, helping to strike the best balance between the two metrics. That is what we focused on in the experiment.
In order to detect seizures more accurately by calculating the threshold in the closed-loop epilepsy detection system. We designed a Python experiment to calculate the optimal threshold for each parameter.
Taking SLP as an example, this experiment conducted 25 experiments on eigenvalues by writing a Python script. Each experiment used a different combination of M and N values to calculate the threshold, and used precision, accuracy, recall, and F2 scores to evaluate the performance of each combination, with the ultimate goal of determining the threshold calculation method that can provide the highest accuracy in epilepsy detection.
It can be seen from the table that under different combinations of m and n values, F2 scores, precision, accuracy, and recall rates of SLP parameters are recorded in detail and displayed in the table. When the parameter of M = 2 and N = 1, the SLP parameter has the highest F2 score and maintains a high accuracy and recall rate. This suggests that this combination of parameters is most effective in identifying seizures. This finding is critical for optimizing the threshold setting of closed-loop epilepsy detection systems, as it not only improves the accuracy of the detection, but also enhances the reliability of the system. It is critical for clinical applications and actual medical device operation.
Through the above simulation, the M and N values corresponding to the best indicators of each parameter can be obtained. The optimal threshold parameters of each parameter finally selected are shown in Table 6. The hardware design is based on these simulation results.
3. Circuit Implementation
The main topic of this paper is the digital circuit design for epilepsy detection. The stimulation current and frequency of the whole system are 34 μA and 200 Hz, respectively. The accuracy of epilepsy detection is more than 92%.
3.1. Digital Circuit Implementationn
The block diagram of the digital circuit is shown in Figure 3, including the ADC/SPI interface, feature calculation, threshold calculation, feature detection modules, 50 Hz power frequency filter, state control, and stimulation control circuits. The feature calculation module calculates four feature values in accordance with the quantization results of the ADC or the data transmitted from the SPI interface. After the eigenvalues of calculation are completed, the output signals AMP_FV, POWER_FV, SLP_FV, and LL_FZ need to be transmitted to two modules—the threshold calculation and feature detection modules—at the same time. The threshold calculation module calculates the threshold value in accordance with the corresponding threshold calculation method and transmits signals AMP_TH, POWER_TH, SLP_TH, and LL_TH to the feature detection module. The threshold value is defined in the formula of M × AVE + N × STD.
The feature detection module compares the output results of the feature calculation and threshold calculation modules. After the feature detection module detects the seizure, it transmits the detection signal DET to the state control circuit. The state control circuit starts the stimulation control circuit via the command STIM_EN. Concurrently, the stimulation module starts to control the corresponding stimulation parameters STIM_AMP, STIM_ON, STIM_POS, and STIM_NEG. If the detection time of the stimulation module exceeds the stimulation duration, the signal STIM_EN is generated again. Although the feature detection module is closed at this time, the feature calculation and threshold calculation need to be carried out all the time. If not, some EEG data during stimulation are missed, which could lead to inaccuracies.
3.2. ADC/SPI Interface
The data quantified by the ADC circuit are not only sent to the epilepsy detection module but also output to the output port of SPI. Figure 4 shows the data flow of the SPI interface [28,29]. The epilepsy detection circuit receives quantified data from the ADC circuit and EEG signals through the SPI interface simultaneously. The signal mux2_1 is a selective signal that can decide whether to use the signal from the ADC or the signal from the SPI interface.
3.3. Status Control Circuit
The initial threshold values were set to zero, indicating that no eigenvalue calculation was performed. After calculations are completed, the TH_FINISH signal increases, indicating that the threshold values are updated, and the digital circuit enters the normal epilepsy detection state.
In this state, it actively monitors signs of seizures based on a constantly updated threshold value. If a seizure is detected, this triggers the DET signal and turns on the STIM_EN signal simultaneously, marking the beginning of the stimulus pattern. Next, the DEC_EN signal is turned off to ensure that the chip shifts to the stimulus process. This shift is key because it represents the chip’s response to a patient’s seizure.
Once the stimulus is completed, the system restarts from the threshold calculation state. The system reenables the DEC_EN signal for detection and disables the STIM_EN, thus returning to the normal detection state. As shown in Figure 5, the synchronous transition between states demonstrates the complex design that underpins the chip’s functionality.
3.4. Feature Detection Module
The circuit of the feature detection module is shown in Figure 6. It compares the values calculated by the feature calculation module and the threshold calculation module. If the feature value is larger than the threshold value, the output result is set to 1; otherwise, it is set to 0. Simultaneously, the output result of four comparators C1, C2, C3, and C4 can be controlled by two enabling signals AMP_FV and DEC_EN. AMP_FV is the output signal from the feature calculation module. It is maintained until the output of all the features has been completely calculated. DEC_EN is the output signal from the state control circuit, which indicates when epilepsy detection can be started, to avoid epilepsy detection and simultaneous stimulation. Only three of the four eigenvalue signals need to be satisfied to determine the seizure. Thus, eight AND gates and one OR gate were used for control to obtain the final DET signal. If a seizure is detected, the DET signal is 1.
3.5. Feature Calculation Module
The feature calculation module is shown in Figure 7. The amplitude D[n] was employed to calculate the input absolute value and obtain the sum of the amplitude features through 255 accumulations. The final amplitude feature AMP is obtained by dividing 256 by offsetting to the right by 8 bits to obtain. The process to obtain the energy feature POWER is like that for the AMP feature. However, the square of the square needs to be calculated first, and then the cumulative shift is conducted. For the line length feature LL, the absolute value of the difference between two consecutive values needs to be calculated. The feature SLP requires calculation of the slope for 2 ms before the cumulative shift. After the four features are calculated, the resulting signal and feature values are sent to the threshold calculation module for further calculation. This systematic method ensures an accurate analysis of the four AMP, POWER, LL, and SLP signal features.
3.6. Threshold Calculation Module
As shown in Figure 8, the threshold calculation methods are consistent, but the threshold parameters M and N are different (as in Table 1), resulting in different final threshold values POWER_TH, AMP_TH, SLP_TH, and LL_TH. Taking the calculation of the amplitude threshold value for AMP_TH as an example, the old eigenvalues FV1, FV2, FV3, and FV4 enter the FIFO cache. When a new eigenvalue comes in and FV4 is removed, the new eigenvalue and the old FV1, FV2, and FV3 become the new FV1, FV2, FV3, and FV4 in FIFO order. The four new eigenvalues are accumulated and summed with Equations (5) and (6) to obtain their mean value (AVE) and standard deviation (STD) [30]. Finally, by using the threshold parameters M and N, AVE and STD are combined to output the amplitude threshold value AMP_TH.
3.7. Stimulation Control Circuit
A 200 Hz stimulation frequency and 34 μA biphasic current pulses were used to avoid charge accumulation and prevent harm to the human body [31,32,33]. The stimulus module initiated by the state control module generates five pulses per stimulation cycle, with each pulse stimulation cycle as depicted in Figure 9. Each positive and negative pulse width (PW) is 1 ms, totaling 5 ms per stimulation period, with corresponding stimulation currents of −34, 0, 34, 0, and 0 μA.
The stimulation control circuit employs two counters; one is used to count each pulse of the system clock, requiring eight counts per pulse with counter 1, and another to track the completion of five pulses with counter 2. The state control circuit controls the state outputs STIM_ON, STIM_POS, STIM_NEG, and STIM_Finish, via the output values of counters 1 and 2. The block diagram of the stimulation control circuit is shown in Figure 10.
4. Experiment and Results
4.1. FPGA Verification Platform
After layout and wiring, the digital system was ported to a field programmable gate array (FPGA) development board Terasic Altera DE2-115 for functional verification. The resources consumed are 1095 look-up tables (LUTs) and nine digital signal processors (DSPs) after integration on the FPGA, and the power consumption of the FPGA board is 75 mW only. The proposed epilepsy detection module has lower resource utilization and lower power consumption than the previous work in Table 7.
For ease of display on the FPGA development board, the output of the stimulus module is connected from pulse to level to the LED light before writ the program onto the FPGA board. As shown in Figure 11, when a seizure is detected, two LED lights on the board light up, indicating that a biphasic stimulating current is generated.
4.2. Digital Layout
The layout of the epilepsy detection and stimulation digital circuit using application-specific integrated circuits (ASICs) is shown on Figure 12. The circuit is implemented with a UMC 55 nm CMOS general propose process. A comparison between the proposed systems and other seizure detection systems is depicted in Table 8.
Ai et al. [38] based their hardware implementation on the 65 nm process and a convolutional neural network (CNN) algorithm, and found that chip accuracy in assessing seizures could reach 87.9%, with power consumption and chip area 4.45 mW and 2.5 mm2, respectively. Lee et al. [39] used a Linear Least Squares (LLS) algorithm and achieved an epilepsy classification accuracy of 88.7% with a chip area of 13.67 mm2 and power consumption of 0.992 mW. Zhang et al. [40] used a guided time-channel averaging support vector machine (GTCA-SVM) algorithm. Chip area was only 0.114 mm2, power consumption was 0.311 mW, and the accuracy was slightly lower, at 86%. Wen et al. [41] again employed the SVM algorithm, with epilepsy detection chip area 0.98 mm2, power consumption, and accuracy being 0.42 mW and 91.86%, respectively. In the proposed system, the chip area and power consumption were, respectively, only 0.0233 mm2 and 0.8 μW. The corresponding accuracy of epilepsy detection can reach 94%, and a stimulation current can be generated to provide treatment for patients.
4.3. System Simulation
The accuracy of the method in the present study is improved compared with the algorithms used in previous studies [38,39,40,41]. The proposed method is relatively simple, and it does not need signal decomposition or complex variable transformation. Furthermore, the algorithm does not require a classifier for a separate training process, thus effectively reducing the chip area and operating power consumption to meet the conditions of implantable equipment. The brief delay characteristic of this circuit ensures that patients with epilepsy can receive timely electrical stimulation treatment during the onset of epilepsy. The results of this study are expected to be used in the study of EEG for real-time detection of epilepsy.
Simulation results are shown in Figure 13. The amplitude feature is taken as an example. First, in the threshold calculation, after four features are completely calculated, a new threshold AF_en is generated, and the state machine enters the feature detection step from the threshold calculation. The threshold and feature values AT_value and AF_value are constantly updated. When the detection module calculates that epilepsy has occurred, the DET signal is increased. The system enters stimulation mode (i.e., stim_en converts to 1), and the thresholds and features are no longer updated at this stage. The system then sends a control signal (stim_neg, stim_on, stim_pos, and stim_finish of the biphasic excitation current) to the analog part.
4.4. Digital Analog Hybrid Simulation
The AMS simulator was used for a digital and analog hybrid simulation. The input endpoint of the digital circuit is connected to the output endpoint of the SAR ADC. The data must be outputted in accordance with the output format of the ADC as a test incentive. The data are first stored in a register and then converted into a serial output signal SAR_OUT. The DET signal is a signal that detects a seizure. Two output signals—STIM_POS and STIM_NEG—representing the positive and negative phases of the pulse stimulus are present because it is a two-phase pulse current. The I_stim signal is the voltage that stimulates the output of the circuit. As shown in Figure 14, under the control of the positive and negative phases of the pulse stimulation, the output current is 34 μA.
5. Discussion
With the aim of improving on the disadvantages of existing open-loop and closed-loop nerve stimulation methods, a novel closed-loop epilepsy detection and stimulation structure is proposed in this study. First, AMP_FV, SLP_FV, LL_FV and POWER_FV are selected as features, and a threshold calculation algorithm that can be automatically updated is proposed. The resulting digital circuit has a power consumption and chip area of 0.8 μW and 0.023 mm2 only, respectively. The accuracy of detection is more than 94%. These characteristics are critical for implantable medical devices because they ensure an extended battery life and reduced physical impact on patients.
Compared with machine learning and deep learning algorithms, the four-feature computation and updatable threshold detection methods proposed in this paper do not require a long training process and complex training sets, making the circuit structure simpler than most existing closed-loop stimulation methods and more suitable for the implementation of invasive devices. Unlike open-loop nerve stimulation, which fixes stimulation parameters and stimulation time, this system can detect and treat patients in real time, a key advantage that allows the system to adapt to a patient’s changing physiology without manual intervention.
6. Conclusions
This study presents a closed-loop epilepsy detection system that integrates neural signal collection and epilepsy detection and stimulation. An effective time domain detection algorithm is proposed. The threshold is obtained by combining the mean and variance of four adjacent eigenvalues AMP_FV, POWER_FV, SLP_FV, and LL_FV. The validity of the time-domain algorithm to obtain the optimal threshold combination parameters is verified by the programming tool Python. The digital design of the epilepsy detection system is presented, including feature calculation module, threshold calculation module, feature detection module, stimulation control circuit, state control circuit, and ADC/SPI interface. Finally, the simulator tool AMS is used to simulate the digital and analog mixture, and the correct biphasic stimulation current output is obtained. With a power consumption of 0.8 μW and an area of 0.023 mm2, the system is 94% accurate and suitable for implantable devices. In the future, such devices could be fitted to people with epilepsy to provide alerts and treatment when seizures are detected, or even before they occur.
L.-H.W.: Funding acquisition, resources, formal analysis, writing—review and editing, project administration, software, supervision, validation, and investigation. C.-X.X., Z.-N.Z. and H.J.: conceptualization, data curation, formal analysis, methodology, project administration, investigation, software, supervision, validation, visualization, writing—original draft, and writing—review and editing. T.Y., Q.-P.R. and M.-H.F.: software, validation, investigation, data curation, and writing—original draft. Z.-J.L., J.-B.C., T.-Y.C. and S.-L.C.: supervision, investigation, formal analysis, and writing—review and editing. I.-C.K. and P.A.R.A.: Formal analysis and writing—review and editing. Z.-J.L. and L.-H.W. contributed equally to this work. All authors have read and agreed to the published version of the manuscript.
Not applicable.
Not applicable.
Epileptic EEG data sourced from an open dataset which can be downloaded at
The authors declare no conflicts of interest.
The following abbreviations are used in this manuscript:
EEG | Electroencephalogram |
ADC | Analog to digital converter |
DAC | Digital to analog converter |
LDO | Low dropout regulator |
SPI | Serial peripheral interface |
LNA | Low noise amplifier |
LPF | Low-pass filter |
SAR | Successive approximation |
AMP | Amplitude |
SLP | Signal slope |
LL | Line length |
POWER | Energy |
FIFO | First input first output |
AVE | Mean value |
STD | Standard deviation value |
TP | True positive |
TN | True negative |
FP | False positive |
FN | False negative |
PW | Pulse width |
FPGA | Field programmable gate array |
LUT | Look-up tables |
DSP | Digital signal processor |
ASIC | Application-specific integrated circuits |
CNN | Convolutional neural network |
LLS | Linear Least Squares |
TH_FINISH | Threshold calculation finish signal |
Footnotes
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Figure 6. Circuits of the feature detection module, including four comparators (i.e., C1, C2, C3, andC4), and eight AND gates (i.e., A1, A2,…, and A8) and one OR gate (i.e., O1).
Figure 10. Block diagram design of the stimulation module (The red dotted lines are submodules).
Four kinds of classification results.
Prediction Class | |||
---|---|---|---|
Epileptic | Normal | ||
Real class | Epileptic | TP | FN |
Normal | FP | TN |
The precision of the SLP parameter.
M | 1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|---|
N | ||||||
1 | 0.20 | 0.78 | 0.91 | 0.94 | 0.98 | |
2 | 0.21 | 0.79 | 0.92 | 0.94 | 0.98 | |
3 | 0.25 | 0.80 | 0.92 | 0.97 | 0.98 | |
4 | 0.32 | 0.80 | 0.91 | 0.96 | 0.98 | |
5 | 0.38 | 0.81 | 0.94 | 0.96 | 0.98 |
The accuracy of the SLP parameter.
M | 1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|---|
N | ||||||
1 | 0.20 | 0.92 | 0.92 | 0.91 | 0.90 | |
2 | 0.25 | 0.92 | 0.92 | 0.91 | 0.90 | |
3 | 0.42 | 0.92 | 0.92 | 0.91 | 0.90 | |
4 | 0.58 | 0.91 | 0.92 | 0.90 | 0.90 | |
5 | 0.68 | 0.91 | 0.92 | 0.90 | 0.90 |
The recall of the SLP parameter.
M | 1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|---|
N | ||||||
1 | 1.00 | 0.83 | 0.68 | 0.61 | 0.50 | |
2 | 0.99 | 0.80 | 0.67 | 0.59 | 0.50 | |
3 | 0.99 | 0.79 | 0.67 | 0.57 | 0.50 | |
4 | 0.97 | 0.77 | 0.64 | 0.55 | 0.50 | |
5 | 0.95 | 0.77 | 0.64 | 0.55 | 0.49 |
The F2 Score of the SLP parameter.
M | 1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|---|
N | ||||||
1 | 0.56 | 0.82 | 0.72 | 0.66 | 0.55 | |
2 | 0.57 | 0.80 | 0.71 | 0.64 | 0.55 | |
3 | 0.63 | 0.79 | 0.71 | 0.62 | 0.55 | |
4 | 0.69 | 0.78 | 0.68 | 0.60 | 0.55 | |
5 | 0.73 | 0.78 | 0.68 | 0.6 | 0.54 |
Optimal threshold parameters.
Feature | AMP | SLP | POWER | LL |
---|---|---|---|---|
M | 5 | 2 | 3 | 2 |
N | 4 | 1 | 1 | 1 |
Comparison with previous work on FPGA platform.
Parameter | [ | [ | [ | [ | This Work |
---|---|---|---|---|---|
Platform | Xilinx Kintex-7 XC7K325T | Xilinx Zynq XC7Z030 | Xilinx Artix-7 XC7A35T | Xilinx PYNQ-Z2 XC7Z020 | Altera DE2-115 |
Frequency | 100 MHz | 100 MHz | 180 MHz | 100 MHz | 200 KHz |
Power | 64 mw | N/A | 82.589 mw | 3.1 w | 75 mw |
LUTs | 1737 | 5202 | 1158 | 1364 | 1095 |
DSPs | 6 | N/A | 16 | 5 | 9 |
Comparison of the proposed epilepsy-detection-stimulation circuit with previous works.
Parameters | [ | [ | [ | [ | This Work |
---|---|---|---|---|---|
Process (nm) | 65 | 180 | 40 | 65 | 55 |
ACC (%) | 87.9 | 88.73 | 86 | 91.86 | 94 |
Chip Area (mm2) | 2.55 | 13.67 | 0.114 | 0.98 | 0.023 |
Power Consumption (mW) | 4.45 | 0.992 | 0.311 | 0.42 | 0.8 × 10−3 |
Classifier | CNN | LLS | GTCA-SVM | SVM | Threshold |
Stimulation current (µA) | N/A | N/A | N/A | N/A | 34 |
References
1. Xu, L.-P.; Wang, Q. The Bidirectional Relationship between Alzheimer’s Disease (AD) and Epilepsy: A Mendelian Randomization Study. Brain Behav.; 2023; 13, e3221. [DOI: https://dx.doi.org/10.1002/brb3.3221] [PubMed: https://www.ncbi.nlm.nih.gov/pubmed/37666799]
2. Supriya, S.; Siuly, S.; Wang, H.; Zhang, Y.-C. Epilepsy Detection From EEG Using Complex Network Techniques: A Review. IEEE Rev. Biomed. Eng.; 2023; 16, pp. 292-306. [DOI: https://dx.doi.org/10.1109/RBME.2021.3055956] [PubMed: https://www.ncbi.nlm.nih.gov/pubmed/33523816]
3. Falaschetti, L.; Biagetti, G.; Alessandrini, M.; Turchetti, C.; Luzzi, S.; Crippa, P. Multi-Class Detection of Neurodegenerative Diseases from EEG Signals Using Lightweight LSTM Neural Networks. Sensors; 2024; 24, 6721. [DOI: https://dx.doi.org/10.3390/s24206721] [PubMed: https://www.ncbi.nlm.nih.gov/pubmed/39460201]
4. Mann, C.; Suess, A.; von Podewils, F.; Zahnert, F.; Langenbruch, L.; Bierhansl, L.; Menzler, K.; Schulz, J.; Gaida, B.; Rosenow, F. et al. Gender Differences in Concerns about Planning to Have Children and Child-Rearing among Patients with Epilepsy: A Prospective, Multicenter Study with 477 Patients from Germany. Epilepsy Behav.; 2022; 129, 108650. [DOI: https://dx.doi.org/10.1016/j.yebeh.2022.108650]
5. Abdelgalil, A.; Ismail, D.; Eskander, A.; Girgis, M.; Farouk, A.; Saeedi, F.; Shazly, M.; Hasnoon, A. Effect of Helicobacter Pylori Eradication on Serum Level of Valproic Acid in Children with Idiopathic Generalized Epilepsy. Children; 2024; 11, 1259. [DOI: https://dx.doi.org/10.3390/children11101259]
6. Fussner, S.; Boyne, A.; Han, A.; Nakhleh, L.A.; Haneef, Z. Differentiating Epileptic and Psychogenic Non-Epileptic Seizures Using Machine Learning Analysis of EEG Plot Images. Sensors; 2024; 24, 2823. [DOI: https://dx.doi.org/10.3390/s24092823]
7. Angwafor, S.A.; Bell, G.S.; Ngarka, L.; Otte, W.M.; Tabah, E.N.; Nfor, L.N.; Njamnshi, T.N.; Sander, J.W.; Njamnshi, A.K. Epilepsy in a Health District in North-West Cameroon: Clinical Characteristics and Treatment Gap. Epilepsy Behav.; 2021; 121, 107997. [DOI: https://dx.doi.org/10.1016/j.yebeh.2021.107997]
8. Riva, A.; Striano, P. Editorial: Novel Mechanisms of Epileptogenesis and Its Inspired Pharmaceutical Treatments for Epilepsy. Front. Neurol.; 2022; 13, 942365. [DOI: https://dx.doi.org/10.3389/fneur.2022.942365]
9. Asranna, A.; Babu Pasangulapati, S.; Menon, R.; Radhakrishnan, A. Trends in Pediatric Epilepsy Surgery: A Lower-Middle-Income Country Perspective. Acta Neurol. Scand.; 2021; 143, pp. 521-529. [DOI: https://dx.doi.org/10.1111/ane.13393]
10. Herrera, M.L.; Suller-Marti, A.; Parrent, A.; Macdougall, K.; Burneo, J.G. Stimulation of the Anterior Nucleus of the Thalamus for Epilepsy: A Canadian Experience. Can. J. Neurol. Sci.; 2021; 48, pp. 469-478. [DOI: https://dx.doi.org/10.1017/cjn.2020.230]
11. Koessler, L.; Louviot, S.; Dmochowski, J.; Vignal, J.-P.; Jonas, J.; Colnat-Coulbois, S.; Tyvaert, L.; Maillard, L. Transcranial Direct Current Stimulation Reduces Intracerebrally- Recorded Epileptic Seizures and Behavioral Disturbances. Brain Stimul.; 2023; 16, pp. 667-669. [DOI: https://dx.doi.org/10.1016/j.brs.2023.03.040] [PubMed: https://www.ncbi.nlm.nih.gov/pubmed/37015316]
12. Ahammed, A.S.; Ezekiel, A.M.; Obermaisser, R. Time-Efficient Identification Procedure for Neurological Complications of Rescue Patients in an Emergency Scenario Using Hardware-Accelerated Artificial Intelligence Models. Algorithms; 2023; 16, 258. [DOI: https://dx.doi.org/10.3390/a16050258]
13. Frances-Villora, J.V.; Bataller-Mompean, M.; Mjahad, A.; Rosado-Muñoz, A.; Gutierrez Martin, A.; Teruel-Marti, V.; Villanueva, V.; Hampel, K.G.; Guerrero-Martinez, J.F. Real-Time Localization of Epileptogenic Foci EEG Signals: An FPGA-Based Implementation. Appl. Sci.; 2020; 10, 827. [DOI: https://dx.doi.org/10.3390/app10030827]
14. Liang, Z.-C.; Luo, Z.-X.; Liu, K.-Y.; Qiu, J.-W.; Liu, Q.-Y. Online Learning Koopman Operator for Closed-Loop Electrical Neurostimulation in Epilepsy. IEEE J. Biomed. Health Inform.; 2023; 27, pp. 492-503. [DOI: https://dx.doi.org/10.1109/JBHI.2022.3210303]
15. Zhang, C.; Xin, X.; Tong, X.-Y. A 14-Bit 1-MS/s SAR ADC with a Segmented Capacitor Array and Background Mismatch Calibration for IoT Sensing Applications. Microelectron. J.; 2023; 141, 105991. [DOI: https://dx.doi.org/10.1016/j.mejo.2023.105991]
16. Chen, D.; Huang, H.-Y.; Bao, X.-Y.; Pan, J.-H.; Li, Y.-Q. An EEG-Based Attention Recognition Method: Fusion of Time Domain, Frequency Domain, and Non-Linear Dynamics Features. Front. Neurosci.; 2023; 17, 1194554. [DOI: https://dx.doi.org/10.3389/fnins.2023.1194554]
17. Jabran, Y.; Mahmoudzadeh, M.; Martinez, N.; Heberle, C.; Wallois, F.; Bourel-Ponchel, E. Temporal and Spatial Dynamics of Different Interictal Epileptic Discharges: A Time-Frequency EEG Approach in Pediatric Focal Refractory Epilepsy. Front. Neurol.; 2020; 11, 941. [DOI: https://dx.doi.org/10.3389/fneur.2020.00941]
18. Xiong, W.-J.; Nurse, E.S.; Lambert, E.; Cook, M.J.; Kameneva, T. Classification of Epileptic and Psychogenic Non-Epileptic Seizures Using Electroencephalography and Electrocardiography. IEEE Trans. Neural Syst. Rehabil. Eng.; 2023; 31, pp. 2831-2838. [DOI: https://dx.doi.org/10.1109/TNSRE.2023.3288138]
19. Aggarwal, S.; Chugh, N. Ethical Implications of Closed Loop Brain Device: 10-Year Review. Minds Mach.; 2020; 30, pp. 145-170. [DOI: https://dx.doi.org/10.1007/s11023-020-09518-7]
20. Wang, A.-Y.; Sheng, Y.-G.; Li, W.-L.; Jung, D.-H.; Junek, G.-V.; Liu, H.-X.; Park, J.; Lee, D.; Wang, M.; Maharjan, S. et al. A Multimodal and Multifunctional CMOS Cellular Interfacing Array for Digital Physiology and Pathology Featuring an Ultra Dense Pixel Array and Reconfigurable Sampling Rate. IEEE Trans. Biomed. Circuits Syst.; 2022; 16, pp. 1057-1074. [DOI: https://dx.doi.org/10.1109/TBCAS.2022.3224064]
21. Balestrini, S.; Sander, J.W. Transcranial Magnetic Stimulation as a Biomarker of Treatment Response in Children with Epilepsy. Dev. Med. Child Neurol.; 2020; 62, 770. [DOI: https://dx.doi.org/10.1111/dmcn.14496] [PubMed: https://www.ncbi.nlm.nih.gov/pubmed/32090314]
22. Boonyakitanont, P.; Lek-uthai, A.; Chomtho, K.; Songsiri, J. A Review of Feature Extraction and Performance Evaluation in Epileptic Seizure Detection Using EEG. Biomed. Signal Process. Control; 2020; 57, 101702. [DOI: https://dx.doi.org/10.1016/j.bspc.2019.101702]
23. Lun, X.; Zhang, Y.; Zhu, M.; Lian, Y.; Hou, Y. A Combined Virtual Electrode-Based ESA and CNN Method for MI-EEG Signal Feature Extraction and Classification. Sensors; 2023; 23, 8893. [DOI: https://dx.doi.org/10.3390/s23218893]
24. Studer, M.; Schmitt, S.; Wingeier, K.; Lidzba, K.; Bigi, S. Delayed Episodic Memory Recall after One Week Is Associated with Executive Functions and Divided Attention in Pediatric Epilepsy Patients. Brain Dev.; 2023; 45, pp. 372-382. [DOI: https://dx.doi.org/10.1016/j.braindev.2023.03.009]
25. Geller, A.M.; Hudnell, H.K.; Vaughn, B.V.; Messenheimer, J.A.; Boyes, W.K. Epilepsy and Medication Effects on the Pattern Visual Evoked Potential. Doc. Ophthalmol.; 2005; 110, pp. 121-131. [DOI: https://dx.doi.org/10.1007/s10633-005-7350-0]
26. Trinka, E.; Koepp, M.; Kalss, G.; Kobulashvili, T. Evidence Based Noninvasive Presurgical Evaluation for Patients with Drug Resistant Epilepsies. Curr. Opin. Neurol.; 2024; 37, pp. 141-151. [DOI: https://dx.doi.org/10.1097/WCO.0000000000001253]
27. Wei, B.-X.; Zhao, X.-H.; Shi, L.-J.; Xu, L.; Liu, T.; Zhang, J.-C. A Deep Learning Framework with Multi-Perspective Fusion for Interictal Epileptiform Discharges Detection in Scalp Electroencephalogram. J. Neural Eng.; 2021; 18, 0460b3. [DOI: https://dx.doi.org/10.1088/1741-2552/ac0d60]
28. Chen, S.-L.; Chi, T.-K.; Tuan, M.-C.; Chen, C.-A.; Wang, L.-H.; Chiang, W.-Y.; Lin, M.-Y.; Abu, P.A.R. A Novel Low-Power Synchronous Preamble Data Line Chip Design for Oscillator Control Interface. Electronics; 2020; 9, 1509. [DOI: https://dx.doi.org/10.3390/electronics9091509]
29. Yu, Z.-Y.; Guo, S.-W. A Low-Cost, Wireless, 4-Channel EEG Measurement System Used in Virtual Reality Environments. HardwareX; 2024; 17, e00507. [DOI: https://dx.doi.org/10.1016/j.ohx.2024.e00507]
30. Alam, M.S.; Siddiqui, Y.; Hasan, M.; Farooq, O.; Himeur, Y. Energy-Efficient FPGA Based Sleep Apnea Detection Using EEG Signals. IEEE Access; 2024; 12, pp. 40182-40195. [DOI: https://dx.doi.org/10.1109/ACCESS.2024.3374223]
31. Wang, Q.; Zhang, Y.-S.; Xue, H.-Y.; Zeng, Y.-S.; Lu, G.-X.; Fan, H.-S.; Jiang, L.-M.; Wu, J.-G. Lead-Free Dual-Frequency Ultrasound Implants for Wireless, Biphasic Deep Brain Stimulation. Nat. Commun.; 2024; 15, 4017. [DOI: https://dx.doi.org/10.1038/s41467-024-48250-z] [PubMed: https://www.ncbi.nlm.nih.gov/pubmed/38740759]
32. Zhang, F.; Yang, Y.-F.; Zheng, Y.-T.; Zhu, J.-M.; Wang, P.; Xu, K.-D. Combination of Matching Responsive Stimulations of Hippocampus and Subiculum for Effective Seizure Suppression in Temporal Lobe Epilepsy. Front. Neurol.; 2021; 12, 638795. [DOI: https://dx.doi.org/10.3389/fneur.2021.638795] [PubMed: https://www.ncbi.nlm.nih.gov/pubmed/34512497]
33. Hays, A.M.; Smith, J.R.; Haridas, B.; Coogan, C.; Crone, E.N.; Kang, Y.J. Effects of Stimulation Intensity on Intracranial Cortico-Cortical Evoked Potentials: A Titration Study. Clin. Neurophysiol.; 2021; 132, pp. 2766-2777. [DOI: https://dx.doi.org/10.1016/j.clinph.2021.08.008] [PubMed: https://www.ncbi.nlm.nih.gov/pubmed/34583119]
34. Cao, J.-C.; Xiong, W.; Lu, J.; Chen, P.-L.; Wang, J.; Lai, J.-M.; Huang, M.-Q. An Optimized EEGNet Processor for Low-Power and Real-Time EEG Classification in Wearable Brain-Computer Interfaces. Microelectron. J.; 2024; 145, 106134. [DOI: https://dx.doi.org/10.1016/j.mejo.2024.106134]
35. Rizal, A.; Hadiyoso, S.; Ramdani, A.Z. FPGA-Based Implementation for Real-Time Epileptic EEG Classification Using Hjorth Descriptor and KNN. Electronics; 2022; 11, 3026. [DOI: https://dx.doi.org/10.3390/electronics11193026]
36. Alam, M.S.; Khan, U.; Hasan, M.; Farooq, O. Energy Efficient FPGA Implementation of an Epileptic Seizure Detection System Using a QDA Classifier. Expert Syst. Appl.; 2024; 249, 123755. [DOI: https://dx.doi.org/10.1016/j.eswa.2024.123755]
37. Xie, Y.; Majoros, T.; Oniga, S. FPGA-Based Hardware Accelerator on Portable Equipment for EEG Signal Patterns Recognition. Electronics; 2022; 11, 2410. [DOI: https://dx.doi.org/10.3390/electronics11152410]
38. Ai, G.; Zhang, Y.; Wen, Y.; Gu, M.; Zhang, H.; Wang, P. Convolutional Neural Network-Based Lightweight Hardware IP Core Design for EEG Epilepsy Prediction. Microelectron. J.; 2023; 137, 105810. [DOI: https://dx.doi.org/10.1016/j.mejo.2023.105810]
39. Lee, S.-Y.; Tsou, C.; Liao, Z.-X.; Cheng, P.-H.; Huang, P.-W.; Lee, H.-Y.; Lin, C.-C.; Shieh, G.S. A Programmable EEG Monitoring SoC with Optical and Electrical Stimulation for Epilepsy Control. IEEE Access; 2020; 8, pp. 92196-92211. [DOI: https://dx.doi.org/10.1109/ACCESS.2020.2994217]
40. Zhang, M.; Zhang, L.; Tsai, C.-W.; Yoo, J. A Patient-Specific Closed-Loop Epilepsy Management SoC with One-Shot Learning and Online Tuning. IEEE J. Solid-State Circuits; 2022; 57, pp. 1049-1060. [DOI: https://dx.doi.org/10.1109/JSSC.2022.3144460]
41. Wen, Y.-Z.; Zhang, Y.-J.; Wen, L.; Cao, H.-J.; Ai, G.-P.; Gu, M.-H.; Wang, P.-J.; Chen, H.-L. A 65nm/0.448 mW EEG Processor with Parallel Architecture SVM and Lifting Wavelet Transform for High-Performance and Low-Power Epilepsy Detection. Comput. Biol. Med.; 2022; 144, 105366. [DOI: https://dx.doi.org/10.1016/j.compbiomed.2022.105366]
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Abstract
Epilepsy, as a common brain disease, causes great pain and stress to patients around the world. At present, the main treatment methods are drug, surgical, and electrical stimulation therapies. Electrical stimulation has recently emerged as an alternative treatment for reducing symptomatic seizures. This study proposes a novel closed-loop epilepsy detection system and stimulation control chip. A time-domain detection algorithm based on amplitude, slope, line length, and signal energy characteristics is introduced. A new threshold calculation method is proposed; that is, the threshold is updated by means of the mean and standard deviation of four consecutive eigenvalues through parameter combination. Once a seizure is detected, the system begins to control the stimulation of a two-phase pulse current with an amplitude and frequency of 34 μA and 200 Hz, respectively. The system is physically designed on the basis of the UMC 55 nm process and verified by a field programmable gate array verification board. This research is conducted through innovative algorithms to reduce power consumption and the area of the circuit. It can maintain a high accuracy of more than 90% and perform seizure detection every 64 ms. It is expected to provide a new treatment for patients with epilepsy.
You have requested "on-the-fly" machine translation of selected content from our databases. This functionality is provided solely for your convenience and is in no way intended to replace human translation. Show full disclaimer
Neither ProQuest nor its licensors make any representations or warranties with respect to the translations. The translations are automatically generated "AS IS" and "AS AVAILABLE" and are not retained in our systems. PROQUEST AND ITS LICENSORS SPECIFICALLY DISCLAIM ANY AND ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES FOR AVAILABILITY, ACCURACY, TIMELINESS, COMPLETENESS, NON-INFRINGMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Your use of the translations is subject to all use restrictions contained in your Electronic Products License Agreement and by using the translation functionality you agree to forgo any and all claims against ProQuest or its licensors for your use of the translation functionality and any output derived there from. Hide full disclaimer
Details






1 The Department of Microelectronics, College of Physics and Information Engineering, Fuzhou University, Fuzhou 350108, China;
2 College of Biological Science and Engineering, Fuzhou University, Fuzhou 350108, China;
3 School of Advanced Manufacturing, Fuzhou University, Quanzhou 362200, China;
4 Department of Information and Telecommunications Engineering, Ming Chuan University, Taoyuan 32023, Taiwan;
5 Department of Electronic Engineering, Feng Chia University, Taichung 40724, Taiwan;
6 The Department of Electronic Engineering, Chung Yuan Christian University, Taoyuan 32023, Taiwan;
7 The Department of Information Systems and Computer Science, Ateneo de Manila University, Quezon City 1108, Philippines;