Next Article in Journal
Coordinating Obstacle Avoidance of a Redundant Dual-Arm Nursing-Care Robot
Previous Article in Journal
Integrating OpenPose and SVM for Quantitative Postural Analysis in Young Adults: A Temporal-Spatial Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Cross-Stage Partial Network and a Cross-Attention-Based Transformer for an Electrocardiogram-Based Cardiovascular Disease Decision System

1
Department of Anesthesia, An Nan Hospital, China Medical University, Tainan City 709, Taiwan
2
Department of Medical Sciences Industry, Chang Jung Christian University, Tainan City 709, Taiwan
3
Department of Electrical Engineering, Southern Taiwan University of Science and Technology, Tainan City 71005, Taiwan
*
Author to whom correspondence should be addressed.
Bioengineering 2024, 11(6), 549; https://doi.org/10.3390/bioengineering11060549
Submission received: 6 May 2024 / Revised: 22 May 2024 / Accepted: 27 May 2024 / Published: 29 May 2024
(This article belongs to the Section Biosignal Processing)

Abstract

:
Cardiovascular disease (CVD) is one of the leading causes of death globally. Currently, clinical diagnosis of CVD primarily relies on electrocardiograms (ECG), which are relatively easier to identify compared to other diagnostic methods. However, ensuring the accuracy of ECG readings requires specialized training for healthcare professionals. Therefore, developing a CVD diagnostic system based on ECGs can provide preliminary diagnostic results, effectively reducing the workload of healthcare staff and enhancing the accuracy of CVD diagnosis. In this study, a deep neural network with a cross-stage partial network and a cross-attention-based transformer is used to develop an ECG-based CVD decision system. To accurately represent the characteristics of ECG, the cross-stage partial network is employed to extract embedding features. This network can effectively capture and leverage partial information from different stages, enhancing the feature extraction process. To effectively distill the embedding features, a cross-attention-based transformer model, known for its robust scalability that enables it to process data sequences with different lengths and complexities, is employed to extract meaningful embedding features, resulting in more accurate outcomes. The experimental results showed that the challenge scoring metric of the proposed approach is 0.6112, which outperforms others. Therefore, the proposed ECG-based CVD decision system is useful for clinical diagnosis.

1. Introduction

