Next Article in Journal
Multi-Scale Deformable Transformer with Iterative Query Refinement for Hot-Rolled Steel Surface Defect Detection
Next Article in Special Issue
Enhancing Surgical Planning with AI-Driven Segmentation and Classification of Oncological MRI Scans
Previous Article in Journal
A Novel Multiband Fusion Method Considering Scattering Characteristic Fluctuation Between Sub-Bands
Previous Article in Special Issue
Self-Sensing with Hollow Cylindrical Transducers for Histotripsy-Enhanced Aspiration Mechanical Thrombectomy Applications
error_outline You can access the new MDPI.com website here. Explore and share your feedback with us.
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Real-Time Multi-Channel Epileptic Seizure Detection Exploiting an Ultra-Low-Complexity Algorithm–Hardware Co-Design Approach

Department of Information, Electronics and Telecommunication Engineering, Sapienza University of Rome, 00184 Roma, Italy
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(22), 6889; https://doi.org/10.3390/s25226889
Submission received: 7 October 2025 / Revised: 6 November 2025 / Accepted: 7 November 2025 / Published: 11 November 2025
(This article belongs to the Special Issue Multi-sensor Fusion in Medical Imaging, Diagnosis and Therapy)

Abstract

This paper presents an automated threshold-based multi-channel epileptic seizure detection algorithm designed for low-complexity hardware implementations. The algorithm relies on two discriminative, computationally simple time-domain features, based on power and amplitude variations, that enable accurate and timely detections due to their rapid adaptiveness to fluctuations in neural activity. To ensure long-term functionality and high sensitivity, system thresholds are optimized through an offline calibration process that exploits the statistical analysis of patient-specific inter-ictal and ictal periods. The novelty of the approach lies in its multi-channel decision-making strategy, which enhances reliability against false alarms. The proposed algorithm is tested on multiple datasets to assess its adaptability to different recording conditions, achieving roughly 98% accuracy and over 98% sensitivity on both the EEG CHB-MIT dataset and the iEEG SWEC-ETHZ dataset, with average latencies of 3.37 s and 7.84 s, respectively. These results are comparable to, and in some cases outperform, several published machine-learning-based approaches. On the hardware side, FPGA synthesis highlights the minimal and scalable resource requirements of the proposed architecture, achieved through Time-Division Multiplexing (TDM) of both filtering and feature extraction. When compared to state-of-the-art proposals, the system emerges as an ideal candidate for real-time, resource-constrained hardware implementations.

1. Introduction

Epilepsy remains one of the most prevalent neurological disorders worldwide, and while pharmacological treatments are effective in many cases, approximately a quarter of the affected individuals fail to respond adequately to conventional medications [1,2]. As a consequence, recent advancements have focused on the development of automated device-based approaches to address the challenge of refractory epilepsy. Among these, techniques like Vagus Nerve Stimulation (VNS) and Deep Brain Stimulation (DBS) rely on the localized delivery of electrical stimuli to ameliorate the effects of the ongoing seizure in a controlled manner [3,4,5].
In its conventional, open-loop form, DBS delivers continuous electrical pulses to targeted brain regions according to pre-set parameters, without taking into account the patient’s current neural state. Adaptive variations in DBS, however, enact neuromodulation based on real-time monitoring of the subject’s neural responses, dynamically adjusting stimulation to optimize therapeutic outcomes and reduce side effects [6,7]. For this reason, automated seizure detection is becoming increasingly prevalent as an ideal candidate to regulate the stimulation protocol.
Traditional seizure detection has typically relied on visual inspection of neural recordings, a process that is inherently subjective, time-consuming, and therefore ill-suited not only for automated detection but also for deployment in implantable devices. Developing objective, efficient, and reliable methods for automated seizure detection presents a critical hurdle due to the strong variability of pre-ictal and inter-ictal patterns both within individual patients and across different patients, as well as the non-stationary nature of scalp EEG and intracranial EEG (iEEG) signals. This high variability complicates the design of generalized detection algorithms and introduces an inherent trade-off between sensitivity and accuracy, as systems must balance the minimization of both false positives and false negatives. These challenges make it difficult to develop algorithms capable of maintaining robust performance across diverse individuals and recording conditions.
A key task in seizure detection involves identifying optimal representations from neural signals within the feature space. From this perspective, a plethora of signal descriptors and metrics has been proposed and evaluated in terms of their discriminative capabilities. In this context, features may be extracted from the time domain, including peak density, signal power, or Hjorth parameters [8,9]. Furthermore, non-linear features like Approximate Entropy (ApEn) have seen increased usage, adding complementary information to traditional time-based metrics [10]. In frequency analysis, Cross-Frequency Coupling (CFC) stands out in particular, with Phase-Amplitude Coupling (PAC) being widely employed to quantify the relationship between the amplitude of high-frequency oscillations and the phase of slower frequency bands [11].
More recently, machine-learning and deep learning strategies have taken center stage: models such as Support Vector Machines (SVM), Convolutional Neural Networks (CNN), and other architectures are able to combine and process large sets of features, achieving high levels of accuracy in seizure onset detection and prediction [12,13]. Despite their strong performance, these methods often involve considerable computational overhead, which limits their practical use in implantable systems. Such devices must function under strict constraints on area and power consumption, conditions that remain difficult to meet with current state-of-the-art algorithms. The study in [14] proposes a patient-specific, FPGA-implemented, threshold-based detection algorithm that leverages eleven time-domain features. A feature ranking strategy is employed to identify the most discriminative subset of features, while a channel selection mechanism is integrated to reduce data dimensionality. However, the initial number of extracted features is relatively high, and the resources required for their computation, as well as for the associated pre-processing steps, are non-trivial. On that topic, the work presented in [15] aims to reduce the computational load by restricting the set of features to a single time-domain Local Binary Pattern (LBP) code extracted from the recorded iEEG signal. While effective, the algorithm has not been implemented on hardware platforms and presents significant latency. Additionally, the work proposed in [16] employs a combination of under-sampling and boosting techniques to improve the performance of a classifier, which in turn makes use of statistical metrics extracted from pre-processed EEG signals. Although the original paper does not report implementation details, it can be reasonably assumed that calculating higher-order metrics, such as kurtosis or skewness, could limit the applicability of the approach on portable or resource-constrained hardware. In [17], the authors proposed an adaptive distance-based seizure detector which makes use of both statistical and morphological metrics to elaborate signals that undergo principal component analysis and common spatial patterns to enhance the available data. Similar potential limitations as [16] also apply in this case.
Regarding more specific implementations that target hardware realization on FPGA, the system proposed in [18] implements a mixed-signal SoC featuring an analog front-end for EEG acquisition and a digital detection core in 55 nm CMOS technology. The detection unit performs on-chip feature extraction based on four eigenvalues derived from time-domain features. Hardware modules handle feature calculation, threshold update, and detection logic. The design was prototyped on FPGA and later realized as an ASIC.
In addition, the system presented in [19], implemented on an Artix-7 FPGA, realizes energy-efficient, real-time seizure detection. The hardware consists of dedicated modules for feature extraction, calculation of Hjorth mobility and non-linear energy in parallel pipelines, and on-chip SVM or QDA classifiers. The design includes optimized memory buffers and control logic to manage data flow between extraction and classification units, achieving minimal dynamic power (approximately 0.057 mW for SVM). In both of the aforementioned cases, there remains margin for improvement in terms of resource allocation.
In this work, we propose a novel framework to analyze and detect abnormal patterns related to epileptic seizure events, based on the power fluctuations of the EEG signal, and applied through the use of two discriminative time-domain features of simple derivation. The proposed algorithm is threshold-based and, as such, it is much simpler in terms of hardware resources with respect to the aforementioned solutions, yet it is able to achieve state-of-the-art comparable performance regarding accuracy, sensitivity, and latency. The novelty of this work lies in the combination of a minimal feature set, consisting of Line Length (LL) and instantaneous power difference (PD) between consecutive samples, which enables a simple and low-complexity algorithm. The PD feature benefits from being compatible with partial LL computation, as both require only two samples at a time, reducing hardware requirements.
In addition, instead of implementing a channel reduction approach, a full-channel majority-voting mechanism leverages all recording channels to improve true positive detection while limiting false alarms, made possible by the low-complexity algorithm and minimal hardware usage. Finally, a hardware-oriented Time-Division Multiplexing (TDM) architecture executes filtering and partial feature extraction within the TDM framework, allowing scalable operation across a large number of channels and making the system suitable for implantable applications.
The paper is organized as follows: Section 2 is devoted to the presentation of the proposed work, from the employed set of features to the detailed description of the algorithm’s functionality in its distinct steps, including the pre-processing stage. Section 3 delves into the details of the hardware implementation of the proposed seizure detector, showing its functionality with simulations conducted across different software environments. Section 4 reports the simulation results obtained using EEG and iEEG datasets as benchmarks for system validation, providing an extensive description of the statistical metrics employed to assess the algorithm and tune its parameters. In addition, this section hosts a comparative analysis that weighs the algorithm’s performance and synthesis on FPGA against current state-of-the-art proposals. Finally, Section 5 concludes the work.

