MT-NAM: An Efficient and Adaptive Model for Epileptic Seizure Detection

Arshia Afzal, Volkan Cevher, Mahsa Shoaran · 2025

Read MT-NAM: An Efficient and Adaptive Model for Epileptic Seizure Detection by Arshia Afzal, Volkan Cevher, Mahsa Shoaran (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2503-08251.txt.

Introduction

Arshia Afzal, Volkan Cevher, and Mahsa Shoaran sped up seizure detection from brain recordings in a 2025 paper. Neural interfaces that watch for epileptic seizures need models that are accurate, fast, and light enough for implanted or wearable hardware. Neural additive models read brain signals well and stay interpretable, but their inference is slow, which blocks real-time therapeutic devices.

Their distilled micro tree version runs about a hundred times faster with little accuracy loss. On a standard scalp EEG dataset from a children's hospital, the base model caught most seizure windows with high specificity, and the fast version gave up only a small slice of sensitivity. A test-time template adjuster then won that slice back by adapting to each patient.

Catalog record

CREATORArshia Afzal, Volkan Cevher, Mahsa Shoaran
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE41 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2503-08251

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

MT-NAM: An Efficient and Adaptive Model for Epileptic Seizure Detection Arshia Afzal, Volkan Cevher, Mahsa Shoaran Abstract Enhancing the accuracy and efficiency of machine learning algorithms employed in neural interface systems is crucial for advancing next-generation intelligent therapeutic devices. However, current systems often utilize basic machine learning models that do not fully exploit the natural structure of brain signals. Additionally, existing learning models used for neural signal processing often demonstrate low speed and efficiency during inference. To address these challenges, this study introduces Micro Tree-based NAM (MT-NAM), a distilled model based on the recently proposed Neural Additive Models (NAM). The MT-NAM achieves a remarkable 100 × \times improvement in inference speed compared to standard NAM, without compromising accuracy. We evaluate our approach on the CHB-MIT scalp EEG dataset, which includes recordings from 24 patients with varying numbers of sessions and seizures. NAM achieves an 85.3% window-based sensitivity and 95% specificity. Interestingly, our proposed MT-NAM shows only a 2% reduction in sensitivity compared to the original NAM. To regain this sensitivity, we utilize a test-time template adjuster (T3A) as an update mechanism, enabling our model to achieve higher sensitivity during test time by accommodating transient shifts in neural signals. With this online update approach, MT-NAM achieves the same sensitivity as the standard NAM while achieving approximately 50 × \times acceleration in inference speed. I Introduction B rain disorders, including epilepsy, pose significant challenges worldwide, necessitating the exploration of innovative approaches for diagnosis and treatment. Seizures are among the most common neurological emergencies globally [ 1 , 2 , 3 , 4 ] , and can become chronic, as in the case of epilepsy—a neurological disorder affecting over 50 million worldwide [ 5 ] . Seizure detection from EEG has emerged as a promising technique to identify abnormal brain activity associated with seizures. However, traditional machine learning (ML) models used for this task face computational and memory constraints, limiting their applicability in real-time scenarios [ 6 , 7 ] . Seizures are commonly characterized by their focal or non-focal nature [ 8 ] , with activity either starting in a single channel and spreading or remaining confined to specific channels. In contrast to existing models that aggregate data from all channels for predictions [ 6 , 9 , 10 , 2 ] , this method may be less effective for seizure detection because it fails to account for the localized and often channel-specific nature of seizure events. Moreover, existing ML-embedded Systems-on-Chip (SoCs) for wearable or implantable applications predominantly rely on efficient ML architectures such as ridge regression [ 11 ] , SVM-based models [ 12 , 13 ] , decision trees [ 14 , 15 , 16 ] , and logistic regression (LR) [ 9 ] . While these designs excel in terms of power consumption and area efficiency, they often fall short in terms of accuracy when compared to deep neural structures used for seizure detection [ 6 ] . Additionally, newer and more innovative network architectures have recently been introduced [ 17 ] , which could potentially be suitable for seizure detection tasks if they are optimized for hardware efficiency [ 18 , 19 ] . We hypothesize that training a deep model on seizure data and then distilling this knowledge [ 20 ] into a smaller model can simultaneously improve both accuracy and efficiency. Furthermore, it is important to note that seizure dynamics can evolve over time, leading to reduced performance in machine learning models. Recent work [ 9 ] has addressed this by applying test-time updates to a simple LR model, improving sensitivity to ictal samples. Additionally, there is potential in exploring more advanced update rules, successfully applied in other domains [ 21 , 22 ] to enhance model performance in the context of epileptic seizure detection. This work addresses the key challenges involved in developing hardware-efficient models for seizure detection, where balancing accuracy and resource constraints is crucial. First, we introduce a Neural Additive Model (NAM) [ 23 ] tailored for seizure detection, which effectively captures the non-linear relationships in the data. To improve computational efficiency, we propose a distilled version, the Micro Tree-based NAM, which reduces parameters and speeds up processing without sacrificing performance. Lastly, we enhance the model’s adaptability through the T3A update mechanism, allowing for dynamic adjustments during test-time. The key contributions of this work are as follows: • We employ the Neural Additive Model (NAM) as a novel approach for seizure detection. NAM is capable of learning individual feature functions for each input feature, while the final prediction is made by summing these outputs, which aligns well with the diverse and distributed nature of seizure events. Our method achieves an window-based sensitivity of 85%, an event-based sensitivity of 100%, and a specificity of 96% for seizure detection across all patients on the CHB-MIT dataset, outperforming the previous benchmarks for computationally efficient seizure detection [ 14 , 9 , 24 ] . To the best of our knowledge, this is the first application of a Neural Additive Model in seizure detection. • We further present Micro Tree-based NAM (MT-NAM), a model developed through knowledge distillation from NAM, where the feature functions are replaced with regression trees. This approach achieves a 100 \times improvement in inference speed compared to NAM and significantly reduces the model’s computational demands. • We utilize the T3A [ 25 ] method to adapt the model during test-time, offering more stable results compared to alternative approaches. While MT-NAM effectively reduces computational complexity and accelerates inference, it leads to a slight decrease in sensitivity to seizures, which is critical since missing ictal samples is unacceptable. To address this, we develop a more memory-efficient version of the T3A [ 25 ] approach tailored for binary classification tasks. This enhanced model strikes an attractive balance, maintaining the sensitivity of the original NAM while achieving a 50 \times speed increase during test-time. Fig. 1: The proposed model framework. (a) Feature extraction. During this phase 7 band power features aligned with Linelenght and Variance is extracted from each channel of raw EEG signal for every 1 second window size resulting in 9 features per channel and totally M=9N number of features with N being the channel number. (b) Training NAM. During training phase NAM is trained using the extracted features and offline prediction is applied for seizure detection. (c) MT-NAM Inference During inference the distilled version of NAM namely, Micro Tree-based NAM (MT-NAM) and online T3A update is used for predicting the seizures. Color Codes: Indicates the feature extraction paradigm ( a ), is the training paradigm ( b ) and is the inference paradigm during testing ( c ). The remainder of this paper is organized as follows. Section II provides a detailed explanation of the methodology used for architecture design, knowledge distillation, and the online update process, while Section III covers the experimental setup and presents the results of the experiments. Section IV describes the related work on seizure detection and section V is the conclusion of our paper. II Methods II-A Seizure detection problem formulation The primary objective of seizure detection is to determine whether a seizure is present within a given EEG window. Here, we focused on evaluating our model’s performance with

Read the complete text