Cardiovascular disease (CVD) is a leading cause of death globally, not only impacting patient mortality but also affecting their quality of life and potentially leading to other complications that can jeopardize the health of vital organs. Additionally, CVD patients require significant time and healthcare resources, making early diagnosis essential for reducing harm and medical costs. Using electrocardiography (ECG) to diagnose CVD is the fastest and most convenient method for diagnosing CVD. However, accurate interpretation of the ECG requires extensive professional training and experience [1]. Therefore, developing automatic CVD decision systems for clinical assistance can improve the efficiency of CVD diagnosis and significantly alleviate the burden on healthcare systems.
CVD, such as coronary artery disease, arrhythmia, valvular heart disease, coronary artery heart disease, cerebrovascular disease, rheumatic heart disease, and other related diseases [2], not only affects the cardiovascular system but can also lead to other complications that jeopardize the health of vital organs. Thus, CVD poses a significant threat to human life by not only reducing the lifespan of patients but also impacting their quality of life. According to the World Health Organization, CVD claims the lives of 17.9 million people globally each year. Additionally, according to statistics from the Ministry of Health and Welfare in Taiwan in 2022, heart disease ranks second, causing approximately 23,000 deaths, following malignant tumors, which ranked first [3,4]. These statistics demonstrate the profound impact of CVD on individual health and healthcare resources, highlighting the importance of developing CVD detection systems to reduce harm, improve quality of life, and minimize the demand for healthcare resources.
Recently, CVD can be detected by using cardiac catheterization, echocardiography, and ECG. Cardiac catheterization is the most invasive and high-risk approach [5], usually reserved for cases where other methods cannot detect the disease or for cardiovascular disease treatment purposes. Echocardiography can be invasive or non-invasive [6,7], with a measurement time of at least 15 min. On the other hand, ECG is a non-invasive measurement method [8], requiring only the attachment of electrodes to the subject, and can be completed within five minutes. Therefore, using ECG is the most convenient method for detecting CVD. However, accurate interpretation of CVD using ECG requires extensive professional training and experience. Hence, developing intelligent CVD decision systems to assist professionals in accurately interpreting CVD through ECG can enhance their training and reduce their workload.
In recent years, deep learning techniques have been widely and successfully applied in various fields, demonstrating the high practicality of deep learning. Therefore, using deep learning techniques in CVD decision systems can effectively improve the recognition rate. In the context of CVD applications, PhysioNet and Cardiovascular Disease Computing jointly organized the PhysioNet Challenge to promote the technological development of CVD decision systems [9,10]. Zhu et al. used the SE-ResNet residual neural network architecture to detect CVD [11]. SE-ResNet can effectively enhance the feature extraction capability by adapting the importance of different feature channels based on learning the correlations between features. Zhao et al. proposed a deep neural network architecture that combined an improved ResNet with an SE layer [12]. The SE layer can model the spatial relationship between channels, and the improved ResNet can effectively learn features from time series data. Natarajan et al. developed a broad and deep transformer neural network for CVD classification [13]. This approach adopts a transformer neural network to learn discriminative feature representations from each 12-lead ECG sequence. Racha et al. used ResNet-type architectures, and the proposed architecture can effectively learn from shorter ECG segments [14]. Therefore, using novel neural network architectures can help develop CVD detection systems.
Neural networks have been applied to various fields [15,16,17,18]. The researchers showed that neural networks with deeper and broader architectures can significantly improve system performance. However, this would also require more parameters and computational resources. To address this issue, Wang et al. proposed a cross-stage partial network (CSPNet) to reduce the impact of parameters and computational resources [15]. Therefore, Ali et al. proposed GPA-Net, a neural network architecture that includes CSPNet, CTA, and SPA, and successfully developed a pest detection system based on the Internet of Things technology [16]. Hao et al. used CSPNet to design a lightweight convolutional neural network [17] for a synthetic aperture radar image ship target detection system. In this study, the developed neural network architecture has feature fusion capabilities to reduce model parameters and improve system accuracy. Ju et al. proposed the Graph-CSPNet architecture for developing a brain–computer interface based on motor imagery [18]. This neural network architecture utilizes graph convolution techniques to capture electroencephalography features in the time–frequency domain, enhancing the signal segmentation ability of local fluctuations and improving the recognition rate of the system. Therefore, integrating CSPNet into the CVD decision system can effectively reduce the complexity of the network architecture and then improve system performance.
The transformer networks have efficiency advantages, capturing long-range dependencies, extracting global information, flexibility in adjustment, and good generalization ability. Therefore, transformer networks have been widely used in various tasks, such as natural language processing, machine translation, sentiment analysis, and image processing [11,19,20,21,22]. Natarajan et al. [11], Li et al. [19], and Qiu et al. [20] have designed transformer network architectures for ECG-based applications, and the experimental results showed that the transformer network has high performance and is valid for practical applications. Thus, using the transformer network can improve the performance of the CVD decision system.
Cross-attention neural networks are developed to effectively capture the relationships between different input data [23,24,25,26,27,28], and then an enhanced feature representation can be extracted. Huang et al. proposed a novel cross-attention module that collects contextual information from all pixels along its cross-attention paths. Then the GPU memory usage is reduced by 11 times [23]. Chen et al. presented a dual-branch vision transformer for learning multi-scale features [24]. The proposed neural network is based on a cross-attention network, and a fusion method based on cross-attention is developed to efficiently exchange information between two branches in linear time. Recently, self-attention and cross-attention have been applied to the proposed intelligent systems [25,26], and the results showed that their method achieved better precision than other approaches. In addition, Lin et al. [27] and Huo et al. [28] use cross-attention mechanisms to enhance multi-scale feature maps in transformer-based neural networks, and then the computational overhead can be greatly reduced. Thus, for a CVD decision system, the cross-attention mechanism is very suitable for clinical application because it reduces computational resources.
In this study, an ECG-based CVD decision system with CSPNet and a cross-attention mechanism is proposed for clinical assistance and used to alleviate the burden on healthcare systems. To effectively reduce the complexity of the neural network architecture, CSPNet is adopted for feature extraction. To find a precise embedding feature representation, a transformer neural network is used to capture long-range dependencies and extract global information. To reduce computational resources, the cross-attention mechanism is integrated with the transformer neural network. Finally, a decision result is precisely identified using a multilayer perceptron network.
The rest of this paper is organized as follows: The proposed ECG-based CVD decision system with CSPNet and a cross-attention-based transformer is described in Section 2. Section 3 then conducts a series of experiments to evaluate the performance of our approach. Conclusions and recommendations for future research are finally drawn in Section 4.