2. Proposed Work

This section details the main components of the proposed seizure detection system, starting with a description of the double feature extraction stage that provides the basis for the algorithm. Consequently, the multi-channel signal processing flow and threshold-based decision rule used to detect the seizure onset are thoroughly explained.

2.1. Features

Feature extraction is a critical step in seizure detection algorithms, as it transforms the filtered neural signals into representations that highlight the more relevant patterns pertaining to the ictal activity. In this work, two time-domain features were selected based on their discriminative capability, computational efficiency, and ability to follow variations associated with seizure onsets with relatively low latency. In limiting the feature set to two, the overall complexity of the extraction stage is greatly reduced, making the system suitable for resource-constrained hardware implementations. The specific features to be extracted in the proposed algorithm are introduced and discussed in the following.

2.1.1. Power Difference

As seizure events occur, they manifest as sudden, abnormal bursts of synchronized neural activity, often observable through sharp increases in amplitude and shifts in frequency. To characterize rapid changes in signal dynamics, the first of the two considered features quantifies the variation in instantaneous power by computing the difference between the squared values of consecutive samples. Such power difference (PD) can be analytically expressed as
P D = x [ n ] 2 x [ n 1 ] 2
where x [ n ] denotes the amplitude of the n-th sample. The PD feature is effective in capturing instantaneous power and frequency fluctuations with reliable consistency, as it emphasizes localized shifts in amplitude, allowing it to distinguish between pre-ictal and ictal states.

2.1.2. Line Length

Line length is a time-domain feature widely used in EEG/iEEG signal analysis due to its high sensitivity to variations in both amplitude and frequency [20,21]. It is computed as the cumulative sum of the absolute differences between consecutive signal samples within a given time window of N samples, as defined in [22]:
L L = n = 1 N x [ n ] x [ n 1 ]
In the initial stages of the ictal state, neural signals often exhibit subtle changes, such as low-amplitude rhythmic oscillations or minor waveform distortions. These early alterations may not be efficiently captured by the power difference feature alone, which, being quadratic in nature, responds more prominently to abrupt, localized increases in amplitude while tending to suppress smaller fluctuations, potentially resulting in delayed seizure onset detection. In contrast, the line length feature offers greater sensitivity to these early dynamics and, through its window-based cumulative process, generally yields a smoother, monotonic increase in value that reflects the progression of the seizure event.

2.2. Proposed Algorithm

The proposed seizure detection algorithm, which is outlined in Figure 1, is based on a thresholding principle that fully harnesses information provided by multi-channel neural recordings to achieve a consistent and responsive discrimination. Particularly, since seizure events are typically characterized by pronounced fluctuations, the proposed algorithm leverages the LL and PD features to track and locally enhance such variations with respect to inter-ictal neural dynamics. The combination of these two extracted features raises the probability of correctly distinguishing false alarms from true epileptic events. To that end, an initial offline calibration stage is employed to determine the optimal detection thresholds, thereby accounting for patient-specific variability and recording conditions, as well as ensuring that the algorithm is able to operate reliably in a real-time scenario.
A window-based processing scheme is used to improve the temporal resolution of detection and to organize the processing pipeline in a structured, stepwise manner. With an appropriately chosen window length N, this approach also enhances the consistency of the analysis. Indeed, windows that are too large can reduce the algorithm’s discriminative ability and cause increases in latency, whereas excessively short windows may fail to capture the characteristic fluctuations between ictal and inter-ictal states or make the system more susceptible to false detections. For each window, the algorithm first extracts the PD and LL features after low-pass filtering of the signal is performed. Next, seizure discrimination is carried out by monitoring whether these features cross the detection thresholds. The remainder of the section presents a detailed description of the general processing chain involved in the proposed methodology.

2.2.1. Data Pre-Processing

Pre-processing is deliberately kept to a minimum in order to maintain a lightweight algorithm that is well-suited for resource-constrained applications. In particular, advanced artifact-removal techniques such as Independent Component Analysis (ICA) are not employed, as they introduce additional computational complexity and risk discarding signal components that may still contain relevant seizure-related information.
A 64th-order low-pass Finite Impulse Response (FIR) filter, implemented using TDM across recording channels, is applied to the incoming neural data. The FIR structure ensures a linear phase response, which preserves the temporal coherence of the EEG signals. The stop-band frequency is set to 50 Hz (Figure 2), effectively suppressing high-frequency artifacts and noise while retaining the spectral bands most relevant for seizure detection according to our study, namely Delta, Theta, Alpha, and Beta. Furthermore, the selected order guarantees an attenuation of at least 60 dB at 50 Hz, ensuring robust rejection of power-line interference.
This filter is included in the processing chain regardless of any pre-processing already applied to the test datasets, providing a complete system that can operate directly on in vivo neural data and remain adaptable for real-time implementation.

2.2.2. Seizure Detection Algorithm

