LightGBM-Based Seizure Detection Method in Pilocarpine Mouse Model of Epilepsy
Abstract
1. Introduction
2. Materials and Methods
2.1. Data
2.1.1. Pilocarpine Mouse Model of Epilepsy
2.1.2. Dataset
2.2. Data Pre-Processing
2.3. Feature Estimation
2.4. Detection Algorithm
2.5. Post-Processing
2.6. Performance Evaluation
- True positives (TP): The number of epochs predicted as seizures that were labelled as seizures.
- False positives (FP): The number of epochs predicted as seizures that were labelled as non-seizures.
- True negatives (TN): The number of epochs predicted as non-seizures that were labelled as non-seizures.
- False negatives (FN): The number of epochs predicted as non-seizures that were labelled as seizures.
3. Results
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A
| Feature | Description | Domain |
|---|---|---|
| Permutation entropy [17] | Nonlinear complexity metric that measures the temporal irregularity of EEG recordings. | Time |
| Approximate entropy [18] | Measures the regularity and unpredictability of signal fluctuations. | Time |
| Spectral entropy [19] | Quantifies the EEG signal irregularity. | Frequency |
| SVD entropy [20] | Measures the effective dimensionality of the data. | Time |
| Sample entropy [18] | Measures the complexity of physiological time-series data. A modification of approximate entropy. | Time |
| Zero-crossing [40] | It counts the number of times a signal crosses the zero line. | Time |
| Mean of instantaneous frequency (IF) | Average frequency content over a segment. | Time-frequency |
| Variance of IF | Determines the spread of frequency variations. | Time-frequency |
| Mean absolute first derivative of IF | The mean rate of variation of the predominant frequency. Identifies trend in oscillatory activity. | Time-frequency |
| Variance of the first derivative of IF | Measures the spread in the rate of change. Shows the instability in brain dynamics. | Time-frequency |
| Mean PSD | It measures the average signal power across frequency spectrum. | Frequency |
| Variance PSD | Quantifies the spread of signal power across different frequencies within a specified time interval. | Frequency |
| Maximum PSD | Maximum signal power across all frequencies. | Frequency |
| Minimum PSD | Minimum signal power across all frequencies. | Frequency |
| Mean absolute first derivative of instantaneous amplitude | Quantifies the average rate of change in the amplitude envelope of the signal over time. | Time |
| Variance of the first derivative of instantaneous amplitude | Quantifies the variability or irregularity in the temporal fluctuations of the signal’s amplitude envelope. | Time |
Appendix A.1. Mean Instantaneous Frequency
Appendix A.2. Variance of instantaneous frequency
Appendix A.3. Mean absolute first derivative of instantaneous frequency
Appendix A.4. Variance of the first derivative of instantaneous frequency
Appendix A.5. Mean absolute derivative of instantaneous amplitude
Appendix A.6. Variance of the derivative of instantaneous amplitude
| Hyperparameter | Search Range |
|---|---|
| Learning rate (learning_rate) | {0.01, 0.03, 0.05, 0.1} |
| Number of leaves (num_leaves) | {32, 64, 128, 256} |
| Minimum data in leaf (min_data_in_leaf) | {20, 50, 100, 200} |
| L1 regularisation (lambda_l1) | {0, 0.1, 0.5, 1} |
References
- Beniczky, S.; Trinka, E.; Wirrell, E.; Abdulla, F.; Al Baradie, R.; Alonso Vanegas, M.; Auvin, S.; Singh, M.B.; Blumenfeld, H.; Bogacz Fressola, A.; et al. Updated classification of epileptic seizures: Position paper of the International League Against Epilepsy. Epilepsia 2025, 66, 1804–1823. [Google Scholar] [CrossRef]
- World Health Organization. Epilepsy: A Public Health Imperative. 2019. Available online: https://www.who.int/publications/i/item/epilepsy-a-public-health-imperative (accessed on 23 June 2025).
- Kalilani, L.; Sun, X.; Pelgrims, B.; Noack-Rink, M.; Villanueva, V. The epidemiology of drug-resistant epilepsy: A systematic review and meta-analysis. Epilepsia 2018, 59, 2179–2193. [Google Scholar] [CrossRef] [PubMed]
- 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]
- Bialer, M.; White, H.S. Key factors in the discovery and development of new antiepileptic drugs. Nat. Rev. Drug Discov. 2010, 9, 68–82. [Google Scholar] [CrossRef] [PubMed]
- White, H.S.; Smith-Yockman, M.; Srivastava, A.; Wilcox, K.S. Therapeutic assays for the identification and characterization of antiepileptic and antiepileptogenic drugs. In Models of Seizures and Epilepsy; Elsevier: Amsterdam, The Netherlands, 2006; pp. 539–549. [Google Scholar]
- Bazhanova, E.D.; Kozlov, A.A.; Litovchenko, A.V. Mechanisms of drug resistance in the pathogenesis of epilepsy: Role of neuroinflammation. A literature review. Brain Sci. 2021, 11, 663. [Google Scholar] [CrossRef] [PubMed]
- Löscher, W. Critical review of current animal models of seizures and epilepsy used in the discovery and development of new antiepileptic drugs. Seizure 2011, 20, 359–368. [Google Scholar] [CrossRef]
- Niedermeyer, E.; da Silva, F.L. Electroencephalography: Basic Principles, Clinical Applications, and Related Fields; Lippincott Williams & Wilkins: Philadelphia, PA, USA, 2005. [Google Scholar]
- Edoho, M.; Mooney, C.; Wei, L. AI-Based Electroencephalogram Analysis in Rodent Models of Epilepsy: A Systematic Review. Appl. Sci. 2024, 14, 7398. [Google Scholar] [CrossRef]
- Jang, H.J.; Cho, K.O. Dual deep neural network-based classifiers to detect experimental seizures. Korean J. Physiol. Pharmacol. 2019, 23, 131–139. [Google Scholar] [CrossRef]
- Cho, K.O.; Jang, H.J. Comparison of different input modalities and network structures for deep learning-based seizure detection. Sci. Rep. 2020, 10, 122. [Google Scholar] [CrossRef]
- Kamintsky, L.; van Hameren, G.; Weissberg, I.; Moradi, P.; Prager, O.; Ahmad, A.A.; Schori, L.; Becker, A.; Zigel, Y.; Friedman, A. An algorithm for seizure detection in rodents. Epilepsia Open 2025. online ahead of print. [Google Scholar] [CrossRef]
- Fumeaux, N.F.; Ebrahim, S.; Coughlin, B.F.; Kadambi, A.; Azmi, A.; Xu, J.X.; Abou Jaoude, M.; Nagaraj, S.B.; Thomson, K.E.; Newell, T.G.; et al. Accurate detection of spontaneous seizures using a generalised linear model with external validation. Epilepsia 2020, 61, 1906–1918. [Google Scholar] [CrossRef] [PubMed]
- Wei, L.; Boutouil, H.; Gerbatin, R.R.; Mamad, O.; Heiland, M.; Reschke, C.R.; Del Gallo, F.; Fabene, P.F.; Henshall, D.C.; Lowery, M.; et al. Detection of spontaneous seizures in EEGs in multiple experimental mouse models of epilepsy. J. Neural Eng. 2021, 18, 056060. [Google Scholar] [CrossRef] [PubMed]
- Vigier, A.; Partouche, N.; Michel, F.J.; Crepel, V.; Marissal, T. Substantial outcome improvement using a refined pilocarpine mouse model of temporal lobe epilepsy. Neurobiol. Dis. 2021, 161, 105547. [Google Scholar] [CrossRef]
- Bandt, C.; Pompe, B. Permutation entropy: A natural complexity measure for time series. Phys. Rev. Lett. 2002, 88, 174102. [Google Scholar] [CrossRef] [PubMed]
- Richman, J.S.; Moorman, J.R. Physiological time-series analysis using approximate entropy and sample entropy. Am. J.-Physiol.-Heart Circ. Physiol. 2000, 278, H2039–H2049. [Google Scholar] [CrossRef]
- Inouye, T.; Shinosaki, K.; Sakamoto, H.; Toi, S.; Ukai, S.; Iyama, A.; Katsuda, Y.; Hirano, M. Quantification of EEG irregularity by use of the entropy of the power spectrum. Electroencephalogr. Clin. Neurophysiol. 1991, 79, 204–210. [Google Scholar] [CrossRef]
- Eckart, C.; Young, G. The approximation of one matrix by another of lower rank. Psychometrika 1936, 1, 211–218. [Google Scholar] [CrossRef]
- Jui, S.J.J.; Deo, R.C.; Barua, P.D.; Devi, A.; Soar, J.; Acharya, U.R. Application of entropy for automated detection of neurological disorders with electroencephalogram signals: A review of the last decade (2012–2022). IEEE Access 2023, 11, 71905–71924. [Google Scholar] [CrossRef]
- Arunkumar, N.; Kumar, K.R.; Venkataraman, V. Automatic detection of epileptic seizures using new entropy measures. J. Med. Imaging Health Inform. 2016, 6, 724–730. [Google Scholar] [CrossRef]
- Acharya, U.R.; Fujita, H.; Sudarshan, V.K.; Bhat, S.; Koh, J.E. Application of entropies for automated diagnosis of epilepsy using EEG signals: A review. Knowl.-Based Syst. 2015, 88, 85–96. [Google Scholar] [CrossRef]
- Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q.; Liu, T.Y. Lightgbm: A highly efficient gradient boosting decision tree. Adv. Neural Inf. Process. Syst. 2017, 30. [Google Scholar]
- Probst, P.; Boulesteix, A.L.; Bischl, B. Tunability: Importance of hyperparameters of machine learning algorithms. J. Mach. Learn. Res. 2019, 20, 1–32. [Google Scholar]
- Roy, Y.; Banville, H.; Albuquerque, I.; Gramfort, A.; Falk, T.H.; Faubert, J. Deep learning-based electroencephalography analysis: A systematic review. J. Neural Eng. 2019, 16, 051001. [Google Scholar] [CrossRef] [PubMed]
- Jiang, M.; Wang, Y. Refinement of the pilocarpine-induced status epilepticus model in mice to improve mortality outcomes. Front. Neurosci. 2025, 19, 1592014. [Google Scholar] [CrossRef]
- Cavalheiro, E.; Santos, N.; Priel, M. The pilocarpine model of epilepsy in mice. Epilepsia 1996, 37, 1015–1019. [Google Scholar] [CrossRef] [PubMed]
- Curia, G.; Longo, D.; Biagini, G.; Jones, R.S.; Avoli, M. The pilocarpine model of temporal lobe epilepsy. J. Neurosci. Methods 2008, 172, 143–157. [Google Scholar] [CrossRef]
- Jan, M.M.; Sadler, M.; Rahey, S.R. Electroencephalographic features of temporal lobe epilepsy. Can. J. Neurol. Sci. 2010, 37, 439–448. [Google Scholar] [CrossRef]
- Britton, J.W.; Frey, L.C.; Hopp, J.L.; Korb, P.; Koubeissi, M.Z.; Lievens, W.E.; Pestana-Knight, E.M.; St Louis, E.K. Electroencephalography (EEG): An Introductory Text and Atlas of Normal and Abnormal Findings in Adults, Children, and Infants; American Epilepsy Society: Chicago, IL, USA, 2016. [Google Scholar]
- Salami, P.; Lévesque, M.; Gotman, J.; Avoli, M. Distinct EEG seizure patterns reflect different seizure generation mechanisms. J. Neurophysiol. 2015, 113, 2840–2844. [Google Scholar] [CrossRef]
- Perucca, P.; Dubeau, F.; Gotman, J. Intracranial electroencephalographic seizure-onset patterns: Effect of underlying pathology. Brain 2014, 137, 183–196. [Google Scholar] [CrossRef]
- Buteneers, P.; Verstraeten, D.; Van Nieuwenhuyse, B.; Stroobandt, D.; Raedt, R.; Vonck, K.; Boon, P.; Schrauwen, B. Real-time detection of epileptic seizures in animal models using reservoir computing. Epilepsy Res. 2013, 103, 124–134. [Google Scholar] [CrossRef]
- Noroozi, Z.; Orooji, A.; Erfannia, L. Analyzing the impact of feature selection methods on machine learning algorithms for heart disease prediction. Sci. Rep. 2023, 13, 22588. [Google Scholar] [CrossRef] [PubMed]
- Li, J.; Cheng, K.; Wang, S.; Morstatter, F.; Trevino, R.P.; Tang, J.; Liu, H. Feature selection: A data perspective. ACM Comput. Surv. (CSUR) 2017, 50, 1–45. [Google Scholar] [CrossRef]
- Abdumalikov, S.; Kim, J.; Yoon, Y. Performance analysis and improvement of machine learning with various feature selection methods for EEG-based emotion classification. Appl. Sci. 2024, 14, 10511. [Google Scholar] [CrossRef]
- Hassan, M.; Kaabouch, N. Impact of Feature Selection Techniques on the Performance of Machine Learning Models for Depression Detection Using EEG Data. Appl. Sci. 2024, 14, 10532. [Google Scholar] [CrossRef]
- Antoniadi, A.M.; Du, Y.; Guendouz, Y.; Wei, L.; Mazo, C.; Becker, B.A.; Mooney, C. Current challenges and future opportunities for XAI in machine learning-based clinical decision support systems: A systematic review. Appl. Sci. 2021, 11, 5088. [Google Scholar] [CrossRef]
- Principe, J.; Smith, J.R. Microcomputer-based system for the detection and quantification of petit mal epilepsy. Comput. Biol. Med. 1982, 12, 87–95. [Google Scholar] [CrossRef]


