Electrocardiography signal processing method for effective assessment of a patient's heart rate using a convolutional neural network
BACKGROUND: The initial step in annotating an electrocardiogram is the evaluation of the patient's heart rhythm. In the presented study, a method has been developed to process the electrocardiographic signal and estimate the heart rhythm. The method is based on the application of a trained conv...
| Published in: | Digital Diagnostics |
|---|---|
| Main Authors: | , |
| Format: | Article |
| Language: | English |
| Published: |
Eco-Vector
2024-07-01
|
| Subjects: | |
| Online Access: | https://jdigitaldiagnostics.com/DD/article/viewFile/627084/pdf |
| _version_ | 1850357975636508672 |
|---|---|
| author | Daniel V. Gordienko Artem O. Kravchenko |
| author_facet | Daniel V. Gordienko Artem O. Kravchenko |
| author_sort | Daniel V. Gordienko |
| collection | DOAJ |
| container_title | Digital Diagnostics |
| description | BACKGROUND: The initial step in annotating an electrocardiogram is the evaluation of the patient's heart rhythm. In the presented study, a method has been developed to process the electrocardiographic signal and estimate the heart rhythm. The method is based on the application of a trained convolutional neural network, which will provide the physician with preliminary information about possible atrial fibrillation or the presence of other rhythm disturbances as soon as possible after receiving the electrocardiogram. Furthermore, such methodologies can be incorporated into telemedicine systems, thereby facilitating remote monitoring of cardiac status.
AIM: The aim of the study was to develop an electrocardiography signal processing method for the classification of a patient’s heart rhythm into three classes: sinus rhythm, atrial fibrillation, and other arrhythmias.
MATERIALS AND METHODS: The publicly available electrocardiograms of patients were selected for model training and testing. The software was written in the Python programming language using the TensorFlow framework. The training, validation, and test samples were formed with a ratio of 10:1:1:1, with a uniform distribution by classes. Three variants of data sets for each record were prepared: combining plots of all 12 leads of the electrocardiogram on one image, obtaining spectrograms of II and V1 leads using Gaussian wavelet, and representing the record as a vector cardiogram. The architecture of the convolutional neural network was based on the ResNet18 architecture, which was further modified, and a series of modifications were made for each of the input data representations.
RESULTS: A serialized model was obtained with the following accuracy metrics: accuracy=43% for matching 12 electrocardiographic leads in the image; accuracy=43% for vector representation of the electrocardiogram; and accuracy=69% for wavelet transform of the electrocardiogram. In the case of a two-class problem involving sinus rhythm and atrial fibrillation, the accuracy metric for the wavelet transform reaches 93% with metrics recall, precision, and F1-score values of 93%, 94%, and 93%, respectively.
CONSLUSIONS: The results demonstrate the potential of using convolutional neural networks to assess the heart rhythm of patients. Further development of the project involves the selection of the most effective machine learning algorithm, testing of this algorithm for the two-class problem, and expansion of the solution for other classes of rhythm disorders. Additionally, it is possible to improve classification results for the three-class problem by using a superior model and introducing additional clustering. |
| format | Article |
| id | doaj-art-e2e19b293ebf4adeac76a75df440746d |
| institution | Directory of Open Access Journals |
| issn | 2712-8490 2712-8962 |
| language | English |
| publishDate | 2024-07-01 |
| publisher | Eco-Vector |
| record_format | Article |
| spelling | doaj-art-e2e19b293ebf4adeac76a75df440746d2025-08-19T23:06:47ZengEco-VectorDigital Diagnostics2712-84902712-89622024-07-0151S10911110.17816/DD62708476608Electrocardiography signal processing method for effective assessment of a patient's heart rate using a convolutional neural networkDaniel V. Gordienko0https://orcid.org/0009-0007-9813-3475Artem O. Kravchenko1https://orcid.org/0009-0007-0507-4294Bauman Moscow State Technical UniversityBauman Moscow State Technical UniversityBACKGROUND: The initial step in annotating an electrocardiogram is the evaluation of the patient's heart rhythm. In the presented study, a method has been developed to process the electrocardiographic signal and estimate the heart rhythm. The method is based on the application of a trained convolutional neural network, which will provide the physician with preliminary information about possible atrial fibrillation or the presence of other rhythm disturbances as soon as possible after receiving the electrocardiogram. Furthermore, such methodologies can be incorporated into telemedicine systems, thereby facilitating remote monitoring of cardiac status. AIM: The aim of the study was to develop an electrocardiography signal processing method for the classification of a patient’s heart rhythm into three classes: sinus rhythm, atrial fibrillation, and other arrhythmias. MATERIALS AND METHODS: The publicly available electrocardiograms of patients were selected for model training and testing. The software was written in the Python programming language using the TensorFlow framework. The training, validation, and test samples were formed with a ratio of 10:1:1:1, with a uniform distribution by classes. Three variants of data sets for each record were prepared: combining plots of all 12 leads of the electrocardiogram on one image, obtaining spectrograms of II and V1 leads using Gaussian wavelet, and representing the record as a vector cardiogram. The architecture of the convolutional neural network was based on the ResNet18 architecture, which was further modified, and a series of modifications were made for each of the input data representations. RESULTS: A serialized model was obtained with the following accuracy metrics: accuracy=43% for matching 12 electrocardiographic leads in the image; accuracy=43% for vector representation of the electrocardiogram; and accuracy=69% for wavelet transform of the electrocardiogram. In the case of a two-class problem involving sinus rhythm and atrial fibrillation, the accuracy metric for the wavelet transform reaches 93% with metrics recall, precision, and F1-score values of 93%, 94%, and 93%, respectively. CONSLUSIONS: The results demonstrate the potential of using convolutional neural networks to assess the heart rhythm of patients. Further development of the project involves the selection of the most effective machine learning algorithm, testing of this algorithm for the two-class problem, and expansion of the solution for other classes of rhythm disorders. Additionally, it is possible to improve classification results for the three-class problem by using a superior model and introducing additional clustering.https://jdigitaldiagnostics.com/DD/article/viewFile/627084/pdfconvolutional neural networkheart rateatrial fibrillationelectrocardiographyvector electrocardiographycontinuous wavelet transform |
| spellingShingle | Daniel V. Gordienko Artem O. Kravchenko Electrocardiography signal processing method for effective assessment of a patient's heart rate using a convolutional neural network convolutional neural network heart rate atrial fibrillation electrocardiography vector electrocardiography continuous wavelet transform |
| title | Electrocardiography signal processing method for effective assessment of a patient's heart rate using a convolutional neural network |
| title_full | Electrocardiography signal processing method for effective assessment of a patient's heart rate using a convolutional neural network |
| title_fullStr | Electrocardiography signal processing method for effective assessment of a patient's heart rate using a convolutional neural network |
| title_full_unstemmed | Electrocardiography signal processing method for effective assessment of a patient's heart rate using a convolutional neural network |
| title_short | Electrocardiography signal processing method for effective assessment of a patient's heart rate using a convolutional neural network |
| title_sort | electrocardiography signal processing method for effective assessment of a patient s heart rate using a convolutional neural network |
| topic | convolutional neural network heart rate atrial fibrillation electrocardiography vector electrocardiography continuous wavelet transform |
| url | https://jdigitaldiagnostics.com/DD/article/viewFile/627084/pdf |
| work_keys_str_mv | AT danielvgordienko electrocardiographysignalprocessingmethodforeffectiveassessmentofapatientsheartrateusingaconvolutionalneuralnetwork AT artemokravchenko electrocardiographysignalprocessingmethodforeffectiveassessmentofapatientsheartrateusingaconvolutionalneuralnetwork |