2. The ECG-Based Cardiovascular Disease Decision System

The proposed neural network architecture for the CVD decision system with CSPNet and a cross-attention-based transformer is presented in Figure 1. First, a CSPNet is designed for feature extraction, and an embedding feature can be automatically extracted to represent an input ECG signal. Second, a transformer with a cross-attention mechanism is designed to effectively distill the embedding features to find a meaningful embedding feature and to reduce computational resources. Finally, a multilayer perceptron network is adopted to find the final decision. Each neuron in the multilayer perceptron network (FC) is connected to all neurons in the previous layer, and it follows the feedforward artificial neural network method. This process is described in detail in the following.

2.1. CBM Neural Network

A CBM neural network contains a convolutional layer, a batch normalization, and a mish activation function, and the neural network architecture is shown in Figure 2. The convolutional layer convolves the input, which is the output of previous layers, and passes its results as the output. A batch normalization process is used to normalize the layers’ inputs by re-centering and re-scaling to make the training of artificial neural networks faster and more stable. For an input of batch normalization, x, the operation of batch normalization, BN(∙), is defined as
BN x = γ x μ σ 2 + ε + β ,
where μ and σ are the per-dimension mean and standard deviation, respectively. ε is added in the denominator for numerical stability and is an arbitrarily small constant. γ and β are the transformation parameters subsequently learned in the optimization process.
The mish function is used as a smooth approximation of the rectifier, and it is defined as
Mish x = x tanh log 1 + e x ,
where tanh(∙) is the hyperbolic tangent.

2.2. Cross-Stage Partial Network

The CSPNet is a variant of the ResNet architecture, and it can achieve a richer gradient combination while reducing the amount of computation. The neural network architecture of the designed CSPNet is shown in Figure 3. N is the number of the used ResUnit, which is a residual network. The ResUnit, in which the weight layers learn residual functions concerning the layer inputs, and the architecture are shown in Figure 4. Moreover, the residual network can be easily trained to obtain better accuracy. Thus, for the proposed CSPNet, the residual network is selected as the ResUnit, composed of two CBM units. Moreover, the output of the ResUnit is added to the input by using element-wise addition.
In the CSPNet, dropouts are adopted to reduce overfitting in neural networks. At each training stage, individual nodes are removed with a predefined probability, and the reduced network is trained on the data during that stage.

2.3. Cross-Attention-Based Transformer

The proposed cross-attention-based transformer includes a transformer unit and a cross-attention unit, and the neural network architecture is shown in Figure 5. The cross-attention-based transformer contains no recurrence and no convolution. To use the order of the sequence, some information about the relative or absolute position of the tokens in the sequence is injected into the proposed architecture. Moreover, the positional encodings have the same dimension, dm, as the input embeddings, so the input embeddings and the positional encodings can be summed. In this study, the sine and cosine functions of different frequencies are selected as the positional encodings, PE, and defined as
P E p o s , 2 i = sin p o s 1000 2 i d m ,
and
P E p o s , 2 i + 1 = cos p o s 1000 2 i d m ,
where pos and i are the position and the dimension, respectively. Therefore, each dimension of the positional encoding corresponds to a sinusoid, and the wavelengths form a geometric progression from 2π to 10,000 · 2π.
The transformer unit has two sub-layers. The first is a multi-head self-attention mechanism, and the second is a fully connected feed-forward network. The residual connection is around the two sub-layers, followed by layer normalization.
The cross-attention unit is a kind of multi-head attention, and the cross-attention combines asymmetrically two separate embedding sequences of the same dimension. In this study, the inputs of multi-head attention are the outputs of the previous layer, ap, and the far layer, af. The ap is multiplied by the weight matrix wq, and the af is multiplied by the weight matrix wk and wv. The weight matrixes are trained in the training process, and then the query vector Qi, the key vector Ki, and the value vector Vi can be obtained as
Q i = w q a p ,
K i = w k a f ,
and
V i = w v a f .
When the Qi, Ki, and Vi are obtained, the attention operation Attention(∙), which is modeled as dot-production attention, is used to find the weighted attention outputs SAi. Attention(∙) is defined as
S A i = A t t e n t i o n Q i , K i , V i = softmax Q i K i T d V i
where softmax(∙), T, and d are the softmax function, the transpose operation, and the scaling factor, respectively.

3. The Experimental Results and Discussions

To evaluate the proposed approaches, the dataset in PhysioNet/Computing in Cardiology Challenge 2020 [10] is used, and the detailed results are detailed in the following subsections.