The overall algorithm is summarized in the high-level flow diagram shown in Figure 3. Its operation can be divided into two main stages: single-channel processing and multi-channel decision-making. The first stage focuses on the analysis of each EEG (or iEEG) channel independently, while the second stage integrates information across multiple channels to provide a final decision on seizure occurrence.
As a preliminary step, the acquired neural signals undergo low-pass filtering to suppress high-frequency noise and reduce the influence of potential artifacts, as described in Section 2.2.1. Following this pre-processing step, the algorithm proceeds in a window-based fashion. At the beginning of the analysis, corresponding to the first sample of the first window, all relevant parameters are initialized to zero. Specifically, the window sample-related variable w is set to 0, and for each recording channel two dedicated variables are initialized: (i) the Potential Seizure Event Counter (PSEC), which tracks the number of PD threshold crossings within the window under analysis for a given channel, and (ii) the Flag Counter (FC), which is later used in the decision stage to identify the presence of epileptic seizure evidence shared among channels.
At this point, the single-channel processing phase is triggered. In particular, following a first increment of the sample variable w, the PD is computed according to Equation (1). Meanwhile, the algorithm updates the running accumulation of the LL feature, with the partial value being defined as LL ^ ( w ) . Since LL is defined as an accumulated measure, only this intermediate value is provided during window progression, whereas the final value of the accumulation, given in Equation (2), becomes available only at the end of the window under analysis.
The first condition in the detection process evaluates the absolute value of the extracted PD at each sample against a predefined threshold, T h r p . Such threshold is obtained from an offline statistical analysis of a sufficiently large dataset to ensure proper tuning, accounting for the trade-off between detection sensitivity, latency, and overall accuracy. Whenever the threshold is exceeded, it indicates a potential seizure event for the corresponding channel, resulting in an increment of PSEC.
PSEC = PSEC + 1 , if P D ( w ) T h r p , PSEC , otherwise .
This process is reiterated for each sample in the current analysis window until all samples have been processed. Once the last sample is evaluated, the window is complete, and the algorithm can proceed to the next state of the flow diagram. Here, the LL is available to be used for further evaluations. In particular, a double condition is checked in order to potentially raise the seizure flag FC, and it is defined as follows:
PSEC k c , L L T h r L L
where k c represents an empirical factor that quantifies the peak density of the PD feature with respect to its threshold within the analysis window, while T h r L L denotes the threshold applied to the LL accumulated over the same window. Both parameters, similar to T h r p , are determined offline through a calibration process aimed at optimizing system performance. The system of equations in Equation (4) implements a logical OR operation, meaning that if either condition is satisfied the samples within the current window are flagged as abnormal, and the flag counter F C i is set to 1, where i denotes the i-th channel.
Although the use of a logical OR operation makes the detection framework inherently more permissive compared to a stricter AND condition, thereby potentially increasing vulnerability to false positives, the actual impact on the False Positive Rate (FPR) remains limited when the calibration process is properly carried out. In practice, the thresholds are tuned in a way that balances the contribution of the PD and LL features, allowing them to complement one another. This compensation mechanism ensures that the system can achieve an improved trade-off between sensitivity and latency without a significant degradation in accuracy.
The final stage of the algorithm integrates a multi-channel voting strategy to determine the effective presence of ictal activity. Specifically, the seizure flags from all channels are aggregated, and the percentage of marked channels is compared against a predefined threshold, denoted as Λ . A seizure is declared only if the number of flagged channels exceeds Λ , thus enhancing robustness against spurious detections on individual channels:
F C t = i N c h F C i Λ
with F C t being the sum of the flags F C i across all processing channels. To further improve the system’s reliability, the condition presented in Equation (5) is required to be satisfied over three consecutive windows, ensuring that the detected activity corresponds to a sustained ictal pattern rather than a non-ictal fluctuation.

3. Hardware Implementation

The following section provides a detailed account of the hardware implementation of the various functional blocks that compose the digital processing chain underlying the proposed epilepsy detection algorithm. In that regard, the FPGA platform AMD Artix-7 was considered for the design’s realization. Specifically, the proposed processing chain was implemented as a hardware-oriented simulation model in Simulink, using the AMD proprietary System Generator libraries, integrated within the Vitis Model Composer tool.
This methodology allowed the proposed system to be thoroughly tested and validated within a controlled software environment, while simultaneously supporting the automatic generation of synthesizable HDL code. As such, the resulting system was simulated both within the Simulink environment and the Vivado Design Suite using the CHB-MIT scalp EEG dataset [23], which will be described in more detail in Section 4.1.

3.1. FIR Filter

As previously mentioned, the processing chain includes a 64th-order low-pass FIR filter, implemented using a TDM approach. The choice of a FIR structure over an Infinite Impulse Response (IIR) alternative ensures a linear phase response, thereby preserving the temporal integrity of the EEG signals and avoiding distortions that could compromise feature extraction. To optimize resources usage, the TDM approach enables the reuse of a single DSP unit across the multiple input channels, which significantly reduces hardware complexity while still meeting the required throughput.
The filter is designed to operate at a sufficiently high clock frequency to handle all available recording channels in real time. Specifically, the operating frequency is defined as
f F I R f s · N c h ,
where f s is the input sampling frequency, and N c h represents the number of channels. This relation ensures that the filter can sequentially process the i-th sample of each channel across all coefficients before the next input sample arrives. The high-level functional timing diagram of the FIR’s operation is shown in Figure 4. For illustrative purposes, the diagram refers to a simplified case study with 16 input channels.
The filter coefficients were generated with MATLAB’s Filter Design and Analysis (FDA) tool and provided as input to the Vivado FIR Compiler, which handles coefficient quantization and hardware mapping. In this implementation, the coefficients are represented with a 16-bit word length, which ensures that the realized frequency response closely matches the ideal design. The underlying architecture adopted for the FIR is a systolic Multiply-Accumulate (MAC) structure, well suited for FPGA-based realizations (Figure 5). In this architecture, data flows through an array of interconnected processing elements, each performing a partial multiplication and accumulation. This pipelined organization improves resource utilization, allowing the filter to sustain real-time operation across multiple channels while maintaining scalability and predictable timing behavior. For data alignment purposes, a series of First-In First-Out (FIFO) elements is used to ensure proper TDM operation, while dedicated registers are inserted in the processing chain to break critical paths.
To further optimize resources usage, part of the FIR FIFO used to delay the input data is implemented using Block RAM (BRAM) elements instead of flip-flops, thereby reducing the overall register count and improving area efficiency on the FPGA.

3.2. Double Feature Extractor

The hardware implementation of the double feature extracting core benefits from the TDM architecture as well, specifically with regard to resource minimization (Figure 6). The input data stream coming from the FIR filter is first demultiplexed, to account for the sequential logic required by the definition of the PD and LL feature, and then multiplexed again to perform the TDM operation. This approach enables the reuse of combinational logic across channels, significantly reducing hardware overhead. Consequently, the PD feature is implemented in TDM using two multipliers and a single subtractor.
The same multiplexed processing is applied to the computation of the absolute difference between consecutive samples required for the LL feature. However, unlike the PD, the accumulation over the full window cannot be shared across channels, as each channel requires an independent sum of its differences. For this reason, the LL implementation employs a dedicated accumulator per channel, while keeping the absolute-difference computation time-shared across the multiplexed data stream.

3.3. Detection Unit

After filtering and processing by the TDM double feature extractor, the data stream is sent to a demultiplexer and, subsequently, to the detection units, which include counters, comparators, and a deglitch module apiece. Each PD sample triggers a comparator when the condition in Equation (3) is satisfied, enabling an accumulator that increments by one unit and is reset at the end of the operational window through dedicated logic. A second comparator evaluates the peak density within the window, while, in parallel, a third one assesses the LL at the end of the same temporal interval. The outputs of the two comparators are combined using a logical OR and drive specific logic that triggers a flag whenever either the PSEC or the accumulated line length exceeds their respective thresholds.
A dedicated deglitch unit, which is a temporal filter, stabilizes the output over a defined time interval, with its operation being controlled by an edge detector that monitors the comparators’ outputs.
Regarding the multi-channel voting, after proper type conversion, the single detectors’ outputs are fed to a tree of adders, which sum the contributions from each channel to determine the percentage that have flagged potential ictal activity. The output of the summing operation is evaluated by a comparator against the threshold Λ , implementing the condition described in Equation (5). Once again, a deglitch unit is exploited to stabilize the comparator’s output, which is subject to a final check by dedicated logic over three consecutive windows.

3.4. Architecture-Level Hardware Simulation

