ECG Quality Assessment from a PCG-Oriented Device Using a Minimal Fine-Tuning Strategy on a Pre-trained Convolutional Neural Network

Alvaro Huerta Herraiz1, Shib Sundar Banerjee2, Francesco Renna2, Pilar Escribano Cano3, Cátia Isabel Costa4, Cristina Oliveira5, André Lobo4, Ricardo Fontes-Carvalho5, Oscar Ayo-Martin6, Raul Alcaraz7, Jose J Rieta8
1Research Group in Electronic, Biomedical and Telecommunication Engineering, University of Castilla-La Mancha, Spain., 2INESC TEC, Faculdade de Ciências da Universidade do Porto, 3Research Group in Electronic, Biomedical and Telecommunication Engineering, University of Castilla-La Mancha, Cuenca, Spain, 4ULSGE, 5UnIC@RISE, 6Department of Neurology. Complejo Hospitalario Universitario de Albacete. Universidad de Castilla-La Mancha, 7University of Castilla-La Mancha, 8BioMIT.org, Universitat Politecnica Valencia


Abstract

Background and Aim. Portable and wearable devices initially designed for phonocardiography (PCG) monitoring can now record electrocardiogram (ECG) signals from non-standard positions that alter ECG morphology. Convolutional neural network (CNN)-based algorithms for ECG quality assessment are usually trained on standard or near-standard leads using continuous monitoring devices and validated on morphologically similar data, reporting excellent performance. This work evaluates, for the first time, the performance of such an algorithm on ECG signals from a PCG-oriented device and examines the need and impact of minimal fine-tuning using limited subject data.

Methodology. A previously published CNN-based algorithm for ECG quality assessment was directly validated on a dataset comprising 1,228 ECG signals recorded from four standard positions used for PCG acquisition in 267 patients. To enhance the algorithm's adaptation, minimal fine-tuning was performed using ECG signals from 1, 5, 10, and 20 patients, who were subsequently excluded from the validation set. The algorithm's ability to distinguish between manually annotated high- and low-quality ECG segments for reliable subsequent analysis was evaluated in terms of sensitivity (Se), specificity (Sp) and accuracy (Acc).

Results. Without fine-tuning, the CNN achieved an accuracy of 71.54%, with a sensitivity of 56.60% and a specificity of 96.19%. Incorporating ECG data from a single patient resulted in a marked improvement, increasing accuracy to 85.20% and sensitivity to 88.25%. Enlarging the fine-tuning dataset produced moderate additional gains, reaching a maximum accuracy of 87.68% and sensitivity of 92.22% when signals from ten patients were included.

Significance. The obtained results indicate that limited fine-tuning is sufficient to adapt pre-trained CNNs to ECG signals recorded from PCG-oriented devices, achieving strong generalization despite location-dependent morphological variations. This minimal adaptation strategy represents a practical solution for real-world integration in multimodal cardiac monitoring systems.