3.1. Dataset and Evaluation Metric

The datasets for this Cardiology Challenge are from the CPSC database and CPSC-Extra database [29], the INCART database [10], the PTB and PTB-XL databases [30], the Georgia 12-lead ECG Challenge (G12EC) database [9], and an undisclosed database. Therefore, the numbers of ECG signals for CPSC, CPSC-Extra, INCART, PTB, PTB-XL, and Georgia are 6877, 3453, 74, 516, 21,837, and 10,344, respectively. The sampling rate is normalized at 500 Hz, and the number of classes for cardiology diseases is 27. Moreover, the K-fold cross-validation technique is adopted to evaluate the proposed approaches. In this study, the dataset is randomly divided into ten folds, and then the number of folds for training and testing is nine and one, respectively. In the database, each subject almost has only one record, so in the case of the k-fold validation methodology, the subjects for training and testing are entirely different. In terms of experimental design, on one hand, to objectively compare with existing systems, we followed the experimental design in PhysioNet/Computing in Cardiology Challenge 2020 [10] for k-fold validation and did not discuss using different datasets for training and testing.
In this study, we selected a challenge scoring metric (CM) developed for the PhysioNet/Computing in Cardiology Challenge 2020 to evaluate our proposed approach [10]. CM was chosen because it reflects the clinical reality that some misdiagnoses can be more harmful than others and should be scored accordingly. Additionally, it considers the fact that confusing certain classes is less detrimental than confusing others.
Moreover, CM assigns partial credit to misdiagnoses that result in similar treatments or outcomes as the true diagnosis, as judged by cardiologists. This means that CM gives full credit to correct diagnoses while providing partial credit to misdiagnoses that have similar risks or outcomes as the true diagnosis.
Consequently, CM rewards true positives, partially rewards false negatives, and penalizes false positives by not giving any credit or reducing the credit for true positives and false negatives. It is important to note that a classifier that only returns positive outputs will receive a negative score, which means a lower score compared to a classifier that only returns negative outputs.
Moreover, the hyperparameters of the proposed approaches are shown in Table 1. The Adam algorithm with β = 0.9, β2 = 0.98, and ε = 10−9 was selected as the optimizer for the training neural networks. The number of iterations and batch size were 30 and 128, respectively.

3.2. The Results of the Transformer with Cross-Attention

In this subsection, the effect of the cross-attention model with different architectures is examined. The transformer without the cross-attention model is selected as the baseline and denoted as Baseline. Two transformer models with two different structures of cross-attention models (denoted as CAT1 and CAT2) shown in Figure 6 were compared with the proposed approach. The proposed cross-attention model used in the transformer model is to fuse the variant information of different neural layers. Compared with the proposed approach, CAT1 is designed to fuse the embedding features obtained from the third layer, which is deeper than the proposed approach. Additionally, CAT2 is designed to fuse variant embedding features obtained from multiple neural layers.
The experimental results are shown in Table 2. In Table 2, it is clear that the transformer with the cross-attention model outperforms the baseline system. Therefore, the cross-attention model can effectively integrate different information between different layers, and then the performance of the CVD system can be improved. Moreover, the proposed architecture with the cross-attention model can achieve the highest score. Compared with the proposed approach and CAT1, the embedding features in the second layer are more useful than those of the third layer. In CAT2, more embedding features of different layers are fused, but the performance is not improved and is even lower than the proposed approach. Therefore, selecting a suitable architecture for fusing different embedding features can improve the accuracy of the CVD system. In this study, only trying different combinations to find the optimal architecture is time-consuming. Therefore, developing an optimization method to design neural network architectures can effectively reduce the system development cycle.

3.3. The Results of CSPNet

In this subsection, the different architectures for using CSPNet are examined and shown in Figure 7. The architectures using sequence and parallel structures are denoted as CSP1 and CSP2, and the experimental results are shown in Table 3. The mean and standard variance of the proposed approaches, CSP_S, CSP_P1, and CSP_P2, are 0.6112 ± 0.0201, 0.5893 ± 0.0225, 0.6000 ± 0.0258, and 0.6043 ± 0.0208, respectively. The results showed that the parallel structure can extract more useful information, and the performance can be improved. Comparing CSP_P1 and CSP_P2, the number of branches for a parallel structure is the same, but the level of CSP_P2 is deeper than that of CSP_P1. The performance can, therefore, be slightly improved. Thus, having a deep layer for neural networks is very important for performance improvement. Balancing performance and computational complexity is an important issue when designing the structure of neural networks. Therefore, the proposed approach reduces CSPNet by replacing a parallel structure with a sequential structure. By combining sequential and parallel structures, the proposed approach can achieve the highest score. Thus, selecting a suitable structure for using CSPNet can effectively improve the performance.

