Related Experiment Videos
Performance of large language models in electrocardiogram interpretation: A comparative study
Gregory W Chai1, Samuel J Y Chen2, Jasmine Yang3
1Temerty Faculty of Medicine, University of Toronto, Toronto, Ontario, Canada; Division of Cardiology, Keenan Research Center for Biomedical Science, St. Michael's Hospital, Unity Health Toronto, University of Toronto, Toronto, ON, Canada.
Journal of Electrocardiology
|July 23, 2026
Summary
Large language models (LLMs) like ChatGPT and Gemini show limited accuracy in interpreting electrocardiograms (ECGs) for electrical axis and heart rhythm. Their current performance indicates they are not yet reliable for independent clinical diagnosis in cardiology.
Area of Science:
- Artificial Intelligence in Medicine
- Cardiology
- Machine Learning for Healthcare
Background:
- Large language models (LLMs) are increasingly utilized for medical interpretations.
- Evaluating LLM performance on clinical tasks like electrocardiogram (ECG) analysis is crucial.
- State-of-the-art LLMs from OpenAI and Google require rigorous assessment for ECG interpretation accuracy.
Purpose of the Study:
- To compare ChatGPT (GPT-5.2 Thinking) and Gemini (Gemini 3 Pro) in interpreting ECGs.
- To assess the accuracy and consistency of LLMs in identifying electrical axis and heart rhythm.
- To evaluate the current clinical usability of LLMs for cardiology and identify areas for improvement.
Main Methods:
- ECGs were sourced from the Lobachevsky University Electrocardiography Databases on PhysioNet.
- LLM responses were evaluated for first-shot accuracy and consistency across three trials.
- First-shot accuracy was analyzed by rhythm and axis type to identify systematic trends.
Main Results:
- Both ChatGPT and Gemini exhibited comparable first-shot accuracies for electrical axis and rhythm classification.
- Both models encountered difficulties with less common rhythms such as multifocal rhythms and tachycardias.
- Macro F1 analysis revealed low overall classification performance for both LLMs in axis and rhythm interpretation, with ChatGPT outperforming Gemini slightly on axis classification.
Conclusions:
- Macro F1 scores indicate that neither ChatGPT nor Gemini are reliable for independent clinical diagnoses in cardiology.
- Both LLMs demonstrated challenges in interpreting ECGs for rhythm and axis identification.
- This study aims to inform the continued development of LLMs for enhanced physician assistance in cardiology.
Related Concept Videos
Electrocardiogram
An electrocardiogram (ECG or EKG) is a critical diagnostic tool that records the electrical signals produced by the heart during each heartbeat. This recording is achieved through electrodes placed strategically on the arms, legs, and chest. The electrocardiograph amplifies these signals and produces 12 distinct tracings, offering a comprehensive understanding of the heart's electrical activity.
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and the T...
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and the T...
Electrocardiogram Fundamentals
Introduction
An electrocardiogram (ECG) is a diagnostic tool for identifying cardiac conditions such as arrhythmias, conduction abnormalities, and myocardial ischemia.
Definition
An electrocardiogram (ECG) visualizes the heart's electrical activity by tracing the electrical movement associated with each heartbeat on a graph or monitor. As the heart beats, an electrical wave passes through it, correlating with the cardiac cycle events.
Parts of an ECG
An ECG utilizes electrodes on the skin to...
An electrocardiogram (ECG) is a diagnostic tool for identifying cardiac conditions such as arrhythmias, conduction abnormalities, and myocardial ischemia.
Definition
An electrocardiogram (ECG) visualizes the heart's electrical activity by tracing the electrical movement associated with each heartbeat on a graph or monitor. As the heart beats, an electrical wave passes through it, correlating with the cardiac cycle events.
Parts of an ECG
An ECG utilizes electrodes on the skin to...