A Deep Learning Algorithm for Detecting Acute Pericarditis by Electrocardiogram
Yu-Lan Liu1, Chin-Sheng Lin1, Cheng-Chung Cheng1
1Division of Cardiology, Department of Internal Medicine, Tri-Service General Hospital, National Defense Medical Center, Taipei 114, Taiwan.
Insights
A new deep learning model (DLM) accurately detects acute pericarditis using electrocardiograms (ECGs), aiding emergency department diagnosis. An integrated AI strategy also helps differentiate pericarditis from ST-segment elevation myocardial infarction (STEMI).
Area of Science:
- Cardiology
- Artificial Intelligence
- Medical Diagnostics
Background:
- Acute pericarditis and ST-segment elevation myocardial infarction (STEMI) share similar symptoms in emergency departments, complicating diagnosis.
- Existing deep learning models (DLMs) show promise in identifying STEMI from 12-lead electrocardiograms (ECGs).
Purpose of the Study:
- To develop a DLM for detecting acute pericarditis using ECGs.
- To evaluate the DLM's performance in differentiating acute pericarditis from STEMI.
Main Methods:
- Trained a DLM on 128 acute pericarditis ECGs and 66,633 general ED ECGs.
- Compared DLM performance against human experts and traditional algorithms.
- Developed an integrated DLM strategy combining pericarditis and STEMI detection models.
Main Results:
- The pericarditis DLM achieved an AUC of 0.954, with 78.9% sensitivity and 97.7% specificity.
- The integrated AI strategy demonstrated 73.7% sensitivity and 99.4% specificity for acute pericarditis detection.
- False positives in the integrated strategy were linked to increased hospitalization risk for cardiac disorders.
Conclusions:
- AI-powered algorithms can significantly assist clinicians in the early detection of acute pericarditis.
- The developed DLM and integrated strategy show potential for differentiating acute pericarditis from STEMI using 12-lead ECGs.
Abstract:
(1) Background: Acute pericarditis is often confused with ST-segment elevation myocardial infarction (STEMI) among patients presenting with acute chest pain in the emergency department (ED). Since a deep learning model (DLM) has been validated to accurately identify STEMI cases via 12-lead electrocardiogram (ECG), this study aimed to develop another DLM for the detection of acute pericarditis in the ED. (2) Methods: This study included 128 ECGs from patients with acute pericarditis and 66,633 ECGs from patients visiting the ED between 1 January 2010 and 31 December 2020. The ECGs were randomly allocated based on patients to the training, tuning, and validation sets, at a 3:1:1 ratio. We used raw ECG signals to train a pericarditis-DLM and used traditional ECG features to train a machine learning model. A human-machine competition was conducted using a subset of the validation set, and the performance of the Philips automatic algorithm was also compared. STEMI cases in the validation set were extracted to analyze the DLM ability of differential diagnosis between acute pericarditis and STEMI using ECG. We also followed the hospitalization events in non-pericarditis cases to explore the meaning of false-positive predictions. (3) Results: The pericarditis-DLM exceeded the performance of all participating human experts and algorithms based on traditional ECG features in the human-machine competition. In the validation set, the pericarditis-DLM could detect acute pericarditis with an area under the receiver operating characteristic curve (AUC) of 0.954, a sensitivity of 78.9%, and a specificity of 97.7%. However, our pericarditis-DLM also misinterpreted 10.2% of STEMI ECGs as pericarditis cases. Therefore, we generated an integrating strategy combining pericarditis-DLM and a previously developed STEMI-DLM, which provided a sensitivity of 73.7% and specificity of 99.4%, to identify acute pericarditis in patients with chest pains. Compared to the true-negative cases, patients with false-positive results using this strategy were associated with higher risk of hospitalization within 3 days due to cardiac disorders (hazard ratio (HR): 8.09; 95% confidence interval (CI): 3.99 to 16.39). (4) Conclusions: The AI-enhanced algorithm may be a powerful tool to assist clinicians in the early detection of acute pericarditis and differentiate it from STEMI using 12-lead ECGs.
Related Concept Videos
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
Electrocardiogram Fundamentals
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...
Pericarditis II: Clinical Features and Diagnostic Tests
Rheumatic Heart Disease II: Clinical Manifestations and Diagnostic Studies
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
Acute Coronary Syndrome III: Diagnostic Studies