3.4. The Results Compared with Other Approaches

In this subsection, we will select the most recent system that uses the same database as the baseline system for comparison. The top 10 systems from the PhysioNet/Computing in Cardiology Challenge 2020 have been listed in this study [10]. From these, the PRNA system, which is ranked first, was selected as the baseline system for comparison. Furthermore, in recent years, the database used in this study has also been used by other systems based on transformer neural networks and ResNet neural networks. Therefore, we also compared the results with the study that outperformed the PRNA system by using these transformer and ResNet-based systems as baselines.
In this study, ResNet transformer [14], PRNA [8], Weighted ResNet [12], and SE-ResNet [11] were selected as the baseline systems and compared with proposed approaches. The experimental results for the ResNet transformer, PRNA, Weighted ResNet, and SE-ResNet are 0.6080 ± 0.0108, 0.5331 ± 0.0464, 0.520, and 0.514, respectively. The results of the proposed approach and ResNet transformer, based on transformer-based neural networks, outperform PRNA, ResNet, and SE-ResNet. The transformer-based neural network can effectively distill the embedding features, compared with only using ResNet. Moreover, CSPNet can precisely extract embedding features from ECG signals, compared with deep convolutional neural networks.

4. Conclusions

In this study, an ECG-based CVD decision system with CSPNet and a cross-attention-based transformer is proposed to alleviate the burden on healthcare systems. The CSPNet is adopted as the feature extraction, and the extracted embedding can precisely represent the input ECG signals. The transformer with cross-attention can effectively distill the embedding features and reduce computational resources. The experimental results showed that the proposed approach outperforms other approaches. Therefore, the proposed approach can improve the efficiency of CVD diagnosis and alleviate the burden on healthcare systems. In the future, the number of parameters can be greatly reduced by using the teacher–student model, and then it would be helpful for practical applications.

Author Contributions

These authors contributed equally: C.-C.L. and C.-C.C. Conceptualization, C.-C.C. and C.-C.L.; methodology, C.-C.C. and C.-C.L.; software and validation, Y.-J.C.; formal analysis and investigation, C.-C.C. and C.-C.L.; resources and data curation, C.-H.Y. and E.-C.S.; writing—original draft preparation, C.-C.C. and C.-C.L.; writing—review and editing, Y.-J.C.; visualization, E.-C.S.; supervision, project administration, and funding acquisition, C.-C.C. and C.-C.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partly supported by one research fund (ANHRF112-27) from An Nan Hospital, China Medical University, granted to Chia-Chun Chuang.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available at https://doi.org/10.13026/dvyd-kd57, reference number [10].

Acknowledgments

