← AI Health Hub

Critical Care 2 min read

AI predicts post-surgery delirium from standard ECGs

A single routine electrocardiogram taken before surgery can identify patients at risk of acute postoperative confusion before they ever step into the operating room.

Yusuf Yesil, MD, MIS

Postoperative delirium strikes older surgical patients without warning, prolonging hospital stays and increasing mortality. Doctors usually rely on complex clinical risk scores or extensive history checks to spot vulnerable patients. This study turns a low-cost, universal test into a fast screening tool, challenging the idea that detecting brain-based surgical risks requires complex clinical workups.

Most delirium predictive tools depend on broad electronic health records (EHR). Earlier models, like those developed for cardiac surgery cohort risk prediction or general preoperative EHR data modeling, pull dozens of disparate clinical variables. By relying solely on 12-lead ECG signals, this model proves that subclinical autonomic and cardiovascular markers alone carry a surprisingly strong signal for acute brain failure.

High accuracy from cardiac signals

Researchers trained extreme gradient boosting on 19 top features extracted from preoperative 12-lead ECGs. The primary development cohort included 596 surgical patients aged 40 or older recruited at a single tertiary hospital in 2023, consisting of 136 delirium cases and 460 non-delirium cases evaluated within 3 days post-surgery using the 3D-CAM-CN tool.

The model reached top-tier accuracy in testing and maintained solid discrimination when tested at a separate facility:

  • 0.97 AUC, 92.0% accuracy, 85.3% sensitivity, 80.6% precision, and 82.9% F1-score in internal validation.
  • 0.840 AUC and 90.20% accuracy in an independent external validation cohort of 102 surgical patients collected at a second hospital in 2026.
  • Major feature contributions came from heart rate variability (HRV) metrics and inter-lead R-peak timing delays.

Shapley Additive Explanations (SHAP) showed that subtle variations in electrical conduction and heart rate regulation drive the algorithm’s predictions. The team built an online visualization platform to turn these output scores into actionable patient risk profiles before surgery.

Validation reality and clinical limits

The clinical drop in performance tells the true story here.

While an internal AUC of 0.97 looks flawless on paper, the drop to 0.840 AUC in external testing highlights the real-world performance decay common to diagnostic AI. That gap matters. A prospective model must hold up across diverse surgical populations, different ECG machines, and varied patient baseline health profiles before clinicians can trust it to direct preventive care.

Screening accuracy does not equal clinical impact. Knowing a patient is high-risk only helps if care teams have the staff and protocols ready to intervene. Future trials must prove whether automated ECG triage actually lowers overall delirium rates or simply adds software alerts to an already crowded nursing workflow.

Read the full study in Scientific Reports.

This article is for informational purposes only and is not a substitute for professional medical advice, diagnosis or treatment.

Yusuf Yesil, MD, MIS
Yusuf Yesil, MD, MIS

Founder & Medical Doctor at Yesil Science. Clinical Biochemistry Specialist and Health AI researcher focused on clinical decision support, diagnostic AI, and biomedical machine learning.

Follow AI Health Hub