Automated Cerebral Edema Detection using Electroencephalography in Post-Cardiac Arrest Patients
Rebecca A Stafford1, Vedika Srivastava2, Aiman Z Altaf3
1Boston Medical Center.
Aim:
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.
Methods:
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.
Results:
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%).
Conclusion:
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.
More Related Videos
Related Concept Videos
Cardiac Output II: Effect of Stroke Volume on Cardiac Output
Preload
Preload refers to the initial elongation of the cardiac myocytes before contraction and is related to the volume of blood filling the heart at the end of diastole, or end-diastolic volume. The...
Cerebral Hemispheres
Cardiac Output I:Effect of Heart Rate on Cardiac Output
Cardiac output (CO) refers to the total amount of blood ejected by one of the ventricles in liters per minute (L/min). In a resting adult, CO ranges from 5 to 6 L/min, adjusting according to the body's metabolic requirements.
Effect of Heart Rate on Cardiac Output
Cardiac output adapts to metabolic demands during stress, physical activity, or illness. The autonomic nervous system regulates heart rate via the sinoatrial node. The parasympathetic nervous system decreases heart...
The Cardiac Cycle
The Process
Electrical signals—sent from the sinoatrial (SA) node in the right atrial wall to the atrioventricular (AV) node between the right atrium and right ventricle—cause both atria to simultaneously contract. When the signal reaches the AV node, it pauses for approximately a tenth of a second, allowing the atria to contract and...
Cardiac Cycle
During the cardiac cycle, blood flow through the heart is regulated entirely by changing pressure gradients. This sequence of events begins with the heart in a state of total relaxation, known as mid-to-late diastole, during which blood passively flows from...
Post-traumatic Stress Disorder
Symptoms and Behavioral Manifestations
A spectrum of distressing symptoms characterizes PTSD. Recurrent flashbacks, where individuals involuntarily relive traumatic events,...