The authors would like to thank the support of the NSTC 112-2221-E-218-010 from the National Science and Technology Council, Taiwan, and the Higher Education Sprout of the Ministry of Education, Taiwan.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Bickerton, M.; Pooler, A. Misplaced ECG electrodes and the need for continuing training. Br. J. Cardiac Nurs. 2019, 14, 123–132. [Google Scholar] [CrossRef]
  2. Ye, C.; Coimbra, M.T.; Vijaya Kumar, B.V.K. Arrhythmia detection and classification using morphological and dynamic features of ECG signals. In Proceedings of the 2010 Annual International Conference of the IEEE Engineering in Medicine and Biology, Buenos Aires, Argentina, 31 August–4 September 2010. [Google Scholar]
  3. World Health Organization. Available online: www.who.int/health-topics/cardiovascular-diseases/#tab=tab_1 (accessed on 5 May 2024).
  4. Ministry of Health and Welfare, Taiwan. Available online: https://www.mohw.gov.tw/cp-16-74869-1.html (accessed on 5 May 2024).
  5. McNamara, K.; Alzubaidi, H.; Jackson, J.K. Cardiovascular disease as a leading cause of death: How are pharmacists getting involved? Integr. Pharm. Res. Pract. 2019, 8, 1–11. [Google Scholar]
  6. Broadwin, M.; Imarhia, F.; Oh, A.; Stone, C.R.; Sellke, F.W.; Bhowmick, S.; Abid, M.R. Exploring Electrospun Scaffold Innovations in Cardiovascular Therapy: A Review of Electrospinning in Cardiovascular Disease. Bioengineering 2024, 11, 218. [Google Scholar] [CrossRef] [PubMed]
  7. Tscheuschner, L.; Tzafriri, A.R. Cardiovascular Tissue Engineering Models for Atherosclerosis Treatment Development. Bioengineering 2023, 10, 1373. [Google Scholar] [CrossRef] [PubMed]
  8. Xiong, K.; Xu, S.; Shen, E.; Ding, Z.; Zhao, R. Radiation Safety in Nuclear Power Plants: ResNet-Based Glove Image Classification. In Proceedings of the 2023 16th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), Taizhou, China, 28–30 October 2023. [Google Scholar]
  9. Goldberger, A.L.; Amaral, L.A.N.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Mietus, J.E.; Moody, G.B.; Peng, C.K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: Components of a New Research Resource for Complex Physiologic Signals. Circulation 2000, 101, e215–e220. [Google Scholar] [CrossRef] [PubMed]
  10. Reyna, M.A.; Perez Alday, E.A.; Gu, A.; Liu, C.; Seyedi, S.; Rad, A.B.; Elola, A.; Li, Q.; Sharma, A.; Clifford, G.D. Classification of 12-lead ECGs: The PhysioNet/Computing in Cardiology Challenge 2020. Comput. Cardiol. 2020, 41, 124003. [Google Scholar]
  11. Zhu, Z.; Wang, H.; Zhao, T.; Guo, Y.; Xu, Z.; Liu, Z.; Liu, S.; Lan, X.; Sun, X.; Feng, M. Classification of Cardiac Abnormalities from ECG Signals Using SE-ResNet. In Proceedings of the 2020 Computing in Cardiology, Rimini, Italy, 13–16 September 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–4. [Google Scholar]
  12. Zhao, Z.; Fang, H.; Relton, S.D.; Yan, R.; Liu, Y.; Li, Z.; Qin, J.; Wong, D.C. Adaptive Lead Weighted ResNet Trained with Different Duration Signals for Classifying 12-lead ECGs. In Proceedings of the 2020 Computing in Cardiology, Rimini, Italy, 13–16 September 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–4. [Google Scholar]
  13. Natarajan, A.; Chang, Y.; Mariani, S.; Rahman, A.; Boverman, G.; Vij, S.; Rubin, J. A Wide and Deep Transformer Neural Network for 12-Lead ECG Classification. In Proceedings of the 2020 Computing in Cardiology, Rimini, Italy, 13–16 September 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–4. [Google Scholar]
  14. Chander Racha, S.; Deb, T.; Sahu, I.; Ukil, A.; Pal, A.; Khandelwal, S. Domain-principled Inference with ResNet-Transformer Model for 12-lead ECG Classification. In Proceedings of the 2022 International Joint Conference on Neural Networks (IJCNN), Padua, Italy, 18–23 July 2022. [Google Scholar]
  15. Wang, C.Y.; Liao, H.Y.M.; Wu, Y.H.; Chen, P.Y.; Hsieh, J.W.; Yeh, I.H. CSPNet: A New Backbone that can Enhance Learning Capability of CNN. In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Seattle, WA, USA, 14–19 June 2020. [Google Scholar]
  16. Ali, M.A.; Dhanaraj, R.K.; Sharma, A.K.; Balusamy, B.; Grover, G.V.; Grover, V. Multi-Module Deep Learning and IoT-Based Pest Detection System Using Sound Analytics in Large Agricultural Field. In Proceedings of the 2023 International Conference on Electrical, Electronics, Communication and Computers (ELEXCOM), Roorkee, India, 26–27 August 2023. [Google Scholar]
  17. Hao, Y.; Zhang, Y. A Lightweight Convolutional Neural Network for Ship Target Detection in SAR Images. IEEE Trans. Aerosp. Electron. Syst. 2024, 60, 1882–1898. [Google Scholar] [CrossRef]
  18. Ju, C.; Guan, C. Graph Neural Networks on SPD Manifolds for Motor Imagery Classification: A Perspective from the Time–Frequency Analysis. IEEE Trans. Neural Netw. Learn. Syst. 2023. [Google Scholar] [CrossRef] [PubMed]
  19. Li, Y.; Li, K.; Chen, J.; Wang, S.; Lu, H.; Wen, D. Pilot Stress Detection Through Physiological Signals Using a Transformer-Based Deep Learning Model. IEEE Sens. J. 2023, 23, 11774–11784. [Google Scholar] [CrossRef]
  20. Qiu, J.; Zhu, J.; Xu, M.; Huang, P.; Rosenberg, M.; Weber, D.; Liu, E.; Zhao, D. Cardiac Disease Diagnosis on Imbalanced Electrocardiography Data Through Optimal Transport Augmentation. In Proceedings of the 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP2023), Rhodes Island, Greece, 4–10 June 2023. [Google Scholar]
  21. Ribeiro, P.; Sá, J.; Paiva, D.; Rodrigues, P.M. Cardiovascular Diseases Diagnosis Using an ECG Multi-Band Non-Linear Machine Learning Framework Analysis. Bioengineering 2024, 11, 58. [Google Scholar] [CrossRef] [PubMed]
  22. Chui, K.T.; Gupta, B.B.; Zhao, M.; Malibari, A.; Arya, V.; Alhalabi, W.; Ruiz, M.T. Enhancing Electrocardiogram Classification with Multiple Datasets and Distant Transfer Learning. Bioengineering 2022, 9, 683. [Google Scholar] [CrossRef] [PubMed]
  23. Huang, Z.; Wang, X.; Huang, L.; Huang, C.; Wei, Y.; Liu, W. CCNet: Criss-Cross Attention for Semantic Segmentation. In Proceedings of the 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea, 27 October–2 November 2019. [Google Scholar]
  24. Chen, C.F.R.; Fan, Q.; Panda, R. CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification. In Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 10–17 October 2021. [Google Scholar]
  25. Yijun, L.; Jianmei, S.; Haoping, S. An Improved Siamese Tracking Network Based on Self-Attention and Cross-Attention. In Proceedings of the 2023 35th Chinese Control and Decision Conference (CCDC), Yichang, China, 20–22 May 2023. [Google Scholar]
  26. Yu, M.; Wu, D.; Rao, W.; Cheng, L.; Li, R.; Li, Y. Automated Road Crack Detection Method based on Visual Transformer with Multi-Head Cross-Attention. In Proceedings of the 2022 IEEE International Conference on Sensing, Diagnostics, Prognostics, and Control (SDPC), Chongqing, China, 5–7 August 2022. [Google Scholar]
  27. Lin, H.; Cheng, X.; Wu, X.; Shen, D. CAT: Cross Attention in Vision Transformer. In Proceedings of the 2022 IEEE International Conference on Multimedia and Expo (ICME), Taipei, Taiwan, 18–22 July 2022. [Google Scholar]
  28. Huo, Z.; Hu, S. Blind Face Restoration via Multi-head Cross-attention and Generative Priors. In Proceedings of the 2023 16th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), Taizhou, China, 28–30 October 2023. [Google Scholar]
  29. Liu, F.; Liu, C.; Zhao, L.; Zhang, X.; Wu, X.; Xu, X.; Liu, Y.; Ma, C.; Wei, S.; He, Z.; et al. An Open Access Database for Evaluating the Algorithms of Electrocardiogram Rhythm and Morphology Abnormality Detection. J. Med. Imaging Health Inf. 2018, 8, 1368–1373. [Google Scholar] [CrossRef]
  30. Bousseljot, R.; Kreiseler, D.; Schnabel, A. Nutzung der EKG-Signaldatenbank CARDIODAT der PTB über das Internet. Biomed. Eng. Biomed. Tech. 1995, 40, 317–318. [Google Scholar] [CrossRef]
