Quantum Angle–distance kernel for ECG classification and anomaly detection: a quantum-inspired framework for biomedical signal analysis

Reliable, clear and lightweight ECG classification is important for immediate medical and wearable applications, yet challenges due to confounding signals, rare, labeled examples as well as high model complexity. Our method introduces a Quantum Angle–Distance Kernel (QADK), inspired by quantum principles, combining angular alignments in Hilbert space along with displacements relative to a reference point, thereby increasing class resolution without loss of transparency. We represent heartbeats using descriptive features rather than raw data; these are mapped into fixed-length complex vectors using a simulated quantum coding scheme. Comparisons between such encoded patterns use a balanced mixture of squared similarity scores and projection gaps, creating a stable kernel matrix that works directly with common learning tools. We test QADK on a large ECG heartbeat dataset using strict patient-wise splits on 100 Monte-Carlo measurements; comparisons include linear SVM, RBF SVM, 1D CNN, MLP, and single-class anomaly detection methods. During supervised classification, QADK-SVM achieves an average AUC-ROC of 0.977 ± 0.003, macro F1 of 0.923 ± 0.005, accuracy of 0.937 ± 0.004 – clearly beating linear SVM while matching the best performing RBF after embedding adjustment. In the single-class setting, QADK yields AUC = 0.884 ± 0.005 Ablation with nested cross-validation shows that both components contribute to performance in our pipeline: adding a reference term to the fidelity-only kernel resulted in an average pairwise increase in AUC of +2.4% points under the reported PTB distribution. The fidelity term primarily improved specificity in these experiments. Through sensitivity checks, we found that m = 32 offers a usable embedding size that preserves results without excessive computation time for upcoming quantum devices. Computational analysis shows that Gram construction is the main cost driver – scaling roughly as Θ(n2), yet remains manageable for medium-sized groups, especially when using low-level methods to increase efficiency. While all empirical validations in this study were performed using classical simulation, our theoretical resource analysis demonstrates that QADK is natively compatible with NISQ hardware, requiring only 11 qubits and standard swap tests. This confirms the framework’s suitability for a future shift from simulation to real device implementation. Unlike deep networks, QADK achieves, which combines strong classification accuracy, high interpretability, and compatibility with capacity-constrained systems, making it suitable for ECG tasks in wearable or resource-constrained clinical environments.

Authors

Institutions

Publication Details

Journal
BioData Mining
Published
2026-01-29
DOI
https://doi.org/10.1186/s13040-026-00519-3
Primary Topic
ECG Monitoring and Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Quantum Angle–distance kernel for ECG classification and anomaly detection: a quantum-inspired framework for biomedical signal analysis

Arman Salehi, Ashkan Heydarian, Hamid Reza Goudarzi
BioData Mining
ECG Monitoring and Analysis
article

Quantum Angle–distance kernel for ECG classification and anomaly detection: a quantum-inspired framework for biomedical signal analysis

Arman Salehi, Ashkan Heydarian, Hamid Reza Goudarzi
article en

Abstract

Reliable, clear and lightweight ECG classification is important for immediate medical and wearable applications, yet challenges due to confounding signals, rare, labeled examples as well as high model complexity. Our method introduces a Quantum Angle–Distance Kernel (QADK), inspired by quantum principles, combining angular alignments in Hilbert space along with displacements relative to a reference point, thereby increasing class resolution without loss of transparency. We represent heartbeats using descriptive features rather than raw data; these are mapped into fixed-length complex vectors using a simulated quantum coding scheme. Comparisons between such encoded patterns use a balanced mixture of squared similarity scores and projection gaps, creating a stable kernel matrix that works directly with common learning tools. We test QADK on a large ECG heartbeat dataset using strict patient-wise splits on 100 Monte-Carlo measurements; comparisons include linear SVM, RBF SVM, 1D CNN, MLP, and single-class anomaly detection methods. During supervised classification, QADK-SVM achieves an average AUC-ROC of 0.977 ± 0.003, macro F1 of 0.923 ± 0.005, accuracy of 0.937 ± 0.004 – clearly beating linear SVM while matching the best performing RBF after embedding adjustment. In the single-class setting, QADK yields AUC = 0.884 ± 0.005 Ablation with nested cross-validation shows that both components contribute to performance in our pipeline: adding a reference term to the fidelity-only kernel resulted in an average pairwise increase in AUC of +2.4% points under the reported PTB distribution. The fidelity term primarily improved specificity in these experiments. Through sensitivity checks, we found that m = 32 offers a usable embedding size that preserves results without excessive computation time for upcoming quantum devices. Computational analysis shows that Gram construction is the main cost driver – scaling roughly as Θ(n2), yet remains manageable for medium-sized groups, especially when using low-level methods to increase efficiency. While all empirical validations in this study were performed using classical simulation, our theoretical resource analysis demonstrates that QADK is natively compatible with NISQ hardware, requiring only 11 qubits and standard swap tests. This confirms the framework’s suitability for a future shift from simulation to real device implementation. Unlike deep networks, QADK achieves, which combines strong classification accuracy, high interpretability, and compatibility with capacity-constrained systems, making it suitable for ECG tasks in wearable or resource-constrained clinical environments.

BioData MiningVol. 19(1)
Islamic Azad University, Tehran (IR), Islamic Azad University South Tehran Branch (IR), Yasouj University (IR), University of Social Welfare and Rehabilitation Sciences (IR)
Openalex Percentile: Top 74%
ECG Monitoring and Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.