Cgmquantify: Python and R Software Packages for Comprehensive Analysis of Interstitial Glucose and Glycemic Variability from Continuous Glucose Monitor Data

Goal: Continuous glucose monitoring (CGM) is commonly used in Type 1 diabetes management by clinicians and patients and in diabetes research to understand how factors of longitudinal glucose and glucose variability relate to disease onset and severity and the efficacy of interventions. CGM data presents unique bioinformatic challenges because the data is longitudinal, temporal, and there are infinite ways to summarize and use this data. There are over 25 metrics of glucose variability used clinically and in research, metrics are not standardized, and little validation exists across studies. The primary goal of this work is to present a software resource for systematic, reproducible, and comprehensive analysis of interstitial glucose and glycemic variability from continuous glucose monitor data. Methods: Comprehensive literature review informed the clinically-validated functions developed in this work. Software packages were developed and open-sourced through the Python Package Index (PyPi) and the Comprehensive R Archive Network (CRAN). cgmquantify is integrated into the Digital Biomarker Discovery Pipeline and MD2K Cerebral Cortex. Results: Here we present an open-source software toolbox called cgmquantify, which contains 25 functions calculating 28 clinically validated metrics of glucose and glycemic variability, as well as tools for visualizing longitudinal CGM data. Detailed documentation facilitates modification of existing code by the community for customization of input data and visualizations. Conclusions: We have built systematic functions and documentation of metrics and visualizations into a software resource available in both the Python and R languages. This resource will enable digital biomarker development using continuous glucose monitors.

[1]  J. H. Kim,et al.  Glycemic Variability: How Do We Measure It and Why Is It Important? , 2015, Diabetes & metabolism journal.

[2]  Gregory Forlenza,et al.  cgmanalysis: An R package for descriptive analysis of continuous glucose monitor data , 2019, PloS one.

[3]  Lo-Hua Yuan,et al.  Translating glucose variability metrics into the clinic via Continuous Glucose Monitoring: a Graphical User Interface for Diabetes Evaluation (CGM-GUIDE©). , 2011, Diabetes technology & therapeutics.

[4]  F. Ovalle,et al.  Continuous Glucose Monitoring and Intensive Treatment of Type 1 Diabetes , 2009 .

[5]  Ke Wang,et al.  The digital biomarker discovery pipeline: An open-source software platform for the development of digital biomarkers using mHealth and wearables data , 2020, Journal of Clinical and Translational Science.

[6]  J. Wojcicki,et al.  “J”-Index. A New Proposition of the Assessment of Current Glucose Control in Diabetic Patients , 1995, Hormone and metabolic research = Hormon- und Stoffwechselforschung = Hormones et metabolisme.

[7]  Dandan Wang,et al.  CGManalyzer: an R package for analyzing continuous glucose monitoring studies , 2018, Bioinform..

[8]  Pratik Choudhary,et al.  Normal reference range for mean tissue glucose and glycemic variability derived from continuous glucose monitoring for subjects without diabetes in different ethnic groups. , 2011, Diabetes technology & therapeutics.

[9]  B. Kovatchev,et al.  Glycemic Variability: How to Measure and Its Clinical Implication for Type 2 Diabetes , 2018, The American journal of the medical sciences.

[10]  Ariel V. Dowling,et al.  Verification, analytical validation, and clinical validation (V3): the foundation of determining fit-for-purpose for Biometric Monitoring Technologies (BioMeTs) , 2020, npj Digital Medicine.

[11]  Ariel V. Dowling,et al.  Verification, analytical validation, and clinical validation (V3): the foundation of determining fit-for-purpose for Biometric Monitoring Technologies (BioMeTs). , 2020, NPJ digital medicine.

[12]  Boris P. Kovatchev,et al.  Metrics for glycaemic control — from HbA1c to continuous glucose monitoring , 2017, Nature Reviews Endocrinology.

[13]  M. de Groot,et al.  Single Subject (N-of-1) Research Design, Data Processing, and Personal Science , 2017, Methods of Information in Medicine.

[14]  L. Kessler,et al.  Glucose Variability , 2016, Journal of diabetes science and technology.

[15]  Boris Kovatchev,et al.  Glycemic Variability: Risk Factors, Assessment, and Control , 2019, Journal of diabetes science and technology.