arXiv:2610.32811cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32811

U-NeXt: General-purpose event detection for neonatal EEG

Robert Hogan, Sean R. Mathieson, Aurel Luca, Soraia Ventura, Sean Griffin, Geraldine B. Boylan, John M. O'Toole

ABSTRACT

BACKGROUND Automated neonatal EEG analysis can support continuous monitoring where specialist expertise is limited. Existing event detectors typically classify short EEG segments, restricting temporal context and limiting detection resolution. Methods are also commonly developed separately for individual event types.

OBJECTIVES To develop a general framework that treats neonatal EEG event detection as a semantic segmentation task, improving temporal localisation, detection accuracy, and computational efficiency across seizures, low-voltage intervals (LVIs), and artefacts.

METHODS We developed U-NeXt, a convolutional encoder–decoder network that directly segments individual EEG channels, using longer EEG segments to preserve temporal context. A shared architectural design and training framework were developed using LVI, artefact, and seizure datasets from 51, 98, and 278 neonates, respectively, comprising over 11,000 hours of EEG and 82,000 annotated events. Performance was compared with task-specific ConvNeXt classifiers. For seizure detection, we also evaluated a model trained on an expanded dataset, U-NeXt+. Both U-NeXt variants and the ConvNeXt baseline were evaluated for seizure detection on two independent held-out datasets from Cork and Helsinki, comprising 130 neonates, with recordings annotated by three experts.

RESULTS U-NeXt improved detection across all three event types, with particular gains in sensitivity for short events. The U-NeXt+ variant achieved Matthews correlation coefficients of 0.862 and 0.891 on Helsinki and Cork, respectively, and improved hourly seizure burden correlations by 30–40% relative to ConvNeXt. U-NeXt+ met the criterion for expert-level performance on both datasets (p<0.001). In separate computational benchmarks, U-NeXt reduced batch inference time relative to ConvNeXt by 254-fold on CPU and 200-fold on GPU.

CONCLUSION A common segmentation framework improves detection across diverse neonatal EEG event types while substantially reducing inference time. Accurate seizure burden estimates and performance comparable to expert reviewers support its potential use in continuous EEG monitoring and clinical decision support.

Research article

1 Introduction

Neonatal brain injury in the hours and days after birth remains a serious concern for the estimated 8.5 per 1000 infants born globally with neonatal encephalopathy (NE)[1]. The negative impacts of NE on neurodevelopmental outcome make it the second leading neurological disorder contributing to disability-adjusted life years (DALYs) [2]. Early diagnosis and treatment are paramount to improving lifelong neurodevelopmental outcome.

Continuous monitoring with electroencephalography (EEG) is the gold standard for the assessment of neonatal brain function. It is a relatively inexpensive and portable technology, but interpretation difficulty has limited widespread adoption. Neonatal EEG review is a highly specialised skill that is absent in many clinical settings, particularly in low- and middle-income countries where the burden of NE is particularly high [3]. In recent years there has been increasing interest in automated systems to reduce laborious expert EEG review in the NICU [4–7]. In particular, we have recently shown that scaling deep learning methods can lead to expert-level retrospective analysis [8, 9].

Figure

Figure 1. U-NeXt architecture. The 4-stage encoder (pale blue), adapted from ConvNeXt [8], contains downsampling, normalisation, and convolution blocks. The 2-stage decoder (pale orange) contains upsampling and convolution blocks. The blocks use depthwise convolution (d), layer normalisation (LN), and Gaussian error linear unit (GELU) activation. Downsampling uses a 1×41 \times 4 convolution; upsampling uses a 1×41 \times 4 transposed convolution, both with stride 4. Skip connections concatenate encoder and decoder features and 2 decoder outputs provide deep supervision at different resolutions. W and D control width and depth, respectively.

To date, most research in this area has focused on models for a single event detection task, often trained and evaluated on a single dataset [10–12]. This leads to highly specialised models that are tuned for that particular task–dataset combination and often use a specific electrode array or montage [13]. Datasets are often small, with performance evaluated through cross-validation, seldom including independent held-out validation [10, 11]. Insufficient evaluation means generalisation performance is unclear at best. At worst, methods overfit to particular task–dataset pairings, obscuring potential downstream utility and hindering clinical translation. In addition, each neonatal EEG event type requires its own study, making it difficult to build robust and generalisable methods.

EEG event detection commonly uses short-time classification, assigning one label per segment (e.g. 16 s for seizures). Post-processing then assembles these detections into a probability trace and binary mask. This approach has several limitations. First, the time resolution of the prediction mask is dependent on the length of the segments. Overlap percentage controls the sample rate, but not the resolution, although a high overlap is needed to capture the start and end times. A longer segment may make the event easier to detect but harder to localise in time [14]. Selecting a segment size is therefore a compromise for events with widely varying durations, e.g. artefacts [12, 15]. Second, short-time classification lacks the continuous temporal context experts use to annotate event boundaries. Treating variable-duration event detection as fixed-segment classification rather than segmentation therefore limits both context and temporal localisation.

CergenX • preprint

Research article

In this work, we address these limitations by introducing a new general framework for event detection in neonatal EEG. We develop a new model based on a U-Net style architecture which directly learns the semantic segmentation task for 3 distinct applications: detection of seizures, low-voltage intervals (LVIs), and artefacts. Importantly, we do not customise the architecture or training recipe for each case and the design is based on single-channel input. This ensures that the framework is generalisable to other event types, independent of EEG montage. We trained and validated a model for each task using the development datasets, then evaluated seizure detection on the held-out datasets Cork and Helsinki. Training a high-quality detector for this diverse set of tasks with a single unified architecture is a significant challenge but an important step towards more general and scalable approaches to AI for neonatal EEG. The history of AI development has repeatedly shown that detailed customisation of models to each task may yield short-term gains but will ultimately be shown to be more brittle than the general systems that inevitably surpass them.