Logo

American Heart Association

  22
  0


Final ID: MP375

Automated End-to-End Framework for Extracting Raw ECG Waveforms and ST Segment Values from ECG Reports and Predicting ST Elevation by Machine Learning

Abstract Body (Do not enter title and authors here): Background
Manual analysis of ECG reports can be time-consuming and difficult to perform. Machine learning (ML) models have shown higher success when trained on raw time-series rather than images. There is need for an end-to-end approach that starts from extraction of raw data from ECG reports and also predicts ECG features using ML.

Hypothesis
A novel automated method that extracts and parses raw time-series ECG data and associated text/numeric data of ST-segment values from PDF ECG reports, may enable prediction of ST elevation by ML.

Methods
We collected stress test ECG reports from N=7,622 patients. We split the dataset into 60% for training, 10% for validation and 30% for testing the ML model (fig A). We developed an automated extraction algorithm to extract ECG waveforms and ST elevation values for each stage (baseline, worst case exercise, etc.) of stress test from the PDF ECG reports (fig B). The algorithm uses metadata detection and spatial colocalization techniques to export the ECGs and ST values as JSON files. We then used the ECGs from JSON files to train a Convolutional Neural Network model to predict the max ST value. Performance of extraction algorithm was assessed by visual review of thirty cases comparing the extracted output in fig C to the original PDF. ML model’s performance was assessed using RMSE score and AUROC for predicting max ST value.

Results
Review of thirty reports showed a complete accurate match between the original PDF and the extracted results. Figure C shows an example result, where the arrows pointing from a text object to the ECG time-series indicate the respective associations. Fig D shows a truncated output JSON file which was used for ML modeling. The maximum ST value was mostly seen in leads II and V3. ML showed an RMSE of 1.66 on the hold-out test set, and an AUROC of 0.897 (fig E).

Conclusion
An automated end-to-end tool that converts PDF vector objects to voltage time series allows preprocessing of raw electrocardiograms for physiological studies and machine learning.
  • Ganesan, Prasanth  ( Stanford Medicine , Palo Alto , California , United States )
  • Wang, Paul  ( Stanford University , Stanford , California , United States )
  • Ashley, Euan  ( Stanford Medicine , Palo Alto , California , United States )
  • Perez, Marco  ( STANFORD UNIV HOSPITAL , Stanford , California , United States )
  • Narayan, Sanjiv  ( STANFORD MEDICINE , Stanford , California , United States )
  • Rogers, Albert  ( Stanford University , Redwood City , California , United States )
  • Liu, Xichong  ( Stanford Health Care , Stanford , California , United States )
  • Bandyopadhyay, Sabyasachi  ( Stanford University , Palo Alto , California , United States )
  • Ansari, Rayan  ( Stanford University , Chatsworth , California , United States )
  • Somani, Sulaiman  ( Stanford Health Care , Menlo Park , California , United States )
  • Brennan, Kelly  ( Stanford University , San Francisco , California , United States )
  • Karius, Alexander  ( Stanford University , Stanford , California , United States )
  • Baykaner, Tina  ( Stanford University , PALO ALTO , California , United States )
  • Perino, Alexander  ( Stanford University , Stanford , California , United States )
  • Author Disclosures:
    Prasanth Ganesan: DO have relevant financial relationships ; Royalties/Patent Beneficiary:Florida Atlantic University:Active (exists now) | Paul Wang: DO have relevant financial relationships ; Individual Stocks/Stock Options:Soneira:Active (exists now) ; Ownership Interest:EndoEpiAF:Active (exists now) ; Ownership Interest:HrtEx:Active (exists now) | Euan Ashley: No Answer | Marco Perez: DO have relevant financial relationships ; Research Funding (PI or named investigator):NIH/NHLBI:Active (exists now) ; Ownership Interest:QALY Inc.:Active (exists now) ; Ownership Interest:Pacegenix:Active (exists now) ; Consultant:Pacegenix:Active (exists now) ; Consultant:Simplex Quantum:Active (exists now) ; Consultant:Thryv:Active (exists now) ; Consultant:Boston Scientific:Active (exists now) ; Consultant:Johnson and Johnson:Active (exists now) ; Consultant:Apple Inc.:Active (exists now) ; Research Funding (PI or named investigator):Johnson and Johnson:Active (exists now) ; Research Funding (PI or named investigator):Lexeo Therapeutics:Active (exists now) ; Research Funding (PI or named investigator):Apple Inc.:Active (exists now) | Sanjiv Narayan: DO have relevant financial relationships ; Consultant:Lifesignals.ai:Active (exists now) ; Consultant:Abbott, Inc.:Past (completed) ; Consultant:PhysCade, Inc.:Active (exists now) | Albert Rogers: DO have relevant financial relationships ; Research Funding (PI or named investigator):National Institutes of Health:Active (exists now) ; Advisor:YorLabs Inc:Active (exists now) ; Advisor:WearLinq Inc.:Active (exists now) ; Research Funding (PI or named investigator):American Heart Association:Active (exists now) | Xichong Liu: DO NOT have relevant financial relationships | Sabyasachi Bandyopadhyay: DO have relevant financial relationships ; Consultant:Linus Health Inc.:Past (completed) | Rayan Ansari: DO NOT have relevant financial relationships | Sulaiman Somani: DO NOT have relevant financial relationships | Kelly Brennan: DO NOT have relevant financial relationships | Alexander Karius: DO NOT have relevant financial relationships | Tina Baykaner: DO NOT have relevant financial relationships | Alexander Perino: DO have relevant financial relationships ; Consultant:J&J Medtech:Active (exists now) ; Research Funding (PI or named investigator):Orchestra Med:Active (exists now) ; Research Funding (PI or named investigator):Boston Scientific:Active (exists now) ; Consultant:Biotronik:Past (completed) ; Other (please indicate in the box next to the company name):Medtronic: Episode Review Committee:Past (completed) ; Other (please indicate in the box next to the company name):Abbott: Speaker, Research funding:Active (exists now)
Meeting Info:

Scientific Sessions 2025

2025

New Orleans, Louisiana

Session Info:
More abstracts on this topic:
A Personal Risk Assessment Device in Patients with Chest Pain

Shvilkin Alexei, Zlatic Natasa, Atanasoski Vladimir, Grujovic Zdolsek Sanja, Popovic Maneski Lana, Miletic Marjan, Vukcevic Vladan

A Multi-Tier, Natural-Language Processing Framework to Automate Labeling of Acute Cerebrovascular Events From Radiology Reports and Diagnosis Codes

Erekat Asala, Stein Laura, Delman Bradley, Karp Adam, Kupersmith Mark, Kummer Benjamin

More abstracts from these authors:
Predicting Peak Heart Rate from Resting 12-Lead ECGs in Patients Undergoing Stress Testing using Deep Learning

Liu Xichong, Ashley Euan, Perez Marco, Narayan Sanjiv, Rogers Albert, Bandyopadhyay Sabyasachi, Ganesan Prasanth, Somani Sulaiman, Brennan Kelly, Karius Alexander, Baykaner Tina, Perino Alexander, Wang Paul

Non-Contact Magnetocardiography Localizes Atrial Foci as Accurately as High-Resolution Contact ECG

Brennan Kelly, Narayan Sanjiv, Rogers Albert, Bandyopadhyay Sabyasachi, Ganesan Prasanth, Ansari Rayan, Somani Sulaiman, Liu Xichong, Baykaner Tina, Perino Alexander, Wang Paul

You have to be authorized to contact abstract author. Please, Login
Not Available