{"title":"MKP-ECG: A Knowledge-Enhanced Dual-Stream Network for Robust Arrhythmia Classification with Medical Prior-Guided Multi-Loss Optimization.","authors":"Tianjun Zhang, Lisong Diao, Qian Li, Hongxia Zhang, Qi Zhou","doi":"10.1007/s12539-026-00892-x","DOIUrl":null,"url":null,"abstract":"<p><p>Accurate classification of cardiac arrhythmias from electrocardiogram (ECG) signals is essential for clinical decision-making, yet deep learning models often struggle with minority classes such as Fusion beats (F-type) owing to severe class imbalance and insufficient integration of domain knowledge. In this work, we propose Medical Knowledge Prior Network (MKP-ECG), a knowledge-enhanced dual-stream network for four-class arrhythmia classification (N, S, V, F) following the AAMI standard. The first stream employs a multi-scale CNN with residual connections and squeeze-and-excitation attention to learn data-driven representations from raw waveforms. The second stream, termed the Medical Prior Module, extracts a 34-dimensional clinical feature vector encoding morphology, rhythm, template matching, and rule-based indicators that mirror the reasoning process of cardiologists. The two streams are fused through explicit feature concatenation and a knowledge attention gate that dynamically modulates neural representations based on clinical evidence, and are jointly optimized by a composite loss function comprising two novel medical knowledge prior losses: a knowledge graph KL-divergence loss that aligns predictions with expert-defined electrophysiological priors and a clinical constraint loss that penalizes predictions contradicting established diagnostic criteria. Evaluated on the MIT-BIH Arrhythmia Database under the inter-patient DS1/DS2 paradigm with methodologically corrected data augmentation (waveform-only SMOTE with nearest-neighbor clinical feature copying and purity-weighted contrastive loss), MKP-ECG achieves 99.14% accuracy, 92.77% Macro-F1, and 76.98% F-class F1-score with perfect F-recall, representing a 51.7% relative improvement over the knowledge-free baseline. Independent evaluation on the INCART database, where the model is trained and tested entirely within INCART using the same architecture and hyperparameters without any dataset-specific tuning, provides encouraging evidence of architectural generalizability under a record-split protocol, achieving 99.71% accuracy and 87.43% F-class F1-score.</p>","PeriodicalId":13670,"journal":{"name":"Interdisciplinary Sciences: Computational Life Sciences","volume":" ","pages":""},"PeriodicalIF":5.2000,"publicationDate":"2026-11-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Interdisciplinary Sciences: Computational Life Sciences","FirstCategoryId":"99","ListUrlMain":"https://doi.org/10.1007/s12539-026-00892-x","RegionNum":2,"RegionCategory":"生物学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"MATHEMATICAL & COMPUTATIONAL BIOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
Accurate classification of cardiac arrhythmias from electrocardiogram (ECG) signals is essential for clinical decision-making, yet deep learning models often struggle with minority classes such as Fusion beats (F-type) owing to severe class imbalance and insufficient integration of domain knowledge. In this work, we propose Medical Knowledge Prior Network (MKP-ECG), a knowledge-enhanced dual-stream network for four-class arrhythmia classification (N, S, V, F) following the AAMI standard. The first stream employs a multi-scale CNN with residual connections and squeeze-and-excitation attention to learn data-driven representations from raw waveforms. The second stream, termed the Medical Prior Module, extracts a 34-dimensional clinical feature vector encoding morphology, rhythm, template matching, and rule-based indicators that mirror the reasoning process of cardiologists. The two streams are fused through explicit feature concatenation and a knowledge attention gate that dynamically modulates neural representations based on clinical evidence, and are jointly optimized by a composite loss function comprising two novel medical knowledge prior losses: a knowledge graph KL-divergence loss that aligns predictions with expert-defined electrophysiological priors and a clinical constraint loss that penalizes predictions contradicting established diagnostic criteria. Evaluated on the MIT-BIH Arrhythmia Database under the inter-patient DS1/DS2 paradigm with methodologically corrected data augmentation (waveform-only SMOTE with nearest-neighbor clinical feature copying and purity-weighted contrastive loss), MKP-ECG achieves 99.14% accuracy, 92.77% Macro-F1, and 76.98% F-class F1-score with perfect F-recall, representing a 51.7% relative improvement over the knowledge-free baseline. Independent evaluation on the INCART database, where the model is trained and tested entirely within INCART using the same architecture and hyperparameters without any dataset-specific tuning, provides encouraging evidence of architectural generalizability under a record-split protocol, achieving 99.71% accuracy and 87.43% F-class F1-score.
期刊介绍:
Interdisciplinary Sciences--Computational Life Sciences aims to cover the most recent and outstanding developments in interdisciplinary areas of sciences, especially focusing on computational life sciences, an area that is enjoying rapid development at the forefront of scientific research and technology.
The journal publishes original papers of significant general interest covering recent research and developments. Articles will be published rapidly by taking full advantage of internet technology for online submission and peer-reviewing of manuscripts, and then by publishing OnlineFirstTM through SpringerLink even before the issue is built or sent to the printer.
The editorial board consists of many leading scientists with international reputation, among others, Luc Montagnier (UNESCO, France), Dennis Salahub (University of Calgary, Canada), Weitao Yang (Duke University, USA). Prof. Dongqing Wei at the Shanghai Jiatong University is appointed as the editor-in-chief; he made important contributions in bioinformatics and computational physics and is best known for his ground-breaking works on the theory of ferroelectric liquids. With the help from a team of associate editors and the editorial board, an international journal with sound reputation shall be created.