FHRFormer: a self-supervised masked transformer framework for fetal heart rate time-series inpainting and forecasting
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.
Authors
- Hege Langli Ersdal (ORCID: https://orcid.org/0000-0002-2795-8564)
- Anita Yeconia
- Estomih Raphael Mduma (ORCID: https://orcid.org/0000-0002-9401-3982)
- Yuda Munyaw (ORCID: https://orcid.org/0000-0002-6761-6438)
- Kjersti Engan (ORCID: https://orcid.org/0000-0002-8970-0067)
- Neel Kanwal (ORCID: https://orcid.org/0000-0002-8115-0558)
- Ladislaus Blacy
Institutions
- Stavanger University Hospital (NO)
- Haydom Lutheran Hospital (TZ)
- University of Stavanger (NO)
Publication Details
- Journal
- Frontiers in Digital Health
- Published
- 2026-10-26
- DOI
- https://doi.org/10.3389/fdgth.2026.1900897
- Primary Topic
- ECG Monitoring and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Laerdal Foundation for Acute Medicine
- Norges Forskningsråd
- Fondation Idella