Next Article in Journal
Coupling of Modes in Step-Index Plastic Optical Fibers by Using D-Shape Technique
Previous Article in Journal
Estimation of Ground Reaction Forces during Sports Movements by Sensor Fusion from Inertial Measurement Units with 3D Forward Dynamics Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Temporal Relationship-Aware Treadmill Exercise Test Analysis Network for Coronary Artery Disease Diagnosis

1
Institute of Microelectronics, Chinese Academy of Sciences, Beijing 100029, China
2
Cardiology Department, Beijing Hospital, Beijing 100730, China
3
National Center of Gerontology, National Health Commission Institute of Geriatric Medicine, Chinese Academy of Medical Sciences, Beijing 100730, China
4
University of Chinese Academy of Sciences, Beijing 100006, China
*
Authors to whom correspondence should be addressed.
Sensors 2024, 24(9), 2705; https://doi.org/10.3390/s24092705
Submission received: 9 February 2024 / Revised: 7 March 2024 / Accepted: 11 March 2024 / Published: 24 April 2024
(This article belongs to the Section Biomedical Sensors)

Abstract

:
The treadmill exercise test (TET) serves as a non-invasive method for the diagnosis of coronary artery disease (CAD). Despite its widespread use, TET reports are susceptible to external influences, heightening the risk of misdiagnosis and underdiagnosis. In this paper, we propose a novel automatic CAD diagnosis approach. The proposed approach introduces a customized preprocessing method to obtain clear electrocardiograms (ECGs) from individual TET reports. Additionally, it presents TETDiaNet, a novel neural network designed to explore the temporal relationships within TET ECGs. Central to TETDiaNet is the TETDia block, which mimics clinicians’ diagnostic processes to extract essential diagnostic information. This block encompasses an intra-state contextual learning module and an inter-state contextual learning module, modeling the temporal relationships within a single state and between states, respectively. These two modules help the TETDia block to capture effective diagnosis information by exploring the temporal relationships within TET ECGs. Furthermore, we establish a new TET dataset named TET4CAD for CAD diagnosis. It contains simplified TET reports for 192 CAD patients and 224 non-CAD patients, and each patient undergoes coronary angiography for labeling. Experimental results on TET4CAD underscore the superior performance of the proposed approach, highlighting the discriminative value of the temporal relationships within TET ECGs for CAD diagnosis.

1. Introduction