Shown in Figure 7a is the model of the hardware architecture implementing a 20-channel version of the proposed algorithm, emphasizing the scalability of the system. The choice of twenty channels was deemed sufficient to meaningfully exploit the multi-channel voting mechanism, while still maintaining a realistic hardware configuration. As shown at the top of the figure, the 20 EEG inputs logged from the MATLAB environment are collected and passed through a dedicated time-multiplexing block, which combines them into a single interleaved stream. This stream, operating at the frequency specified in Equation (6), is directed to the FIR filter stage, whose output signal is then delivered to the dual feature-extraction unit, responsible for producing the PD and partial LL. After said extraction, the TDM streams are demultiplexed to reconstruct 20 parallel signals per feature at frequency f s , which are finally routed to the individual detection units, where the initial stage of the decision process is carried out independently on each channel (Figure 7b).
The final element of the system incorporates the multi-channel voting block that was previously described in detail. To demonstrate the proper functionality of the system at hardware-level, the output of the detector when fed with a seizure-affected sample is presented in Figure 8.
Notably, it can be observed that, as the ictal state begins, the number of channels that flag the presence of seizure-related activity (Figure 8a) starts incrementing rapidly, as a consequence of both the increased density of PD peaks and the elevated LL values observed across multiple channels. The multi-channel voting mechanism continuously monitors this count, and once the latter exceeds the predefined threshold Λ , set to 5 in this example, for at least three consecutive windows, the detector output is activated, as illustrated in Figure 8b.
The system was then imported into the Vivado Suite to be synthesized and to perform a functional simulation. Figure 9 shows the result of the detection when fed with EEG data capturing a segment that includes the transition from non-ictal to ictal activity. For visual clarity, only three channels are present in the waveform window. In this case, it is evident that the system reacts rapidly to the presence of abnormal seizure-related patterns.

3.5. FPGA Synthesis Results

To validate the simplicity of the proposed work, the overall architecture was synthesized on an FPGA platform, namely the AMD Artix-7 XC7A100T FPGA. Without loss of generality, a 4-channel version was prepared for the sake of the synthesis, in order to be reasonably comparable with state-of-the-art single-channel implementations while keeping the multi-channel facet peculiar to the proposed algorithm. The resulting report is compiled in Table 1, showing the exact unit utilization, correlated with the percentage of the same with respect to the available resources on the chosen platform. As can be observed, the reported results corroborate the low complexity and efficiency of the proposed architecture, confirming its suitability for real-time implementation on resource-constrained hardware.

4. Experimental Results and Comparative Analysis

This section describes the simulation framework, with a focus on the datasets used for tuning and validating the algorithm in the MATLAB 2021a environment. Key figures of merit employed to assess the detector are also presented. Finally, the results of applying the algorithm to the CHB-MIT and SWEC-ETHZ datasets are reported and analyzed in detail and compared against current state-of-the-art proposals. Additional comparisons will also address the hardware resource allocation with respect to other implemented designs.

4.1. Simulation Setup and Datasets

The following sub-section describes the datasets employed to evaluate the proposed algorithm. For a proper assessment, both a scalp EEG dataset and an iEEG dataset were considered. The latter includes short-term sessions, focused on few minutes centered around the ictal activity, and long-term recordings, which provide realistic conditions of extended monitoring periods.

4.1.1. CHB Dataset

For validation, the proposed algorithm was tested on the publicly available CHB-MIT Scalp EEG dataset, collected at Boston Children’s Hospital in collaboration with the Massachusetts Institute of Technology [23]. The dataset contains long-term EEG recordings from 23 pediatric patients with epilepsy, comprising 9 to 40 sessions per subject and totaling over 900 h. Signals were acquired with the international 10–20 electrode system, sampled at 256 Hz with 16-bit resolution, and generally included 23 recording channels. Each recording is accompanied by expert-annotated seizure onset and offset times, providing a benchmark for the statistical analysis of the detector. Information pertaining to the CHB dataset is annotated in Table 2.

4.1.2. SWEC-ETHZ iEEG Database

The long-term SWEC-ETHZ iEEG dataset comprises 2656 h of continuous recordings from 18 patients with pharmaco-resistant epilepsy, collected during pre-surgical evaluation at the Sleep-Wake-Epilepsy-Center (SWEC) of the University Department of Neurology, Inselspital Bern, in collaboration with the Integrated Systems Laboratory of ETH Zurich. The dataset includes 116 annotated seizure events, acquired with strip, grid, and depth electrodes. Signals were median-referenced, band-pass filtered between 0.5 Hz and 120 Hz using a fourth-order Butterworth filter, and digitized at 512 Hz or 1024 Hz with 16-bit resolution [24].
As with the previously mentioned dataset, the recordings are accompanied by annotations that label the beginning and conclusion of seizure events, determined through visual inspection by clinical experts. The overall number of seizures per patient, as well as the average seizure time, have been reported in Table 3. Contrary to the CHB-MIT dataset, it can be observed that the number of channels per patient varies greatly, ranging from 24 to over 100.
To further test the adaptability of the algorithm, the short-term SWEC-ETHZ iEEG dataset was also taken into consideration (Table 4). Such collection of samples includes 100 recordings taken from 16 patients. Each recording contains 3 min of pre-ictal activity, the ictal segment, and 3 min of post-ictal activity [25].
Results from the simulation of the algorithm on the aforementioned datasets are thoroughly analyzed in the coming section.

4.2. Performance of the Proposed Algorithm

This section presents the metrics used to calibrate and assess the performance of the proposed algorithm. The subsequent results summarize its application across the selected datasets, with all simulations conducted in the MATLAB environment.

4.2.1. Evaluation Metrics

Before delving into the simulation results, it is necessary to introduce the statistical metrics used to both tune the thresholds and assess the algorithm’s efficiency on test data. First, the definition of accuracy adopted in this work, as defined in [15], is based on the ratio of correctly classified samples to the total number of samples, thus providing a comprehensive performance indicator that accounts for both correct detections and misclassifications. As such, it can be expressed as:
Accuracy = TP + TN TP + TN + FN + FP × 100 .
Here, TP denotes the number of true positives, corresponding to correctly detected seizure samples, while FN represents the amount of false negatives, that is, missed detections. FP indicates the portion of false positives, interpreted as incorrect detections during normal neural activity. Finally, TN refers to the number of samples correctly identified as non-seizure related (Figure 10).
In addition, sensitivity is introduced as a metric that quantifies the algorithm’s ability to correctly detect epileptic seizures. It is defined as the ratio between true positives and the sum of true positives and false negatives, thereby measuring the percentage of seizures that are successfully identified. As such, this metric is not influenced by the quantity of true negatives, nor by the number of false positives, as it interests solely the classification of the actual seizure event. The formula for sensitivity is defined as follows:
Sensitivity = TP TP + FN × 100 .
In practice, it depends not only on whether a seizure is detected, but also on how quickly the detection occurs, as delayed detections increase the number of unidentified positives and thus lower the sensitivity.
To quantify the algorithm’s responsiveness, latency has also to be taken into account. The latter refers to the time interval, typically measured in seconds, between the actual onset of a seizure and its detection performed by the algorithm. In this study, where testing is performed on recorded datasets rather than live subjects, latency is calculated as the difference between the detection time and the seizure onset as indicated by the clinical annotation provided with each sample.
The expression for latency adopted throughout the development of this work is therefore equal to:
Latency = T o n s e t T d e t e c t i o n ,
where T o n s e t denotes the timestamp of the seizure’s beginning provided with the test samples, while T d e t e c t i o n represents the instant in which the detection first occurs. Specifically, T d e t e c t i o n is identified as the earliest time instant within the annotated ictal window from which the algorithm consistently flags seizure-related activity across channels. It must be noted that the metric defined in Equation (9) carries a degree of uncertainty due to the subjective nature of the annotations, with the marked onsets possibly not aligning with the physiological genesis of the epileptic seizures.
Figure 11 shows a practical example of the delay described above, illustrating how the inherent properties of the threshold-based algorithm can cause its identification of physiological changes in neural patterns to diverge from the annotated seizure onset due to uncertainty in the onset timing.

4.2.2. Simulation Results

