Frontiers in Digital Health
FHRFormer: a self-supervised masked transformer framework for fetal heart rate time-series inpainting and forecasting
By Kjersti Engan, Neel Kanwal, Anita Yeconia and 4 others.
Abstract
Introduction Approximately 10% of newborns require assistance to initiate breathing at birth, and around 5% need ventilation support. Continuous fetal heart rate (FHR) monitoring supports the assessment of fetal well-being and timely obstetric interventions. However, wearable FHR monitors are prone to signal dropout caused by maternal movement and sensor displacement, resulting in missing data that complicate automated analysis. Conventional interpolation methods often fail to preserve important temporal and spectral characteristics of FHR signals. Methods We developed FHRFormer, a self-supervised masked transformer-based autoencoder for reconstructing missing FHR signals and forecasting short-term FHR dynamics. The model was trained on 4,486 FHR recordings collected using the Moyo monitor during labor in Tanzanian hospitals. By combining temporal reconstruction with frequency-aware loss functions, the framework aims to preserve both local signal morphology and spectral characteristics. Performance was evaluated using independent validation and test datasets, different masking ratios, and varying input patch sizes. Results FHRFormer demonstrated the ability to reconstruct missing FHR segments while preserving temporal and spectral characteristics consistent with surrounding signals. Reconstruction performance was highest with an input patch size of 30 samples and a masking ratio of 15%, with decreasing accuracy at higher masking ratios. The framework also demonstrated short-term FHR forecasting using a 30-minute historical context and a 15-second prediction horizon. Discussion FHRFormer offers a promising approach to improving the completeness of FHR recordings for retrospective research and AI-based analysis. Future integration into wearable FHR monitoring devices could support real-time risk detection. However, clinical benefits, including improved prediction of neonatal outcomes, remain to be established.



