FHRFormer: a self-supervised masked transformer framework for fetal heart rate time-series inpainting and forecasting
4 affiliations
- 1Department of Electrical Engineering and Computer Science, University of Stavanger, Stavanger, Norway
- 2Faculty of Health Sciences, University of Stavanger, Stavanger, Norway
- 3Haydom Lutheran Hospital, Haydom, Tanzania
- 4Department of Simulation-Based Learning, Stavanger University Hospital, Stavanger, Norway
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.
Related
- Graph-augmented transformer networks and explainable AI for economic impact forecasting in disrupted supply chains
- Congenital Heart Disease Diagnosis Using Minimax Guided Context Attention (MG-CAT) Transformer Framework
- Unifying Vision and Language: Benchmarking End to End Transformer Model Against the ClipCap Framework
- Athlete-AI: a multi-modal artificial intelligence framework for personalized athlete monitoring and injury risk forecasting
- MFSI-Net: a weakly supervised framework for continuous estimation of expert-annotated functional states from multisource wearable signals in type 2 diabetes
BibTeX
@article{engan2026fhrformer,
title = {{FHRFormer: a self-supervised masked transformer framework for fetal heart rate time-series inpainting and forecasting}},
author = {Kjersti Engan and Neel Kanwal and Anita Yeconia Bukhay and Ladislaus Blacy and Yuda Munyaw and Estomih Mduma and Hege Langli Ersdal},
journal = {Frontiers in Digital Health},
year = {2026},
month = oct,
doi = {10.3389/fdgth.2026.1900897},
url = {https://doi.org/10.3389/fdgth.2026.1900897},
note = {CC BY 4.0},
}
RIS
TY - JOUR
TI - FHRFormer: a self-supervised masked transformer framework for fetal heart rate time-series inpainting and forecasting
AU - Kjersti Engan
AU - Neel Kanwal
AU - Anita Yeconia Bukhay
AU - Ladislaus Blacy
AU - Yuda Munyaw
AU - Estomih Mduma
AU - Hege Langli Ersdal
PY - 2026
DA - 2026/10/26
JO - Frontiers in Digital Health
DO - 10.3389/fdgth.2026.1900897
UR - https://doi.org/10.3389/fdgth.2026.1900897
AB - 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.
SN - 2673-253X
ER -