[Paper Review] EpiDeNet: An Energy-Efficient Approach to Seizure Detection for Embedded Systems
This paper proposes EPIDENET, a lightweight deep learning model with a novel SSWCE loss function for energy-efficient, real-time seizure detection on low-power embedded systems. It achieves 92.00% sensitivity and only 1.18 false positives per hour on the PEDESITE dataset using just four EEG channels, with a 0.051 mJ energy consumption per inference on GAP9, outperforming ARM-based solutions by 160× in energy efficiency.
Epilepsy is a prevalent neurological disorder that affects millions of individuals globally, and continuous monitoring coupled with automated seizure detection appears as a necessity for effective patient treatment. To enable long-term care in daily-life conditions, comfortable and smart wearable devices with long battery life are required, which in turn set the demand for resource-constrained and energy-efficient computing solutions. In this context, the development of machine learning algorithms for seizure detection faces the challenge of heavily imbalanced datasets. This paper introduces EpiDeNet, a new lightweight seizure detection network, and Sensitivity-Specificity Weighted Cross-Entropy (SSWCE), a new loss function that incorporates sensitivity and specificity, to address the challenge of heavily unbalanced datasets. The proposed EpiDeNet-SSWCE approach demonstrates the successful detection of 91.16% and 92.00% seizure events on two different datasets (CHB-MIT and PEDESITE, respectively), with only four EEG channels. A three-window majority voting-based smoothing scheme combined with the SSWCE loss achieves 3x reduction of false positives to 1.18 FP/h. EpiDeNet is well suited for implementation on low-power embedded platforms, and we evaluate its performance on two ARM Cortex-based platforms (M4F/M7) and two parallel ultra-low power (PULP) systems (GAP8, GAP9). The most efficient implementation (GAP9) achieves an energy efficiency of 40 GMAC/s/W, with an energy consumption per inference of only 0.051 mJ at high performance (726.46 MMAC/s), outperforming the best ARM Cortex-based solutions by approximately 160x in energy efficiency. The EpiDeNet-SSWCE method demonstrates effective and accurate seizure detection performance on heavily imbalanced datasets, while being suited for implementation on energy-constrained platforms.
Motivation & Objective
- To develop an energy-efficient, lightweight deep learning model for real-time seizure detection on resource-constrained wearable EEG devices.
- To address the challenge of heavily imbalanced EEG datasets in seizure detection, where seizures are rare compared to normal activity.
- To optimize the trade-off between sensitivity and specificity, prioritizing high specificity to reduce false alarms in long-term monitoring.
- To enable deployment on ultra-low-power embedded platforms such as GAP8/GAP9 and ARM Cortex-M MCUs with minimal energy consumption.
- To demonstrate subject-specific performance through personalized model training and artifact-aware false positive reduction.
Proposed method
- Proposes EPIDENET, a compact 1D-CNN-based neural network architecture with only 4 input channels, optimized for low-latency and low-energy inference.
- Introduces SSWCE (Sensitivity-Specificity Weighted Cross-Entropy), a novel loss function that dynamically balances sensitivity and specificity during training using class-weighting based on both metrics.
- Employs a three-window majority voting scheme to smooth predictions and reduce false positives without sacrificing sensitivity.
- Utilizes post-training quantization with Quantlab and TFLite to compress the model for deployment on ARM Cortex-M and PULP-based platforms.
- Deploys the model on GAP8, GAP9, and multiple ARM Cortex-M4F/M7 MCUs, measuring energy efficiency and inference performance across platforms.
- Optimizes SSWCE hyperparameters (α and β) on a subject-specific basis to maximize sensitivity while minimizing false positives.
Experimental results
Research questions
- RQ1Can a lightweight deep learning model achieve high sensitivity and specificity in seizure detection using only four EEG channels on embedded platforms?
- RQ2How effective is the proposed SSWCE loss function in handling the extreme class imbalance in EEG seizure detection datasets?
- RQ3To what extent can a three-window majority voting scheme reduce false positives while preserving true seizure detection?
- RQ4What is the energy efficiency of EPIDENET when deployed on ultra-low-power platforms like GAP9 compared to conventional ARM Cortex-M MCUs?
- RQ5Can subject-specific model adaptation with SSWCE further improve detection performance and reduce false positives in real-world wearable deployment?
Key findings
- EPIDENET achieved 92.00% sensitivity and 1.18 false positives per hour on the PEDESITE dataset after applying the three-window majority voting and subject-specific SSWCE optimization.
- The most energy-efficient implementation on GAP9 achieved 40.61 GMAC/s/W energy efficiency and consumed only 0.051 mJ per inference, outperforming ARM Cortex-M4F/M7 solutions by approximately 160× in energy efficiency.
- The SSWCE loss function enabled a 3.64% increase in sensitivity and reduced the false positive rate to 1.18 FP/h when optimized per subject, demonstrating improved balance between sensitivity and specificity.
- Quantization had negligible impact on accuracy, with only ±0.1% variation in sensitivity and specificity across all platforms, confirming model robustness after compression.
- The GAP9 deployment achieved a throughput of 726.46 MMAC/s with a 2.84 ms inference time, enabling real-time operation on ultra-low-power hardware.
- The framework reduces the need for expert review by automatically flagging only relevant EEG epochs, enabling scalable data reduction in clinical workflows.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.