A Neuro-Fuzzy Digital Twin for Interpretable Cardiac Disease Recognition
Source abstract
Abstract
We present a neuro-fuzzy digital twin for cardiac disease recognition on the PTB-XL dataset that keeps the accuracy of a strong convolutional model while exposing its reasoning as readable fuzzy rules. The key design choice is to separate the two jobs instead of forcing one network to do both. A convolutional backbone (xresnet1d101 with cross-lead attention) is trained first and acts as the predictor. A second phase then freezes the backbone and trains a five-expert mixture of interval Type-2 Adaptive Neuro-Fuzzy Inference Systems as an interpretation layer, attached through a learnable trust gate. Four experts read complementary signal streams (the raw 12-lead waveform, a Fourier–Bessel Series Expansion, a Tunable-Q Wavelet Transform, and a morphogram); a fifth reads 22 clinical and demographic descriptors. A concept bottleneck maps the backbone embedding to eight named clinical concepts (ST elevation, T inversion, QT prolongation, Sokolov–Lyon and Cornell voltages, RVH, axis deviation, QRS widening), so the downstream rules read in clinical language. Two genetic-algorithm stages keep the model compact: NSGA-II selects the clinical features, and a multi-objective rule-pruning search trades macro-F1 and hypertrophy recall against the number of active rules. On the official test fold the twin reaches a macro-F1 of 0.751 (bootstrap 95% CI 0.740 to 0.767), a macro-AUC of 0.928, a Matthews correlation coefficient of 0.672, and a macro expected calibration error of 0.021, which is above the Strodthoff xresnet1d101 baseline of 0.74 and well below the calibration error of our earlier coupled design. Because the fuzzy layer is attached as a trust-gated residual and the best epoch is chosen on threshold-optimized validation F1, the interpretable twin matches the backbone within about 0.004 (twin 0.751 versus backbone 0.754) rather than paying the usual “interpretability tax”. The fuzzy mixture on its own still reaches a macro-F1 of 0.69, so the rules carry real diagnostic signal. Subgroup macro-F1 stays within about 0.045 across sex, age, and body-mass groups. A concept-level intervention simulator estimates how cardioactive drug classes would shift a patient’s risk by perturbing the named concepts and re-running the same twin.
Source: crossref · Quality: baseline
Affiliations
Institute of Information Technology, Riga Technical University, 6A Kipsalas Street, LV-1048 Riga, Latvia
References (44)
Show source-provided references
1. PTB-XL, a large publicly available electrocardiography dataset10.1038/s41597-020-0495-6 ↗
2. Deep learning for ECG analysis: Benchmarks and insights from PTB-XL10.1109/JBHI.2020.3022989 ↗
3. A review of signal processing techniques for electrocardiogram signal quality assessment10.1109/RBME.2018.2810957 ↗
4. Artefact detection and quality assessment of ambulatory ECG signals10.1016/j.cmpb.2019.105050 ↗
5. A multi-stage denoising framework for ambulatory ECG signal based on domain knowledge and motion artifact detection10.1016/j.future.2020.10.024 ↗
6. Pushpa, P., Gowda, S.B., Manjunatha, K.G., Mahesh, T.R., Vinay, R., Khan, S.B., and Almusharraf, A. (2025, January 12–13). TriFusion-CardioNet: A multi-modal attention and graph-enhanced deep framework with evolutionary feature selection for cardiovascular disorder detection from PTB-XL ECG images. Proceedings of the 2025 5th International Conference on Emerging Research in Electronics, Computer Science and Technology (ICERECT), Mandya, India.10.1109/ICERECT65215.2025.11377661 ↗
7. A hybrid learning framework for automated multiclass electrocardiogram classification with SimCardioNet10.1038/s41598-026-36932-1 ↗
8. Ansari, Y., Mourad, O., Qaraqe, K., and Serpedin, E. (2023). Deep learning for ECG arrhythmia detection and classification: An overview of progress for period 2017 to 2023. Front. Physiol., 14.10.3389/fphys.2023.1246746 ↗
9. A foundational vision transformer improves diagnostic performance for electrocardiograms10.1038/s41746-023-00840-9 ↗
10. Self-supervised pre-training with joint-embedding predictive architecture boosts ECG classification performance10.1016/j.compbiomed.2025.110809 ↗
11. Enhancing automatic multilabel diagnosis of electrocardiogram signals: A masked transformer approach10.1016/j.compbiomed.2025.110674 ↗
12. Narigina, M., Romānovs, A., and Merkurjevs, J. (2024). Convolutional neural network-based digital diagnostic tool for the identification of psychosomatic illnesses. Algorithms, 17.10.3390/a17080329 ↗
13. Narigina, M., Vindecs, A., Boskovic, D., Merkurjevs, J., and Romānovs, A. (2025). AI-powered stroke diagnosis system: Methodological framework and implementation. Future Internet, 17.10.3390/fi17050204 ↗
14. A deep neuro-fuzzy method for ECG big data analysis via exploring multimodal feature fusion10.1109/TFUZZ.2024.3416217 ↗
15. Fuzz-ClustNet: Coupled fuzzy clustering and deep neural networks for arrhythmia detection from ECG signals10.1016/j.compbiomed.2022.106511 ↗
16. Cardiovascular care with digital twin technology in the era of generative artificial intelligence10.1093/eurheartj/ehae619 ↗
17. Patient-specific digital twins for personalized healthcare: A hybrid AI and simulation-based framework10.1109/ACCESS.2025.3598130 ↗
18. Tasmurzayev, N., Amangeldy, B., Toigozhinova, A., Imankulov, T., and Bulkairova, G. (2025). Digital cardiovascular twins, AI agents, and sensor data: A narrative review from system architecture to proactive heart health. Sensors, 25.10.3390/s25175272 ↗
19. Design and analysis of TwinCardio framework to detect and monitor cardiovascular diseases using digital twin and deep neural network10.1038/s41598-025-08824-3 ↗
20. A deep learning-based electrocardiogram risk score for long term cardiovascular death and disease10.1038/s41746-023-00916-6 ↗
21. A multitask deep learning model utilizing electrocardiograms for major cardiovascular adverse events prediction10.1038/s41746-024-01410-3 ↗
22. Zacarias, H., Marques, J.A.L., Felizardo, V., Pourvahab, M., and Garcia, N.M. (2024). ECG forecasting system based on long short-term memory. Bioengineering, 11.10.3390/bioengineering11010089 ↗
23. Narigina, M., Tihak, A., Romānovs, A., Boskovic, D., and Merkurjevs, J. (2025, January 9–10). A hybrid AI framework for cardiovascular digital twins: Integrating data-driven and physics-informed models. Proceedings of the International Scientific Conference on Information Technology and Management Science of Riga Technical University (ITMS), Riga, Latvia.10.1109/ITMS67030.2025.11236709 ↗
24. Tabakov, M., Chlopowiec, A.B., and Chlopowiec, A.R. (2023). A novel classification method using the Takagi-Sugeno model and a type-2 fuzzy rule induction approach. Appl. Sci., 13.10.3390/app13095279 ↗
25. Multilabel Takagi-Sugeno-Kang fuzzy system10.1109/TFUZZ.2021.3115967 ↗
26. A robust multilabel method integrating rule-based transparent model, soft label correlation learning and label noise resistance10.1109/TETCI.2023.3306232 ↗
27. Li, D., Chai, S., Wang, H., Dong, J., Qin, C., Du, D., Wang, Y., Du, Q., and Liu, S. (2023). Drug-induced QT prolongation and torsade de pointes: A real-world pharmacovigilance study using the FDA Adverse Event Reporting System database. Front. Pharmacol., 14.10.3389/fphar.2023.1259611 ↗
28. Woosley, R.L., Heise, C.W., Gallo, T., Tate, J., Woosley, D., and Romero, K.A. (2024). CredibleMeds.org QTdrugs List, AZCERT Inc.. Available online: https://crediblemeds.org/drugsearch.
29. Deep learning analysis of electrocardiogram for risk prediction of drug-induced arrhythmias and diagnosis of long QT syndrome10.1093/eurheartj/ehab588 ↗
30. Machine learning-enabled assessment of risk for drug-induced QT prolongation at the time of prescribing10.1016/j.hrthm.2025.10.045 ↗
31. Khan, F., Yu, X., Yuan, Z., and Rehman, A.U. (2023). ECG classification using 1-D convolutional deep residual neural network. PLoS ONE, 18.10.1371/journal.pone.0284791 ↗
32. Mjahad, A., and Rosado-Muñoz, A. (2025). Hybrid CNN-fuzzy approach for automatic identification of ventricular fibrillation and tachycardia. Appl. Sci., 15.10.3390/app15179289 ↗
33. ECG-based cardiac arrhythmia classification using fuzzy encoded features and deep neural networks10.1016/j.bea.2025.100167 ↗
34. Optimal neuro fuzzy classification for arrhythmia data driven system10.35940/ijitee.A9628.1111121 ↗
35. Advances in deep learning for personalized ECG diagnostics: A systematic review addressing inter-patient variability and generalization constraints10.1016/j.bios.2024.117073 ↗
36. Multimodal machine learning in precision health: A scoping review10.1038/s41746-022-00712-8 ↗
37. Integrative multimodal hybrid data fusion for mortality prediction10.1038/s41598-026-36296-6 ↗
38. Multi-modal fusion model for predicting adverse cardiovascular outcome post percutaneous coronary intervention10.1088/1361-6579/ac9e8a ↗
39. Automated ECG multi-class classification system based on combining deep learning features with HRV and ECG measures10.1007/s00521-022-06889-z ↗
40. Non-direct contact ECG signal classification using a hybrid deep learning framework with validation in bedside heart rate variability analysis10.1109/JBHI.2025.3601807 ↗
41. Vo, T.-N. (2025). Heart rate classification in ECG signals using machine learning and deep learning. arXiv.
42. Multiview transfer representation learning with TSK fuzzy system for EEG epilepsy detection10.1109/TFUZZ.2023.3288479 ↗
43. Fuzzy broad neuroevolution networks via multiobjective evolutionary algorithms: Balancing structural simplification and performance
44. Uncertainty quantification in skin cancer classification using three-way decision-based Bayesian deep learning10.1016/j.compbiomed.2021.104418 ↗