{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"institution":[{"name":"bioRxiv"}],"indexed":{"date-parts":[[2026,7,30]],"date-time":"2026-07-30T11:04:43Z","timestamp":1785409483552,"version":"3.56.0"},"posted":{"date-parts":[[2023,4,8]]},"group-title":"Neuroscience","reference-count":36,"publisher":"openRxiv","license":[{"start":{"date-parts":[[2023,4,8]],"date-time":"2023-04-08T00:00:00Z","timestamp":1680912000000},"content-version":"vor","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/"}],"funder":[{"award":["R21NS122011"],"award-info":[{"award-number":["R21NS122011"]}],"id":[{"id":"https:\/\/ror.org\/01cwqze88","id-type":"ROR","asserted-by":"publisher"}]},{"award":["K08NS105929"],"award-info":[{"award-number":["K08NS105929"]}],"id":[{"id":"https:\/\/ror.org\/01cwqze88","id-type":"ROR","asserted-by":"publisher"}]},{"award":["858000"],"award-info":[{"award-number":["858000"]}],"id":[{"id":"https:\/\/ror.org\/01awnfh35","id-type":"ROR","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"accepted":{"date-parts":[[2025,6,2]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                <jats:p>Sleep-wake states bi-directionally interact with epilepsy and seizures, but the mechanisms are unknown. A barrier to comprehensive characterization and the study of mechanisms has been the difficulty of annotating large chronic recording datasets. To overcome this barrier, we sought to develop an automated method of classifying sleep-wake states, seizures, and the post-ictal state in mice ranging from controls to mice with severe epilepsy with accompanying background EEG abnormalities. We utilized a large dataset of recordings, including EMG, EEG, and hippocampal local field potentials, from control and intra-amygdala kainic acid-treated mice. We found that an existing sleep-wake classifier performed poorly, even after retraining. A support vector machine, relying on typically used scoring parameters, also performed below our benchmark. We then trained and evaluated several multi-layer neural network architectures and found that a bidirectional long short-term memory-based model performed best. This \u2018Sleep-Wake and Ictal State Classifier\u2019 (SWISC) showed high agreement between ground-truth and classifier scores for all sleep and seizure states in an unseen and unlearned epileptic dataset (average agreement 96.41% \u00b1 SD 3.80%), and saline animals (97.77% \u00b1 1.40%). Channel elimination and feature selection provided interpretability and demonstrated that SWISC was primarily dependent on hippocampal signals, yet still maintained good performance (\u223c90% agreement) with EEG alone, thereby expanding the classifier\u2019s applicability to other epilepsy datasets. SWISC enables the efficient combined scoring of sleep-wake and seizure states in mouse models of epilepsy and healthy controls, facilitating comprehensive and mechanistic studies of sleep-wake and biological rhythms in epilepsy.<\/jats:p>","DOI":"10.1101\/2023.04.07.536063","type":"posted-content","created":{"date-parts":[[2023,4,8]],"date-time":"2023-04-08T22:15:12Z","timestamp":1680992112000},"source":"Crossref","is-referenced-by-count":0,"title":["Automated Classification of Sleep-Wake States and Seizures in Mice"],"prefix":"10.64898","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-7471-9937","authenticated-orcid":false,"given":"Brandon J.","family":"Harvey","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Viktor J.","family":"Olah","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8968-9769","authenticated-orcid":false,"given":"Lauren M.","family":"Aiani","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0007-1049-7726","authenticated-orcid":false,"given":"Lucie I.","family":"Rosenberg","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1814-5713","authenticated-orcid":false,"given":"Danny J.","family":"Lasky","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Benjamin","family":"Moxon","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8494-0635","authenticated-orcid":false,"given":"Nigel P.","family":"Pedersen","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"54368","reference":[{"key":"2025060418350832000_2023.04.07.536063v2.1","doi-asserted-by":"publisher","DOI":"10.1016\/j.yebeh.2016.09.031"},{"key":"2025060418350832000_2023.04.07.536063v2.2","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0224642"},{"issue":"Suppl 3","key":"2025060418350832000_2023.04.07.536063v2.3","first-page":"S3","article-title":"Sleep, oscillations, and epilepsy","volume":"64","year":"2023","journal-title":"Epilepsia"},{"key":"2025060418350832000_2023.04.07.536063v2.4","doi-asserted-by":"publisher","DOI":"10.1111\/epi.16714"},{"key":"2025060418350832000_2023.04.07.536063v2.5","doi-asserted-by":"publisher","DOI":"10.1016\/S0165-0270(03)00229-2"},{"issue":"Dec","key":"2025060418350832000_2023.04.07.536063v2.6","first-page":"265","article-title":"On the Algorithmic Implementation of Multiclass Kernel-based Vector Machines","volume":"2","year":"2001","journal-title":"Journal of Machine Learning Research: JMLR"},{"key":"2025060418350832000_2023.04.07.536063v2.7","doi-asserted-by":"publisher","DOI":"10.1111\/j.1528-1157.1998.tb01352.x"},{"key":"2025060418350832000_2023.04.07.536063v2.8","unstructured":"Dozat, T. (2016). Incorporating Nesterov momentum into Adam. International Conference on Learning Representations Workshops . https:\/\/openreview.net\/pdf\/OM0jvwB8jIp57ZJjtNEZ.pdf"},{"key":"2025060418350832000_2023.04.07.536063v2.9","doi-asserted-by":"publisher","DOI":"10.1093\/sleep\/zsz288"},{"key":"2025060418350832000_2023.04.07.536063v2.10","doi-asserted-by":"publisher","DOI":"10.1145\/301631.301661"},{"key":"2025060418350832000_2023.04.07.536063v2.11","doi-asserted-by":"crossref","unstructured":"Graves, A. , & Schmidhuber, J. (2005). Framewise phoneme classification with bidirectional LSTM networks. Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005., 4, 2047\u20132052 vol. 4.","DOI":"10.1109\/IJCNN.2005.1556215"},{"key":"2025060418350832000_2023.04.07.536063v2.12","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-021-91286-0"},{"key":"2025060418350832000_2023.04.07.536063v2.13","doi-asserted-by":"publisher","DOI":"10.1016\/S0006-8993(99)02452-X"},{"key":"2025060418350832000_2023.04.07.536063v2.14","doi-asserted-by":"publisher","DOI":"10.1162\/neco.1997.9.8.1735"},{"key":"2025060418350832000_2023.04.07.536063v2.15","doi-asserted-by":"publisher","DOI":"10.4196\/kjpp.2019.23.2.131"},{"key":"2025060418350832000_2023.04.07.536063v2.16","doi-asserted-by":"publisher","DOI":"10.1111\/j.1528-1157.1962.tb05235.x"},{"key":"2025060418350832000_2023.04.07.536063v2.17","doi-asserted-by":"publisher","DOI":"10.1002\/hipo.22838"},{"key":"2025060418350832000_2023.04.07.536063v2.18","doi-asserted-by":"publisher","DOI":"10.1016\/j.jneumeth.2020.108834"},{"key":"2025060418350832000_2023.04.07.536063v2.19","doi-asserted-by":"publisher","DOI":"10.1016\/j.jneumeth.2015.03.007"},{"key":"2025060418350832000_2023.04.07.536063v2.20","doi-asserted-by":"publisher","DOI":"10.3389\/fnsys.2020.00043"},{"key":"2025060418350832000_2023.04.07.536063v2.21","doi-asserted-by":"publisher","DOI":"10.1093\/sleep\/32.2.139"},{"key":"2025060418350832000_2023.04.07.536063v2.22","unstructured":"Pitk\u00e4nen, A. , Buckmaster, P. S. , Galanopoulou, A. S. , & Mosh\u00e9, S. L . (2017). Models of Seizures and Epilepsy. Elsevier Inc."},{"key":"2025060418350832000_2023.04.07.536063v2.23","unstructured":"Rechtschaffen, A. , & Kales, A . (1968). A Manual of Standardized Terminology, Techniques and Scoring System for Sleep Stages of Human Subjects. United States Government Printing Office, Washington, DC."},{"key":"2025060418350832000_2023.04.07.536063v2.24","doi-asserted-by":"publisher","DOI":"10.1016\/j.jneumeth.2011.08.023"},{"key":"2025060418350832000_2023.04.07.536063v2.25","doi-asserted-by":"publisher","DOI":"10.1038\/s41582-025-01064-z"},{"key":"2025060418350832000_2023.04.07.536063v2.26","doi-asserted-by":"publisher","DOI":"10.1016\/0014-4886(82)90086-3"},{"key":"2025060418350832000_2023.04.07.536063v2.27","doi-asserted-by":"publisher","DOI":"10.1016\/j.expneurol.2024.114860"},{"key":"2025060418350832000_2023.04.07.536063v2.28","doi-asserted-by":"publisher","DOI":"10.3390\/s21113786"},{"key":"2025060418350832000_2023.04.07.536063v2.29","doi-asserted-by":"publisher","DOI":"10.1111\/epi.16651"},{"key":"2025060418350832000_2023.04.07.536063v2.30","doi-asserted-by":"publisher","DOI":"10.1088\/1741-2552\/aa8069"},{"key":"2025060418350832000_2023.04.07.536063v2.31","first-page":"261","article-title":"The Support Vector method","volume":"97","year":"1997","journal-title":"Artificial Neural Networks \u2014 ICANN"},{"key":"2025060418350832000_2023.04.07.536063v2.32","doi-asserted-by":"publisher","DOI":"10.1088\/1741-2552\/ac2ca0"},{"key":"2025060418350832000_2023.04.07.536063v2.33","doi-asserted-by":"crossref","unstructured":"Wei, L. , Gerbatin, R. , Mamad, O. , Boutouil, H. , Reschke, C. , Lowery, M. , Henshall, D. , Morris, G. , & Mooney, C . (2020). XGboost-based Method for Seizure Detection in Mouse Models of Epilepsy. 2020 IEEE Signal Processing in Medicine and Biology Symposium (SPMB), 1\u20133.","DOI":"10.1109\/SPMB50085.2020.9353632"},{"key":"2025060418350832000_2023.04.07.536063v2.34","first-page":"1","article-title":"Kurtosis and skewness of high-frequency brain signals are altered in paediatric epilepsy","volume":"2","year":"2020","journal-title":"Brain Communications"},{"key":"2025060418350832000_2023.04.07.536063v2.35","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-019-46960-9"},{"key":"2025060418350832000_2023.04.07.536063v2.36","doi-asserted-by":"publisher","DOI":"10.1016\/j.jneumeth.2019.108566"}],"container-title":[],"original-title":[],"link":[{"URL":"https:\/\/syndication.highwire.org\/content\/doi\/10.1101\/2023.04.07.536063","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,24]],"date-time":"2026-06-24T04:57:23Z","timestamp":1782277043000},"score":1,"resource":{"primary":{"URL":"http:\/\/biorxiv.org\/lookup\/doi\/10.1101\/2023.04.07.536063"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,4,8]]},"references-count":36,"URL":"https:\/\/doi.org\/10.1101\/2023.04.07.536063","relation":{"is-preprint-of":[{"id-type":"doi","id":"10.1523\/ENEURO.0226-25.2025","asserted-by":"subject"}]},"subject":[],"published":{"date-parts":[[2023,4,8]]},"subtype":"preprint"}}