bioRxivBioengineeringPreprint
Towards Passive Dietary Monitoring: Dilated CNN-Based Meal Detection Using Ambulatory High-Resolution Electrogastrography
Abstract
BackgroundObjective tools for longitudinal dietary monitoring, despite its importance in the health triad of diet, sleep, and exercise, remain limited. Widely available ambulatory options include continuous glucose monitoring, which is a delayed response, and manual logging, which is rife with human error. Clinical tools such as gastric emptying scintigraphy are impractical for everyday use. High-resolution electrogastrography (HR-EGG) offers an alternative by treating gastric myoelectric activity as a biomarker of digestive state. However, its utility for ambulatory meal detection remains unclear. We hypothesize that HR-EGG and accelerometry together encode distinct postprandial gastric signatures to enable automated meal detection, and that postural context represents a relevant source of variation in signal detectability. MethodsHR-EGG and accelerometry data were collected from seven healthy adults across sixteen 150-minute meal sessions under IRB-approved protocol. Each session included a 30-minute fasted baseline, consumption of a standardized meal, and 90-minute postprandial period of sitting, walking, and lying in a randomized order. Features of the gastric slow wave, including raw and normalized bandpower, phase gradient directionality (PGD), wave direction, and wave speed, were extracted alongside triaxial accelerometer magnitude. A dilated one-dimensional convolutional network (1D CNN) was trained to classify meal consumption at five-minute resolution using leave-one-subject-out cross-validation. Postural effects on gastric myoelectric metrics were assessed using the Friedman test. ResultsThe model achieved a mean AUROC of 0.925 (95% CI: [0.857, 0.993]) and mean AUPRC of 0.824 (95% CI: [0.668, 0.980]; null model: 0.20). Feature ablation showed PGD as the most informative input ({Delta}AUPRC = -0.188), with wave propagation speed the least informative ({Delta}AUPRC = -0.105). Walking produced the highest signal-to-noise ratio (9.94 dB), lying had the most stable gastric rhythm (89.1% normogastric), and sitting demonstrated the greatest frequency instability (dominant frequency standard deviation = 0.825 cpm). ConclusionA dilated 1D CNN applied to spatiotemporal HR-EGG features enables temporally aware passive meal detection across ambulatory contexts. This study framework addresses a gap between clinical need for objective dietary monitoring and the limitations of current detection methods.
- organism: human
- assay: electrophysiology
- research focus: cell type annotation
- approach: deep learning
- approach: transformer / foundation model
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Optimizing non-invasive assessment of gastric activity: a fully automated channel-wise pipeline for multi-electrode electrogastrography
Alessandro Iannone, Maria Serena Panasiti, … Stefania Della Penna·bioRxiv·Nov 3, 2026
- Skin-conformal electronics for wearable electrogastrography monitoring
Liuxi Xing, Yulu Cai, … Jinxing Li·IEEE Journal on Flexible ElectronicsPeer-reviewed·Oct 20, 2025
- Automatic Assessment of Human Gastric Motility and Emptying from Dynamic 3D Magnetic Resonance Imaging
K.-H. Lu, Z. Liu, … T. L. Powley·bioRxiv·Dec 11, 2020
- Validation of non-invasive body-surface gastric mapping for detecting electrophysiological biomarkers by simultaneous high-resolution serosal mapping in a porcine model
S. Calder, L. K. Cheng, … P. Du·bioRxiv·Aug 1, 2021
- Comparison of dry and wet electrodes for detecting gastrointestinal activity patterns from body surface electrical recordings
J. C. Erickson, E. Stepanyan, E. Hassid·bioRxiv·Apr 23, 2022
- Machine learning prediction of emesis and gastrointestinal state in ferrets
Ameya C. Nanivadekar, Derek M. Miller, … Charles C. Horn·PLoS ONEPeer-reviewed·Oct 18, 2019