Adaptive stride and energy pooling hybrid windowing for non-synthetic class balancing of electrocardiogram signals: intra-patient versus patient-independent evaluation
Imbalanced clinical datasets often impede the development of reliable machine learning models. Conventional balancing relies on synthetic generation, frequently producing artificial electrocardiogram waveforms that violate physiological principles. This paper introduces a non-synthetic hybrid windowing method for time-series data. The method combines an overwindowing pipeline, which extracts additional windows from minority classes using adaptive strides and phase-shifted overlapping, with an underwindowing pipeline, which reduces the majority class by numerical selection criteria. It reduced the largest class ratio from 118.8:1 to 9.4:1 without a generative model. Validation with a One-Dimensional Convolutional Neural Network yielded a weighted F1-score of 0.976 ± 0.002 (three seeds) under an intra-patient split, in which correlated windows from the same recordings appear in both training and test subsets. Under patient-independent evaluation (DS1/DS2 split of 44 records, five seeds), however, the method did not improve on an unbalanced baseline or on class weighting alone (macro-F1 0.342 ± 0.046 versus 0.443 ± 0.048 and 0.430 ± 0.024), and a re-run in a second computing environment gave the same order. In a five-fold patient-level cross-validation, its macro-F1 was below the baseline in every fold. With R-peak-centred windows, the macro-F1 deficit disappeared, but no significant gain emerged. No single component had a detectable effect, and the method was not distinguishable from random resampling to equal class volumes. The study offers a rule-based procedure for adjusting class volumes and an evaluation design separating this ability from classification gain; it provides no evidence of improvement on unseen patients in the 44 MIT-BIH records.
Authors
- Umar Zaky (ORCID: https://orcid.org/0000-0002-9533-0955)
- Edi Noersasongko (ORCID: https://orcid.org/0009-0009-2880-8515)
- Abdul Syukur (ORCID: https://orcid.org/0000-0003-3443-6833)
- Muhammad Falah Akbar Al Faiz
- Bayu Setia
- Purwanto
Institutions
- Universitas Dian Nuswantoro (ID)
- Universitas Teknologi Yogyakarta (ID)
Publication Details
- Journal
- Array
- Published
- 2026-12-01
- DOI
- https://doi.org/10.1016/j.array.2026.101579
- Primary Topic
- ECG Monitoring and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 0.00