Full text
49,805 characters
· extracted from
preprint-html
· click to expand
Towards Automated Neonatal EEG Analysis: Multi-Center Validation of a Reliable Deep Learning Pipeline | medRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P4HH5NV'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search Towards Automated Neonatal EEG Analysis: Multi-Center Validation of a Reliable Deep Learning Pipeline View ORCID Profile Tim Hermans , Anneleen Dereymaeker , Katrien Lemmens , View ORCID Profile Katrien Jansen , View ORCID Profile Fatima Usman , Shellie Robinson , View ORCID Profile Gunnar Naulaers , View ORCID Profile Maarten De Vos , View ORCID Profile Caroline Hartley doi: https://doi.org/10.1101/2025.10.16.25338113 Tim Hermans a Department of Electrical Engineering (ESAT), STADIUS Center for Dynamical Systems, Signal Processing and Data Analytics, KU Leuven , Leuven, Belgium Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Tim Hermans For correspondence: tim.hermans{at}esat.kuleuven.be Anneleen Dereymaeker b Department of Development and Regeneration, KU Leuven , Leuven, Belgium c Neonatal Intensive Care Unit, University Hospitals Leuven , Leuven, Belgium Find this author on Google Scholar Find this author on PubMed Search for this author on this site Katrien Lemmens b Department of Development and Regeneration, KU Leuven , Leuven, Belgium c Neonatal Intensive Care Unit, University Hospitals Leuven , Leuven, Belgium Find this author on Google Scholar Find this author on PubMed Search for this author on this site Katrien Jansen b Department of Development and Regeneration, KU Leuven , Leuven, Belgium d Child Neurology, University Hospitals Leuven , Leuven, Belgium Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Katrien Jansen Fatima Usman e Department of Paediatrics, University of Oxford , Oxford, UK Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Fatima Usman Shellie Robinson e Department of Paediatrics, University of Oxford , Oxford, UK Find this author on Google Scholar Find this author on PubMed Search for this author on this site Gunnar Naulaers b Department of Development and Regeneration, KU Leuven , Leuven, Belgium c Neonatal Intensive Care Unit, University Hospitals Leuven , Leuven, Belgium Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Gunnar Naulaers Maarten De Vos a Department of Electrical Engineering (ESAT), STADIUS Center for Dynamical Systems, Signal Processing and Data Analytics, KU Leuven , Leuven, Belgium b Department of Development and Regeneration, KU Leuven , Leuven, Belgium Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Maarten De Vos Caroline Hartley e Department of Paediatrics, University of Oxford , Oxford, UK Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Caroline Hartley Abstract Full Text Info/History Metrics Data/Code Preview PDF Abstract Objective To evaluate the reliability and generalization of NeoNaid, a fully automated software tool for neonatal EEG analysis, based on functional brain age (FBA) estimation and sleep staging. Methods NeoNaid combines a multi-task deep learning model with proposed quality control routines detecting artefacts, out-of-distribution inputs, and uncertain predictions. Based on a raw EEG input, it outputs one global FBA estimate and a continuous 2-state hypnogram. We validated performance on an two independent hospital settings: an internal dataset (33 EEGs, 17 infants, median 900 minutes/recording) and an external dataset (38 EEGs, 24 infants, median 124 minutes/recording). Results Quality control rejected comparable number of segments in the internal and external datasets, reducing extreme errors in FBA estimation, and modestly improving sleep staging accuracy. Across the internal and external data, NeoNaid achieved median absolute FBA errors of 0.50 and 0.55 weeks and Cohen’s Kappa values of 0.89 and 0.87 for quiet sleep detection, respectively. Conclusions NeoNaid demonstrated improved reliability through integrated quality control and robust generalization across recording setups. Significance By focusing on validation and trustworthiness, this work takes an essential step toward clinical adoption of automated neonatal EEG analysis and supports its utility for both NICU practice and large-scale research. 1 Introduction Neonatal electroencephalography (EEG) is the gold standard for assessing brain function in newborns and has proven to be a valuable monitoring tool in the neonatal intensive care unit (NICU) ( Karamian & Wusthoff, 2021 ; McCoy & Hahn, 2013 ). With its high temporal resolution and multi-channel recordings, EEG provides rich information on brain maturation, sleep stages, and pathological activity such as seizures. However, neonatal EEG is challenging to interpret due to the complexity of the signal, and recordings often span many hours. Therefore, visual analysis requires expertise and is time-consuming. These factors limit the routine clinical use of EEG, despite its potential to provide valuable insights into neonatal brain health. Over the past decade, a range of data-driven and artificial intelligence (AI) methods have been developed to assist with neonatal EEG interpretation. These include automated approaches for seizure detection ( Ansari et al., 2019 ; Borovac et al., 2022 ; Raeisi et al., 2022 ; Temko et al., 2015 ), background grading ( Dereymaeker et al., 2019 ; Moghadam et al., 2021 ; Raurale et al., 2021 ), sleep staging ( Ansari et al., 2020 ; Koolen et al., 2017 ; Piryatinska et al., 2009 ), and functional brain age (FBA) estimation ( Ansari et al., 2024 ; Pillay et al., 2020 ; Stevenson et al., 2020 ). These developments highlight the potential of artificial intelligence to scale EEG analysis beyond the limits of manual review. Of the various AI approaches to neonatal EEG, sleep staging and FBA estimation are especially informative for assessing neurodevelopment, and are the focus of this study. Sleep organization is an important marker of neurological development ( Dereymaeker et al., 2017 ; Shellhaas et al., 2017 ). Automated sleep staging can provide continuous, objective measurements that would otherwise be impractical for clinicians to obtain. Similarly, FBA estimation offers a quantitative measure of brain maturation by comparing EEG-derived estimates of age with the infant’s postmenstrual age (PMA). Deviations between the FBA and PMA can indicate atypical development and have prognostic value ( Ansari et al., 2024 ; Stevenson et al., 2020 ). Together, these applications can support both clinical decision-making and long-term research on neonatal neurodevelopment. Despite this potential, significant barriers remain to clinical adoption. Most published models are validated only on internal test data, raising concerns about their robustness to data from different hospitals, recording systems, or electrode montages. Long NICU recordings also unavoidably contain artefacts caused by movement, poor electrode contact, or physiological interference. Models trained primarily on clean data may fail when applied to such segments. For clinical usefulness, automated EEG tools must not only be accurate but also usable in practice and reliable across diverse datasets. Another important aspect for clinical deployment of automated EEG algorithms is their robustness to differences in recording setups. In neonatal care, EEG systems can vary in electrode montages, hardware characteristics, and acquisition protocols across centers. To be trusted in clinical workflows, algorithms must maintain performance despite these variations, including when applied to data from a hospital other than the one in which they were developed. Finally, to be adopted into clinical practice, tools must be easy to use with software that can aid interpretation. To meet this need, we developed NeoNaid, a software tool that integrates a multi-task deep learning model for neonatal EEG analysis into a user-friendly graphical interface. Its design has been refined in discussion with clinicians to ensure interpretability and usability. This tool automatically processes long EEG recordings and provides robust, clinically relevant interpretations of the EEG, including sleep staging and FBA estimates. The underlying AI model builds on our previously published work and was trained on a large in-house dataset of neonatal EEG. Beyond this, NeoNaid implements quality control routines designed to improve the reliability and trustworthiness of the tool when used in clinical practice. These routines flag EEG segments likely to yield unreliable predictions by detecting artefacts, out-of-distribution inputs, or high model uncertainty. In this paper, we focus on validating NeoNaid as a tool for neonatal EEG analysis. Unlike prior studies that primarily introduce new model architectures, our emphasis is on quality control and external validation. Specifically, we evaluate how NeoNaid performs on two independent datasets: an internal cohort from Leuven and an external cohort from Oxford. This cross-center validation is crucial for assessing generalizability and for building trust in real-world clinical use. The aims of this study are twofold: (i) to assess the contribution of quality control to improving the reliability of automated FBA and sleep analysis, and (ii) to validate NeoNaid’s performance for FBA estimation and sleep staging across both internal and external datasets. Together, these analyses address the key requirements for clinical usefulness: trustworthiness and generalizability. 2 Materials and methods 2.1 Automated EEG analysis using NeoNaid NeoNaid is an in-house developed software tool for automated neonatal EEG analysis. It integrates preprocessing, deep learning–based predictions, and quality control routines within a graphical user interface designed for clinical use ( Figure 1 ). The input to NeoNaid is a raw multi-channel EEG recording, which may vary in montage depending on the acquisition system. NeoNaid can handle this variability, as the model processes each channel separately and uses an attention mechanism to combine channel-wise predictions into a global output. Download figure Open in new tab Figure 1. Screenshot of the NeoNaid GUI. The graphs show the predicted sleep hypnogram and the brain age as a function of time during a 16h45m recording. Besides these visual outputs, the GUI produces result files which were used to analyze the results for this paper. Predictions are generated for non-overlapping 30-second segments. For each segment, NeoNaid produces three main outputs: (i) an artefact mask indicating which samples in the input are likely to be noise; (ii) a prediction of the sleep stage: quiet sleep (QS), active sleep (AS), or wake; and (iii) an estimate of functional brain age (FBA). The core of the software is a multi-task deep learning model, developed by converging our previously published models ( Ansari et al., 2019 , 2020 , 2024 ; Dereymaeker et al., 2019 ; Hermans et al., 2023 ) into one common methodology. Its architecture builds on our previously published convolutional neural network ( Hermans et al., 2023 ) and consists of a shared encoder connected to multiple output heads, one for each task. Unlike prior single-task models, NeoNaid was trained in a multi-task setting, enabling simultaneous supervised learning from different neonatal EEG datasets labeled for different tasks. The training data included approximately 1326 hours of EEG from 124 recordings with age labels for FBA estimation, 565 hours from 132 recordings with sleep annotations, and 44 hours from 73 recordings with artefact annotations. 2.2 Dataset We evaluated NeoNaid using two independent neonatal EEG datasets: one internal dataset collected at University Hospitals Leuven, Belgium (Dataset A) and one external dataset recorded at the John Radcliffe Hospital in Oxford, UK (Dataset B). These datasets differ in acquisition hardware, electrode configuration, and local recording protocols, allowing us to assess generalization of the algorithm to different recording conditions. The internal Dataset A originated from the same hospital as the data used for the development of the NeoNaid algorithms. However, all recordings Dataset A were independent of the development data and thus represent previously unseen cases. 2.2.1 Dataset A (internal) Dataset A consists of 33 EEG recordings from 17 neonates monitored at the NICU of University Hospitals Leuven, Belgium. The cohort includes both term and preterm infants with postmenstrual ages (PMA) at the time of recording ranging from 27.3 to 47 weeks (median 37.7). EEGs were acquired using the BrainRT EEG system (Onafhankelijke Software Groep (OSG), Kontich, Belgium) with a sampling rate of 250 or 256 Hz. Electrodes were positioned according to a modified 10–20 system, including the following channels: Fp1, Fp2, C3, C4, T3, T4, O1, and O2, with Cz as the reference electrode. The EEG recordings had a median duration of 900 (IQR: 90 - 980) minutes and were collected as part of routine clinical care. All recordings came from neonates without major developmental abnormalities, allowing PMA at recording to serve as a reference measure for FBA. Two-class sleep annotations (QS versus AS or wake) were available for a subset of 28 recordings, scored by trained experts. All data were anonymized prior to analysis. The study was approved by the local ethics committee of University Hospitals Leuven, in accordance with the Declaration of Helsinki. 2.2.2 Dataset B (external) Dataset B comprises 38 EEG recordings from 24 neonates recorded at the Newborn Care Unit of the John Radcliffe Hospital, Oxford University Hospitals NHS Foundation Trust, Oxford, UK. The PMA at the time of recording ranged from 29.4 to 41.4 (median 34.5) weeks. Compared to Dataset A, Dataset B used a different EEG system and montage. EEGs were recorded using the SynAmps RT 64-channel headbox and amplifiers and CURRYscan7 neuroimaging suite (Compumedics Neuroscan) with a sampling rate of 2000 Hz. The electrode configuration consisted of FCz, C3, C4, Cz, CPz, T3, T4, and Oz, referenced to Fz. Recordings had a median duration of 124 (IQR: 91 – 143) minutes. Similar to dataset A, all recordings were from patients without any neurological abnormalities (infants were excluded from studies if they had a grade III or IV intraventricular haemorrhage, hypoxic ischaemic encephalopathy, or major congenital malformations), making the PMA at time of recording a suitable reference for functional brain age. Of the 38 EEGs, 18 were randomly selected for sleep staging, ensuring good coverage across PMA and recording durations, and were subsequently labeled for sleep by a trained expert in Leuven. The EEG recordings were collected for research purposes, as part of an independent study ( Usman et al., 2025 ). Eligible families were given verbal and written information about the study, and written parental consent was signed before inclusion in the study. This dataset was fully anonymized and provided under a data sharing agreement between the University of Oxford and KU Leuven. Ethical approval was obtained through the relevant UK regulatory bodies (National Research Ethics Service reference: 12/SC/0447). 2.2.3 Pre-processing To standardize inputs across datasets, all recordings were re-referenced to a bipolar montage (C3–C4, C3–Cz, C3–T4, C4–Cz, C4–T3), bandpass-filtered (0.25–30 Hz), and downsampled to 64 Hz. Signals were segmented into 30-second non-overlapping epochs. Within each recording, channel amplitudes were normalized by the median standard deviation across all segments. These pre-processing steps ensured consistency across acquisition systems and were automatically executed by the NeoNaid software. 2.3 Quality control Typically, the majority of training data is from a clean and labeled dataset, thus making existing trained models unreliable for artefact-containing data segments. Additionally, deep learning models perform well on data that is similar to the training data, but their performance becomes unreliable when applied to data that has significantly different characteristics compared to the training data (out-of-distribution data). A central feature of NeoNaid is its quality control algorithm, which evaluates the reliability of each 30-second EEG segment before downstream interpretation. This process involves evaluating three independent reliability criteria: artefact content, novelty detection (to detect out-of-distribution inputs), and (un)certainty level. 2.3.1 Artefacts Each segment is assigned an artefact score based on the percentage of samples identified as noise by the dedicated detection head of the model. Segments with more than 50% artefact content are flagged as unreliable, therefore preventing the model from producing predictions on segments where brain activity is largely obscured. Segments that do not pass the artefact check are flagged as unreliable and either excluded (for FBA) or explicitly marked (for sleep staging). 2.3.2 Novelties Out-of-distribution inputs (novelties) are automatically identified by applying a novelty detection model to each channel in a segment. The novelty detection model in NeoNaid is an isolation forest that uses a set of nine spectral features as input ( Piryatinska et al., 2009 ), predicting for each channel in every segment whether it is an inlier or a novelty (with respect to the NeoNaid training data). A separate novelty detection model was fitted per task, using the data that was used for training that part of the multi-task model. If more than half of the channels in a segment were labeled as novelties, the entire segment was flagged. Conversely, unflagged segments in any of the channels labeled as novelties were excluded from the model’s channel aggregation, reducing their impact on the global predictions. 2.3.3 Uncertainty The model assigns attention weights to each channel when combining channel-wise predictions. Very low weights across all channels indicate uncertainty. Segments in which the maximum attention weight was below a predefined threshold were therefore flagged as unreliable. For the sleep staging outputs, segments with QS probabilities near 0.5 were also marked as uncertain. Together, these three criteria provide a conservative safeguard against unreliable predictions. NeoNaid then aggregates the segment-wise outputs and quality flags into clinically interpretable results. For FBA, a single robust estimate is obtained as the median across reliable segments, while for sleep staging, a continuous hypnogram is constructed by smoothing probabilities and interpolating over short, unreliable intervals using simple heuristic rules. 2.4 Performance metrics 2.4.1 Functional brain age For each recording, the global FBA estimate was defined as the median of all segment-wise predictions that passed quality control. The performance was quantified in terms of the absolute error, which was defined as the absolute difference between the global FBA estimate and the infant’s PMA at the time of recording. Lower errors indicate better performance. The interquartile range (IQR) of the retained segment-wise estimates was reported as a measure of prediction confidence, with wider IQRs indicating a lower prediction certainty. 2.4.2 Sleep staging For sleep analysis, we evaluated NeoNaid’s ability to detect QS. To this end, the model’s AS and wake predictions were combined into a single category, representing the non-quiet sleep class. Predictions on segments flagged as unreliable were excluded. The performance was measured in terms of Cohen’s kappa score, where a higher score indicates better agreement between predicted sleep stages and expert annotations. 2.5 Analysis Our analyses were designed to evaluate both the impact of quality control and the generalizability of NeoNaid across datasets. We applied the full processing pipeline to both datasets: Dataset A (internal) and Dataset B (external). We compared two approaches: a naïve approach that included all segment-wise predictions, and a robust approach that excluded segments flagged by quality control. 2.5.1 Effect of quality control To check for differences in data quality and characteristics between the two datasets, we first quantified the occurrence of quality control flags within each dataset. More specifically, we computed the proportion of EEG segments flagged for artefacts and novelty detection; these were independently assessed for the FBA and sleep tasks. For FBA estimation, performance was evaluated as a function of EEG recording duration, as the effect of the robust method is most clear for EEGs of shorter durations. To simulate varying EEG durations, we extracted sub-epochs ranging from 30 seconds to 1 hour from each recording. For each duration, 1000 sub-epochs were randomly selected per recording. The median FBA and corresponding performance metrics were calculated for each duration, allowing assessment of how recording length and the inclusion of quality control routines affect prediction errors. For sleep staging, we computed Cohen’s kappa score for quiet sleep detection on the full recordings using both the naive and robust approaches and compared the performance. 2.5.2 Cross-center validation Finally, we validated the robust methodology (i.e., including quality control) on the complete EEG recordings. Per-recording results were analyzed and visualized in two ways. Firstly, FBA and sleep performance metrics are computed separately for each channel, using the per-channel predictions. A global result was generated using the weighted average of the per-channel predictions. Secondly, we showed the performance as a function of PMA to investigate whether prediction accuracy is systematically affected by the age of the neonates. 3 Results 3.1.1 NeoNaid quality control reduces errors We investigated how the quality control routine affects the automated analysis. For FBA, the median rejection rate was 21.5% in the internal dataset and 16.1% in the external dataset ( Figure 2 ). These were lower for sleep staging, with medians of 2.0% (internal) and 2.4% (external), mainly due to the heuristic postprocessing, which interpolates short unreliable intervals, and retains segments with high-amplitude movement artefacts when they occur during predicted wake cycle. Download figure Open in new tab Figure 2. Rejection rates due to quality control in the two datasets. Rejected %: the total percentage of segments that were rejected in each recording. Analyzing the rejection rates according to the three quality control criteria (which are not mutually exclusive), segments were most frequently flagged as artefacts. In the FBA data, 22.9% of segments in the internal dataset and 19.6% in the external dataset were marked as artefactual; similar rates were observed for sleep data (22.3% and 19.3%, respectively). Novelty detection contributed less, flagging 1.1% and 2.4% of FBA segments, and 4.1% and 3.4% of sleep segments in the internal and external data, respectively. The FBA segments uncertainty was 3.3% (4.6% sleep segments: internal) and 7.1% (2.2% of sleep segments: external). For sleep staging, these values are observed prior to heuristic postprocessing, thus accounting for the generally lower rejection percentages than the proportion of initially flagged segments. Overall, data quality was comparable between centers, and the external data did not appear out-of-distribution despite differences in acquisition systems and protocols. Next, we investigated the effect of the quality control on FBA performance in both datasets. Overall, the robust method (which applies segment rejection) and the naive method (which does not) yielded similar median FBA error values ( Figure 3 ). This is expected, as the use of the median as an aggregation metric reduces the influence of outlier segments. Nevertheless, the robust method consistently showed a lower likelihood of producing extreme outliers, particularly in shorter recordings, demonstrating its value in minimizing risk. The median IQR of the FBA estimate initially increased with data length and then plateaued after approximately 20 minutes of usable data. This suggests that IQR values in recordings with less than 20 minutes of non-rejected EEG should be interpreted with care, as limited data availability may underestimate the IQR of the actual underlying distribution. Download figure Open in new tab Figure 3. FBA performance for different simulated data lengths (1000 repetitions per window, per recording). The x-axis represents the duration of data used to compute the estimates (excluding the rejected segments in the robust case), of which median + min-max is shown. Robust method includes quality control and subsequent segment rejection, naïve method does not. Left: internal Dataset A, right: external Dataset B. QS detection performance using the naive and robust methods ( Figure 4 ) showed modest performance improvement following quality control on the already relatively cleaned and labeled sleep data. Unusable segments were not annotated by the experts and, therefore, were not included in the performance evaluation. While the benefit of quality control is less pronounced in this evaluation setup, its primary value lies in preventing unreliable predictions when poor-quality data are encountered in practice. Download figure Open in new tab Figure 4. Sleep performance with (robust) and without (naive) artefact rejection and heuristic postprocessing. 3.1.2 Cross-center validation of NeoNaid We investigated the results of the robust method (with quality control) of both datasets to validate the cross-center generalization of NeoNaid. Using the robust methodology on full recordings, the mean absolute FBA error across the datasets is 0.60 (median:0.50, IQR: 0.21-0.78) weeks for Dataset A, and 0.69 (median: 0.55, IQR: 0.23-1.02) weeks for Dataset B. The percentage of recordings within 1 week error is 78% (100% within 2 weeks) and 74% (93% within 2 weeks) for Dataset A and Dataset B, respectively. Moreover, the true PMA for Dataset A fell within the IQR of the per-segment predictions in 70% of recordings, compared to 58% for Dataset B. For QS detection, performance was high in both datasets. In Dataset A, per-recording kappa scores averaged 0.86 (median: 0.89, IQR: 0.80-0.96), while in Dataset B they averaged 0.79 (median: 0.87, IQR: 0.70-0.94). Comparable results were obtained when restricting the analysis to single channels, particularly for bipolar derivations around C3, Cz, and C4 ( Figure 5 ). When pooling all recordings, the overall kappa was 0.874 (95% CI: 0.865–0.884) in Dataset A and 0.831 (95% CI: 0.811–0.851) in Dataset B. Download figure Open in new tab Figure 5. Per-recording performance per channel. “All” refers to attention-weighted average of single-channel predictions. Top: brain age error; bottom: quiet sleep detection score. Left: internal Dataset A, right: external Dataset B The performance of FBA and quiet sleep detection was relatively consistent across channels ( Figure 5 ), suggesting that the software can deliver reliable results even with limited or single-channel input. However, while combining all channels did not always outperform the best individual channel in terms of median performance, it generally helped reduce errors in outlier recordings, offering improved robustness. Finally, we assessed the model performance compared with the age of the infants. For the FBA model, there is no significant linear correlation between the FBA error and PMA ( Figure 6 ), indicating that the model performed equally at all ages. In contrast, for sleep staging, there was a trend that QS performance improves with increasing age ( Figure 6 ). In one case in Dataset B, the model failed to detect any quiet sleep, whereas the expert annotation indicated a 15-minute QS bout, resulting in a Kappa score of zero. The 15-minute QS epoch included multiple high-amplitude artefacts, which resulted in the model misclassifying it as wake. Download figure Open in new tab Figure 6. The relation between the performance and PMA. Left: internal Dataset A, right: external Dataset B. 4 Discussion The aim of this study was twofold: first, to assess the contribution of quality control routines in improving the reliability of automated neonatal EEG analysis, and second, to validate the performance of NeoNaid across independent datasets from two hospital settings. We found that quality control reduced extreme errors and provided transparent confidence measures, particularly for functional brain age estimation in shorter or noisier recordings. Across both centers, NeoNaid demonstrated robust and generalizable performance for functional brain age and sleep staging, despite differences in recording hardware, montages, and protocols. This is an important step toward the broader clinical adoption of AI tools for neonatal EEG, where differences in acquisition setups are common and difficult to standardize. NeoNaid’s integrated quality control framework assesses the reliability of each EEG segment through artefact detection, novelty detection, and attention-based certainty scoring. Our results show that this quality control framework improves the reliability of automated neonatal EEG analysis by reducing the likelihood of extreme errors while preserving valid information. While average performance metrics changed only modestly, the safeguards proved valuable in minimizing risk, particularly in shorter or lower-quality recordings ( Figure 3 and Figure 4 ). Therefore, these routines increase the clinical trust in the outputs generated by NeoNaid. NeoNaid maintained robust performance when validated on an independent, external dataset, despite differences in acquisition hardware, montages, and protocols. Additionally, the external data were not identified as out-of-distribution by the quality control routines. This cross-center validation highlights the generalizability of the tool and addresses a key barrier to clinical adoption of automated EEG methods. Even with single-channel inputs, NeoNaid maintained strong performance, producing comparable results compared to aggregating a 5-channel setup ( Figure 5 ). By means of an attention-based aggregation across channels, the model puts more weight on channels it finds most reliable. Therefore, using more than one channel improves robustness more than accuracy, by not relying on data (quality) in a single channel. Performance did not vary significantly with PMA for FBA, although there was a tendency toward slightly larger errors in recordings below 30 or above 40 weeks PMA. This pattern likely reflects the limited amount of training and validation data available in these extreme age ranges rather than a systematic bias. In contrast, sleep staging performance clearly improved with age. As shown in Figure 6 , older neonates achieved higher kappa scores for quiet sleep detection, whereas younger infants showed slightly lower performance. This is likely due to the less distinct differentiation between active and quiet sleep at earlier developmental stages. Several prior studies have developed deep learning models for brain age estimation ( Ansari et al., 2024 ; Pillay et al., 2020 ; Stevenson et al., 2020 ) and sleep staging. While direct comparison of performance metrics across studies should be done cautiously due to differences in test datasets, our findings show that the FBA performance of NeoNaid (mean absolute errors of 0.60 and 0.69 on internal and external datasets, respectively) is comparable, if not superior, to these earlier models, which typically report mean absolute errors between 0.7 and 1.0 weeks. Similarly, NeoNaid’s performance in QS detection aligns with prior models that have reported kappa values up to 0.77. NeoNaid offers value for both clinical and research applications. In clinical practice, automatic sleep staging and FBA estimation can aid in monitoring brain development, particularly in preterm infants. The IQR accompanying the FBA estimate provides a practical measure of confidence, helping clinicians interpret results more effectively. The built-in quality control indicators can alert users to unreliable segments, reducing the risk of misinterpretation due to artefacts or signal degradation. For researchers, NeoNaid provides a scalable solution for annotating large EEG datasets in a standardized way. It is especially useful in studies investigating neurodevelopmental trajectories, sleep–wake organization, and responses to therapeutic interventions. This study has several limitations. The number of recordings in the external dataset was relatively small, limiting the statistical power of generalization claims. Sleep annotations were made by different raters at each site, without a formal assessment of inter-rater reliability, which could introduce bias. Moreover, the external recordings were shorter in duration and lacked accompanying physiological or video data, which made them more challenging to annotate. Finally, external validation was limited to a single center. Future work will focus on expanding collaborations to include additional external datasets and broader populations to further validate and refine the NeoNaid platform. 5 Conclusion We have shown that NeoNaid is a robust tool for automated neonatal EEG analysis, achieving good performance and generalizability across datasets with different recording setups. Its integrated quality control routines reduce extreme errors and improve trustworthiness, addressing a critical requirement for clinical adoption. Together, these findings demonstrate that quality control and cross-center validation are essential for clinical reliability, and they support the potential of NeoNaid for both NICU practice and large-scale research on neonatal brain monitoring. Data Availability All data produced in the present study are available upon reasonable request to the authors. Author contributions CRediT roles: TH: Conceptualization, Methodology, Software, Validation, Writing - Original Draft. AD: Conceptualization, Methodology, Investigation, Writing - Review & Editing. KJ and GN: Conceptualization, Investigation. KL, FU and SR: Investigation. MDV and CH: Conceptualization, Methodology, Resources, Writing - Review & Editing, Supervision. Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. Acknowledgements This research received funding from i) the European Union as part of the Cost action “Maximising impact of multidisciplinary research in early diagnosis of neonatal brain injury” (AI-4-NICU) CA20124; ii) Industrieel Onderzoeksfonds KU Leuven (IOF): C3 “NEONAID - Neonatal Online Neuro-Analysis for Interpretation and Decision-support - Bringing automated neonatal monitoring to the bedside”, C3/24/023; iii) the Horizon programme: HORIZON-HLTH-2022-IND-13: “Privacy compliant health data as a service for AI development (PHASE IV AI)”, funded by the European Union, under Grant Agreement #101095384; iv) the Flemish Government (AI Research Program), MDV and TH are affiliated to Leuven.AI - KU Leuven institute for AI, B-3000, Leuven, Belgium; v) CH and SR were funded by the Wellcome Trust/Royal Society through a Sir Henry Dale Fellowship awarded to CH (grant reference: 213486/Z/18/Z). FU was funded by the Commonwealth Scholarship Commission. Declaration of generative AI and AI-assisted technologies in the writing process During the preparation of this work, the authors used ChatGPT in order to improve readability and language in portions of the manuscript. After using this tool/service, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication. References ↵ Ansari , A. , Cherian , P. J. , Caicedo , A. , Naulaers , G. , Vos , M. De , & Huffel , S. Van . ( 2019 ). Neonatal Seizure Detection Using Deep Convolutional Neural Networks . International Journal of Neural Systems , 29 ( 04 ), 1850011 . doi: 10.1142/s0129065718500119 OpenUrl CrossRef PubMed ↵ Ansari , A. , Pillay , K. , Arasteh , E. , Dereymaeker , A. , Mellado , G. S. , Jansen , K. , Winkler , A. M. , Naulaers , G. , Bhatt , A. , Huffel , S. Van , Hartley , C. , Vos , M. De , Slater , R. , & Baxter , L. ( 2024 ). Resting state electroencephalographic brain activity in neonates can predict age and is indicative of neurodevelopmental outcome . Clinical Neurophysiology , 163 , 226 – 235 . doi: 10.1016/j.clinph.2024.05.002 OpenUrl CrossRef PubMed ↵ Ansari , A. , Wel , O. De , Pillay , K. , Dereymaeker , A. , Jansen , K. , Huffel , S. Van , Naulaers , G. , & Vos , M. De . ( 2020 ). A convolutional neural network outperforming state-of-the-art sleep staging algorithms for both preterm and term infants . Journal of Neural Engineering , 17 ( 1 ), 16028 . doi: 10.1088/1741-2552/ab5469 OpenUrl CrossRef ↵ Borovac , A. , Gudmundsson , S. , Thorvardsson , G. , Moghadam , S. M. , Nevalainen , P. , Stevenson , N. , Vanhatalo , S. , & Runarsson , T. P. ( 2022 ). Ensemble Learning Using Individual Neonatal Data for Seizure Detection . IEEE Journal of Translational Engineering in Health and Medicine , 10 , 1 – 11 . doi: 10.1109/jtehm.2022.3201167 OpenUrl CrossRef ↵ Dereymaeker , A. , Matic , V. , Vervisch , J. , Cherian , P. J. , Ansari , A. , Wel , O. De , Govaert , P. , Vos , M. De , Huffel , S. Van , Naulaers , G. , & Jansen , K. ( 2019 ). Automated EEG background analysis to identify neonates with hypoxic-ischemic encephalopathy treated with hypothermia at risk for adverse outcome: A pilot study . Pediatrics & Neonatology , 60 ( 1 ), 50 – 58 . doi: 10.1016/j.pedneo.2018.03.010 OpenUrl CrossRef PubMed ↵ Dereymaeker , A. , Pillay , K. , Vervisch , J. , Vos , M. De , Huffel , S. Van , Jansen , K. , & Naulaers , G. ( 2017 ). Review of sleep-EEG in preterm and term neonates . Early Human Development , 113 , 87 – 103 . doi: 10.1016/j.earlhumdev.2017.07.003 OpenUrl CrossRef PubMed ↵ Hermans , T. , Smets , L. , Lemmens , K. , Dereymaeker , A. , Jansen , K. , Naulaers , G. , Zappasodi , F. , Huffel , S. Van , Comani , S. , & Vos , M. De . ( 2023 ). A multi-task and multi-channel convolutional neural network for semi-supervised neonatal artefact detection . Journal of Neural Engineering , 20 ( 2 ), 26013 . doi: 10.1088/1741-2552/acbc4b OpenUrl CrossRef ↵ Karamian , A. G. S. , & Wusthoff , C. J. ( 2021 ). Current and Future Uses of Continuous EEG in the NICU . Frontiers in Pediatrics , 9 . doi: 10.3389/fped.2021.768670 OpenUrl CrossRef ↵ Koolen , N. , Oberdorfer , L. , Rona , Z. , Giordano , V. , Werther , T. , Klebermass-Schrehof , K. , Stevenson , N. , & Vanhatalo , S. ( 2017 ). Automated classification of neonatal sleep states using EEG . Clinical Neurophysiology , 128 ( 6 ), 1100 – 1108 . doi: 10.1016/j.clinph.2017.02.025 OpenUrl CrossRef PubMed ↵ McCoy , B. , & Hahn , C. D. ( 2013 ). Continuous EEG Monitoring in the Neonatal Intensive Care Unit . Journal of Clinical Neurophysiology , 30 ( 2 ), 106 – 114 . doi: 10.1097/WNP.0b013e3182872919 OpenUrl CrossRef PubMed ↵ Moghadam , S. M. , Pinchefsky , E. , Tse , I. , Marchi , V. , Kohonen , J. , Kauppila , M. , Airaksinen , M. , Tapani , K. , Nevalainen , P. , Hahn , C. , Tam , E. W. Y. , Stevenson , N. J. , & Vanhatalo , S. ( 2021 ). Building an Open Source Classifier for the Neonatal EEG Background: A Systematic Feature-Based Approach From Expert Scoring to Clinical Visualization . Frontiers in Human Neuroscience , 15 . doi: 10.3389/fnhum.2021.675154 OpenUrl CrossRef ↵ Pillay , K. , Dereymaeker , A. , Jansen , K. , Naulaers , G. , & Vos , M. De . ( 2020 ). Applying a data-driven approach to quantify EEG maturational deviations in preterms with normal and abnormal neurodevelopmental outcomes . Scientific Reports , 10 ( 1 ). doi: 10.1038/s41598-020-64211-0 OpenUrl CrossRef PubMed ↵ Piryatinska , A. , Terdik , G. , Woyczynski , W. A. , Loparo , K. A. , Scher , M. S. , & Zlotnik , A. ( 2009 ). Automated detection of neonate EEG sleep stages . Computer Methods and Programs in Biomedicine , 95 ( 1 ), 31 – 46 . doi: 10.1016/j.cmpb.2009.01.006 OpenUrl CrossRef PubMed ↵ Raeisi , K. , Khazaei , M. , Croce , P. , Tamburro , G. , Comani , S. , & Zappasodi , F. ( 2022 ). A graph convolutional neural network for the automated detection of seizures in the neonatal EEG . Computer Methods and Programs in Biomedicine , 222 , 106950 . doi: 10.1016/j.cmpb.2022.106950 OpenUrl CrossRef PubMed ↵ Raurale , S. A. , Boylan , G. B. , Mathieson , S. R. , Marnane , W. P. , Lightbody , G. , & O’Toole , J. M. ( 2021 ). Grading hypoxic-ischemic encephalopathy in neonatal EEG with convolutional neural networks and quadratic time–frequency distributions . Journal of Neural Engineering , 18 ( 4 ), 046007 . doi: 10.1088/1741-2552/abe8ae OpenUrl CrossRef ↵ Shellhaas , R. A. , Burns , J. W. , Hassan , F. , Carlson , M. D. , Barks , J. D. E. , & Chervin , R. D. ( 2017 ). Neonatal Sleep-Wake Analyses Predict 18-month Neurodevelopmental Outcomes . Sleep , 40 ( 11 ). doi: 10.1093/sleep/zsx144 OpenUrl CrossRef PubMed ↵ Stevenson , N. J. , Oberdorfer , L. , Tataranno , M.-L. , Breakspear , M. , Colditz , P. B. , Vries , L. S. , Benders , M. J. N. L. , Klebermass-Schrehof , K. , Vanhatalo , S. , & Roberts , J. A. ( 2020 ). Automated cot-side tracking of functional brain age in preterm infants . Annals of Clinical and Translational Neurology , 7 ( 6 ), 891 – 902 . doi: 10.1002/acn3.51043 OpenUrl CrossRef PubMed ↵ Temko , A. , Marnane , W. , Boylan , G. , & Lightbody , G. ( 2015 ). Clinical implementation of a neonatal seizure detection algorithm . Decision Support Systems , 70 , 86 – 96 . doi: 10.1016/j.dss.2014.12.006 OpenUrl CrossRef PubMed ↵ Usman , F. , Zandvoort , C. S. , Robinson , S. , Peck , M. , Cobo , M. M. , Adjei , T. , Baxter , L. , Fry , R. E. , Hauck , A. G. V. , Rogers , R. , Mellado , G. S. , Scrivens , A. , van der Vaart , M. , De Vos , M. , Adams , E. , van den Anker , J. , & Hartley , C. ( 2025 ). Brain activity as a biomarker for personalised caffeine treatment in premature neonates . doi: 10.1101/2025.05.02.25326856 OpenUrl Abstract / FREE Full Text View the discussion thread. Back to top Previous Next Posted October 17, 2025. Download PDF Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Towards Automated Neonatal EEG Analysis: Multi-Center Validation of a Reliable Deep Learning Pipeline Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Towards Automated Neonatal EEG Analysis: Multi-Center Validation of a Reliable Deep Learning Pipeline Tim Hermans , Anneleen Dereymaeker , Katrien Lemmens , Katrien Jansen , Fatima Usman , Shellie Robinson , Gunnar Naulaers , Maarten De Vos , Caroline Hartley medRxiv 2025.10.16.25338113; doi: https://doi.org/10.1101/2025.10.16.25338113 Share This Article: Copy Citation Tools Towards Automated Neonatal EEG Analysis: Multi-Center Validation of a Reliable Deep Learning Pipeline Tim Hermans , Anneleen Dereymaeker , Katrien Lemmens , Katrien Jansen , Fatima Usman , Shellie Robinson , Gunnar Naulaers , Maarten De Vos , Caroline Hartley medRxiv 2025.10.16.25338113; doi: https://doi.org/10.1101/2025.10.16.25338113 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Pediatrics Subject Areas All Articles Addiction Medicine (569) Allergy and Immunology (863) Anesthesia (300) Cardiovascular Medicine (4442) Dentistry and Oral Medicine (444) Dermatology (383) Emergency Medicine (609) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1511) Epidemiology (15230) Forensic Medicine (30) Gastroenterology (1126) Genetic and Genomic Medicine (6610) Geriatric Medicine (668) Health Economics (998) Health Informatics (4542) Health Policy (1370) Health Systems and Quality Improvement (1613) Hematology (543) HIV/AIDS (1266) Infectious Diseases (except HIV/AIDS) (15923) Intensive Care and Critical Care Medicine (1103) Medical Education (623) Medical Ethics (147) Nephrology (668) Neurology (6607) Nursing (346) Nutrition (999) Obstetrics and Gynecology (1146) Occupational and Environmental Health (957) Oncology (3338) Ophthalmology (974) Orthopedics (369) Otolaryngology (420) Pain Medicine (436) Palliative Medicine (130) Pathology (664) Pediatrics (1693) Pharmacology and Therapeutics (692) Primary Care Research (712) Psychiatry and Clinical Psychology (5448) Public and Global Health (9238) Radiology and Imaging (2202) Rehabilitation Medicine and Physical Therapy (1370) Respiratory Medicine (1196) Rheumatology (596) Sexual and Reproductive Health (714) Sports Medicine (530) Surgery (712) Toxicology (99) Transplantation (289) Urology (265) (function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a01dcec19e6841e2',t:'MTc3OTgwOTI4NQ=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.