From Foundation ECG Models to NISQ Learners: Distilling ECGFounder into a VQC Student
Organizations: Faculty of Sciences, S˜ao Paulo State University (Unesp), Bauru, Brazil. · Hospital Israelita Albert Einstein, S˜ao Paulo, Brazil. · Laboratory of Magnetic Resonance in Neuroradiology (LIM-44), University of S˜ao Paulo Faculty of Medicine Clinics Hospital, S˜ao Paulo, Brazil.
Abstract
Foundation models have recently improved electrocardiogram (ECG) representation learning, but their deployment can be limited by computational cost and latency constraints. In this work, we fine-tune ECGFounder as a high-capacity teacher for binary ECG classification on PTB-XL and the MIT-BIH Arrhythmia Database, and investigate whether knowledge distillation can transfer its predictive behavior to compact students. We evaluate two classical 1D students (ResNet-1D and a lightweight CNN-1D) and a quantum-ready pipeline that combines a convolutional autoencoder, which compresses 256-sample ECG windows into a low-dimensional latent representation, with a 6-qubit variational quantum circuit implemented in Qiskit and executed in a simulated backend. Across both datasets, the teacher provides the strongest overall performance, while distillation yields competitive students under a considerable reduction in trainable parameters. We further analyze the sensitivity of student performance to distillation settings, highlighting consistent accuracy--efficiency trade-offs when compressing a foundation ECG model into classical and quantum-ready learners under a unified evaluation protocol.
Figures & tables
| Temp | Model | Accuracy | Precision | Recall | F1 Score |
|---|---|---|---|---|---|
| Teacher | ECGFounder | 0.8000 | 0.7900 | 0.9900 | 0.8400 |
| ResNet | 0.6757 | 0.6775 | 0.9763 | 0.8033 | |
| VQC | 0.6879 | 0.7183 | 0.9392 | 0.8078 | |
| CNN | 0.6693 | 0.6757 | 0.9502 | 0.7971 | |
| ResNet | 0.6796 | 0.6848 | 0.9397 | 0.7952 | |
| VQC | 0.6817 | 0.6950 | 0.9333 | 0.7965 |
| Temp | Model | Accuracy | Precision | Recall | F1 Score |
|---|---|---|---|---|---|
| Teacher | ECGFounder | 0.8063 | 0.8626 | 0.9512 | 0.8179 |
| ResNet | 0.7480 | 0.7607 | 0.8223 | 0.7897 | |
| VQC | 0.7293 | 0.7366 | 0.8310 | 0.7798 | |
| CNN | 0.7207 | 0.7367 | 0.8032 | 0.7680 | |
| ResNet | 0.7417 | 0.7486 | 0.8316 | 0.7876 | |
| VQC | 0.7503 | 0.7766 | 0.7975 | 0.7861 |
Electrocardiogram Classification
Electrocardiogram classification uses machine learning to identify heart rhythms and cardiac conditions from ECG waveforms for screening, diagnosis, and monitoring.
See all 106 papers