Abstract
Epilepsy monitoring currently relies heavily on hospital-based units using high-density EEG caps, which limits patient mobility and long-term monitoring capabilities. To address the need for wearable, 24/7 monitoring, we present EpiDeNet, a lightweight convolutional neural network (CNN) optimized for ultra-low-power embedded systems. By introducing a novel Sensitivity-Specificity Weighted Cross-Entropy (SSWCE) loss function and leveraging parallel RISC-V hardware architectures, EpiDeNet achieves over 90% detection sensitivity while maintaining 160x greater energy efficiency than standard ARM-based microcontrollers. This approach demonstrates the feasibility of high-accuracy, long-term seizure monitoring on resource-constrained wearable devices.
Introduction
Epilepsy affects more than 50 million people globally. While reliable monitoring is essential for treatment and safety, it is traditionally confined to Epilepsy Monitoring Units (EMUs) using bulky 32-channel EEG equipment. Transitioning this technology to wearable devices is critical for patient autonomy but faces significant technical hurdles.
Wearable seizure detection must overcome four primary challenges:
- Channel Constraints: Devices must operate with minimal electrodes (e.g., 4 channels) to ensure user comfort.
- Data Imbalance: Seizures are infrequent, often representing less than 1% of recorded data, which biases standard AI models toward "normal" brain activity.
- False Alarms: High false-positive rates (FP/h) lead to caregiver fatigue and patient anxiety.
- Energy Efficiency: Complex AI inference must run on tiny batteries for days or weeks at a time.
Methodology
EpiDeNet Architecture
The EpiDeNet model is a refined CNN architecture optimized through Neural Architecture Search (NAS). The network is structured to process EEG signals in two distinct phases: initial layers act as frequency filters to extract spectral features, while subsequent layers serve as spatial filters to identify relationships between signals across different brain regions.
SSWCE Loss Function
To address the inherent data imbalance in seizure recordings, the researchers moved away from standard Cross-Entropy loss. They introduced Sensitivity-Specificity Weighted Cross-Entropy (SSWCE). This loss function allows for the explicit tuning of penalties for missed seizures (false negatives) versus false alarms (false positives). By incorporating clinical priorities directly into the training objective, the model becomes more robust to the rarity of seizure events without the need for aggressive data resampling, which can lead to overfitting.
Temporal Smoothing and Quantization
To further reduce false positives, a three-window majority voting scheme was implemented to filter out transient noise. For hardware deployment, the model was quantized to 8-bit integers (INT-8), allowing it to run efficiently on specialized embedded processors.
Experimental Setup
The model's performance was validated using two datasets:
- CHB-MIT: A public dataset featuring EEG recordings from 23 pediatric patients.
- PEDESITE: A challenging private dataset from Lausanne University Hospital (CHUV) containing long-term recordings (up to two weeks) from both adult and pediatric patients in real-world clinical environments.
Results and Discussion
Detection Performance
EpiDeNet demonstrated high clinical utility using only four temporal EEG channels. It achieved a sensitivity of 91.16% on the CHB-MIT dataset and 92.00% on the PEDESITE dataset. Crucially, the combination of the SSWCE loss function and temporal smoothing reduced the false alarm rate to 1.18 FP/h, representing a three-fold improvement over baseline detection methods.
Hardware Efficiency
The study compared deployment across several platforms, including ARM Cortex-M4/M7 and the parallel ultra-low-power (PULP) RISC-V-based GAP8/GAP9 processors. The results highlighted the superiority of parallel architectures for CNN workloads:
- Energy Consumption: The GAP9 processor consumed only 0.051 mJ per inference.
- Efficiency Gain: This performance represents a 160x increase in energy efficiency compared to the best ARM Cortex-based solutions.
- Throughput: The GAP9 implementation achieved an efficiency of 40 GMAC/s/W.
Conclusion
EpiDeNet represents a significant step toward viable, long-term seizure monitoring in non-clinical settings. By optimizing both the algorithmic approach (via the SSWCE loss function) and the hardware implementation (via RISC-V parallelism), the system achieves the necessary balance of sensitivity and energy thrift.
Future work will focus on addressing the "cold start" problem—the requirement for patient-specific data before the model becomes effective—and integrating dedicated artifact detectors to further reduce false positives caused by physical movement. Reducing the false-positive rate even further remains the primary goal for widespread clinical adoption in unsupervised home environments.
Summary updated