Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

Leveraging Large Language Models to Analyze Continuous Glucose Monitoring Data: A Case Study

View ORCID ProfileElizabeth Healey, View ORCID ProfileAmelia Tan, View ORCID ProfileKristen Flint, View ORCID ProfileJessica Ruiz, View ORCID ProfileIsaac Kohane
doi: https://doi.org/10.1101/2024.04.06.24305022
Elizabeth Healey
1Harvard-MIT Program in Health Sciences and Technology, Massachusetts Institute of Technology, Cambridge, MA
2Department of Biomedical Informatics, Harvard Medical School, Boston, MA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Elizabeth Healey
  • For correspondence: ehealey{at}mit.edu
Amelia Tan
2Department of Biomedical Informatics, Harvard Medical School, Boston, MA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Amelia Tan
Kristen Flint
3Endocrinology Division, Massachusetts General Hospital, Boston, MA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Kristen Flint
Jessica Ruiz
4Division of Endocrinology, Boston Children’s Hospital, Boston, MA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Jessica Ruiz
Isaac Kohane
2Department of Biomedical Informatics, Harvard Medical School, Boston, MA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Isaac Kohane
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

Abstract

Continuous glucose monitors (CGM) provide patients and clinicians with valuable insights about glycemic control that aid in diabetes management. The advent of large language models (LLMs), such as GPT-4, has enabled real-time text generation and summarization of medical data. Further, recent advancements have enabled the integration of data analysis features in chatbots, such that raw data can be uploaded and analyzed when prompted. Studying both the accuracy and suitability of LLM-derived data analysis performed on medical time series data, such as CGM data, is an important area of research. The objective of this study was to assess the strengths and limitations of using an LLM to analyze raw CGM data and produce summaries of 14 days of data for patients with type 1 diabetes. This study used simulated CGM data from 10 different cases. We first evaluated the ability of GPT-4 to compute quantitative metrics specific to diabetes found in an Ambulatory Glucose Profile (AGP). Then, using two independent clinician graders, we evaluated the accuracy, completeness, safety, and suitability of qualitative descriptions produced by GPT-4 across five different CGM analysis tasks. We demonstrated that GPT-4 performs well across measures of accuracy, completeness, and safety when producing summaries of CGM data across all tasks. These results highlight the capabilities of using an LLM to produce accurate and safe narrative summaries of medical time series data. We highlight several limitations of the work, including concerns related to how GPT-4 may misprioritize highlighting instances of hypoglycemia and hyperglycemia. Our work serves as a preliminary study on how generative language models can be integrated into diabetes care through CGM analysis, and more broadly, the potential to leverage LLMs for streamlined medical time series analysis.

Competing Interest Statement

E.H. is supported by the National Science Foundation Graduate Research Fellowship Program. J.R. is a Fellow in the Pediatric Scientist Development Program supported by the Cystic Fibrosis Foundation. All other authors report no competing interests.

Funding Statement

EH was supported by the National Science Foundation Graduate Research Fellowship Program under grant number 2141064. KLF is supported by the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK grant T32DK007028).

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Data Availability

This work was done using simulated data and accordingly, all data is publicly available. The CSV files are available on https://github.com/lizhealey/GPT4_CGM_Summarization.git

Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-NC-ND 4.0 International license.
Back to top
PreviousNext
Posted April 08, 2024.
Download PDF
Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
Leveraging Large Language Models to Analyze Continuous Glucose Monitoring Data: A Case Study
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
Leveraging Large Language Models to Analyze Continuous Glucose Monitoring Data: A Case Study
Elizabeth Healey, Amelia Tan, Kristen Flint, Jessica Ruiz, Isaac Kohane
medRxiv 2024.04.06.24305022; doi: https://doi.org/10.1101/2024.04.06.24305022
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
Leveraging Large Language Models to Analyze Continuous Glucose Monitoring Data: A Case Study
Elizabeth Healey, Amelia Tan, Kristen Flint, Jessica Ruiz, Isaac Kohane
medRxiv 2024.04.06.24305022; doi: https://doi.org/10.1101/2024.04.06.24305022

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Health Informatics
Subject Areas
All Articles
  • Addiction Medicine (349)
  • Allergy and Immunology (668)
  • Allergy and Immunology (668)
  • Anesthesia (181)
  • Cardiovascular Medicine (2648)
  • Dentistry and Oral Medicine (316)
  • Dermatology (223)
  • Emergency Medicine (399)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (942)
  • Epidemiology (12228)
  • Forensic Medicine (10)
  • Gastroenterology (759)
  • Genetic and Genomic Medicine (4103)
  • Geriatric Medicine (387)
  • Health Economics (680)
  • Health Informatics (2657)
  • Health Policy (1005)
  • Health Systems and Quality Improvement (985)
  • Hematology (363)
  • HIV/AIDS (851)
  • Infectious Diseases (except HIV/AIDS) (13695)
  • Intensive Care and Critical Care Medicine (797)
  • Medical Education (399)
  • Medical Ethics (109)
  • Nephrology (436)
  • Neurology (3882)
  • Nursing (209)
  • Nutrition (577)
  • Obstetrics and Gynecology (739)
  • Occupational and Environmental Health (695)
  • Oncology (2030)
  • Ophthalmology (585)
  • Orthopedics (240)
  • Otolaryngology (306)
  • Pain Medicine (250)
  • Palliative Medicine (75)
  • Pathology (473)
  • Pediatrics (1115)
  • Pharmacology and Therapeutics (466)
  • Primary Care Research (452)
  • Psychiatry and Clinical Psychology (3432)
  • Public and Global Health (6527)
  • Radiology and Imaging (1403)
  • Rehabilitation Medicine and Physical Therapy (814)
  • Respiratory Medicine (871)
  • Rheumatology (409)
  • Sexual and Reproductive Health (410)
  • Sports Medicine (342)
  • Surgery (448)
  • Toxicology (53)
  • Transplantation (185)
  • Urology (165)