Code, Quantized CNN Models, and Beat-Level Predictions for Record-Independent ECG Classification
Abstract
This repository provides supplementary research materials for a study investigating record-independent electrocardiogram (ECG) beat classification using lightweight artificial intelligence models for FPGA-oriented edge computing. The study evaluates a lightweight one-dimensional convolutional neural network (1D-CNN) containing 2,505 trainable parameters, using the MIT-BIH Arrhythmia Database and MIT-BIH Supraventricular Arrhythmia Database. Classification performance is assessed under fixed record-independent training, validation, and testing conditions, with particular emphasis on cross-record generalization and numerical fidelity following post-training quantization. The repository includes: A trained FP32 CNN model and its INT16 and INT8 quantized representations. Beat-level prediction results for 6,941 MIT-BIH and 12,198 SVDB test beats. Python scripts for CNN training, quantization, evaluation, and verification of archived predictions. Model architecture, training configurations, fixed record partitions, and quantization parameters. Overall, class-specific, and record-level performance metrics. Numerical error analyses, prediction agreement results, and theoretical parameter-storage estimates. The results demonstrate that integer quantization can largely preserve the original CNN predictions, while generalization performance varies substantially across independent ECG records. These findings provide practical insights into model selection and numerical precision for resource-constrained biomedical edge AI systems. Reproducibility and limitations The repository supports independent verification of the archived CNN classification results. However, the original logistic regression model, its beat-level predictions, the complete waveform preprocessing pipeline, and processed training input arrays are not included. Consequently, the archive does not support complete reproduction of both classifiers from the original ECG recordings. The original ECG databases are publicly available through PhysioNet and are not redistributed in this repository. All FPGA-related memory estimates are theoretical. Hardware synthesis, FPGA inference latency, and power consumption were not evaluated. This repository is intended to support research transparency, independent evaluation, and future development of lightweight ECG classification systems for biomedical edge AI applications.