The Electrocardiogram (ECG) stands as a pivotal tool in cardiovascular disease diagnosis, widely embraced within clinical domains for its simplicity and effectiveness. This paper presents a novel method for classifying ECG signals by leveraging deep learning techniques, specifically Long Short-Term Memory (LSTM) networks enhanced with an attention mechanism. ECG signals encapsulate vital insights into cardiac activities and abnormalities, underscoring the importance of precise classification for diagnosing heart conditions. Conventional methods often confront with the intricate variability of ECG signals, prompting the exploration of sophisticated machine learning models. Within this framework, an attention mechanism is seamlessly integrated into the LSTM architecture, dynamically assigning significance to different segments of the input sequence. This adaptive mechanism permits the model to focus on relevant features for classification, thereby bolstering interpretability and performance by highlighting crucial aspects within the ECG signals. Experiments conducted on the MIT/BIH dataset have yielded compelling findings, boasting an impressive overall classification accuracy of 98.9%. Precision stands at 0.993, recall at 0.992, and the F1 score at 0.99, underscoring the robustness of the results. These findings underscore the potential of the proposed methodology in significantly enhancing ECG signal analysis, thereby facilitating more accurate diagnosis and treatment decisions in the realm of cardiac healthcare.
Copyrights © 2024