Figure 1. The architecture of the proposed CVD decision system.
Figure 1. The architecture of the proposed CVD decision system.
Bioengineering 11 00549 g001
Figure 2. The architecture of the CBM neural network.
Figure 2. The architecture of the CBM neural network.
Bioengineering 11 00549 g002
Figure 3. The architecture of the CSPNet N.
Figure 3. The architecture of the CSPNet N.
Bioengineering 11 00549 g003
Figure 4. The architecture of the ResUnit.
Figure 4. The architecture of the ResUnit.
Bioengineering 11 00549 g004
Figure 5. The architecture of the designed cross-attention-based transformer.
Figure 5. The architecture of the designed cross-attention-based transformer.
Bioengineering 11 00549 g005
Figure 6. The transformer models with different structures of cross-attention mode.
Figure 6. The transformer models with different structures of cross-attention mode.
Bioengineering 11 00549 g006
Figure 7. The different architectures of using CSPNet with sequence and parallel structures.
Figure 7. The different architectures of using CSPNet with sequence and parallel structures.
Bioengineering 11 00549 g007
Table 1. The hyperparameters of the proposed CVD decision system. CS, KS, S, P, and R are the channel number, kernel size, step of stride, padding number, and dropout rate.
Table 1. The hyperparameters of the proposed CVD decision system. CS, KS, S, P, and R are the channel number, kernel size, step of stride, padding number, and dropout rate.
ModelSub-ModelHyperparametersValue
CSPNet 1CBM 1
CBM 2
CBM 3
CBM 4
ResUnit x 1
CBM 5, 6
Dropout
CS, KS, S, P
CS, KS, S, P
CS, KS, S, P
CS, KS, S, P
CS, KS, S, P
CS, KS, S, P
R
32,15,1,7
32,14,2,6
64,10,2,4
32,10,2,4
32,11,1,5
64,11,1,5
0.2
CSPNet 4CBM 1
CBM 2
CBM 3
CBM 4
ResUnit x 1
CBM 5
CBM 6
Dropout
CS, KS, S, P
CS, KS, S, P
CS, KS, S, P
CS, KS, S, P
CS, KS, S, P
CS, KS, S, P
CS, KS, S, P
R
64,15,3,6
32,10,2,4
32,11,1,5
64,11,1,5
64,11,1,5
32,11,1,5
32,14,3,0
0.2
CBMCBMCS, KS, S, P64,15,1,7
Cross-
attention-
based
transformer
Embedding size
Head
Layers
Feedforward
Dropout
dm
Nh
NL
KS
R
64
4
8
2048
0.1
Fully
connected
layer
FC1
Dropout
FC2
KS
R
KS
64
0.2
27
Table 2. The experimental results for different architectures with the cross-attention models.
Table 2. The experimental results for different architectures with the cross-attention models.
FoldProposed ApproachBaselineCAT1CAT2
00.62720.61900.58960.5959
10.63220.61750.62710.6223
20.61990.60760.61210.6280
30.63240.61010.63330.6324
40.63040.61940.62170.6242
50.60650.61030.62070.6064
60.59190.61030.58860.5935
70.60240.59250.61140.6028
80.59220.57420.57450.5879
90.57650.57400.57370.5805
Avg C.M0.6112 ± 0.02010.6035 ± 0.01730.6053 ± 0.02190.6074 ± 0.0183
Table 3. The experimental results for different architectures with the cross-attention models.
Table 3. The experimental results for different architectures with the cross-attention models.
FoldCSP_SCSP_P1CSP_P2
00.60520.60640.6379
10.61020.62830.5995
20.61260.60780.6086
30.61290.61950.6213
40.57430.61960.6216
50.58350.62090.6202
60.60000.58690.5827
70.57960.58810.5920
80.54630.58380.5859
90.56830.54160.5737
Avg C.M0.5893 ± 0.02250.6000 ± 0.02580.6043 ± 0.0208
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

