To avoid stroke, atrial fibrillation (AF) needs to be detected as early as possible. Nevertheless, traditional deep learning systems often are unsuccessful with the domain shift and signal degradation inherent in wearable sensor measurements. To achieve the purpose of going beyond probabilistic classification, We present a hybrid convolutional neural network–bidirectional long ahort-term memory–differentiable support vector machine (CNN–BiLSTM–dSVM) framework that integrates automated morphological feature generation with geometric margin maximization. The main methodological innovation is the (dSVM) head, which is trained on a aquared hinge loss objective, instead of conventional Soft max layers. To isolate structural P-QRS-T variations and remove motion artifacts and baseline drift, this architecture uses a CNN backbone. These morphological signs are used with knowledge-augmented clinical data to represent long-term temporal rhythms and are processed by a Bi LSTM encoder. Unlike present models, our method removes overfitting to sensor-induced noise, by imposing structural risk minimization, and creating an operative loss-friendly dead zone. Experimental analysis of the proposed system was conducted on dual-source ECG datasets.The proposed framework was evaluated using dual-source ECG datasets, including the MIT-BIH atrial fibrillation database, the PhysioNet CinC 2017 dataset, and a noisy wearable ECG dataset collected from real-world sensing environments. The architecture combined CNN-based morphological feature extraction, BiLSTM temporal representation learning, and a (dSVM) optimization strategy to improve atrial fibrillation classification robustness under heterogeneous ECG acquisition conditions. Experimental results demonstrated that the proposed framework achieved an overall classification accuracy of 99.0%, recall of 98.8%, Macro F1-score of 98.6%, and AUC of 0.995. Comparative evaluation against mainstream baseline architectures, including conventional CNN, LSTM, and Transformer-based models, confirmed superior convergence stability, generalization capability, and classification robustness, particularly under noisy wearable ECG conditions. (20,000 noisy wearable recordings and 6,000 high-fidelity clinical signals). The datasets were partitioned into training, validation, and testing subsets using a strict patient-level splitting protocol to avoid data leakage. This gave system a near-perfect overall accuracy of 99.5% and a recall of 1.00. The proposed hybrid model restored this performance in 400 Hz noiseful mobile signals, but standalone CNNs exhibited constraints in terms of dealing with class imbalances (Macro F1: 0.593). The sensor-invariant representation of our Margin-aware inductive bias provided better convergence kinetics and structural stability than high-complexity 1D-transformer and ECG-BERT baselines as found in statistical studies. In this work, we established a benchmark of computationally efficient, theoretically-grounded cardiac surveillance in real-world mHealth.
Citation: Raid Abdulhadi Abdulqader Alabdullah, Saratha Sathasivam, Marwa Mawfaq MohamedSheet AL-Hatab. End-to-end joint Margin aware BiLSTM-dSVM model for atrial fibrillation detection based on knowledge-augmented deep learning on knowledge-augmented deep learning[J]. AIMS Mathematics, 2026, 11(7): 19876-19920. doi: 10.3934/math.2026807
To avoid stroke, atrial fibrillation (AF) needs to be detected as early as possible. Nevertheless, traditional deep learning systems often are unsuccessful with the domain shift and signal degradation inherent in wearable sensor measurements. To achieve the purpose of going beyond probabilistic classification, We present a hybrid convolutional neural network–bidirectional long ahort-term memory–differentiable support vector machine (CNN–BiLSTM–dSVM) framework that integrates automated morphological feature generation with geometric margin maximization. The main methodological innovation is the (dSVM) head, which is trained on a aquared hinge loss objective, instead of conventional Soft max layers. To isolate structural P-QRS-T variations and remove motion artifacts and baseline drift, this architecture uses a CNN backbone. These morphological signs are used with knowledge-augmented clinical data to represent long-term temporal rhythms and are processed by a Bi LSTM encoder. Unlike present models, our method removes overfitting to sensor-induced noise, by imposing structural risk minimization, and creating an operative loss-friendly dead zone. Experimental analysis of the proposed system was conducted on dual-source ECG datasets.The proposed framework was evaluated using dual-source ECG datasets, including the MIT-BIH atrial fibrillation database, the PhysioNet CinC 2017 dataset, and a noisy wearable ECG dataset collected from real-world sensing environments. The architecture combined CNN-based morphological feature extraction, BiLSTM temporal representation learning, and a (dSVM) optimization strategy to improve atrial fibrillation classification robustness under heterogeneous ECG acquisition conditions. Experimental results demonstrated that the proposed framework achieved an overall classification accuracy of 99.0%, recall of 98.8%, Macro F1-score of 98.6%, and AUC of 0.995. Comparative evaluation against mainstream baseline architectures, including conventional CNN, LSTM, and Transformer-based models, confirmed superior convergence stability, generalization capability, and classification robustness, particularly under noisy wearable ECG conditions. (20,000 noisy wearable recordings and 6,000 high-fidelity clinical signals). The datasets were partitioned into training, validation, and testing subsets using a strict patient-level splitting protocol to avoid data leakage. This gave system a near-perfect overall accuracy of 99.5% and a recall of 1.00. The proposed hybrid model restored this performance in 400 Hz noiseful mobile signals, but standalone CNNs exhibited constraints in terms of dealing with class imbalances (Macro F1: 0.593). The sensor-invariant representation of our Margin-aware inductive bias provided better convergence kinetics and structural stability than high-complexity 1D-transformer and ECG-BERT baselines as found in statistical studies. In this work, we established a benchmark of computationally efficient, theoretically-grounded cardiac surveillance in real-world mHealth.
| [1] |
S. Liaqat, K. Dashtipour, A. Zahid, K. Assaleh, K. Arshad, N. Ramzan, Detection of atrial fibrillation using a machine learning approach, Information, 11 (2020), 549. https://doi.org/10.3390/info11120549 doi: 10.3390/info11120549
|
| [2] |
S. S. M. Sheet, M. M. M. Al-Hatab, M. A. Qasim, A novel method for examining promoters using statistical analysis and artificial intelligence learning, IAES International Journal of Artificial Intelligence, 14 (2025), 4006–4016. https://doi.org/10.11591/ijai.v14.i5.pp4006-4016 doi: 10.11591/ijai.v14.i5.pp4006-4016
|
| [3] |
G. D. Clifford, C. Y. Liu, B. Moody, L. H. Lehman, I. Silva, Q. Li, et al., AF classification from a short single lead ECG recording: the physionet/computing in cardiology challenge 2017, Computing in Cardiology, 44 (2017), 1–4. https://doi.org/10.22489/CinC.2017.065-469 doi: 10.22489/CinC.2017.065-469
|
| [4] |
J. B. Wang, P. Wang, S. P. Wang, Automated detection of atrial fibrillation in ECG signals based on wavelet packet transform and correlation function of random process, Biomed. Signal Proces., 55 (2020), 101662. https://doi.org/10.1016/j.bspc.2019.101662 doi: 10.1016/j.bspc.2019.101662
|
| [5] |
J. B. Duan, Q. Wang, B. Zhang, C. Liu, C. R. Li, L. Wang, Accurate detection of atrial fibrillation events with R-R intervals from ECG signals, PLoS ONE, 17 (2022), e0271596. https://doi.org/10.1371/journal.pone.0271596 doi: 10.1371/journal.pone.0271596
|
| [6] | N. Nuryani, B. Harjito, I. Yahya, A. Lestari, Atrial fibrillation detection using support vector machine, Proceedings of the Joint International Conference on Electric Vehicular Technology and Industrial, Mechanical, Electrical and Chemical Engineering (ICEVT & IMECE), Surakarta, Indonesia, 2015,215–218. https://doi.org/10.1109/ICEVTIMECE.2015.7496672 |
| [7] |
S. K. S. Shrikanth Rao, R. J. Martis, RR interval-based atrial fibrillation detection using traditional and ensemble machine learning algorithms, J. Med. Signals Sens., 13 (2023), 224–232. https://doi.org/10.4103/jmss.jmss_4_22 doi: 10.4103/jmss.jmss_4_22
|
| [8] |
R. J. Martis, U. R. Acharya, H. Prasad, C. K. Chua, C. M. Lim, Automated detection of atrial fibrillation using Bayesian paradigm, Knowl.-Based Syst., 54 (2013), 269–275. https://doi.org/10.1016/j.knosys.2013.09.016 doi: 10.1016/j.knosys.2013.09.016
|
| [9] | S. Sieciński, P. S. Kostka, E. J. Tkacz, Comparison of atrial fibrillation detection performance using decision trees, SVM and artificial neural network, In: Information Technology and Systems, Cham: Springer, 2019, 693–701. https://doi.org/10.1007/978-3-030-11890-7_65 |
| [10] |
M. Limam, F. Precioso, Atrial fibrillation detection and ECG classification based on convolutional recurrent neural network, Computing in Cardiology, 44 (2017), 1–4. https://doi.org/10.22489/CinC.2017.171-325 doi: 10.22489/CinC.2017.171-325
|
| [11] | B. Grabowski, P. Głomb, W. Masarczyk, P. Pławiak, Ö. Yıldırım, U. R. Acharya, et al., Classification and self-supervised regression of arrhythmic ECG signals using convolutional neural networks, 2022, arXiv:2210.14253. https://doi.org/10.48550/arXiv.2210.14253 |
| [12] |
A. Sherstinsky, Fundamentals of recurrent neural network (RNN) and long short-term memory (LSTM) network, Physica D, 404 (2020), 132306. https://doi.org/10.1016/j.physd.2019.132306 doi: 10.1016/j.physd.2019.132306
|
| [13] | V. Satheeswaran, G. N. Chandrika, A. Mitra, R. Chowdhury, P. Kumar, E. Glory, Deep learning based classification of ECG signals using RNN and LSTM mechanism, J. Electronic. Electromed. Eng. Med. Inform., 6 (2024), 332–342. |
| [14] |
Y. T. Hu, T. F. Feng, M. Wang, C. Y. Liu, H. Tang, Detection of paroxysmal atrial fibrillation from dynamic ECG recordings based on a deep learning model, J. Pers. Med., 13 (2023), 820. https://doi.org/10.3390/jpm13050820 doi: 10.3390/jpm13050820
|
| [15] |
C. Y. Ma, X. Long, W. J. Sheng, R. Vullings, M. C. Yang, L. N. Zhao, An atrial fibrillation detection strategy in dynamic ECGs with significant individual differences, IEEE T. Instrum. Meas., 73 (2023), 4002010. https://doi.org/10.1109/TIM.2023.3335526 doi: 10.1109/TIM.2023.3335526
|
| [16] |
M. A. Qasim, M. M. M. Al-Hatab, L. H. Albak, Deep feature-based multi-class Alzheimer's disease classification with statistical performance evaluation, rning, IAES International Journal of Artificial Intelligence, 15 (2026), 695–706. https://doi.org/10.11591/ijai.v15.i1.pp695-706 doi: 10.11591/ijai.v15.i1.pp695-706
|
| [17] |
B. Aldughayfiq, F. Ashfaq, N. Z. Jhanjhi, M. Humayun, A deep learning approach for atrial fibrillation classification using multi-feature time series data from ECG and PPG, Diagnostics, 13 (2023), 2442. https://doi.org/10.3390/diagnostics13142442 doi: 10.3390/diagnostics13142442
|
| [18] |
S. Sathasivam, S. A. Alzaeemi, M. Velavan, Mean-field theory in hopfield neural network for doing 2 satisfiability logic programming, International Journal of Modern Education and Computer Science, 12 (2020), 27–39. https://doi.org/10.5815/ijmecs.2020.04.03 doi: 10.5815/ijmecs.2020.04.03
|
| [19] |
S. A. Alzaeemi, S. Sathasivam, M. Velavan, Agent-based modeling in doing logic programming in fuzzy hopfield neural network, International Journal of Modern Education and Computer Science, 13 (2021), 23–32. https://doi.org/10.5815/ijmecs.2021.02.03 doi: 10.5815/ijmecs.2021.02.03
|
| [20] | A. M. Sagir, S. Sathasivam, A hybridised intelligent technique for the diagnosis of medical diseases, Pertanika J. Sci. Technol., 25 (2017), 425–440. |
| [21] |
S. A. Alzaeemi, S. Sathasivam, M. K. M. Ali, K. G. Tay, M. Velavan, Hybridized intelligent neural network optimization model for forecasting prices of rubber in Malaysia, Comput. Syst. Sci. Eng., 47 (2023), 1471–1491. https://doi.org/10.32604/csse.2023.037366 doi: 10.32604/csse.2023.037366
|
| [22] | S. Lee, A. Nedić, Epoch gradient descent for smoothed hinge-loss linear SVMs, 2013 American Control Conference, Washington, DC, USA, 2013, 4789–4794. https://doi.org/10.1109/ACC.2013.6580579 |
| [23] |
M. S. Corneanu, L. E. Prodaniuc, A. Prodaniuc, I. A. Șova, E. O. Coșovanu, O. R. Petriș, Diagnostic accuracy of wearable ECG devices for atrial fibrillation and ST-segment changes: A systematic review, Diagnostics, 15 (2025), 3162. https://doi.org/10.3390/diagnostics15243162 doi: 10.3390/diagnostics15243162
|
| [24] | W. F. Xie, C. Chen, R. J. Zhao, Y. Lu, Detection of atrial fibrillation based on feature fusion using attention-based BiLSTM, 2023 45th Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Sydney, Australia, 2023, 1–4. https://doi.org/10.1109/EMBC40787.2023.10340023 |
| [25] |
D. Kraft, P. Rumm, Atrial fibrillation and atrial flutter detection using deep learning, Sensors, 25 (2025), 4109. https://doi.org/10.3390/s25134109 doi: 10.3390/s25134109
|
| [26] |
J. J. Si, Y. L. Bao, F. L. Chen, Y. Wang, M. M. Zeng, N. Y. He, et al., Research on atrial fibrillation diagnosis in electrocardiograms based on CLA-AF model, European Heart Journal - Digital Health, 6 (2025), 82–95. https://doi.org/10.1093/ehjdh/ztae092 doi: 10.1093/ehjdh/ztae092
|
| [27] | S. Y. Wu, A compact LSTM-SVM fusion model for long-duration cardiovascular diseases detection, 2024, arXiv:2312.09442. https://doi.org/10.48550/arXiv.2312.09442 |
| [28] |
F. A. Gers, J. Schmidhuber, F. Cummins, Learning to forget: continual prediction with LSTM, Neural Comput., 12 (2000), 2451–2471. https://doi.org/10.1162/089976600300015015 doi: 10.1162/089976600300015015
|
| [29] |
L. Subramanyan, U. Ganesan, A novel deep neural network for detection of atrial fibrillation using ECG signals, Knowl.-Based Syst., 258 (2022), 109926. https://doi.org/10.1016/j.knosys.2022.109926 doi: 10.1016/j.knosys.2022.109926
|
| [30] | M. Yu, Atrial fibrillation signal dataset, Kaggle, 2024. Available from: https://www.kaggle.com/datasets/michaelrowen/atrial-fibrillation-signal-dataset. |
| [31] | S. Sathasivam, M. Mamat, M. S. M. Kasihmuddin, M. A. Mansor, Metaheuristics approach for maximum k satisfiability in restricted neural symbolic integration, Pertanika J. Sci. Technol., 28 (2020), 545–564. |
| [32] |
P. K. Stein, M. S. Bosner, R. E. Kleiger, B. M. Conger, Heart rate variability: A measure of cardiac autonomic tone, Am. Heart J., 127 (1994), 1376–1381. https://doi.org/10.1016/0002-8703(94)90059-0 doi: 10.1016/0002-8703(94)90059-0
|
| [33] |
J. Rahul, M. Sora, L. D. Sharma, V. K. Bohat, An improved cardiac arrhythmia classification using an RR interval-based approach, Biocybern. Biomed. Eng., 41 (2021), 656–666. https://doi.org/10.1016/j.bbe.2021.04.004 doi: 10.1016/j.bbe.2021.04.004
|
| [34] |
J. B. Duan, Q. Wang, B. Zhang, C. Liu, C. R. Li, L. Wang, Accurate detection of atrial fibrillation events with RR intervals from ECG signals, PLoS ONE, 17 (2022), e0271596. https://doi.org/10.1371/journal.pone.0271596 doi: 10.1371/journal.pone.0271596
|
| [35] |
S. K. S. Rao, R. J. Martis, RR interval-based atrial fibrillation detection using traditional and ensemble machine learning algorithms, J. Med. Signals Sens., 13 (2023), 224–232. https://doi.org/10.4103/jmss.jmss_4_22 doi: 10.4103/jmss.jmss_4_22
|
| [36] |
D. Kraft, P. Rumm, Atrial fibrillation and atrial flutter detection using deep learning, Sensors, 25 (2025), 4109. https://doi.org/10.3390/s25134109 doi: 10.3390/s25134109
|
| [37] |
C. P. Lee, C. J. Lin, A study on L2-loss (squared hinge-loss) multiclass SVM, Neural Comput., 25 (2013), 1302–1323. https://doi.org/10.1162/NECO_a_00434 doi: 10.1162/NECO_a_00434
|
| [38] |
Z. L. Yang, J. Yin, Multi-view fusion and view-specific-labels learning for multi-label classification, Neural Process. Lett., 57 (2025), 89. https://doi.org/10.1007/s11063-025-11785-3 doi: 10.1007/s11063-025-11785-3
|
| [39] | B. Chen, W. Guo, B. Li, R. K. F. Teng, M. J. Dai, J. P. Luo, et al., A study of deep feature fusion based methods for classifying multi-lead ECG, 2018, arXiv:1808.01721. https://doi.org/10.48550/arXiv.1808.01721 |
| [40] |
M. Brennan, M. Palaniswami, P. Kamen, Do existing measures of Poincaré plot geometry reflect nonlinear features of heart rate variability, IEEE T. Biomed. Eng., 48 (2001), 1342–1347. https://doi.org/10.1109/10.959330 doi: 10.1109/10.959330
|
| [41] |
S. Carrasco, M. J. Gaitán, R. González, O. Yánez, Correlation among Poincaré plot indexes and time and frequency domain measures of heart rate variability, Journal of Medical Engineering & Technology, 25 (2001), 240–248. https://doi.org/10.1080/03091900110086651 doi: 10.1080/03091900110086651
|
| [42] |
C. Y. Song, Z. L. Zhou, Y. Yu, M. M. Shi, J. X. Zhang, An improved Bi-LSTM method based on heterogeneous features fusion and attention mechanism for ECG recognition, Comput. Biol. Med., 169 (2024), 107903. https://doi.org/10.1016/j.compbiomed.2023.107903 doi: 10.1016/j.compbiomed.2023.107903
|
| [43] |
I. Patel, A. Sandhya, V. S. Raja, S. Saravanan, Extraction of features from ECG signal, International Journal of Current Research and Review, 13 (2021), 103–109. https://doi.org/10.31782/IJCRR.2021.13806 doi: 10.31782/IJCRR.2021.13806
|