Simulations were first conducted on the CHB-MIT dataset, selecting five patients as representative examples. All available seizure samples for these patients were used to evaluate the algorithm. Since each sample is 60 min long, they provided sufficient ictal and inter-ictal data to perform threshold calibration using only the first seizure-containing sample per subject. Such tuning aimed to achieve an optimal trade-off between accuracy and sensitivity. Subsequent test samples were then evaluated using the fixed thresholds obtained from the initial tuning.
The calibration itself was performed individually for each patient in the CHB-MIT dataset and reiterated for those in the other datasets. The process involved iteratively running the algorithm on the sample of data reserved for tuning. Initial thresholds for the LL and PD features were defined as scaled versions of their standard deviations and progressively adjusted, together with the counter variable k c , to maximize detection accuracy. Once satisfactory accuracy was reached, T h r p and T h r L L were gradually lowered to achieve at least 90% sensitivity, or preferably higher, while maintaining accuracy above a target value. Detection latency showed a strong dependence on sensitivity, as higher sensitivity generally reduced missed detections and thus latency. The parameter Λ was contextually optimized based on the number of channels, corresponding to the number of electrodes used to record the neural data, and was set to represent a fixed percentage of the total. The results reported for the CHB dataset, as well as the SWEC-ETHZ datasets presented later, reflect this patient-specific calibration procedure.
For simulations of the algorithm conducted on the CHB dataset, as well as the intracranial SWEC-ETHZ datasets, a duration of 1 s was established for the processing windows, corresponding to f s samples. This configuration was identified as optimal after evaluating multiple window sizes and observing superior overall detection performance and consistency across datasets.
Regarding the scalp EEG CHB-MIT dataset, results reported in Table 5 demonstrate that the proposed algorithm achieves excellent performance across all tested subjects. Average accuracy per patient ranges from 95.95 % (CHB07) to 98.23 % (CHB05), while sensitivity remains consistently high, often approaching 100 %. Detection delays are low, with an overall mean of 3.37 s, and false positive rates are well contained, averaging 2.26 % per hour, supporting the method’s reliability in distinguishing seizure and non-seizure activity. Since the threshold is kept constant across all test samples, there is a slight, though not majorly significant, decrease in accuracy for later seizure events, suggesting potential for improvement through an adaptive thresholding or autocalibration strategy to maintain uniformly high performance over time.
Concerning the short-term SWEC iEEG dataset, threshold calibration required a different approach due to the limited inter-ictal data in each sample. Approximately half of the seizure-marked recordings were used for training to properly tune the thresholds, while the remaining half were reserved for testing. It must be noted that, given the short duration of the samples, particularly in terms of inter-ictal activity, the identification of true positives carries more weight, as there are fewer true negatives available.
The results reported in Table 6 indicate that the proposed algorithm performs very well under these conditions. Accuracy for individual seizures is high, with patient-level averages exceeding 98 % in the examples reported. Sensitivity remains consistently close to 100 %, demonstrating reliable detection of ictal activity. Detection delays are generally low, ranging from 5 to 13 s on average per patient, and false positive rates are minimal, highlighting the method’s reliability even in recordings with limited inter-ictal periods and highly variable electrode configurations.
For the evaluation on the long-term SWEC iEEG dataset, five subjects were selected, similarly to the previous runs on the short-term dataset. As with the CHB dataset, 60 min long recordings were used, and a single sample containing a seizure event was sufficient to tune the algorithm and calibrate the thresholds depending on the tested subject. The results reported in Table 7 show that the algorithm maintains high accuracy and sensitivity, comparable to those obtained on the CHB dataset. However, for both iEEG datasets, the average latency is slightly longer, which can be attributed to a certain degree of uncertainty in the seizure onset annotations in the SWEC recordings. It is also worth noting that some tests show a delay of 0 s or even negative values; despite the algorithm incorporating an intrinsic three-second delay due to the conclusive check over three consecutive windows before marking a seizure, these cases likely reflect the algorithm detecting early pre-ictal physiological fluctuations.

4.3. Comparative Analysis with State-of-the-Art

In this section, the results of the simulations conducted on the CHB-MIT and SWEC-ETHZ datasets are compared against other state-of-the-art proposals. Notably, works pertaining to the latter of the two datasets have been considered both regarding the short-form and the long-form variants. As shown in Table 8, comparisons were made with respect to algorithms that were tested on either of the two datasets, with most of them being the product of machine-learning-based approaches. Included in Table 8 are also works that were evaluated on different publicly available datasets, with a distinction being made between EEG and iEEG signals. Additionally, not all references proposed in said table have been implemented.
The reported results show that the proposed work, in spite of its simplicity, manages to yield comparable scores in terms of accuracy and sensitivity, with latency times that do not deviate particularly from the average of about 5 s. The proposed threshold-based algorithm demonstrates high performance on the CHB-MIT dataset, achieving a sensitivity of 98.73% and an accuracy of 97.71% on average. These results are comparable to or exceed those obtained by more complex, machine-learning-based approaches, including 2D-CNNs, SVMs, RUSBoost, and Random Forests, which typically require extensive feature extraction and model training. In addition to its competitive accuracy, the algorithm exhibits a low detection latency of 3.37 s on average, outperforming several ML-based methods that report longer response times. Favorable results were also obtained when evaluating the algorithm on the iEEG dataset against similarly tested approaches. On average across the tested samples, the proposed method achieved a sensitivity of 98.62% and an accuracy of 98.34%, both higher than most existing works and indicative of resilience against false detections. Latency performance was also superior, regardless of the distinction between long-term or short-term variants, yielding an overall average of 7.84 s.
As shown in Figure 12, the latency values reported for various algorithms on the CHB and SWEC datasets reveal notable differences across datasets. For most state-of-the-art methods, latencies increase when tested on the iEEG SWEC dataset compared to CHB, suggesting potential inconsistencies in the annotations or differences in the characteristics of the SWEC recordings. The points corresponding to the proposed approach demonstrate competitive performance on both datasets, achieving low latency comparable to other methods on CHB while maintaining robust performance on SWEC, with results on the long-term SWEC dataset among the best reported. These results suggest that the method generalizes effectively across datasets and further emphasize the importance of cross-dataset validation to account for possible differences in annotation protocols and signal characteristics.

4.4. Hardware Resource Comparisons

This section presents the FPGA synthesis results, summarized in Table 9, and juxtaposes them with recent hardware implementations. Here, the strength of this design is particularly highlighted, as the comparisons show that the proposed work relies on minimal resources to be effective. The proposed solution achieves the lowest usage of LUTs and FFs among AMD Artix-7 implementations and requires only 3 DSP blocks, demonstrating an efficient mapping of the algorithm to hardware. Notably, the number of DSPs does not increase with the number of channels, as they are shared via the TDM implementation, unlike with other methods where DSP usage may scale with the channel count. The small overall resource footprint suggests that the algorithm could be implemented on limited platforms or even ASICs to further push the miniaturization process with sub-micron nodes.

5. Conclusions

In this work, a low-complexity threshold-based seizure detection algorithm was presented and thoroughly assessed in terms of both performance on pre-existing datasets and hardware resource allocation when implemented on the AMD Artix-7 FPGA board. By exploiting the PD and LL time-domain features, the architecture is able to isolate and effectively detect the abnormal activity related to the presence of an epileptic seizure, provided that a calibration of the thresholds is carried out beforehand. The accuracy and sensitivity of the proposed system were evaluated using the CHB-MIT scalp EEG dataset and the SWEC-ETHZ iEEG dataset, both in its long-term and short-term variant. After testing on over 35 samples taken from said datasets, the simulated accuracy exceeded on average 98%, with similar results being obtained with regard to the average sensitivity. The latency of the system, when compared against more complex state-of-the-art proposals pertaining to the specific datasets, is among the shortest, with recorded averages of 3.37 s (CHB) and 7.84 s (SWEC).
The simplicity of the algorithm translates into minimal resource requirements for hardware implementation. FPGA synthesis results demonstrated substantial improvements in LUT, DSP, and FF utilization compared with single-channel designs. For fairness, a 4-channel version of the framework was considered in the comparison, ensuring full functionality of the proposed architecture. Moreover, the adoption of a TDM approach for both pre-processing and feature extraction prevents resources usage from scaling linearly with the number of channels, further strengthening the efficiency of the solution. Overall, these results demonstrate that the proposed detection algorithm is accurate, fast, and lightweight, making it well-suited for real-time applications in hardware-constrained environments.