| Training | Validation | Ind. Test | Total | |
|---|---|---|---|---|
| Number of mouse EEG recordings | 72 (70.60%) | 10 (9.80%) | 20 (19.60%) | 102 (100%) |
| Seizure Duration (hours) | 71 | 12 | 16 | 99 |
| Non-seizure Duration (hours) | 19,894 | 2972 | 6757 | 29,623 |
| Seizure/non-seizure ratio | 1:280 | 1:242 | 1:422 | 1:299 |
| Acc (%) | Sens (%) | Spec (%) | AUROC (%) | |
|---|---|---|---|---|
| Ind. test set | 93.0 | 35.0 | 93.0 | 64.0 |
| Acc (%) | Pre (%) | Recall/Sens (%) | Spec (%) | AUROC (%) | F1 | |
|---|---|---|---|---|---|---|
| Cross-val | 99.0 | 73.0 | 59.0 | 99.0 | 59.0 | 0.62 |
| Ind. test set | 99.0 | 58.0 | 60.0 | 99.0 | 60.0 | 0.59 |
| post-processing | 99.0 | 68.0 | 80.0 | 99.0 | 80.0 | 0.71 |
| Acc (%) | Pre (%) | Recall/Sens (%) | Spec (%) | AUROC (%) | F1 | |
|---|---|---|---|---|---|---|
| 18-feat. Excluded | 99.0 | 54.0 | 51.0 | 99.0 | 51.0 | 0.51 |
| Selected w/o top-3 | 99.0 | 61.0 | 58.0 | 99.0 | 58.0 | 0.59 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Edoho, M.; Partouche, N.; Hoornenborg, C.W.; Hoogland, T.M.; Baudouin, S.; Mooney, C.; Wei, L. LightGBM-Based Seizure Detection Method in Pilocarpine Mouse Model of Epilepsy. Algorithms 2026, 19, 167. https://doi.org/10.3390/a19030167
Edoho M, Partouche N, Hoornenborg CW, Hoogland TM, Baudouin S, Mooney C, Wei L. LightGBM-Based Seizure Detection Method in Pilocarpine Mouse Model of Epilepsy. Algorithms. 2026; 19(3):167. https://doi.org/10.3390/a19030167
Chicago/Turabian StyleEdoho, Mercy, Nicolas Partouche, Christiaan Warner Hoornenborg, Tycho M. Hoogland, Stéphane Baudouin, Catherine Mooney, and Lan Wei. 2026. "LightGBM-Based Seizure Detection Method in Pilocarpine Mouse Model of Epilepsy" Algorithms 19, no. 3: 167. https://doi.org/10.3390/a19030167
APA StyleEdoho, M., Partouche, N., Hoornenborg, C. W., Hoogland, T. M., Baudouin, S., Mooney, C., & Wei, L. (2026). LightGBM-Based Seizure Detection Method in Pilocarpine Mouse Model of Epilepsy. Algorithms, 19(3), 167. https://doi.org/10.3390/a19030167

