- 1Guangdong Cardiovascular Institute, Guangdong Provincial People’s Hospital, Guangdong Academy of Medical Sciences, Guangzhou, China
- 2Guangdong Provincial Key Laboratory of Clinical Pharmacology, Guangdong Provincial People’s Hospital, Guangdong Academy of Medical Sciences, Guangzhou, China
Background: C-reactive protein (CRP), as a non-specific inflammatory marker, is a predictor of the occurrence and prognosis of various arrhythmias. It is still unknown whether electrocardiographic features are altered in patients with inflammation.
Objectives: To evaluate the performance of a deep learning model in detection of CRP levels from the ECG in patients with sinus rhythm.
Methods: The study population came from an epidemiological survey of heart disease in Guangzhou. 12,315 ECGs of 11,480 patients with sinus rhythm were included. CRP > 5mg/L was defined as high CRP level. A convolutional neural network was trained and validated to detect CRP levels from 12 leads ECGs. The performance of the model was evaluated by calculating the area under the curve (AUC), accuracy, sensitivity, specificity, and balanced F Score (F1 score).
Results: Overweight, smoking, hypertension and diabetes were more common in the High CRP group (p < 0.05). Although the ECG features were within the normal ranges in both groups, the high CRP group had faster heart rate, longer QTc interval and narrower QRS width. After training and validating the deep learning model, the AUC of the validation set was 0.86 (95% CI: 0.85–0.88) with sensitivity, specificity of 89.7 and 69.6%, while the AUC of the testing set was 0.85 (95% CI: 0.84–0.87) with sensitivity, specificity of 90.7 and 67.6%.
Conclusion: An AI-enabled ECG algorithm was developed to detect CRP levels in patients with sinus rhythm. This study proved the existence of inflammation-related changes in cardiac electrophysiological signals and provided a noninvasive approach to screen patients with inflammatory status by detecting CRP levels.
1 Introduction
In the past, inflammation has been proved to be an important pathophysiological mechanism for the occurrence and development of arrhythmias (Grune et al., 2021). The arrhythmogenic effects are mainly achieved through changes in electrophysiological properties, including ion channel disturbances, early and late afterdepolarization, as well as enhanced fibrosis and structural remodeling in cardiomyopathies (Vonderlin et al., 2019). C-reactive protein (CRP) and high sensitivity C reactive protein (hsCRP), as non-specific inflammatory markers, are associated with cardiovascular risk (Mozos et al., 2019; Tibaut et al., 2019). High CRP level is not only associated with the presence and future development of atrial fibrillation (Aviles et al., 2003), but also predictive of atrial fibrillation after surgery (Maesen et al., 2012). Moreover, CRP has been shown to be potentially associated with life-threatening ventricular arrhythmias and cardiac arrest (Gaaloul et al., 2016). Although inflammation has been shown to be a cause of arrhythmias, it is still unknown whether electrocardiographic features are altered in patients with inflammation.
With the development of deep learnings, artificial intelligence (AI) algorithm is gradually applied to cardiovascular disease (Attia et al., 2019a; Attia et al., 2019c; Kusunose et al., 2020). Electrocardiography (ECG) is an excellent substrate for deep learnings, because ECG data with finite complexity is obtained in consistent protocols and archived in usable digital formats. We hypothesized that the ECG characteristics of people with high CRP level may have changed and can be recognized by AI-enabled ECG algorithm. Therefore, we first try to develop and validate of a Deep-Learning Model to detect CRP Level from the electrocardiogram.
2 Methods
2.1 Data Sources and Study Population
The study population came from an epidemiological survey of heart disease in Guangzhou, South of China. More than 12,000 adults aged 35 were enrolled in this survey. All underwent standard 10-s, 12-lead, 500-Hz ECG, and laboratory tests including CRP (detected by immunoturbidimetry), blood routine and electrolytes. 12,315 ECGs of 11,480 patients with sinus rhythm were included. The study protocol was approved by the ethics committee of Guangdong Provincial People’s Hospital and was conducted in accordance with the Declaration of Helsinki and Good Clinical Practice Guidelines. The requirement for informed consent from patients whose information was retrospectively collected was waived. According to the reference range of CRP in Guangdong Provincial People’s Hospital, CRP > 5 mg/L was defined as high CRP level. ECGs were divided into the high CRP group and the normal group. There were 1,183 ECGs in the high CRP group, and 11,132 ECGs in the normal group. ECGs were divided into the training set, validation set and testing set at proportions of 6:1:3, respectively (Figure 1).
2.2 Data Preprocessing
The sample dimension was 12 × 5,000 (12 leads by 10-s duration sampled at 500 Hz). In order to remove the baseline drift (Figure 2A) and noise (Figure 2B), following our previous approach (Jiang et al., 2020), the raw data was first filtered by using a low-pass filter to get the baseline, then the baseline was flattened by zeroing the mean (Figure 2C), and denoising was achieved by filtering out the high frequency signal (Figure 2D). Since any linear function of the leads could be learned by the models and more artifacts were contained within the first and last 1-s periods, to optimize performance, only 8-s of eight independent leads (leads I, II, and V1–6) were selected. After preprocessing, each ECG was transformed to an 8 × 4,000 matrix.
FIGURE 2. Data Preprocessing (A) and (B) show representative ECGs with baseline drift and noise, respectively (C) and (D) show representative ECGs after preprocessing.
2.3 Model Development
In order to produce more data and meanwhile to avoid affecting the evaluation of the testing set, the training and validation set were expanded 10 times by shifting the start point (Zhao et al., 2020). After data expanding, the training set contained 7,100 samples with high CRP level and 66,790 samples with normal CRP level while the validation set contained 1,180 samples with high CRP level and 11,130 samples with normal CRP level. To avoid training bias caused by the imbalance of samples, the same amounts of ECGs with different CRP levels were randomly selected as the input batch. ECGs in different dataset were not repeated.
Deep learning is an algorithm that can extract high-dimensional features from complex data and achieve classification. Multiple deep learning models were tested, and the simplest (the one with fewer parameters or layers) that resulted in the highest AUC was selected. The model that provided the optimal AUC was a two-dimensional convolutional neural network with a 12-layers, which was similar in concept and structure to a previously developed model detecting hyperkalaemia based on the 12-lead ECG (Galloway et al., 2019). The first 10 layers were convolutional to extract the subtle changes in ECGs and the last 2 layers formed a fully connected network to avoid overfitting. The output layer had two classes and was activated by “Softmax”. The model was built by the Keras Framework with TensorFlow backend and Python. Categorical cross entropy loss was used as the loss function, and Adam optimization method was applied.
2.4 Statistical Analysis
The continuous variables were compared by using the independent t test, and the 2-group categorical variables were compared by using the χ2 test and the log-rank test. Measures of performance included the area under curve (AUC), accuracy, precision, sensitivity, specificity, and balanced F Score (F1 score). Receiver operating characteristic curve (ROC) was obtained by using Python 3.5, Matplotlib 3.0.2 and ROC module. Statistical significance for differences was defined as a 2-sided p value of less than 0.05. Measures of performance were summarized using 2-sided 95% confidence intervals.
3 Results
3.1 Baseline Characteristics
The baseline clinical characteristics of the patients are shown in Table 1. There were 390 males and 715 females in the High CRP group with an average age of 60.5 years, while there were 3,604 males and 6,771 females in the normal group with an average age of 58.5 years. Patients in the High CRP group were older (p < 0.001), and no differences were shown in genders (p = 0.712). Overweight, smoking, hypertension and diabetes were more common in the High CRP group (p < 0.05). Consistent with CRP, the inflammatory markers such as leukocyte, platelet and neutrophil-to-lymphocyte ratio (NLR) were also significantly increased in the high CRP group (p < 0.001). Moreover, although the ECG features were within the normal ranges in both groups, the high CRP group had faster heart rate (p < 0.001), longer QTc interval (p < 0.001) and narrower QRS width (p = 0.03).
3.2 The Performance of the AI Algorithm
Following training and validation, the ROC curves of detecting CRP were drawn (Figure 3) and the confusion matrix of the model was shown in Table 2. The AUC of the validation set was 0.86 (95% CI: 0.85–0.88). 821 of 1,180 ECGs with normal CRP level and 1,058 of 1,180 ECGs with high CRP level were detected by the AI model. The sensitivity, specificity, accuracy, precision, and F1 scores were 89.7, 69.6, 79.6, 74.7%, and 0.815, respectively (Table 2). The AUC of the testing set was 0.85 (95% CI: 0.84–0.87). 2,259 of 3,340 ECGs with normal CRP level and 322 of 355 ECGs with high CRP level were detected by the AI model. The sensitivity, specificity, accuracy, precision, and F1 scores were 90.7, 67.6, 69.9, 23.0%, and 0.366, respectively (Table 2). The results suggested that the AI model has a satisfactory ability to detect CRP level.
4 Discussion
In this study, we found that AI-enabled ECG could effectively detect CRP level (AUC 0.85). The model performance was better than other common screening tests, such as B-type natriuretic peptide for heart failure (AUC 0.60–0.70) (Bhalla et al., 2005), mammography for breast cancer (AUC 0.78) (Pisano et al., 2005) and Papanicolaou smear for cervical cancer (AUC 0.70) (Chen et al., 2016). To our knowledge, this is the first deep-learning approach to evaluation of CRP levels from the ECGs.
Identification of patients with high CRP level by AI-enabled ECG indicated that although no obvious abnormality was observed, changes in cardiac electrophysiological signals caused by inflammation had already existed. Analysis of traditional ECG features suggested that patients with high CRP levels may have changes in QTc interval, heart rate, and QRS width compared with normal subjects. This also supported the existence of inflammation-related changes in cardiac electrophysiological signals. However, since these changes were still within the normal range, patients with high CRP levels could not be identified by these changes. The application of artificial intelligence to the ECG may enable noninvasive screening of patients with inflammatory status through the detection of CRP. This may be beneficial for patients with rheumatic immune diseases who need to evaluate the inflammatory status.
The AI-enabled ECG algorithm can not only be applied to diagnose and predict cardiovascular diseases (Ko et al., 2020; Raghunath et al., 2021), but also can be applied to other fields and realize the interpretation beyond manual. It is well known that some ECG features vary with age and gender differences, but none has particularly good discriminatory ability and there is no general agreement in routine ECG practice. In a study cohort of more than 275,000 patients, the AI-enabled ECG algorithm was able to predict patients’ sex (accuracy 90.4%, AUC 0.97) and age (mean error 6.9 ± 5.6 years) effectively (Attia et al., 2019b). Serum potassium levels are essential for normal cell function. Hyperkalemia significantly increases the risk of developing life-threatening arrhythmias, especially in those with cardiovascular or renal disease. The performance of AI-enabled ECG algorithm in detecting hyperkalemia was evaluated. After training using more than 1.5 million standard 12 lead ECGs from nearly 450,000 patients, the model was effective in detecting serum potassium levels in patients (AUC 0.853–0.883) (Galloway et al., 2019). This study suggested that the AI-enabled ECG algorithm was also valuable in detecting CRP levels. In the future, combined with deep learning, the application of ECG will be more promising.
In this study, aging, overweight, hypertension, diabetes and smoking seemed to be associated with high CRP levels. Previous studies have shown that aging and obesity are associated with inflammatory status (Franceschi et al., 2018; Kawai et al., 2021). Inflammation also plays a role in the pathogenesis of hypertension and diabetes (Lontchi-Yimagou et al., 2013; McMaster et al., 2015). In addition, the adverse consequences of smoking in various pathologies are mediated by its effects on the immune-inflammatory system (Rom et al., 2013). Although chronic inflammation was thought to be associated with alcohol-related diseases (Wang et al., 2010), the increase of inflammatory markers in people with alcohol dependence was not found in this study.
A total of over 12,000 ECGs were included to construct the deep learning model in this study. However, since the performance of deep learning models tends to increase as the amount of training data increases, the sample size of this study was still small. It is difficult to obtain such large amounts of labeled data in most situations. Previous studies have shown that deep learning models are also applicable in small datasets (Phillips et al., 2019; Makimoto et al., 2020). Zhao et al. developed an AI-based non ST segment elevation myocardial infarction (STEMI) auto diagnosis algorithm by using a dataset of 667 STEMI ECGs and 7571 control ECGs (Zhao et al., 2020). Makimoto et al. (11) successfully developed a convolutional neural networks model to recognize myocardial infarction by using the PTB ECG database consisting of 289 ECGs including 148 myocardial infarction cases (Makimoto et al., 2020).
5 Conclusion
In conclusion, an AI-enabled ECG algorithm was developed to detect CRP levels in patients with sinus rhythm. This study proved the existence of inflammation-related changes in cardiac electrophysiological signals and provided a noninvasive approach to screen patients with inflammatory status by detecting CRP levels. This model still requires further refinement and external validation.
Data Availability Statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
Ethics Statement
The studies involving human participants were reviewed and approved by the ethics committee of Guangdong Provincial People’s Hospital. The ethics committee waived the requirement of written informed consent for participation.
Author Contributions
All authors listed have made a substantial, direct, and intellectual contribution to the work and approved it for publication.
Funding
This work was supported by the Science and Technology Planning Program of Guangdong Province (grant number 2019B020230004).
Conflict of Interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Publisher’s Note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
Attia Z. I., Kapa S., Lopez-Jimenez F., McKie P. M., Ladewig D. J., Satam G., et al. (2019). Screening for Cardiac Contractile Dysfunction Using an Artificial Intelligence-Enabled Electrocardiogram. Nat. Med. 25, 70–74. doi:10.1038/s41591-018-0240-2
Attia Z. I., Friedman P. A., Noseworthy P. A., Lopez-Jimenez F., Ladewig D. J., Satam G., et al. (2019). Age and Sex Estimation Using Artificial Intelligence from Standard 12-Lead ECGs. Circ. Arrhythm. Electrophysiol. 12, e007284. doi:10.1161/CIRCEP.119.007284
Attia Z. I., Noseworthy P. A., Lopez-Jimenez F., Asirvatham S. J., Deshmukh A. J., Gersh B. J., et al. (2019c). An Artificial Intelligence-Enabled ECG Algorithm for the Identification of Patients with Atrial Fibrillation during Sinus Rhythm: a Retrospective Analysis of Outcome Prediction. Lancet 394, 861–867. doi:10.1016/s0140-6736(19)31721-0
Aviles R. J., Martin D. O., Apperson-Hansen C., Houghtaling P. L., Rautaharju P., Kronmal R. A., et al. (2003). Inflammation as a Risk Factor for Atrial Fibrillation. Circulation 108, 3006–3010. doi:10.1161/01.cir.0000103131.70301.4f
Bhalla V., Isakson S., Bhalla M. A., Lin J. P., Clopton P., Gardetto N., et al. (2005). Diagnostic Ability of B-type Natriuretic Peptide and Impedance Cardiography: Testing to Identify Left Ventricular Dysfunction in Hypertensive Patients. Am. J. Hypertens. 18, 73s–81s. doi:10.1016/j.amjhyper.2004.11.044
Chen Y., Cui Z., Xiao Z., Hu M., Jiang C., Lin Y., et al. (2016). PAX1 and SOX1 Methylation as an Initial Screening Method for Cervical Cancer: a Meta-Analysis of Individual Studies in Asians. Ann. Transl. Med. 4, 365. doi:10.21037/atm.2016.09.30
Franceschi C., Garagnani P., Parini P., Giuliani C., Santoro A. (2018). Inflammaging: a New Immune-Metabolic Viewpoint for Age-Related Diseases. Nat. Rev. Endocrinol. 14, 576–590. doi:10.1038/s41574-018-0059-4
Gaaloul I., Riabi S., Evans M., Hunter T., Huber S., Aouni M. (2016). Postmortem Diagnosis of Infectious Heart Diseases: A Mystifying Cause of Sudden Infant Death. Forensic Sci. Int. 262, 166–172. doi:10.1016/j.forsciint.2016.03.002
Galloway C. D., Valys A. V., Shreibati J. B., Treiman D. L., Petterson F. L., Gundotra V. P., et al. (2019). Development and Validation of a Deep-Learning Model to Screen for Hyperkalemia from the Electrocardiogram. JAMA Cardiol. 4, 428–436. doi:10.1001/jamacardio.2019.0640
Grune J., Yamazoe M., Nahrendorf M. (2021). Electroimmunology and Cardiac Arrhythmia. Nat. Rev. Cardiol. 18, 547–564. doi:10.1038/s41569-021-00520-9
Jiang J., Deng H., Xue Y., Liao H., Wu S. (2020). Detection of Left Atrial Enlargement Using a Convolutional Neural Network-Enabled Electrocardiogram. Front. Cardiovasc. Med. 7, 609976. doi:10.3389/fcvm.2020.609976
Kawai T., Autieri M. V., Scalia R. (2021). Adipose Tissue Inflammation and Metabolic Dysfunction in Obesity. Am. J. Physiology-Cell Physiology 320, C375–c391. doi:10.1152/ajpcell.00379.2020
Ko W.-Y., Siontis K. C., Attia Z. I., Carter R. E., Kapa S., Ommen S. R., et al. (2020). Detection of Hypertrophic Cardiomyopathy Using a Convolutional Neural Network-Enabled Electrocardiogram. J. Am. Coll. Cardiol. 75, 722–733. doi:10.1016/j.jacc.2019.12.030
Kusunose K., Abe T., Haga A., Fukuda D., Yamada H., Harada M., et al. (2020). A Deep Learning Approach for Assessment of Regional Wall Motion Abnormality from Echocardiographic Images. JACC Cardiovasc. Imaging 13, 374–381. doi:10.1016/j.jcmg.2019.02.024
Lontchi-Yimagou E., Sobngwi E., Matsha T. E., Kengne A. P. (2013). Diabetes Mellitus and Inflammation. Curr. Diab Rep. 13, 435–444. doi:10.1007/s11892-013-0375-y
Maesen B., Nijs J., Maessen J., Allessie M., Schotten U. (2012). Post-operative Atrial Fibrillation: a Maze of Mechanisms. Eur. Eur. Soc. Cardiol. 14, 159–174. doi:10.1093/europace/eur208
Makimoto H., Höckmann M., Lin T., Glöckner D., Gerguri S., Clasen L., et al. (2020). Performance of a Convolutional Neural Network Derived from an ECG Database in Recognizing Myocardial Infarction. Sci. Rep. 10, 8445. doi:10.1038/s41598-020-65105-x
McMaster W. G., Kirabo A., Madhur M. S., Harrison D. G. (2015). Inflammation, Immunity, and Hypertensive End-Organ Damage. Circ. Res. 116 (6), 1022–1033. doi:10.1161/CIRCRESAHA.116.303697
Mozos I., Jianu D., Gug C., Stoian D. (2019). Links between High-Sensitivity C-Reactive Protein and Pulse Wave Analysis in Middle-Aged Patients with Hypertension and High Normal Blood Pressure. Dis. Markers 2019, 2568069. doi:10.1155/2019/2568069
Phillips M., Marsden H., Jaffe W., Matin R. N., Wali G. N., Greenhalgh J., et al. (2019). Assessment of Accuracy of an Artificial Intelligence Algorithm to Detect Melanoma in Images of Skin Lesions. JAMA Netw. Open 2, e1913436. doi:10.1001/jamanetworkopen.2019.13436
Pisano E. D., Gatsonis C., Hendrick E., Yaffe M., Baum J. K., Acharyya S., et al. (2005). Diagnostic Performance of Digital versus Film Mammography for Breast-Cancer Screening. N. Engl. J. Med. 353, 1773–1783. doi:10.1056/nejmoa052911
Raghunath S., Pfeifer J. M., Ulloa-Cerna A. E., Nemani A., Carbonati T., Jing L., et al. (2021). Deep Neural Networks Can Predict New-Onset Atrial Fibrillation from the 12-Lead ECG and Help Identify Those at Risk of Atrial Fibrillation-Related Stroke. Circulation 143, 1287–1298. doi:10.1161/circulationaha.120.047829
Rom O., Avezov K., Aizenbud D., Reznick A. Z. (2013). Cigarette Smoking and Inflammation Revisited. Respir. Physiology Neurobiol. 187, 5–10. doi:10.1016/j.resp.2013.01.013
Tibaut M., Caprnda M., Kubatka P., Sinkovič A., Valentova V., Filipova S., et al. (2019). Markers of Atherosclerosis: Part 1 - Serological Markers. Heart, Lung Circulation 28, 667–677. doi:10.1016/j.hlc.2018.06.1057
Vonderlin N., Siebermair J., Kaya E., Köhler M., Rassaf T., Wakili R. (2019). Critical Inflammatory Mechanisms Underlying Arrhythmias. Herz 44, 121–129. doi:10.1007/s00059-019-4788-5
Wang H. J., Zakhari S., Jung M. K. (2010). Alcohol, Inflammation, and Gut-Liver-Brain Interactions in Tissue Damage and Disease Development. Wjg 16, 1304–1313. doi:10.3748/wjg.v16.i11.1304
Keywords: deep learning, ECG, CRP, C-reactive protein, CNN, convolutional neural network, AI
Citation: Jiang J, Deng H, Liao H, Fang X, Zhan X, Wu S and Xue Y (2022) Development and Validation of a Deep-Learning Model to Detect CRP Level from the Electrocardiogram. Front. Physiol. 13:864747. doi: 10.3389/fphys.2022.864747
Received: 28 January 2022; Accepted: 11 May 2022;
Published: 30 May 2022.
Edited by:
Lubov Mitrofanova, Almazov National Medical Research Centre, RussiaReviewed by:
Xin Li, University of Leicester, United KingdomIoana Mozos, Victor Babes University of Medicine and Pharmacy, Romania
Copyright © 2022 Jiang, Deng, Liao, Fang, Zhan, Wu and Xue. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Junrong Jiang, 571023647@qq.com; Shulin Wu, doctor_wushulin@126.com; Yumei Xue, doctor_xym@126.com
†These authors have contributed equally to this work