Author Contributions

Conceptualization, A.V., G.N. and G.S.; methodology, A.V., G.N. and G.S.; software, A.V. and G.N.; validation, A.V. and G.N.; formal analysis, G.N.; investigation, A.V., G.N. and G.S.; data curation, G.N; writing—original draft preparation, A.V.; writing—review and editing, A.V., G.N. and G.S.; supervision, G.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Sultana, B.; Panzini, M.A.; Veilleux Carpentier, A.; Comtois, J.; Rioux, B.; Gore, G.; Bauer, P.R.; Kwon, C.S.; Jetté, N.; Josephson, C.B.; et al. Incidence and Prevalence of Drug-Resistant Epilepsy: A Systematic Review and Meta-analysis. Neurology 2021, 96, 805–817. [Google Scholar] [CrossRef] [PubMed]
  2. Mesraoua, B.; Brigo, F.; Lattanzi, S.; Abou-Khalil, B.; Al Hail, H.; Asadi-Pooya, A.A. Drug-resistant epilepsy: Definition, pathophysiology, and management. J. Neurol. Sci. 2023, 452, 120766. [Google Scholar] [CrossRef] [PubMed]
  3. Gonzalez, H.F.; Yengo-Kahn, A.; Englot, D.J. Vagus nerve stimulation for the treatment of epilepsy. Neurosurg. Clin. N. Am. 2019, 30, 219–230. [Google Scholar] [CrossRef] [PubMed]
  4. Shin, U.; Ding, C.; Woods, V.; Widge, A.S.; Shoaran, M. A 16-channel low-power neural connectivity extraction and phase-locked deep brain stimulation soc. IEEE Solid-State Circuits Lett. 2023, 6, 21–24. [Google Scholar] [CrossRef]
  5. Skrehot, H.C.; Englot, D.J.; Haneef, Z. Neuro-stimulation in focal epilepsy: A systematic review and meta-analysis. Epilepsy Behav. 2023, 142, 109182. [Google Scholar] [CrossRef]
  6. Zhu, B.; Shin, U.; Shoaran, M. Closed-Loop Neural Prostheses With On-Chip Intelligence: A Review and a Low-Latency Machine Learning Model for Brain State Detection. IEEE Trans. Biomed. Circuits Syst. 2021, 15, 877–897. [Google Scholar] [CrossRef]
  7. Salam, M.T.; Velazquez, J.L.P.; Genov, R. Seizure Suppression Efficacy of Closed-Loop Versus Open-Loop Deep Brain Stimulation in a Rodent Model of Epilepsy. IEEE Trans. Neural Syst. Rehabil. Eng. 2016, 24, 710–719. [Google Scholar] [CrossRef]
  8. Slimen, I.B.; Boubchir, L.; Seddik, H. Epileptic seizure prediction based on eeg spikes detection of ictal-preictal states. J. Biomed. Res. 2020, 34, 162–169. [Google Scholar] [CrossRef]
  9. Li, K.; Lu, M. EEG signals based automated epilepsy detection using tunable-Q wavelet transform and Hjorth parameters. In Proceedings of the 2024 7th International Conference on Data Science and Information Technology (DSIT), Nanjing, China, 20–22 December 2024; pp. 1–6. [Google Scholar]
  10. Iqbal, S.; Khan, Y.U.; Farooq, O. Nonlinear analysis of eeg for seizure prediction. In Proceedings of the 2015 Annual IEEE India Conference (INDICON), New Delhi, India, 17–20 December 2015; pp. 1–5. [Google Scholar]
  11. Shin, U.; Ding, C.; Zhu, B.; Vyza, Y.; Trouillet, A.; Revol, E.C.M.; Lacour, S.P.; Shoaran, M. Neuraltree: A 256-channel 0.227-µj/class versatile neural activity classification and closed-loop neuromodulation soc. IEEE J. Solid-State Circuits 2022, 57, 3243–3257. [Google Scholar] [CrossRef]
  12. Chung, Y.G.; Cho, A.; Kim, H.; Kim, K.J. Single-channel seizure detection with clinical confirmation of seizure locations using chb-mit dataset. Front. Neurol. 2024, 15, 1530–1539. [Google Scholar] [CrossRef]
  13. Tang, F.-G.; Liu, Y.; Li, Y.; Peng, Z.-W. A unified multi-level spectral–temporal feature learning framework for patient-specific seizure onset detection in eeg signals. Knowl.-Based Syst. 2020, 205, 106152. [Google Scholar] [CrossRef]
  14. Razi, K.F.; Schmid, A. Epileptic Seizure Detection With Patient-Specific Feature and Channel Selection for Low-power Applications. IEEE Trans. Biomed. Circuits Syst. 2022, 16, 626–635. [Google Scholar] [CrossRef] [PubMed]
  15. Burrello, A.; Benatti, S.; Schindler, K.; Benini, L.; Rahimi, A. An Ensemble of Hyperdimensional Classifiers: Hardware-Friendly Short-Latency Seizure Detection With Automatic iEEG Electrode Selection. J. Biomed. Health Inform. 2021, 25, 935–946. [Google Scholar] [CrossRef] [PubMed]
  16. Asif, R.; Saleem, S.; Hassan, S.A.; Alharbi, S.A.; Kamboh, A.M. Epileptic seizure detection with a reduced montage: A way forward for ambulatory eeg devices. IEEE Access 2020, 8, 65880–65890. [Google Scholar] [CrossRef]
  17. Khanmohammadi, S.; Chou, C.-A. Adaptive seizure onset detection framework using a hybrid pca–csp approach. IEEE J. Biomed. Health Inform. 2018, 22, 154–160. [Google Scholar] [CrossRef]
  18. Wang, L.-H.; Zhang, Z.-N.; Xie, C.-X.; Jiang, H.; Yang, T.; Ran, Q.-P.; Fan, M.-H.; Kuo, I.-C.; Lee, Z.-J.; Chen, J.-B.; et al. A novel real-time threshold algorithm for closed-loop epilepsy detection and stimulation system. Sensors 2025, 25, 33. [Google Scholar] [CrossRef]
  19. Shamshad, A.M.; Mohd, H.; Farooq, O.; Mehedi, H. Field programmable gate array-based energy-efficient and fast epileptic seizure detection using support vector machine and quadratic discriminant analysis classifier. Eng. Rep. 2023, 6, 8. [Google Scholar]
  20. Esteller, R.; Echauz, J.; Tcheng, T.; Litt, B.; Pless, B. Line length: An efficient feature for seizure onset detection. In Proceedings of the I2001 Conference Proceedings of the 23rd Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Istanbul, Turkey, 25–28 October 2001; pp. 1707–1710. [Google Scholar]
  21. Esteller, R.; Echauz, J.; Tcheng, T. Comparison of line length feature before and after brain electrical stimulation in epileptic patients. In Proceedings of the 26th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, San Francisco, CA, USA, 1–5 September 2004; pp. 4710–4713. [Google Scholar]
  22. Guo, L.; Rivero, D.; Dorado, J.; Rabuñal, J.R.; Pazos, A. Automatic epileptic seizure detection in EEGs based on line length feature and artificial neural networks. J. Neurosci. Methods 2010, 191, 101–109. [Google Scholar] [CrossRef]
  23. Goldberger, A.L.; Amaral, L.A.N.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Mietus, J.E.; Moody, G.B.; Peng, C.-K.; Stanley, H.E. Physiobank, physiotoolkit, and physionet: Components of a new research resource for complex physiologic signals. Circulation 2000, 101, E215–E220. [Google Scholar] [CrossRef]
  24. Burrello, A.; Cavigelli, L.; Schindler, K.; Benini, L.; Rahimi, A. Laelaps: An Energy-Efficient Seizure Detection Algorithm from Long-term Human iEEG Recordings without False Alarms. In Proceedings of the ACM/IEEE Design, Automation, and Test in Europe Conference (DATE), Florence, Italy, 25–29 March 2019. [Google Scholar]
  25. Burrello, A.; Schindler, K.; Benini, L.; Rahimi, A. One-shot Learning for iEEG Seizure Detection Using End-to-end Binary Operations: Local Binary Patterns with Hyperdimensional Computing. In Proceedings of the IEEE Biomedical Circuits and Systems Conference (BioCAS), Cleveland, OH, USA, 17–19 October 2018. [Google Scholar]
  26. Shen, M.; Wen, P.; Song, B.; Li, Y. Real-time epilepsy seizure detection based on eeg using tunable-q wavelet transform and convolutional neural network. Biomed. Signal Process. Control 2023, 82, 104566. [Google Scholar] [CrossRef]
  27. Shen, M.; Wen, P.; Yan, L.; Song, B. An EEG based real-time epilepsy seizure detection approach using discrete wavelet transform and machine learning methods. Biomed. Signal Process. Control 2022, 77, 103820. [Google Scholar] [CrossRef]
  28. Qaraqe, M.; Ismail, M.; Serpedin, E. Band-sensitive seizure onset detection via csp-enhanced eeg features. Epilepsy Behav. 2015, 50, 77–87. [Google Scholar] [CrossRef] [PubMed]
  29. Kode, H.; Elleithy, K.; Almazaydeh, L. Epileptic seizure detection in eeg signals using machine learning and deep learning techniques. IEEE Access 2024, 12, 80657–80668. [Google Scholar] [CrossRef]
  30. Vidyaratne, L.S.; Iftekharuddin, K.M. Real-time epileptic seizure detection using eeg. IEEE Trans. Neural Syst. Rehabil. Eng. 2017, 25, 2146–2156. [Google Scholar] [CrossRef]
  31. Burrello, A.; Schindler, K.; Benini, L.; Rahimi, A. Hyperdimensional Computing With Local Binary Patterns: One-Shot Learning of Seizure Onset and Identification of Ictogenic Brain Regions Using Short-Time iEEG Recordings. IEEE Trans. Biomed. Eng. 2020, 67, 601–613. [Google Scholar] [CrossRef]
  32. Liu, Y.; Zhou, W.; Yuan, Q.; Chen, S. Automatic seizure detection using wavelet transform and svm in long-term intracranial EEG. IEEE Trans. Neural Syst. Rehabil. Eng. 2012, 20, 749–755. [Google Scholar] [CrossRef]
  33. Xu, Y.; Yang, J.; Ming, W.; Wang, S.; Sawan, M. Shorter latency of real-time epileptic seizure detection via probabilistic prediction. Expert Syst. Appl. 2024, 236, 121359. [Google Scholar] [CrossRef]
  34. Daoud, H.G.; Abdelhameed, A.M.; Bayoumi, M. FPGA implementation of high accuracy automatic epileptic seizure detection system. In Proceedings of the 2018 IEEE 61st International Midwest Symposium on Circuits and Systems (MWSCAS), Windsor, ON, Canada, 5–8 August 2018; pp. 407–410. [Google Scholar]
  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. [Google Scholar] [CrossRef]
  36. Fawzy, M.; Hussien, A.; Mostafa, H. FPGA utilized implementation of epileptic seizure detection system based on wearable devices using dynamic partial reconfiguration. In Proceedings of the 2022 10th International Japan-Africa Conference on Electronics, Communications, and Computations (JAC-ECC), Alexandria, Egypt, 19–22 December 2022; pp. 119–124. [Google Scholar]