Coronary artery disease (CAD) is a cardiovascular condition characterized by atherosclerosis, which restricts the blood flow to the coronary arteries, thereby posing a severe threat to an individual’s life [1,2]. In 2019, the World Health Organization (WHO) listed CAD as one of the top ten causes of death (https://www.who.int/news-room/fact-sheets/detail/the-top-10-causes-of-death, accessed on 6 February 2024), which draws widespread attention around the world. Coronary angiography (CAG) is the gold standard for the diagnosis of CAD [3,4,5]. Nevertheless, as an invasive CT test, CAG has risks such as blood vessel injury, excessive bleeding, heart attacks, etc. [4]. This forced researchers to develop the treadmill exercise test (TET) [6,7], which is a non-invasive procedure without the need for catheter insertion or exposure to contrast agents. However, the TET results are susceptible to various influencing factors, including physical fitness, age, and gender. Additionally, the absence of a quantitative absolute standard for CAD diagnosis, compounded by individual patient differences, presents a significant challenge for clinicians attempting to interpret TET results [8]. Consequently, clinicians must invest considerable time in manually analyzing the TET results to mitigate the risk of misdiagnosis or underdiagnosis.
In recent years, the rapid development of artificial intelligence has yielded impressive milestones in a variety of fields. Some research has attempted to employ machine learning methods for CAD diagnosis [9,10,11]. Lee et al. [12] learn a new feature representation by integrating 30 pieces of information about the patient’s age, gender, and maximum metabolic equivalents and employ multiple machine learning algorithms as classifiers for diagnosis. Yilmaz et al. [13] reconstruct a series of numerical amplitudes from the electrocardiogram (ECG) and segment them into P, QRS, and T waves for subsequent feature extraction and diagnosis prediction. Lu et al. [14] employ a generative model for data augmentation to address the class imbalance problem and develop a neural oblivious decision ensemble method to predict whether the patient has CAD. These methods automatically diagnose CAD based on ECG images or ECG numerical vectors captured in a single state for CAD diagnosis, demonstrating the potential of machine learning in disease diagnosis. However, the clinical diagnostic experience based on TET suggests that dynamic variations in ECGs during different states are a pivotal clue for CAD diagnosis.
To prompt the development of machine CAD diagnosis, we built a new TET dataset named TET4CAD by collecting TET ECG images from 416 patients and labeling them according to their CAG results. Specifically, we invited 416 patients, i.e., 192 CAD patients, and 224 non-CAD patients for data collection and asked them to undergo both TET and CAG for free. Patients underwent TET using the standard Bruce protocol, and their TET results were reported using CASE produced by GE Medical Systems Information Technologies Inc. (Chicago, IL, USA). For the TET result of each patient, we sampled one 12-lead ECG image for each state (pretest, exercise, and recovery) and integrated these three ECG images as the TET data of the patient. Meanwhile, CAG was performed for each patient using the Allura Xper FD20 produced by Philips, Amsterdam, The Netherlands. A specialist clinician was invited to diagnose the patients based on their CAG results, and the diagnostic conclusions served as the ground-truth labels for the presented dataset. In addition, we also recorded the age and gender of each patient to facilitate subsequent experiments. In summary, this dataset records 12-lead ECG images of 416 patient under pretest, exercise, and recovery states by following TET and annotates their diagnostics based on CAG. Based on the above, this dataset preserves the dynamics of the ECG in different states for better machine CAD diagnosis. Here, we take this dataset as the benchmark dataset to validate the effectiveness of the proposed method.
Based on the TET4CAD dataset, we propose an automatic CAD diagnostic approach to investigate the dynamic variations in the 12-lead ECG of TET by mimicking the clinical process of diagnosing CAD. The proposed approach applies an automatic end-to-end pipeline of “preprocessing–feature extraction–classification”. In the preprocessing step, the proposed approach initially converts the PDF file with three 12-lead ECGs into a group of images, and each image has a resolution of “ 1080 × 640 ”. Subsequently, we strategically crop the converted images according to the preset coordinates to filter out the content irrelevant to ECGs. Finally, a series of image processing techniques are utilized to remove redundant backgrounds such as grid lines. The remaining 12-lead ECG images are saved as the preprocessed results. In the feature extraction step, we develop a novel TET-based diagnosis network termed TETDiaNet to explore the dynamic relationships within TET ECGs. The core of the network is the TETDia block, which is able to explore the contextual relationships within the same state and between different states for each lead. To achieve this, we split the 12-lead ECGs into 12 patches according to the lead locations and assign them to different channels. TETDia block leverages an intra-state contextual learning module to investigate the temporal relationships within individual ECGs under a single state and an inter-state contextual learning module to learn the correlations between different states. TETDiaNet captures these relationships like a clinician to learn discriminative features for CAD diagnostics. In the classification step, a three-layer multilayer perceptron is employed for disease prediction based on the features learned by TETDiaNet. The proposed approach works like a clinician to diagnose disease according to TET by exploring the temporal relationships within individual ECGs under a single state and the correlations within individual ECGs between different states. The related experimental results demonstrate the effectiveness of the proposed approach.
The main contributions are summarized as follows.
  • The paper presents a new dataset, named TET4CAD, consisting of 192 CAD samples and 224 non-CAD samples. This dataset imitates TET and retains multiple 12-lead ECGs in various states to support the development of machine CAD diagnosis.
  • We present a preprocessing module for the newly built TET4CAD dataset. It highlights important ECGs in TET results with low information density by removing the redundant backgrounds irrelevant to CAD diagnosis.
  • We propose a new machine CAD diagnostic model named TETDiaNet to automatically predict whether a patient has CAD according to his/her TET results. TETDiaNet learns discriminative features from the TET results by exploring the temporal relationships within individual ECGs under a single state and the correlations within individual ECGs between different states.
  • The superior performance of the proposed method on the self-built dataset illustrates that our proposed approach is able to accurately predict diagnostic results according to TET, effectively reducing misdiagnosis and underdiagnosis.
The subsequent sections of this paper are organized as follows. Section 2 briefly revisits machine learning methods for CAD diagnostics. Section 3 and Section 4 explicate the details of the newly built TET4CAD dataset and technical intricacies of the proposed method, respectively. Section 5 presents the experimental outcomes on the self-built dataset along with the empirical analysis. The paper concludes with Section 6.

2. Related Work

Coronary artery disease (CAD) is characterized by the accumulation of atherosclerotic plaques in the walls of the coronary artery “tree”. While this can result in restricted blood flow to the heart muscle (myocardium) due to the significant narrowing (stenosis) of the coronary artery lumen [15], even mildly stenotic plaques pose a significant risk to the affected patient [16].
To help doctors to improve the diagnostic efficiency, researchers have attempted to use machine learning methods for CAD diagnosis. The existing methods for CAD diagnosis can be divided into three categories: traditional machine learning, ensemble learning, and deep learning methods. Earlier research mainly adopted traditional machine learning, relying on manual feature engineering and statistical learning principles for pattern recognition. These methods have limitations regarding the data scale and feature selection. Intermediate research employed ensemble learning methods, constructing more powerful classifiers by ensembling multiple base learners. In recent years, influenced by the rise of deep learning [17,18], deep learning models have been widely applied to ECG analysis, enabling end-to-end training and significantly improving diagnosis through hierarchical feature learning. With the growth of datasets and computing power, deep learning is regarded as the most promising technology for CAD diagnosis.

2.1. Traditional Machine Learning Methods

Traditional machine learning methods rely on manual feature extraction from ECGs and use statistical learning principles for CAD pattern recognition [19,20]. Common algorithms include support vector machine (SVM), logistic regression, decision trees, etc. These methods can automatically learn correlations between ECG and CAD to categorize conditions. Regarding traditional machine learning methods, Beunza et al. [21] used demographic, lifestyle, and laboratory features with SVM to predict CAD, achieving an AUC of 0.75. Gola et al. [22] used six imputed data features with an SVM model to make predictions, obtaining an AUC of 0.92. Several successful automated and semi-automated algorithms have been developed to extract the artery centerlines, analyze the vessels, and detect visual clues related to pathological changes related to atherosclerosis. Some of these algorithms were designed specifically to detect calcified plaques [23] or plaques in general [24]. Although these algorithms report high scores for abnormality detection, they are generally rule-based or based on conventional machine learning, which is heavily reliant on hand-crafted tuning for model parameters.

2.2. Ensemble Learning Methods

Ensemble learning methods such as bagging, boosting, and stacking combine multiple base learners and aggregate them to obtain a more powerful ensemble classifier for improved ECG analysis [25,26,27]. Baskaran et al. [28] used demographic, risk factor, and medication history features with XGBoost [29], achieving an AUC of 0.705 and sensitivity of 89.2%. Al’Aref et al. [30] utilized demographic, disease, and physical indicator features, with algorithms like AdaBoost [31], XGBoost, random forest [32], and logistic regression, resulting in an AUC of 0.927. Du et al. [33] used demographic, medical history, and procedure features with an ensemble XGBoost, obtaining an AUC of 0.94. Ensemble learning methods improve traditional machine learning’s classification performance but still require manual feature selection rather than end-to-end feature learning and classification.

2.3. Deep Learning Methods

In recent years, deep learning methods, especially convolutional neural networks (CNNs), have made great strides in ECG analysis and CAD diagnosis [34,35,36]. Deep neural networks are inspired by the brain’s structure and achieve disease diagnosis and classification through hierarchical feature learning. Typically, the effectiveness of a deep learning system hinges on the presence of substantial volumes of well-annotated training data specific to the model in question. Through streamlined data curation [37] and meticulous annotation processes [38], the integration of a deep learning system into a clinical imaging workflow becomes a seamless endeavor. For instance, multilayer perceptrons optimize the connection weights via gradient descent and excel in discovering nonlinear patterns in healthcare data [39].
For large-scale datasets, simple neural networks are insufficient and deep networks like CNNs are needed. CNNs automatically learn feature representations through convolution layers without manual feature engineering. Studies show the increasing prevalence of various deep networks for CAD diagnosis. Deep learning models can directly extract diagnostic features from raw ECG data, enabling end-to-end learning in a purely data-driven manner. For example, multilayer perceptron models achieved almost 100% classification accuracy on the Z-Alizadeh Sani dataset [40]. In summary, deep learning methods overcome the limitations of traditional machine learning by using hierarchical feature learning to precisely identify CAD from ECGs, representing the current research hotspot and development trend in this field.
Different from the above methods, this paper presents a new dataset (TET4CAD) containing the dynamic variation in the ECG under different states. Correspondingly, the proposed TETDiaNet perceives this variation by investigating the temporal relationships within individual ECGs under a single state and the correlations within individual ECGs between different states for CAD diagnosis.

3. TET4CAD Dataset

To our knowledge, the majority of clinicians rely on treadmill exercise test (TET) results for coronary artery disease (CAD) diagnosis, scrutinizing the dynamic variations in electrocardiograms (ECGs) across different states. Despite the significance of this a priori clinical experience, existing methods do not follow this priori experience since there is no publicly available dataset providing ECGs recorded under diverse physiological states This data absence hinders the performance improvement of machine CAD diagnosis. In a proactive effort to advance machine CAD diagnosis, we collected the TET4CAD dataset, and this work was approved by Beijing Hospital (protocol number: 2024BJYYEC-KY043-01).

3.1. Data Collection

The dataset comprised information gathered from 614 patients presenting with heart complaints at the Beijing Hospital. A skilled clinician administered both a treadmill exercise test (TET) and a coronary angiography (CAG) to determine the presence of coronary artery disease (CAD).
Patients underwent the TET following the established Bruce protocol, in alignment with the current guidelines for those under suspicion of CAD, as shown in Figure 1. All study participants had a Duke treadmill risk score of <−10. Retrospectively, TET reports were obtained from CASE, produced by GE Medical Systems Information Technologies Inc., for patients who underwent both TET and CAG within the same month. In addition, reports with non-periodic, noise-containing electrocardiogram (ECG) signals resulting from TET disturbances were excluded from the study with confirmation from cardiologists, resulting in a final dataset of 416 TET reports. Considering that clinicians make a diagnosis based on ECGs in different movement states, the TET4CAD dataset simplifies the TET report by sampling one 12-lead ECG for each of the pretest, exercise, and recovery states, respectively. Thus, each TET datum contains three ECGs under different states for CAD diagnosis. Table 1 outlines the baseline characteristics of the 416 patients included in the TET4CAD dataset.

3.2. Data Annotation

To promote the application of machine learning in CAD diagnostics, we have meticulously provided ground-truth labels for the TET4CAD dataset.
The ground-truth labeling process for TET reports was meticulously established based on CAG reports. Expert cardiologists assumed the responsibility of meticulously assessing the extent of lumen diameter narrowing in specific coronary arteries, including the right coronary artery, left main coronary artery, left anterior descending artery, and left circumflex artery. Reports that revealed an obstruction of 50% or more in any of these arteries were considered indicative of patients with obstructive coronary artery disease (CAD). Conversely, cases where the detected obstructions fell below the 50% threshold were categorized as non-obstructive CAD cases.
Following this process, in the final dataset of 416 TET reports, 192 patients were identified as having obstructive CAD (here, we assign CAD labels to them), while 224 patients had non-obstructive CAD (non-CAD labels are assigned to them).

3.3. Dataset Analysis

Compared to the datasets utilized in prior studies [12,13,14], the TET4CAD dataset uniquely encompasses the dynamic variations observed in ECGs across different states. This comes from our observations of clinicians diagnosing CAD. Specifically, patients manifest distinct ECG patterns throughout various states of TET. This dynamic change serves as a crucial diagnostic clue, routinely taken into consideration by clinicians when evaluating CAD based on TET reports. The TET4CAD dataset meticulously preserves this dynamic nature by retaining a set of 12-lead ECGs for each distinct state, providing a comprehensive representation of the evolving cardiac response during TET.
Furthermore, the distribution of different groups within our dataset is consistent with the demographics of CAD patients observed in Beijing Hospital. Table 1 reports the gender and age distributions of the proposed TET4CAD dataset. To our knowledge, the age and gender distributions are roughly similar to those of the datasets used in [12,13,14]. Specifically, there are 299 male and 117 female patients in TET4CAD according to Table 1, which maintains a general balance between the different genders. In terms of the age distribution, it shows a Gaussian distribution, and patients in the age ranges of ( 50 , 60 ] and ( 60 , 70 ] dominate the TET4CAD dataset. Based on our experience with the clinical diagnosis of CAD, these patients represent the main groups in CAD diagnosis and are most susceptible to CAD. Figure 2 plots the age distribution of the TET4CAD dataset, which is consistent with the age distribution of patients attending the Beijing Hospital. For the proposed TET4CAD dataset, there exist potential biases regarding age and gender, which could limit the generalizability of the diagnosis model trained on it. In the future, we will explore (1) the relationship between CAD and gender, as well as age, and (2) a diagnosis model with better generalization capabilities based on the proposed TET4CAD dataset.

4. Method

In this paper, we present an automatic CAD diagnostic method to explore the temporal relationships of TET. ECGs derived from TET reports are a novel type of ECG that can record the electrical signals of the heart in different states, including pretest, exercise, and recovery. A TET ECG can reflect the functional and metabolic changes of the heart, thus providing more information for CAD diagnosis.
In the newly built TET4CAD dataset, each sample provides 12-lead ECGs under three states for CAD diagnosis. However, these recorded ECGs are in PDF format, containing redundant elements like grids in the background, making them challenging to process. Therefore, the proposed method initiates with essential preprocessing steps. The preprocessing involves converting the PDF files into an image format, generating a group of images with a resolution of “ 1080 × 640 ”. Subsequently, the images undergo cropping to retain only the ECG region of interest and enhancement to mitigate the impact of background elements such as grids. More details of the preprocessing steps are provided in Section 4.1.
For a more rational interpretation of the ECGs of individual leads, the proposed method introduces TETDiaNet to investigate the temporal relationships of TET. TETDiaNet first divided the 12-lead ECGs into 12 patches according to the lead position and assigned them to different channels. Each channel corresponds to a single-lead ECG under a single state. Considering that clinicians diagnose CAD based on the dynamic changes in ECGs between different states, we design the TETDia block as the basic unit of TETDiaNet to explore the temporal relationships within individual ECGs under a single state and the correlations within individual ECGs between different states. Section 4.2 describes the technical details of TETDiaNet. In addition, Section 4.2.3 and Section 4.3 detail the structure of the classifier and the object function for the proposed method.
In summary, the proposed method consisting of a preprocessing module, a TETDiaNet, and a classifier captures these relationships like a clinical doctor, to learn the discriminative features for CAD diagnosis.

4.1. Preprocessing

The preprocessing module converts each simplified TET report in PDF format into a set of images. It consists of image conversion, image cropping, and image enhancement, as shown in Figure 3.

4.1.1. Format Conversion and Image Cropping

To correctly identify the state of each ECG, optical character recognition (OCR) techniques are utilized to scan the patients’ ECG PDF documents page by page, recognizing all textual information contained on each page. Then, three keywords are utilized to find the state of each page, namely pretest, exercise, and recovery. Specifically, a matching algorithm searches the OCR results against predefined keywords, acquiring the page numbers for the three state pages. Of note, noise filtering was applied to the OCR results to improve the matching accuracy by removing non-text noise.
For each PDF file with defined states, we converted it into a group of three images in PNG format. Each image corresponded to a 12-lead ECG for one state and had a resolution of “ 1080 × 640 ”. Then, the preprocessing module crops the images using predefined image coordinates to remove the non-ECG regions from the converted image. Using format conversion and image cropping, each sample in the database is transformed into a group of three images with different states.

4.1.2. Image Enhancement

TET pages contain rich information for CAD diagnosis. Some of the information, such as grid lines, is helpful for clinical diagnosis but can hinder machine diagnosis. To solve this problem, the preprocessing module leverages a series of image processing methods to enhance the image.
Specifically, as shown in Figure 3, the original ECG image is first converted into the grayscale space. This behavior simplifies the image so that it contains only grayscale information, providing a basis for subsequent processing steps. Subsequently, image enhancement is performed through a binarization process. Binarization entails converting the grayscale image into a black-and-white format. By setting a threshold, pixels with values above the threshold are rendered white, while those below are rendered black. With this step, the background areas with grayscale values below the threshold are set to white, while the ECGs are retained, as shown in Figure 3.
With these image processing methods, we can highlight key features, reduce noise, and eliminate unnecessary details, providing a clearer image foundation for subsequent analysis and diagnosis.

4.2. TETDiaNet

To our knowledge, clinicians make CAD diagnoses by observing the dynamic changes in the ECG under different states in the TET report. Based on this observation, we propose TETDiaNet to mimic this diagnostic process, as shown in Figure 4. The complete architecture of the proposed TETDiaNet is reported in Table 2.
In Figure 4, each sample contains three images with a 12-lead ECG. TETDiaNet first splits the image group into 12 parts according to the lead localization, and each part corresponds to a single lead. The split parts are assigned to different channels, i.e., 12 × 3 = 36 channels. The re-assigned features are fed into TETDiaNet, consisting of multiple TETDia blocks for feature extraction. The TETDia block is the core and basic unit of TETDiaNet, and it is composed of an intra-state contextual learning module and an inter-state contextual learning module. The TETDia block leverages the intra-state contextual learning module to investigate the temporal relationships within individual ECGs under a single state and the inter-state contextual learning module to learn the correlations between different states. Section 4.2.1 and Section 4.2.2 detail the structure of these modules within the TETDia block.

4.2.1. Intra-State Contextual Learning Module

In the TETDia block, the intra-state contextual learning module explores the temporal relationships within individual ECGs, which is the foundation for the determination of the dynamic variations in the ECGs under different states.
Since different channels correspond to distinct ECGs, the intra-state contextual learning module leverages a convolution layer with dense groups to efficiently capture the complex temporal relationships within a single ECG. Specifically, this module divides the input channels into distinct groups, and each group contains only a single channel. For each group, the intra-state contextual learning module performs convolution separately within each group. This processing can be formulated as
IR k , l , m = i , j K i , j , m · F k + i 1 , l + j 1 , m ,
where K is the convolutional kernel of size D k × D k × M for the intra-state contextual learning module, F is the input feature map, and IR is the output of the module. The m-th filter in K is applied to the m-th channel in F to produce the m-th channel of the filtered output feature map IR.
Through dense grouping channels and independent convolutions, the intra-state contextual learning module can effectively learn complex patterns without introducing additional parameters. In addition, its computational complexity is proportional to the number of groups, making it efficient for ECG analysis within a single ECG.

4.2.2. Inter-State Contextual Learning Module

The inter-state contextual learning module is the other important part of the TETDia block. It investigates the dynamic changes in the ECG under different states as the clinician does by learning the correlations between different states for each lead.
To achieve this, the inter-state contextual learning module leverages multiple 1 × 1 convolutions, as shown in Figure 4. Each 1 × 1 convolution aggregates the features of the same lead to learn the correlations of the lead between different states. Assuming that IR R H × W × C is the input for this module, we can divide IR into 12 groups and suppose that the g-th group IR g corresponds to the g-th lead. Then, 12 1 × 1 convolutions are used for inter-state contextual learning. For the g-th lead, its corresponding feature can be computed as
IT k , l , g , m o u = m i n K 1 , 1 , g , m i n , m o u I T · IR k , l , g , m i n ,
where K I T is the g-th 1 × 1 convolutional kernel of size 1 × 1 × M i n × M o u for the inter-state contextual learning module, IR g is the input feature map ( IR g represents the g-th group of IR), and IT is the output of the module ( IT g denotes the g-th group of IT). m i n and m o u indicate the input channel and the output channel of the g-th convolution.
The inter-state contextual learning module enables the TETDia block to adjust the feature representations across states. This is particularly beneficial in the context of 12-lead ECG images, where each channel corresponds to the specific ECG of an individual lead capturing distinct cardiac information. In other words, this module learns the correlations between different states for each lead, which helps the TETDia block to investigate the dynamic changes in the ECG under different states as a clinician does.

4.2.3. Classifier

TETDiaNet learns discriminative features for CAD diagnosis by investigating the temporal relationships within individual ECGs under a single state and between different states. Based on the features learned by TETDiaNet, the proposed method employs a multilayer perceptron (MLP) as the classifier for CAD diagnosis.
Specifically, we flatten the features generated by TETDiaNet to obtain a one-dimensional vector. Then, this vector is fed into the classifier to produce a vector with a length of 2. A SoftMax function is utilized to normalize the vector, and each element of the normalized vector can be regarded as the probability that the patient has or does not have CAD. This processing can be defined as follows:
y ^ i = SoftMax { MLP [ Flatten ( F i ) ] } ,
where y ^ i is the diagnosis prediction of F i , and i indicates the features and predictions. SoftMax denotes the SoftMax function. MLP ( · ) and Flatten ( · ) are the operations of the MLP classifier and flatten operation. The final prediction is determined by applying a threshold of 0.5. Predictions greater than or equal to 0.5 are classified as positive (CAD), while predictions below 0.5 are classified as negative (non-CAD).

4.3. Object Function

Since CAD diagnosis is a binary classification task, the cross-entropy loss is applied here as the object function. The proposed method optimizes the TETDiaNet and the classifier by minimizing this object function. The object function for the proposed method can be formulated as
L = 1 N i = 1 N c = 1 C y i , c log ( y ^ i , c ) ,
where y i , c and y ^ i , c denote the ground-truth label and prediction of the i-th sample. c = 1 , 2 , , C represents the CAD classes, and C = 2 . Based on Equation (4), we train an optimal TETDiaNet for CAD diagnosis.

5. Experiments

This section evaluates the diagnostic performance of the proposed method on the self-built TET4CAD dataset. Section 5.1 and Section 5.2 describe the TET4CAD dataset and evaluation metrics. Section 5.3 details the data augmentation and parameter settings. We compare the proposed method with the baseline methods mentioned in Section 5.4. Section 5.5 includes a visualization analysis using ROC curves and t-SNE to depict the contributions of the proposed modules to the performance improvement. In addition, we conduct a diagnostic analysis based on age and gender in Section 5.6.

5.1. Dataset

We conduct the subsequent experiments on the self-built TET4CAD dataset. This dataset was approved by Beijing Hospital (protocol number: 2024BJYYEC-KY043-01). In brief, 416 patients experiencing cardiac discomfort actively participated in data collection. Each participant underwent both the treadmill exercise test (TET) and coronary angiography (CAG) for CAD diagnosis, which contributed to the collection of TET data and the annotation of diagnosis labels. More details can be found in Section 5.1.
In the subsequent experiments, we randomly select 353 TET data from TET4CAD for the training set. This subset comprises 161 samples diagnosed with CAD through CAG, and the remaining 192 without CAD. Furthermore, the remaining 63 samples constitute the testing set. In the testing set, 31 samples are diagnosed with CAD, while 32 remain CAD-free. Table 3 provides more details of the training and testing sets.

5.2. Evaluation Metrics

To measure the diagnostic performance of the proposed method and the compared methods, a variety of evaluation metrics are applied here.
Some metrics leverage quantitative results to evaluate diagnosis methods, including accuracy, sensitivity, and specificity. Specifically, assuming that we have access to the predictions and true labels of N samples, we can be informed of the true negatives (TN) and true positives (TP). TN are instances where the model correctly predicts the absence of CAD when it is indeed absent in the actual data, while TP are instances where the model correctly predicts the presence of CAD when it is indeed present in the actual data. Meanwhile, we can obtain false negatives (FN), where the model incorrectly predicts the absence of CAD when it is actually present in the actual data, and false positives, where the model incorrectly predicts the presence of CAD when it is actually absent in the actual data. These three metrics can be defined as follows. Accuracy is a measure of the overall correctness of a diagnostic test and represents the ratio of correctly identified cases (both true positives and true negatives) to the total number of cases. Accuracy can be computed as
accuracy = T P + T N N .
Regarding sensitivity, it is also known as the true positive rate or recall, and it gauges the ability of a diagnostic test to correctly identify individuals who truly have the disease. It is given by the formula
sensitivity = T P T P + F N .
As for specificity, it measures the accuracy of a diagnostic test in correctly identifying individuals without the disease. Specificity can be computed via the following formula:
specificity = T N T N + F P .
Precision is the proportion of true positive predictions among all positive predictions made by a diagnostic or predictive model. Precision can be computed via the following formula:
precision = T P T P + F P .
Negative predictive value (NPV) is the proportion of true negative predictions among all negative predictions made by a diagnostic or predictive model, which can be computed via the following formula:
NPV = T N T N + F N .
All five of these are positive metrics, i.e., higher values of these metrics (accuracy, sensitivity, specificity, prevision, and NPV) correspond to better diagnosis performance.
In addition to these quantitative evaluation metrics, we also provide some visualization results for a qualitative comparison. The receiver operating characteristic (ROC) curve is a graphical representation used to assess the performance of a binary classification model across different thresholds. We apply it to illustrate the trade-off between the true positive rate (sensitivity) and the false positive rate (1-specificity) as the discrimination threshold for the classification of positive instances is varied. Moreover, t-distributed stochastic neighbor embedding (t-SNE) is employed to visualize high-dimensional data in a lower-dimensional space. Specifically, we output the features with a dimension of 256 from TETDiaNet and map them into a lower-dimensional space while preserving the pairwise similarities between points. This visualization of t-SNE effectively reveals the underlying structure and relationships within the data, which can show the contribution of the proposed method to the performance improvement.

5.3. Experimental Settings

In the subsequent experiments, we implement the proposed approach on a platform with RedHat 4.8.5, Xeon(R) E5-2620, a 1 TITAN X GPU, and PyTorch 1.8. The experimental settings are described in detail below.

5.3.1. Baseline Methods

We take four representative machine learning approaches as the baseline methods for comparison, and they can be roughly divided into two categories. The first is a non-deep learning method, i.e., support vector machine (SVM) [41,42]. SVM is a supervised machine learning algorithm used for classification by finding a hyperplane that best separates the data into different classes or predicts a continuous target variable. The second category is deep learning methods, including AlexNet [43], GoogleNet [44], and ResNet18 [45]. AlexNet sparked this century’s trend of using deep learning to solve vision problems. It achieves recognition performance beyond that of the human eye by using a structure with five convolutional layers followed by max-pooling layers and three fully connected layers. GoogleNet presents an inception module, which concatenates filters of different sizes within the same layer. This architecture promotes the capture of both local and global features effectively. ResNet18 introduces residual connections, making it easier to train deeper models without suffering from vanishing or exploding gradients.

5.3.2. Data Augmentation

To enrich the data diversity, we adapt the data augmentation operations employed in [12,14], including slight blurring and binarization with different thresholds generated by simple thresholding, Otsu thresholding, or adaptive thresholding.

5.3.3. Parameters

For the baseline methods, the paper applies the hyperparameter settings from the published literature and retrains them under our evaluation protocols. As for the proposed method, Table 2 and Figure 4 show its structure. For a fair comparison, the related experiments employ the same optimizer and optimization strategy for all methods. The optimizer uses Adam with a learning rate of 10 5 for TETDiaNet and a learning rate of 10 4 for the classifier. In addition, the batch size is set to 30, and the maximum number of epochs is 2000.

5.4. Diagnostic Accuracy

To demonstrate the effectiveness of the proposed method, we conduct experiments on the self-built TET4CAD dataset. The baseline methods mentioned in Section 5.3 are employed as comparison methods, while the accuracy, sensitivity, and specificity detailed in Section 5.2 are the metrics applied to evaluate our method. We reproduce the compared methods by following the settings in Section 5.3 and apply the same preprocessing (Section 4.1) and data augmentation for a fair comparison. We perform five repetitions of the experiment for all methods and calculate their average accuracy, sensitivity, and specificity as the final experimental results. The results of the reproduced methods are assumed to be their best scores regarding diagnostic performance. Table 4 shows their performance, and we highlight the best results in bold.
According to the results in Table 4, the following conclusions can be reached.
1. The newly built dataset, TET4CAD, has the potential to play a pivotal role in catalyzing advancements in CAD diagnosis. The diagnostic capabilities of various methods on TET4CAD are systematically presented in Table 4. Notably, the experimental outcomes affirm the commendable diagnostic accuracy achieved by ResNet18 and our method, surpassing previous benchmarks [12,13]. This performance improvement can be attributed to the unique characteristics of the present dataset, which offers multiple ECGs recorded under diverse physiological states for the same patient. The inclusion of such varied ECG data allows machine learning methods to probe and leverage the dynamic variations in cardiac signals across different physiological states. This exploration of nuanced information contributes significantly to the enhanced performance observed in CAD diagnosis, underlining the potential of TET4CAD as a valuable resource to advance cardiovascular health research.
2. The proposed TETDiaNet showcases exceptional performance when evaluated on the TET4CAD dataset. The comprehensive comparison, as illustrated in Table 4, underscores the notable performance superiority of our algorithm over ResNet18 with the closest structure, namely ↑10.45%@accuracy in the relative value. The observed enhancement in performance can be ascribed to the algorithm’s adept exploration of the dynamic variation across different states in a single-lead ECG. Specifically, our algorithm explicitly delves into the temporal correlations between ECGs captured under the same physiological state and those recorded during different states, achieving this through the judicious combination of intra-state and inter-state contextual learning modules. The systematic exploration of these temporal correlations yields a more comprehensive understanding of the underlying patterns, contributing significantly to the algorithm’s heightened performance in contrast to ResNet18. This emphasis on the temporal interdependencies within the data is identified as a critical factor in achieving superior performance improvements, thereby reinforcing TETDiaNet’s efficacy in the context of CAD diagnosis on the TET4CAD dataset.
3. The proposed TETDiaNet introduces a notable reduction in computational complexity when contrasted with ResNet18, as highlighted in Table 4. The presented result unequivocally reveals a 72.74% decrease in the computational cost of the proposed method compared to Resnet18, the model with the closest structural affinity. This computational economy primarily emanates from the distinctive TETDia block integrated within TETDiaNet. In contrast to traditional convolution, the TETDia block divides ECG analysis into two specialized modules for CAD diagnosis, i.e., the intra-state contextual learning module and the inter-state contextual learning module. The former delves into the exploration of the temporal correlations within a single physiological state, while the latter explicitly investigates the temporal correlations between different physiological states. This innovative design not only contributes to an improvement in diagnostic performance but also concurrently reduces the computational complexity. The discerning separation of intra-state and inter-state analyses not only refines the diagnostic efficacy but also enhances the algorithmic speed, expanding the range of applicable scenarios for the TETDiaNet model.

5.5. Visualization Analysis

To provide a comprehensive qualitative evaluation of the proposed methodology, we employ ROC curves and t-SNE for visualization analysis. The ROC curves serve as a discerning metric, elucidating the superior performance of the proposed method through an analysis of the curve distributions. In contrast, t-SNE leverages an unsupervised clustering algorithm to visualize feature distributions in a two-dimensional space. This representation encapsulates both within-class compactness and cross-class discrimination, offering insights into the diagnostic efficacy of the proposed method. Figure 5 and Figure 6 illustrate the ROC curves and t-SNE, facilitating a qualitative comparison of the proposed methodologies and providing a nuanced understanding of their diagnostic capabilities.
1. Regarding ROC curves. As a common visualization analysis tool, the ROC curve illustrates the performance of an algorithm by showing the change in the true positive rate as the false positive rate increases. Notably, proximity to the upper-left corner of the ROC space correlates with enhanced diagnostic performance. The closer the curve is to the upper-left corner, the better the performance of the diagnosis method. In the context of our study, the ROC curve of the proposed TETDiaNet, as illustrated in Figure 5, shows close proximity to the upper-left corner. This positioning unequivocally signifies its superior performance over the comparative methods under consideration. This performance improvement comes from the TETDia block. It captures rich information for diagnosis by analyzing the temporal correlations within a single state and between different states. Figure 5 demonstrates the effectiveness of the proposed method and supports the above analysis.
Figure 5 also reports the area under curve (AUC) values of the compared methods and the proposed TETDiaNet in the lower-right area. Obviously, the proposed TETDiaNet has the highest AUC of 0.95, which demonstrates the superior diagnosis performance of the proposed method. Moreover, compared to the non-deep learning method (i.e., SVM), deep learning methods such as TETDiaNet, ResNet18, GoogleNet, and AlexNet exhibit higher AUC values. This demonstrates the great power of deep learning models for medical diagnosis.
In addition, Figure 5 indicates that the ROC curve of TETDiaNet is not always on the upper-left side of the other curves. Specifically, when the false positive rate (FPR) is greater than 0.76, the ROC curve of the proposed TETDiaNet lies on the lower side of the curves of ResNet18 and AlexNet. This illustrates that the proposed TETDiaNet is not the best choice when we require more accurate diagnosis performance under a high FPR (i.e., high accuracy under low misdiagnosis).
2. Regarding t-SNE. Figure 6 presents a visual depiction of the feature distribution of sample points, crucial for the qualitative analysis. By comparing it with the t-SNE of ResNet18, a noteworthy observation emerges, i.e., the proposed method showcases a more compact distribution of sample points, rendering it more amenable to segmentation by a hyperplane. This intraclass compactness and interclass separability in the distribution underscore the efficacy of TETDiaNet in distinguishing between patients with and without CAD based on their TET reports. This performance advance stems from the following two aspects. First, the TET4CAD dataset contributes significantly to this discriminative capability. It provides multiple ECGs of the same person and maintains the ECGs’ dynamic variation under diverse states in the TET report. Second, the proposed method not only captures temporal correlations within the same state but also explicitly explores temporal correlations across different states. This dual consideration enhances the algorithm’s ability to discern subtle variations in ECG patterns, affirming its effectiveness and efficiency in CAD diagnosis.

5.6. Diagnostic Analysis Based on Gender and Age

The TET report, being a composite reflection of an individual’s physiological response to exercise stress, is inherently influenced by various factors, including physical fitness, gender, and age. In an effort to deepen our understanding of the intricate relationship between machine diagnostics and these influencing factors, this section undertakes a focused diagnostic analysis based on gender and age. To systematically investigate these associations, volunteers are stratified into distinct groups based on their gender or age, facilitating separate diagnostic analyses for each subgroup. Table 5 shows the diagnostic results of the proposed method for different genders and different age groups.
1. Regarding gender. Table 5 indicates a discernible trend wherein the proposed diagnostic method exhibits superior performance for males, achieving accuracy of 91.27%, compared to 86.69% for females. This diagnostic gender bias is caused by the following two aspects. First, clinical experience suggests that gender does affect TET reports. The optimization of the proposed TETDiaNet relies solely on ECGs derived from TET reports. Therefore, TET reports affected by gender would lead to a discrepancy in the diagnostic accuracy of the proposed TETDiaNet for different genders. Second, TET4CAD provides more male samples than female samples. This scale discrepancy regarding the different genders would influence the optimization of the proposed method, leading to a diagnostic gender bias. In summary, the results in Table 5 robustly affirm the observed gender-specific diagnostic tendencies. In addition, this diagnostic gender bias illustrates that TETDiaNet does extract valuable and informative clues from the ECGs of TET reports, verifying the effectiveness of the proposed method for CAD diagnosis.
2. Regarding Age. In Table 5, we also observe a similar predictive bias for different ages. Specifically, individuals younger than 50 are more likely to be correctly diagnosed by TETDiaNet. On the one hand, this indicates the sensitivity of the proposed TETDiaNet to age-related factors. This susceptibility to age influences is attributed to the fact that our method solely relies on the ECGs in TET reports, which are known to be affected by age. Therefore, the diagnosis performance of the proposed method is driven by the age factor. On the other hand, the predictive bias for different ages also underscores the effectiveness of TETDiaNet in extracting informative dynamic variations in ECGs under different states from TET reports, improving the diagnosis accuracy.

5.7. Sensitivity Analysis

Section 5.4, Section 5.5 and Section 5.6 demonstrate the effectiveness of the proposed method via quantitative and qualitative experiments. However, there is an important hyperparameter in the proposed TETDiaNet, i.e., g in Equation (2). g defines the number of divided groups of the inter-state contextual learning module. We recommend g = 12 considering that there are 12 leads in each ECG. To explore the impact of g on the diagnosis performance, this section presents a parameter sensitivity analysis by choosing g from 4 , 6 , 9 , 12 , 18 (these numbers can be divided by 36). Figure 7 plots the accuracy curve with respect to g.
In Figure 7, the accuracy curve initially exhibits a sharp increase followed by a gradual decrease with the increment in the parameter g, and we can obtain the highest accuracy of 87.53% at g = 12 . When g is smaller than 12, ECG features from different leads are assigned to the same group. In contrast, the ECG features from the same lead would occupy multiple groups when g is larger than 12. However, both cases would hinder the intra-state contextual learning module in the next layer to learn discriminative features for CAD diagnosis. Based on the above results and analysis, we recommend g = 12 for the best diagnosis performance.

6. Conclusions

To prompt the development of machine CAD diagnosis, this paper proposes a treadmill exercise test (TET) dataset named TET4CAD and a new approach to CAD diagnosis. The TET4CAD dataset contains TET reports with annotations for 192 CAD patients and 224 non-CAD patients. To facilitate subsequent automatic CAD diagnosis, the dataset simplifies the TET report by retaining only the three electrocardiograms (ECGs) corresponding to three states, namely pretest, exercise, and recovery. Specialized clinicians label each TET report according to the corresponding coronary angiography (CAG) result. Regarding the proposed approach, it applies a pipeline of “preprocessing–feature extraction–classifier”. The preprocessing step converts the ECGs in PDF format to a group of images and employs a series of image processing methods to obtain clear ECGs for each patient. In the feature extraction step, our approach presents a new backbone network named TETDiaNet to investigate the temporal relationships within TET ECGs. Specifically, TETDiaNet designs a TETDia block as the basic unit. The TETDia block mimics the diagnostic process of clinicians to capture effective information for diagnosis. It comprises an intra-state contextual learning module and an inter-state contextual learning module, and they model the temporal relationships of ECGs within a single state and between states, respectively. Based on the relationships learned by the TETDia block, the proposed TETDiaNet can work like a clinician to analyze the TET report for CAD diagnosis. The experimental results on TET4CAD demonstrate the superior performance of the proposed approach and indicate that the temporal relationship within TET ECGs is a discriminative clue for CAD diagnosis. In the future, we will further explore the temporal relationships within the TET ECG for the better interpretability of the proposed method.

Author Contributions

Conceptualization, J.W.; Methodology, J.W. and B.P.; Software, J.W. and B.P.; Formal analysis, J.W. and Y.G.; Investigation, J.W., Y.G., X.L. and X.G.; Data curation, Y.G., X.L. and B.S.; Writing—original draft, J.W. and B.P.; Writing—review & editing, J.W., D.L. and X.G.; Visualization, J.W.; Supervision, D.L. and X.G.; Project administration, D.L.; Funding acquisition, X.G. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the China Postdoctoral Science Foundation under Grant 2023M33705, the National Natural Science Foundation of China under Grant 62306307 and Grant 62376264, and the National Key Research and Development Program of China under Grant 2020YFC2003000.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki, and approved by the Institutional Review Board (or Ethics Committee) of the Beijing Hospital (protocol: 2024BJYYEC-KY043-01, date: 26 February 2024).

Informed Consent Statement

Study Protocol Approved for Waiver of Informed Consent.

Data Availability Statement

Dataset available on request from the corresponding author Deping Liu ([email protected]).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Libby, P.; Theroux, P. Pathophysiology of coronary artery disease. Circulation 2005, 111, 3481–3488. [Google Scholar] [CrossRef]
  2. Fuster, V.; Badimon, L.; Badimon, J.J.; Chesebro, J.H. The pathogenesis of coronary artery disease and the acute coronary syndromes. N. Engl. J. Med. 1992, 326, 242–250. [Google Scholar]
  3. Schoepf, U.J.; Becker, C.R.; Ohnesorge, B.M.; Yucel, E.K. CT of coronary artery disease. Radiology 2004, 232, 18–37. [Google Scholar] [CrossRef]
  4. Abdulla, J.; Asferg, C.; Kofoed, K.F. Prognostic value of absence or presence of coronary artery disease determined by 64-slice computed tomography coronary angiography a systematic review and meta-analysis. Int. J. Cardiovasc. Imaging 2011, 27, 413–420. [Google Scholar] [CrossRef]
  5. Sun, Z.; Choo, G.; Ng, K.H. Coronary CT angiography: Current status and continuing challenges. Br. J. Radiol. 2012, 85, 495–510. [Google Scholar] [CrossRef]
  6. Gosselink, R.; Troosters, T.; Decramer, M. Exercise testing: Why, which and how to interpret. Breathe 2004, 1, 120–129. [Google Scholar] [CrossRef]
  7. Miller, T.D. Stress testing: The case for the standard treadmill test. Curr. Opin. Cardiol. 2011, 26, 363–369. [Google Scholar] [CrossRef]
  8. Banerjee, A.; Newman, D.R.; Van den Bruel, A.; Heneghan, C. Diagnostic accuracy of exercise stress testing for coronary artery disease: A systematic review and meta-analysis of prospective studies. Int. J. Clin. Pract. 2012, 66, 477–492. [Google Scholar] [CrossRef]
  9. Lee, S.; Chu, Y.; Ryu, J.; Park, Y.J.; Yang, S.; Koh, S.B. Artificial intelligence for detection of cardiovascular-related diseases from wearable devices: A systematic review and meta-analysis. Yonsei Med. J. 2022, 63, S93. [Google Scholar] [CrossRef]
  10. Nadarajah, R.; Wu, J.; Frangi, A.F.; Hogg, D.; Cowan, C.; Gale, C.P. What is next for screening for undiagnosed atrial fibrillation? Artificial intelligence may hold the key. Eur. Heart J. Qual. Care Clin. Outcomes 2022, 8, 391–397. [Google Scholar] [CrossRef]
  11. Khurshid, S.; Friedman, S.; Reeder, C.; Di Achille, P.; Diamant, N.; Singh, P.; Harrington, L.X.; Wang, X.; Al-Alusi, M.A.; Sarma, G.; et al. ECG-based deep learning and clinical risk factors to predict atrial fibrillation. Circulation 2022, 145, 122–133. [Google Scholar] [CrossRef]
  12. Lee, Y.H.; Tsai, T.H.; Chen, J.H.; Huang, C.J.; Chiang, C.E.; Chen, C.H.; Cheng, H.M. Machine learning of treadmill exercise test to improve selection for testing for coronary artery disease. Atherosclerosis 2022, 340, 23–27. [Google Scholar] [CrossRef]
  13. Yilmaz, A.; Hayıroğlu, M.İ.; Salturk, S.; Pay, L.; Demircali, A.A.; Coşkun, C.; Varol, R.; Tezen, O.; Eren, S.; Çetin, T.; et al. Machine learning approach on high risk treadmill exercise test to predict obstructive coronary artery disease by using P, QRS, and T waves’ features. Curr. Probl. Cardiol. 2023, 48, 101482. [Google Scholar] [CrossRef]
  14. Lu, J.; Stewart, J.; Bennamoun, M.; Goudie, A.; Eshraghian, J.; Ihdayhid, A.; Sanfilippo, F.; Small, G.R.; Chow, B.J.; Dwivedi, G. Deep learning model to predict exercise stress test results: Optimizing the diagnostic test selection strategy and reduce wastage in suspected coronary artery disease patients. Comput. Methods Programs Biomed. 2023, 240, 107717. [Google Scholar] [CrossRef]
  15. Conti, C.R.; Pepine, C.J.; Feldman, R.L.; Curry, R.C.; Christie, L.G.; Nichols, W.W. Angiographic definition of critical coronary artery stenosis. Adv. Cardiol. 1979, 26, 100–109. [Google Scholar]
  16. Chang, H.J.; Lin, F.Y.; Lee, S.E.; Andreini, D.; Bax, J.; Cademartiri, F.; Chinnaiyan, K.; Chow, B.J.; Conte, E.; Cury, R.C.; et al. Coronary atherosclerotic precursors of acute coronary syndromes. J. Am. Coll. Cardiol. 2018, 71, 2511–2522. [Google Scholar] [CrossRef]
  17. LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef]
  18. Kamilaris, A.; Prenafeta-Boldú, F.X. Deep learning in agriculture: A survey. Comput. Electron. Agric. 2018, 147, 70–90. [Google Scholar] [CrossRef]
  19. Tesche, C.; De Cecco, C.N.; Baumann, S.; Renker, M.; McLaurin, T.W.; Duguay, T.M.; Bayer, R.R., 2nd; Steinberg, D.H.; Grant, K.L.; Canstein, C.; et al. Coronary CT angiography–derived fractional flow reserve: Machine learning algorithm versus computational fluid dynamics modeling. Radiology 2018, 288, 64–72. [Google Scholar] [CrossRef]
  20. Cho, H.; Lee, J.G.; Kang, S.J.; Kim, W.J.; Choi, S.Y.; Ko, J.; Min, H.S.; Choi, G.H.; Kang, D.Y.; Lee, P.H.; et al. Angiography-based machine learning for predicting fractional flow reserve in intermediate coronary artery lesions. J. Am. Heart Assoc. 2019, 8, e011685. [Google Scholar] [CrossRef]
  21. Beunza, J.J.; Puertas, E.; García-Ovejero, E.; Villalba, G.; Condes, E.; Koleva, G.; Hurtado, C.; Landecho, M.F. Comparison of machine learning algorithms for clinical event prediction (risk of coronary heart disease). J. Biomed. Inform. 2019, 97, 103257. [Google Scholar] [CrossRef]
  22. Gola, D.; Erdmann, J.; Müller-Myhsok, B.; Schunkert, H.; König, I.R. Polygenic risk scores outperform machine learning methods in predicting coronary artery disease status. Genet. Epidemiol. 2020, 44, 125–138. [Google Scholar] [CrossRef]
  23. Wolterink, J.M.; Leiner, T.; Takx, R.A.; Viergever, M.A.; Išgum, I. Automatic coronary calcium scoring in non-contrast-enhanced ECG-triggered cardiac CT with ambiguity detection. IEEE Trans. Med. Imaging 2015, 34, 1867–1878. [Google Scholar] [CrossRef]
  24. Denzinger, F.; Wels, M.; Ravikumar, N.; Breininger, K.; Reidelshöfer, A.; Eckert, J.; Sühling, M.; Schmermund, A.; Maier, A. Coronary artery plaque characterization from CCTA scans using deep learning and radiomics. In Medical Image Computing and Computer Assisted Intervention—MICCAI 2019, Proceedings of the 22nd International Conference, Shenzhen, China, 13–17 October 2019; Proceedings, Part IV 22; Springer: Cham, Switzerland, 2019; pp. 593–601. [Google Scholar]
  25. Gao, Z.; Wang, L.; Soroushmehr, R.; Wood, A.; Gryak, J.; Nallamothu, B.; Najarian, K. Vessel segmentation for X-ray coronary angiography using ensemble methods with deep learning and filter-based features. BMC Med. Imaging 2022, 22, 10. [Google Scholar] [CrossRef]
  26. Zhang, J.; Zhu, H.; Chen, Y.; Yang, C.; Cheng, H.; Li, Y.; Zhong, W.; Wang, F. Ensemble machine learning approach for screening of coronary heart disease based on echocardiography and risk factors. BMC Med. Inform. Decis. Mak. 2021, 21, 187. [Google Scholar] [CrossRef]
  27. Huang, Y.C.; Chen, K.Y.; Li, S.J.; Liu, C.K.; Lin, Y.C.; Chen, M. Implementing an Ensemble Learning Model with Feature Selection to Predict Mortality among Patients Who Underwent Three-Vessel Percutaneous Coronary Intervention. Appl. Sci. 2022, 12, 8135. [Google Scholar] [CrossRef]
  28. Baskaran, L.; Ying, X.; Xu, Z.; Al’Aref, S.J.; Lee, B.C.; Lee, S.E.; Danad, I.; Park, H.B.; Bathina, R.; Baggiano, A.; et al. Machine learning insight into the role of imaging and clinical variables for the prediction of obstructive coronary artery disease and revascularization: An exploratory analysis of the CONSERVE study. PLoS ONE 2020, 15, e0233791. [Google Scholar] [CrossRef]
  29. Chen, T.; Guestrin, C. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar]
  30. Al’Aref, S.J.; Singh, G.; van Rosendael, A.R.; Kolli, K.K.; Ma, X.; Maliakal, G.; Pandey, M.; Lee, B.C.; Wang, J.; Xu, Z.; et al. Determinants of in-hospital mortality after percutaneous coronary intervention: A machine learning approach. J. Am. Heart Assoc. 2019, 8, e011160. [Google Scholar] [CrossRef]
  31. Freund, Y.; Schapire, R.E. Experiments with a new boosting algorithm. In Proceedings of the ICML, Bari, Italy, 3–6 July 1996; Volume 96, pp. 148–156. [Google Scholar]
  32. Ho, T.K. Random decision forests. In Proceedings of the 3rd International Conference on Document Analysis and Recognition, Montreal, QC, Canada, 14–16 August 1995; Volume 1, pp. 278–282. [Google Scholar] [CrossRef]
  33. Du, Z.; Yang, Y.; Zheng, J.; Li, Q.; Lin, D.; Li, Y.; Fan, J.; Cheng, W.; Chen, X.H.; Cai, Y.; et al. Accurate prediction of coronary heart disease for patients with hypertension from electronic health records with big data and machine-learning methods: Model development and performance evaluation. JMIR Med. Inform. 2020, 8, e17257. [Google Scholar] [CrossRef]
  34. Zreik, M.; Lessmann, N.; van Hamersvelt, R.W.; Wolterink, J.M.; Voskuil, M.; Viergever, M.A.; Leiner, T.; Išgum, I. Deep learning analysis of the myocardium in coronary CT angiography for identification of patients with functionally significant coronary artery stenosis. Med. Image Anal. 2018, 44, 72–85. [Google Scholar] [CrossRef]
  35. Huang, W.; Huang, L.; Lin, Z.; Huang, S.; Chi, Y.; Zhou, J.; Zhang, J.; Tan, R.S.; Zhong, L. Coronary artery segmentation by deep learning neural networks on computed tomographic coronary angiographic images. In Proceedings of the 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Honolulu, HI, USA, 17–21 July 2018; pp. 608–611. [Google Scholar]
  36. Tatsugami, F.; Higaki, T.; Nakamura, Y.; Yu, Z.; Zhou, J.; Lu, Y.; Fujioka, C.; Kitagawa, T.; Kihara, Y.; Iida, M.; et al. Deep learning–based image restoration algorithm for coronary CT angiography. Eur. Radiol. 2019, 29, 5322–5329. [Google Scholar] [CrossRef] [PubMed]
  37. Erdal, B.S.; Prevedello, L.M.; Qian, S.; Demirer, M.; Little, K.; Ryu, J.; O’Donnell, T.; White, R.D. Radiology and enterprise medical imaging extensions (REMIX). J. Digit. Imaging 2018, 31, 91–106. [Google Scholar] [CrossRef] [PubMed]
  38. Demirer, M.; Candemir, S.; Bigelow, M.T.; Yu, S.M.; Gupta, V.; Prevedello, L.M.; White, R.D.; Yu, J.S.; Grimmer, R.; Wels, M.; et al. A user interface for optimizing radiologist engagement in image data curation for artificial intelligence. Radiol. Artif. Intell. 2019, 1, e180095. [Google Scholar] [CrossRef] [PubMed]
  39. Ghaderzadeh, M.; Sadoughi, F.; Ketabat, A. Designing a clinical decision support system based on artificial neural network for early detection of prostate cancer and differentiation from benign prostatic hyperplasia. Health Inf. Manag. 2012, 9, 457–464. [Google Scholar]
  40. Ghiasi, M.M.; Zendehboudi, S.; Mohsenipour, A.A. Decision tree-based diagnosis of coronary artery disease: CART model. Comput. Methods Programs Biomed. 2020, 192, 105400. [Google Scholar] [CrossRef]
  41. Hearst, M.A.; Dumais, S.T.; Osuna, E.; Platt, J.; Scholkopf, B. Support vector machines. IEEE Intell. Syst. Their Appl. 1998, 13, 18–28. [Google Scholar] [CrossRef]
  42. Steinwart, I.; Christmann, A. Support Vector Machines; Springer Science & Business Media: New York, NY, USA, 2008. [Google Scholar]
  43. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. Imagenet classification with deep convolutional neural networks. In Proceedings of the Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012, Lake Tahoe, NV, USA, 3–6 December 2012. [Google Scholar]
  44. Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 1–9. [Google Scholar]
  45. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
