WorksmedRxiv
Uncertainty-Aware Deep Learning Automates Artifact Correction for Clinical Body Surface Gastric Mapping at Scale
Abstract
Body surface gastric mapping (BSGM) enables non-invasive measurement of gastric electrophysiology, but signals are approximately 100 times weaker than cardiac potentials and overlap spectrally with motion artifacts, necessitating labor-intensive manual review that limits clinical scalability. We present an uncertainty-aware deep learning framework to automate artifact correction in high-resolution BSGM. A signal reconstruction network was paired with a parallel uncertainty estimation network, trained on 2,398 multihour, 64-channel recordings from 27 international clinical sites using weak supervision, a physiology-aware loss function, and uncertainty-gated quality control. In an independent cohort of 127 patients, per-patient signal reconstruction error was 29% lower than with the industry-standard Wiener filter (10.3% vs 14.6%; lower in 103 patients), and remained lower when both filters retained identical samples (9.8% vs 14.6%). Amplitude-movement correlation was 23% lower. Changing only the filter raised the rhythm index across the cohort and robustly altered automated clinical phenotyping in 7.1% of patients, mostly by removing dysrhythmic classifications from artifact-affected recordings. Uncertainty-aware deep learning enables reliable automated artifact correction in body surface gastric mapping, improving signal fidelity and enabling scalable clinical interpretation. The system is FDA-cleared (510(k) K252504) and deployed in clinical practice, demonstrating that data-driven artifact correction can meet regulatory requirements for medical devices and reduce dependence on specialist manual review.