Lee, C.-C.; Chuang, C.-C.; Yeng, C.-H.; So, E.-C.; Chen, Y.-J. A Cross-Stage Partial Network and a Cross-Attention-Based Transformer for an Electrocardiogram-Based Cardiovascular Disease Decision System. Bioengineering 2024, 11, 549. https://doi.org/10.3390/bioengineering11060549

AMA Style

Lee C-C, Chuang C-C, Yeng C-H, So E-C, Chen Y-J. A Cross-Stage Partial Network and a Cross-Attention-Based Transformer for an Electrocardiogram-Based Cardiovascular Disease Decision System. Bioengineering. 2024; 11(6):549. https://doi.org/10.3390/bioengineering11060549

Chicago/Turabian Style

Lee, Chien-Ching, Chia-Chun Chuang, Chia-Hong Yeng, Edmund-Cheung So, and Yeou-Jiunn Chen. 2024. "A Cross-Stage Partial Network and a Cross-Attention-Based Transformer for an Electrocardiogram-Based Cardiovascular Disease Decision System" Bioengineering 11, no. 6: 549. https://doi.org/10.3390/bioengineering11060549

APA Style

Lee, C. -C., Chuang, C. -C., Yeng, C. -H., So, E. -C., & Chen, Y. -J. (2024). A Cross-Stage Partial Network and a Cross-Attention-Based Transformer for an Electrocardiogram-Based Cardiovascular Disease Decision System. Bioengineering, 11(6), 549. https://doi.org/10.3390/bioengineering11060549

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