Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Aug 10:16:11795972241283101.
doi: 10.1177/11795972241283101. eCollection 2025.

Sustainable E-Health: Energy-Efficient Tiny AI for Epileptic Seizure Detection via EEG

Affiliations

Sustainable E-Health: Energy-Efficient Tiny AI for Epileptic Seizure Detection via EEG

Moez Hizem et al. Biomed Eng Comput Biol. .

Abstract

Tiny Artificial Intelligence (Tiny AI) is transforming resource-constrained embedded systems, particularly in e-health applications, by introducing a shift in Tiny Machine Learning (TinyML) and its integration with the Internet of Things (IoT). Unlike conventional machine learning (ML), which demands substantial processing power, TinyML strategically delegates processing requirements to the cloud infrastructure, allowing lightweight models to run on embedded devices. This study aimed to (i) Develop a TinyML workflow that details the steps for model creation and deployment in resource-constrained environments and (ii) apply the workflow to e-health applications for the real-time detection of epileptic seizures using electroencephalography (EEG) data. The methodology employs a dataset of 4097 EEG recordings per patient, each 23.5 seconds long, from 500 patients, to develop a robust and resilient model. The model was deployed using TinyML on microcontrollers tailored to hardware with limited resources. TensorFlow Lite (TFLite) efficiently runs ML models on small devices, such wearables. Simulation outcomes demonstrated significant performance, particularly in predicting epileptic seizures, with the ExtraTrees Classifier achieving a notable 99.6% Area Under the Curve (AUC) on the validation set. Because of its superior performance, the ExtraTrees Classifier was selected as the preferred model. For the optimized TinyML model, the accuracy remained practically unchanged, whereas inference time was significantly reduced. Additionally, the converted model had a smaller size of 256 KB, approximately ten times smaller, making it suitable for microcontrollers with a capacity of no more than 1 MB. These findings highlight the potential of TinyML to significantly enhance healthcare applications by enabling real-time, energy-efficient decision-making directly on local devices. This is especially valuable in scenarios with limited computing resources or during emergencies, as it reduces latency, ensures privacy, and operates without reliance on cloud infrastructure. Moreover, by reducing the size of training datasets needed, TinyML helps lower overall costs and minimizes the risk of overfitting, making it an even more cost-effective and reliable solution for healthcare innovations.

Keywords: IoT; TinyML; e-health; electroencephalography; embedded systems; epileptic seizure; machine learning.

PubMed Disclaimer

Conflict of interest statement

The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.

Figures

Figure 1.
Figure 1.
Internet of medical things (Created with Biorender.com).
Figure 2.
Figure 2.
ML workflow for data collection, training, and deployment (Created with Biorender.com).
Figure 3.
Figure 3.
Transition from ML to TinyML (Created with Biorender.com), adapted with modifications from Aoueileyine.
Figure 4.
Figure 4.
Model conversion for TinyML deployment workflow.
Figure 5.
Figure 5.
Classifier evaluation and algorithm choice.
Figure 6.
Figure 6.
AUC learning curve for ExtraTrees classifier.
Figure 7.
Figure 7.
Effect of max features on AUC.
Figure 8.
Figure 8.
ROC curve.
Figure 9.
Figure 9.
Framework for deploying TinyML solutions (Created with Biorender.com), adapted with modifications from Aoueileyine.
Figure 10.
Figure 10.
Real-time inferences on constrained performance devices (Raspberry Pi) (Created with Biorender.com).

Similar articles

References

    1. World Health Organization. Fact sheet on epilepsy. https://www.who.int/news-room/fact-sheets/detail/epilepsy
    1. Scarpato N, Pieroni A, Di Nunzio L, et al. E-health-IoT Universe: a review. Int J Adv Sci Eng Inform Technol. 2017;7:2328-2336.
    1. Leach JP, Stephen LJ, Salveta C, et al. Which electroencephalography (EEG) for epilepsy? The relative usefulness of different EEG protocols in patients with possible epilepsy. J Neurol Neurosurg Psychiatry. 2006;77:1040-1042. - PMC - PubMed
    1. King MA, Newton MR, Jackson GD, et al. Epileptology of the first-seizure presentation: a clinical, electroencephalographic, and magnetic resonance imaging study of 300 consecutive patients. Lancet. 1998;352:1007-1011. - PubMed
    1. Sierra Marcos A, Toledo M, Quintana M, et al. Diagnosis of epileptic syndrome after a new onset seizure and its correlation at long-term follow-up: longitudinal study of 131 patients from the emergency room. Epilepsy Res. 2011;97:30-36. - PubMed

LinkOut - more resources