Figure 1. General diagram of the proposed algorithm: (1) neural data are digitized by the analog front-end, and (2) low-pass filtered for pre-processing. (3) Main time-domain features are extracted, and (4) aggregated information is processed to detect seizure-related activity.
Figure 1. General diagram of the proposed algorithm: (1) neural data are digitized by the analog front-end, and (2) low-pass filtered for pre-processing. (3) Main time-domain features are extracted, and (4) aggregated information is processed to detect seizure-related activity.
Sensors 25 06889 g001
Figure 2. 64-taps FIR filter magnitude and phase response.
Figure 2. 64-taps FIR filter magnitude and phase response.
Sensors 25 06889 g002
Figure 3. Pseudo-algorithmic flow-diagram of the proposed seizure detection algorithm. The steps are grouped by their functionality within the processing chain.
Figure 3. Pseudo-algorithmic flow-diagram of the proposed seizure detection algorithm. The steps are grouped by their functionality within the processing chain.
Sensors 25 06889 g003
Figure 4. Timing diagram of the FIR filter operation, illustrating the sequential time-division multiplexing process for a generic case with 16 channels.
Figure 4. Timing diagram of the FIR filter operation, illustrating the sequential time-division multiplexing process for a generic case with 16 channels.
Sensors 25 06889 g004
Figure 5. DSP slice of a multi-channel FIR filter operating in TDM.
Figure 5. DSP slice of a multi-channel FIR filter operating in TDM.
Sensors 25 06889 g005
Figure 6. Hardware architecture of the TDM double feature extractor.
Figure 6. Hardware architecture of the TDM double feature extractor.
Sensors 25 06889 g006
Figure 7. (a) Simulink model of a 20 channel implementation of the proposed algorithm. (b) Focus on the single-channel detection blocks that comprise the overall detection unit.
Figure 7. (a) Simulink model of a 20 channel implementation of the proposed algorithm. (b) Focus on the single-channel detection blocks that comprise the overall detection unit.
Sensors 25 06889 g007
Figure 8. Detector’s output simulated in Simulink. Depicted are (a) the output of the channel voting unit, along with (b) the actual seizure detection result.
Figure 8. Detector’s output simulated in Simulink. Depicted are (a) the output of the channel voting unit, along with (b) the actual seizure detection result.
Sensors 25 06889 g008
Figure 9. Vivado simulation reporting key waveforms of the algorithm’s RTL implementation. Depicted are the three input EEG data taken from the CHB dataset, and the output of the detector.
Figure 9. Vivado simulation reporting key waveforms of the algorithm’s RTL implementation. Depicted are the three input EEG data taken from the CHB dataset, and the output of the detector.
Sensors 25 06889 g009
Figure 10. Explanatory illustration of (a) false negatives, and (b) false positives.
Figure 10. Explanatory illustration of (a) false negatives, and (b) false positives.
Sensors 25 06889 g010
Figure 11. Example case illustrating a detection delay with the threshold-based algorithm, showing the seizure being identified slightly after the annotated onset.
Figure 11. Example case illustrating a detection delay with the threshold-based algorithm, showing the seizure being identified slightly after the annotated onset.
Sensors 25 06889 g011
Figure 12. Trends in latency related to detection algorithms applied to CHB or SWEC-EHTZ datasets.
Figure 12. Trends in latency related to detection algorithms applied to CHB or SWEC-EHTZ datasets.
Sensors 25 06889 g012
Table 1. Synthesis results showing resource utilization on the AMD Artix-7 XC7A100T FPGA with a 4 input channel configuration.
Table 1. Synthesis results showing resource utilization on the AMD Artix-7 XC7A100T FPGA with a 4 input channel configuration.
ResourcesUtilizationAvailableUtilization (%)
LUT19263,4000.30
FF500126,8000.39
DSP32401.25
BRAM0.51350.37
Table 2. Summary of the CHB dataset, including the number of patients, their age and gender, seizure counts, and average seizure time per patient.
Table 2. Summary of the CHB dataset, including the number of patients, their age and gender, seizure counts, and average seizure time per patient.
Metricchb01chb02chb03chb04chb05chb06chb07chb08chb09chb10chb11chb12chb13chb14chb15chb16chb17chb18chb19chb20chb21chb22chb23
SexFMFMFFFMFMFFFFMFFFFFFFF
Age (years)11111422711431031223916712181961396
N° Seizures737451035473359921103638437
Avg. Time (s)63575794112151081836964268353819103898537937506861
Table 3. Summary of the long-term SWEC-ETHZ iEEG dataset, including the number of channels, seizure counts, and average seizure time per patient.
Table 3. Summary of the long-term SWEC-ETHZ iEEG dataset, including the number of channels, seizure counts, and average seizure time per patient.
Metric ID01 ID02 ID03 ID04 ID05 ID06 ID07 ID08 ID09 ID10 ID11 ID12 ID13 ID14 ID15 ID16 ID17 ID18
N° Ch.8866643212832756148323256642498346042
N° Seizures22414484702717297602525
Avg. Time (s)6028865423543532234424353503435433944
Table 4. Summary of the short-term SWEC-ETHZ iEEG dataset, including the number of patients, average seizure time, seizure counts, and variability in the number of channels per patient.
Table 4. Summary of the short-term SWEC-ETHZ iEEG dataset, including the number of patients, average seizure time, seizure counts, and variability in the number of channels per patient.
Metric ID01 ID02 ID03 ID04 ID05 ID06 ID07 ID08 ID09 ID10 ID11 ID12 ID13 ID14 ID15 ID16
N° Ch.474298625464365956100644992746159
N° Seizures13421410422952107736
Avg. Time (s)712239915398146155614414109458160212188
Table 5. Detection metrics per seizure and patient-level averages. CHB Dataset.
Table 5. Detection metrics per seizure and patient-level averages. CHB Dataset.
PatientTest SeizureAccuracy (%)Sens. (%)Delay (s)FPR/h (%)
CHB01#198.9199.9901.09
#296.9099.9903.10
#398.3610001.64
#499.7710020.23
#597.7396.4742.18
#696.6210033.38
Avg98.0499.401.51.94
CHB05#199.4098.0580.55
#299.2292.3950.57
#399.2097.4140.72
#495.11100134.89
Avg98.2396.967.51.68
CHB07#196.6497.7763.30
#295.2697.6574.66
Avg95.9597.716.53.98
CHB09#198.5199.9931.49
#296.7899.9923.22
Avg97.6499.992.52.35
CHB23#196.9399.9923.07
#298.0099.99−52.04
Avg97.4699.99−1.52.55
AVERAGE 97.7198.733.372.26
Table 6. Detection metrics per seizure and patient-level averages. SWEC-ETHZ short-term dataset.
Table 6. Detection metrics per seizure and patient-level averages. SWEC-ETHZ short-term dataset.
PatientTest SeizureAccuracy (%)Sens. (%)Delay (s)FPR (%)
ID2#199.3310080.67
#297.7310032.27
Avg98.531005.51.47
ID5#196.5995.8392.73
#299.33100130.67
#398.4895.50140.65
#498.5110081.49
#597.4910042.51
Avg98.0898.279.61.61
ID6#199.3897.32140
#298.5598.15120.91
Avg98.7697.73130.45
ID8#197.3997.96142.38
ID10#199.7399.9840.27
#210099.9860
Avg99.8699.9850.13
AVERAGE 98.5498.739.081.21
Table 7. Detection metrics per seizure and patient-level averages. SWEC-ETHZ long-term dataset.
Table 7. Detection metrics per seizure and patient-level averages. SWEC-ETHZ long-term dataset.
PatientTest SeizureAccuracy (%)Sens. (%)Delay (s)FPR (%)
ID1#199.2299.2920.67
ID2#197.7895.1882.11
ID3#199.9295.1620
#210010020
#399.9295.5230
Avg99.9596.892.330
ID15#197.36100132.64
ID16#199.64100130.36
#299.4710090.53
#399.5310070.47
#488.61100711.39
Avg96.8110093.19
AVERAGE 98.1498.516.601.82
Table 8. Comparison of performance metrics against recent state-of-the-art proposals. Colored in yellow are works appied to EEG data, colored in green are works applied to iEEG data.
Table 8. Comparison of performance metrics against recent state-of-the-art proposals. Colored in yellow are works appied to EEG data, colored in green are works applied to iEEG data.
ReferenceType%Sens.%Acc.Latency (s)Database
[12]2D-CNN100.002.10CHB
[16]RUSBoost95.0099.716.83CHB
[13]SVM97.2097.801.10CHB
[17]ADCD96.004.21CHB
[26]CNN97.5798.9010.46CHB
[27]SVM96.1596.3810.42CHB
[28]SVM95.206.40CHB
[29]Rand. Forest98.0098.00UCI-ESR
[30]RVM96.0099.881.89Bonn/CHB
This WorkThr-Based98.7397.713.37CHB
[31]LBP+HD96.0195.4215.90SWEC-SH
[14]Thr-Based1008.22SWEC-SH
[25]LBP96.3896.858.81SWEC-SH
[32]SVM94.4611.1Freiburg
[33]2D-CNN97.5013.7SWEC-SH
[24]Laelaps85.518.9SWEC-LO
This WorkThr-Based98.7398.549.08SWEC-SH
This WorkThr-Based98.5198.146.60SWEC-LO
This WorkThr-Based98.6298.347.84SWEC-AV
SH: short-term; LO: long-term; AV: average results between short-term and long-term.
Table 9. Comparison of FPGA synthesis reports.
Table 9. Comparison of FPGA synthesis reports.
ReferenceYearBoardLUTFFDSP
[34]2018M2GL0255355357
[14]2022Cyclone V185630885
[35]2022Zynq-7000520210,196
[36]2022Artix-759344015
[19]2023Artix-7115049214
[18]2025Altera DE210959
This Work2025Artix-71925003
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.