Figure 1. The illustration of the data collection and annotation of the TET4CAD dataset. The green box indicates the data collection of TET, while the blue box provides the details of annotation according to CAG. (“A” locates the basis for the clinician’s diagnosis of CAD based on this CAG report).
Figure 1. The illustration of the data collection and annotation of the TET4CAD dataset. The green box indicates the data collection of TET, while the blue box provides the details of annotation according to CAG. (“A” locates the basis for the clinician’s diagnosis of CAD based on this CAG report).
Sensors 24 02705 g001
Figure 2. The illustration of the age distribution of the 416 patients in TET4CAD.
Figure 2. The illustration of the age distribution of the 416 patients in TET4CAD.
Sensors 24 02705 g002
Figure 3. The pipeline of the preprocessing procedure. Initially, it transforms the TET report from its simplified PDF format into a set of three PNG images, optimizing them for further processing. Subsequently, the preprocessing module excises non-ECG regions through image cropping according to predefined coordinates. Finally, we convert the images to grayscale and apply binarization to augment the clarity and contrast of the images, thereby enhancing their suitability for subsequent analysis.
Figure 3. The pipeline of the preprocessing procedure. Initially, it transforms the TET report from its simplified PDF format into a set of three PNG images, optimizing them for further processing. Subsequently, the preprocessing module excises non-ECG regions through image cropping according to predefined coordinates. Finally, we convert the images to grayscale and apply binarization to augment the clarity and contrast of the images, thereby enhancing their suitability for subsequent analysis.
Sensors 24 02705 g003
Figure 4. Structure of TETDiaNet. TETDiaNet leverages multiple TETDia blocks to mimic the process of clinicians diagnosing CAD based on the dynamic variations in the ECG under different states in the TET report. The TETDia block consists of an intra-state contextual learning module and an inter-state contextual learning module. The former explores the temporal relationships within individual ECGs, while the latter investigates the dynamic changes in the ECG under different states as the clinician does by learning the correlations between different states for each lead.
Figure 4. Structure of TETDiaNet. TETDiaNet leverages multiple TETDia blocks to mimic the process of clinicians diagnosing CAD based on the dynamic variations in the ECG under different states in the TET report. The TETDia block consists of an intra-state contextual learning module and an inter-state contextual learning module. The former explores the temporal relationships within individual ECGs, while the latter investigates the dynamic changes in the ECG under different states as the clinician does by learning the correlations between different states for each lead.
Sensors 24 02705 g004
Figure 5. The comparison of the ROC curves of the compared method and the proposed TETDiaNet on the TET4CAD dataset.
Figure 5. The comparison of the ROC curves of the compared method and the proposed TETDiaNet on the TET4CAD dataset.
Sensors 24 02705 g005
Figure 6. The comparison of the t_SNE visualizations between ResNet18 and the proposed TETDiaNet on the TET4CAD dataset.
Figure 6. The comparison of the t_SNE visualizations between ResNet18 and the proposed TETDiaNet on the TET4CAD dataset.
Sensors 24 02705 g006
Figure 7. The sensitivity analysis of the number of groups (g) on the proposed TET4CAD dataset.
Figure 7. The sensitivity analysis of the number of groups (g) on the proposed TET4CAD dataset.
Sensors 24 02705 g007
Table 1. Dataset characteristics and patient statistics of the TET4CAD dataset.
Table 1. Dataset characteristics and patient statistics of the TET4CAD dataset.
CharacteristicsSample Size (Total = 416)
Gender
Male299
Female117
Diagnostic label
Obstructive CAD192
Non-obstructive CAD224
Age
≤4016
( 40 , 50 ] 39
( 50 , 60 ] 119
( 60 , 70 ] 118
>704
Table 2. The architecture of TETDiaNet.
Table 2. The architecture of TETDiaNet.
Type/StrideIntra-StateInter-StateLinearInput Size
D k × D k × C ( g ) C × C in C × out C
TETDia block 1 7 × 7 × 1 ( 12 ) 3 × 3 36 × 72 224 × 224 × 36
MaxPooling--- 56 × 56 × 72
TETDia block 2 3 × 3 × 1 ( 12 ) 6 × 6 72 × 72 56 × 56 × 72
TETDia block 3 3 × 3 × 1 ( 12 ) 6 × 6 72 × 72 56 × 56 × 72
TETDia block 4 3 × 3 × 1 ( 12 ) 6 × 6 72 × 144 56 × 56 × 144
TETDia block 5 3 × 3 × 1 ( 12 ) 12 × 12 144 × 144 28 × 28 × 144
TETDia block 6 3 × 3 × 1 ( 12 ) 12 × 12 144 × 288 28 × 28 × 128
TETDia block 7 3 × 3 × 1 ( 12 ) 24 × 24 288 × 288 14 × 14 × 288
TETDia block 8 3 × 3 × 1 ( 12 ) 24 × 24 288 × 288 14 × 14 × 288
TETDia block 9 3 × 3 × 1 ( 12 ) 24 × 24 288 × 288 14 × 14 × 288
TETDia block 10 3 × 3 × 1 ( 12 ) 24 × 24 288 × 576 14 × 14 × 288
TETDia block 11 3 × 3 × 1 ( 12 ) 48 × 48 576 × 576 7 × 7 × 576
TETDia block 12 3 × 3 × 1 ( 12 ) 48 × 48 576 × 576 7 × 7 × 576
TETDia block 13 3 × 3 × 1 ( 12 ) 48 × 48 576 × 576 7 × 7 × 576
AvgPool--- 7 × 7 × 576
Linear-- 576 × 128 1 × 1 × 576
Linear-- 128 × 2 1 × 1 × 128
SoftMax--- 1 × 1 × 2
Table 3. Training and testing sets for the TET4CAD Dataset.
Table 3. Training and testing sets for the TET4CAD Dataset.
SubsetSample Size (Total = 416)
Training set353
Obstructive CAD161
Non-obstructive CAD192
Testing set63
Obstructive CAD31
Non-obstructive CAD32
Table 4. Quantitative comparison on the self-built TET4CAD dataset. (%) Note: (1) Five repetitive experiments were conducted and we report their averages in this table. (2) The best results are highlighted in bold.
Table 4. Quantitative comparison on the self-built TET4CAD dataset. (%) Note: (1) Five repetitive experiments were conducted and we report their averages in this table. (2) The best results are highlighted in bold.
MethodsAccuracySensitivitySpecificityPrecisionNPV
SVM57.3575.6439.2755.4561.71
AlexNet62.6481.5242.6358.6969.76
GoogleNet68.9075.8161.8869.6886.07
ResNet1879.2566.8790.0187.0073.17
TETDiaNet (Ours)87.5391.1284.8985.7890.53
Table 5. Diagnostic analysis of gender and age on the self-built TET4CAD dataset. (%) Note: (1). The results were obtained through five replicate experiments conducted. (2). The best results are highlighted in bold.
Table 5. Diagnostic analysis of gender and age on the self-built TET4CAD dataset. (%) Note: (1). The results were obtained through five replicate experiments conducted. (2). The best results are highlighted in bold.
GroupAccuracySensitivitySpecificityPrecisionNPV
Gender
Male91.2792.6179.8482.1291.55
Female86.6980.5392.1491.1182.56
Age
≤40100.00100.00100.00100.00100.00
( 40 , 50 ] 100.00100.00100.00100.00100.00
( 50 , 60 ] 88.4790.8287.4387.8490.50
( 60 , 70 ] 85.9588.8783.5984.4388.25
>7080.0083.3375.0076.9281.82
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wei, J.; Pan, B.; Gan, Y.; Li, X.; Liu, D.; Sang, B.; Gao, X. Temporal Relationship-Aware Treadmill Exercise Test Analysis Network for Coronary Artery Disease Diagnosis. Sensors 2024, 24, 2705. https://doi.org/10.3390/s24092705

AMA Style

Wei J, Pan B, Gan Y, Li X, Liu D, Sang B, Gao X. Temporal Relationship-Aware Treadmill Exercise Test Analysis Network for Coronary Artery Disease Diagnosis. Sensors. 2024; 24(9):2705. https://doi.org/10.3390/s24092705

Chicago/Turabian Style

Wei, Jianze, Bocheng Pan, Yu Gan, Xuedi Li, Deping Liu, Botao Sang, and Xingyu Gao. 2024. "Temporal Relationship-Aware Treadmill Exercise Test Analysis Network for Coronary Artery Disease Diagnosis" Sensors 24, no. 9: 2705. https://doi.org/10.3390/s24092705

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop