International journal of medical informatics

Automated extraction of seizures and ictal-interictal continuum patterns from EEG reports to enable large-scale neurophysiology and neurocritical care research.

Shadi Sartipi, Deena S Godfrey, Alexandra-Maria Tauțan, Marta P Fernandes, Manohar Ghanta, Aditya Gupta, Bruce Nearing, Jennifer Kim,

Department of Neurology, Massachusetts General Hospital, Harvard Medical School, Boston, MA, USA. · Department of Neurology, Massachusetts General Hospital, Harvard Medical School, Boston, MA, USA; Department of Neurology, Beth Israel Deaconess Medical Center, Harvard Medical School, Boston, MA, USA.

Key points

From the paper's conclusion
  • This study introduces a scalable method for EEG analysis using clinical narratives, linking rhythmic patterns to seizure progression and supporting critical care risk stratification and large-scale EEG outcome prediction research.

Abstract

OBJECTIVE: Critical clinical information in EEG reports is often locked in free text, limiting large-scale research. This work develops and validates an automated, cross-institutional pipeline to extract seizures, rhythmic patterns, and ictal-interictal continuum features for population-level neurophysiology studies. METHODS: We developed a five-stage hybrid pipeline comprising: (1) text normalization, (2) rule-based pattern filtering to focus the analysis on relevant report segments, (3) segment-focused prompt generation, (4) large language model (LLM) inference for structured attribute extraction, and (5) post-processing. This hybrid design combines the consistency of rule-based screening with the flexibility of LLM-based extraction from variable free-text EEG reports. The pipeline was applied to 156,582 EEG reports from three health systems (two adult, one pediatric). Performance was evaluated using a balanced set of 1,500 expert-reviewed samples, which extracted seizure presence, count, burden, and timing, as well as the frequency and prevalence of periodic and rhythmic patterns. Patterns included lateralized periodic discharges (LPD), generalized periodic discharges (GPD), and generalized/lateralized rhythmic delta activity (GRDA/LRDA). RESULTS: The pipeline achieved high performance across health systems for seizure (average accuracy 0.94) and periodic and rhythmic pattern detection (LPD: 0.97 [95 % CI: 0.94-0.99], GPD: 0.96 [0.92-0.98], GRDA/LRDA: 0.97 [0.94-0.99]). Seizure specificity was 0.72 at two adult institutions (95 % CI: 0.66-0.77) and 0.99 at the other two (one adult and one pediatric). Frequency and prevalence extraction showed strong agreement with mean values 0.94 and 0.93, respectively. High-frequency discharges (≥2 Hz) were associated with higher seizure occurrence within 24 and 48 h in descriptive analysis. CONCLUSIONS: This study introduces a scalable method for EEG analysis using clinical narratives, linking rhythmic patterns to seizure progression and supporting critical care risk stratification and large-scale EEG outcome prediction research.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers