Edge deep learning for neural implants: a case study of seizure detection and prediction
- PMID: 33794507
- DOI: 10.1088/1741-2552/abf473
Edge deep learning for neural implants: a case study of seizure detection and prediction
Abstract
Objective.Implanted devices providing real-time neural activity classification and control are increasingly used to treat neurological disorders, such as epilepsy and Parkinson's disease. Classification performance is critical to identifying brain states appropriate for the therapeutic action (e.g. neural stimulation). However, advanced algorithms that have shown promise in offline studies, in particular deep learning (DL) methods, have not been deployed on resource-restrained neural implants. Here, we designed and optimized three DL models or edge deployment and evaluated their inference performance in a case study of seizure detection.Approach.A deep neural network (DNN), a convolutional neural network (CNN), and a long short-term memory (LSTM) network were designed and trained with TensorFlow to classify ictal, preictal, and interictal phases from the CHB-MIT scalp EEG database. A sliding window based weighted majority voting algorithm was developed to detect seizure events based on each DL model's classification results. After iterative model compression and coefficient quantization, the algorithms were deployed on a general-purpose, off-the-shelf microcontroller for real-time testing. Inference sensitivity, false positive rate (FPR), execution time, memory size, and power consumption were quantified.Main results.For seizure event detection, the sensitivity and FPR for the DNN, CNN, and LSTM models were 87.36%/0.169 h-1, 96.70%/0.102 h-1, and 97.61%/0.071 h-1, respectively. Predicting seizures for early warnings was also feasible. The LSTM model achieved the best overall performance at the expense of the highest power. The DNN model achieved the shortest execution time. The CNN model showed advantages in balanced performance and power with minimum memory requirement. The implemented model compression and quantization achieved a significant saving of power and memory with an accuracy degradation of less than 0.5%.Significance.Inference with embedded DL models achieved performance comparable to many prior implementations that had no time or computational resource limitations. Generic microcontrollers can provide the required memory and computational resources, while model designs can be migrated to application-specific integrated circuits for further optimization and power saving. The results suggest that edge DL inference is a feasible option for future neural implants to improve classification performance and therapeutic outcomes.
Keywords: CNN; LSTM; deep learning; edge computing; machine learning; neural interface; seizure detection.
© 2021 IOP Publishing Ltd.
Similar articles
-
A Long Short-Term Memory deep learning network for the prediction of epileptic seizures using EEG signals.Comput Biol Med. 2018 Aug 1;99:24-37. doi: 10.1016/j.compbiomed.2018.05.019. Epub 2018 May 17. Comput Biol Med. 2018. PMID: 29807250
-
Early prediction of epileptic seizures using a long-term recurrent convolutional network.J Neurosci Methods. 2019 Nov 1;327:108395. doi: 10.1016/j.jneumeth.2019.108395. Epub 2019 Aug 10. J Neurosci Methods. 2019. PMID: 31408651
-
Deep Learning-Based Human Activity Real-Time Recognition for Pedestrian Navigation.Sensors (Basel). 2020 Apr 30;20(9):2574. doi: 10.3390/s20092574. Sensors (Basel). 2020. PMID: 32366055 Free PMC article.
-
Deep learning for electroencephalogram (EEG) classification tasks: a review.J Neural Eng. 2019 Jun;16(3):031001. doi: 10.1088/1741-2552/ab0ab5. Epub 2019 Feb 26. J Neural Eng. 2019. PMID: 30808014 Review.
-
Hybrid CNN-LSTM for Predicting Diabetes: A Review.Curr Diabetes Rev. 2024;20(7):e201023222410. doi: 10.2174/0115733998261151230925062430. Curr Diabetes Rev. 2024. PMID: 37867273 Review.
Cited by
-
Computationally efficient neural network classifiers for next generation closed loop neuromodulation therapy - a case study in epilepsy.Annu Int Conf IEEE Eng Med Biol Soc. 2022 Jul;2022:288-291. doi: 10.1109/EMBC48229.2022.9871793. Annu Int Conf IEEE Eng Med Biol Soc. 2022. PMID: 36085909 Free PMC article.
-
The performance evaluation of the state-of-the-art EEG-based seizure prediction models.Front Neurol. 2022 Nov 24;13:1016224. doi: 10.3389/fneur.2022.1016224. eCollection 2022. Front Neurol. 2022. PMID: 36504642 Free PMC article. Review.
-
A Comparison of Energy-Efficient Seizure Detectors for Implantable Neurostimulation Devices.Front Neurol. 2022 Mar 4;12:703797. doi: 10.3389/fneur.2021.703797. eCollection 2021. Front Neurol. 2022. PMID: 35317247 Free PMC article.
-
Unraveling the Neural Circuits: Techniques, Opportunities and Challenges in Epilepsy Research.Cell Mol Neurobiol. 2024 Mar 6;44(1):27. doi: 10.1007/s10571-024-01458-5. Cell Mol Neurobiol. 2024. PMID: 38443733 Free PMC article. Review.
-
Design of a Sleep Modulation System with FPGA-Accelerated Deep Learning for Closed-loop Stage-Specific In-Phase Auditory Stimulation.IEEE Int Symp Circuits Syst Proc. 2023 May;2023:10.1109/ISCAS46773.2023.10181356. doi: 10.1109/ISCAS46773.2023.10181356. Epub 2023 Jul 21. IEEE Int Symp Circuits Syst Proc. 2023. PMID: 38623583 Free PMC article.
MeSH terms
LinkOut - more resources
Full Text Sources
Other Literature Sources