A personalized and automated real-time meal detection algorithm based on continuous glucose monitoring and heart rate data for individuals with post-bariatric hypoglycemia - Report - MDSpire

A personalized and automated real-time meal detection algorithm based on continuous glucose monitoring and heart rate data for individuals with post-bariatric hypoglycemia

  • By

  • Luca Cossu

  • Giacomo Cappon

  • Felix Wortmann

  • David Herzig

  • Lia Bally

  • Andrea Facchinetti

  • July 1, 2026

  • 0 min

Share

Clinical Report: An Automated Real-Time Meal Detection System Utilizing Continuous Glucose Monitoring and Heart Rate Data for Patients Experiencing Post-Bariatric Hypoglycemia

Overview

This study presents a real-time meal detection algorithm that integrates continuous glucose monitoring (CGM) and heart rate data for patients with post-bariatric hypoglycemia (PBH). The algorithm demonstrated high recall and precision in meal detection.

Background

Post-bariatric hypoglycemia (PBH) is a significant complication following bariatric surgery, characterized by exaggerated insulin responses leading to hypoglycemic episodes. Accurate meal detection is crucial for managing PBH, yet current methods rely heavily on manual logging, which is often inaccurate. Continuous glucose monitoring (CGM) has emerged as a promising tool for real-time glucose management.

Data Highlights

SettingRecallPrecisionFalse Positives (per day)
Controlled100%N/AN/A
Free-living78%85%1 every 2.3 days

Key Findings

  • The algorithm achieved 100% recall in controlled settings.
  • In free-living conditions, the algorithm demonstrated an average precision of 85% and recall of 78%.
  • False positives were reduced to one every 2.3 days compared to CGM-only algorithms, which had one every 1.3 days.
  • The algorithm utilizes a heuristic decision-tree model based on individualized features from CGM and heart rate data.

Clinical Implications

The integration of this meal detection algorithm into decision support systems could enhance glucose management for patients with PBH.

Conclusion

The proposed algorithm represents an advancement in automated meal detection for patients with PBH, offering reliable performance in both controlled and free-living environments.

Related Resources & Content

  1. Frontiers in Digital Health, 2026 -- Within-person modeling of postprandial glucose using multimodal wearable data
  2. Obesity Surgery, 2021 -- Factors Influencing Postprandial Hypoglycemia Following Gastric Bypass Surgery: A Retrospective Case-Control Analysis
  3. aace endocrine ai, 2026 -- Remote CGM monitoring may improve glycemic outcomes
  4. npj Digital Medicine, 2025 -- Generalized multi task learning framework for glucose forecasting and hypoglycemia detection using simulation to reality
  5. Post-bariatric Hypoglycemia Management: A Gulf Cooperation Council Consensus Statement, Journal of the Endocrine Society, 2025
  6. PREVENT: A Randomized, Placebo-controlled Crossover Trial of Avexitide for Treatment of Postbariatric Hypoglycemia - PMC, 2021
  7. Society for Endocrinology Guidelines on PBH
  8. Post-bariatric Hypoglycemia Management: A Gulf Cooperation Council Consensus Statement | Journal of the Endocrine Society | Oxford Academic
  9. PREVENT: A Randomized, Placebo-controlled Crossover Trial of Avexitide for Treatment of Postbariatric Hypoglycemia - PMC
  10. Amylyx Pharmaceuticals Presents New Exploratory Analyses from Phase 2 and Phase 2b Clinical Trials of Avexitide in Post-Bariatric Hypoglycemia at ENDO 2025 | Amylyx Pharmaceuticals, Inc.
  11. Managing post-bariatric hypoglycemia: a systematic review of pharmacological therapies - PMC
  12. Incidence and risk factors of post-metabolic and bariatric surgery hypoglycemia: a systematic review | International Journal of Obesity
  13. Journal of the Endocrine Society, 2025, 9, bvaf106

Original Source(s)

Related Content