# Automated Cerebral Edema Detection using Electroencephalography in Post-Cardiac Arrest Patients

**Authors:** Rebecca A Stafford, Vedika Srivastava, Aiman Z Altaf, Leigh Ann Mallinger, Allyson L Reinert, Sashank Sai Krishna Madipally, Lindsay R Salvati, Sarah Wahlster, Denise Chen, Emily J Gilmore, David M Greer, Huimin Cheng, Charlene Ong

PMC · DOI: 10.21203/rs.3.rs-8532128/v1 · Research Square · 2026-01-19

## TL;DR

This study uses EEG and machine learning to detect and predict cerebral edema in cardiac arrest survivors, potentially enabling earlier intervention.

## Contribution

A Transformer-based machine learning model is shown to detect and predict cerebral edema from EEG data more effectively than LSTM models.

## Key findings

- A Transformer model achieved 80% AUC in detecting cerebral edema from 4-hour EEG segments.
- An 8-hour EEG-based model predicted edema before radiographic detection with 92.2% AUC.
- The model outperformed LSTM in both detection and prediction tasks.

## Abstract

To develop an electroencephalography (EEG) based machine learning model to identify diffuse cerebral edema in post-cardiac arrest patients and to evaluate its ability to predict edema prior to radiographic detection.

We performed a retrospective, single-center cohort study of adult patients resuscitated from cardiac arrest (2016-2024) who underwent both neuroimaging and EEG monitoring as part of routine clinical care. Machine learning models using Transformer and Long Short-Term Memory architectures were trained to detect diffuse cerebral edema from 4- and 8-hour EEG segments obtained >24 hours after arrest. The best performing detection model was then evaluated for its ability to predictdiffuse cerebral edema using EEG segments preceding radiographic recognition in patients who ultimately developed edema, compared with matched referents without edema (matched on age, sex, witnessed arrest, and EEG timing). Model performance was assessed using Area Under the Curve (AUC), accuracy, sensitivity, and specificity.

Among 124 patients in the detection model, median age was 53 years, and 74 (59.7%) were male. Sixty-five patients (52.4%) developed diffuse cerebral edema. The best-performing detection model, a Transformer using 4-hour EEG segments, achieved strong performance (AUC 80.0%, accuracy 80.0%, sensitivity 80.0%, specificity 90.0%). In a secondary analysis of 19 patients with diffuse cerebral edema and 19 matched referents, the top-performing prediction model used 8-hour EEG segments (AUC 92.2%, accuracy 90.6%, sensitivity 100%, specificity 88.9%).

Diffuse cerebral edema can be identified in survivors of cardiac arrest using machine learning models applied to routine EEG data. In this study, a Transformer based approach demonstrated superior performance for both detection of established edema and identification of EEG patterns that preceded radiographic recognition than LSTM. With validation in larger and independent cohorts, this strategy may enable earlier recognition of evolving cerebral edema during standard EEG monitoring and support timely interventions to mitigate secondary brain injury.

## Linked entities

- **Diseases:** cardiac arrest (MONDO:0000745)

## Full-text entities

- **Diseases:** edema (MESH:D004487), Cerebral Edema (MESH:D001929), brain injury (MESH:D001930), Cardiac Arrest (MESH:D006323)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12869647/full.md

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12869647/full.md

## References

43 references — full list in the complete paper: https://tomesphere.com/paper/PMC12869647/full.md

---
Source: https://tomesphere.com/paper/PMC12869647