Share and Cite

MDPI and ACS Style

Vittimberga, A.; Nicolini, G.; Scotti, G. Real-Time Multi-Channel Epileptic Seizure Detection Exploiting an Ultra-Low-Complexity Algorithm–Hardware Co-Design Approach. Sensors 2025, 25, 6889. https://doi.org/10.3390/s25226889

AMA Style

Vittimberga A, Nicolini G, Scotti G. Real-Time Multi-Channel Epileptic Seizure Detection Exploiting an Ultra-Low-Complexity Algorithm–Hardware Co-Design Approach. Sensors. 2025; 25(22):6889. https://doi.org/10.3390/s25226889

Chicago/Turabian Style

Vittimberga, Andrea, Giovanni Nicolini, and Giuseppe Scotti. 2025. "Real-Time Multi-Channel Epileptic Seizure Detection Exploiting an Ultra-Low-Complexity Algorithm–Hardware Co-Design Approach" Sensors 25, no. 22: 6889. https://doi.org/10.3390/s25226889

APA Style

Vittimberga, A., Nicolini, G., & Scotti, G. (2025). Real-Time Multi-Channel Epileptic Seizure Detection Exploiting an Ultra-Low-Complexity Algorithm–Hardware Co-Design Approach. Sensors, 25(22), 6889. https://doi.org/10.3390/s25226889

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop