On-Device Glucose Alarms from a Single Learned Token: Pre-Registered Cross- Dataset Validation of a Class-Discriminant Codebook Across Eleven CGM Datasets

Description This record accompanies a manuscript validating a single-token, on-device encoder for continuous glucose monitoring (CGM). Each glucose window is reduced to one compact learned token from which a decision is read on the sensor itself. Under strict pre-registration — frozen hypotheses, patient-disjoint splits, and bootstrap confidence intervals — the encoder predicts hypoglycemic and hyperglycemic excursions 30–60 minutes ahead (AUC 0.93–0.97) and, trained on a single cohort, generalizes without retraining to nine independent public CGM datasets (mean AUC 0.878). A population-level federated refresh adds a further measured gain, while per-individual personalization and multi-signal fusion are shown, with honest boundaries, to add little. Method companion: Paper 19 (doi:10.5281/zenodo.20788187). Keywords: continuous glucose monitoring; hypoglycemia prediction; hyperglycemia prediction; class-discriminant codebook; vector quantization; on-device machine learning; edge inference; cross-dataset generalization; federated refresh; pre-registration; type 1 diabetes; type 2 diabetes References 1. N. Tishby, F. C. Pereira, and W. Bialek, "The information bottleneck method," in Proc. 37th Allerton Conf. Communication, Control, and Computing, 1999, pp. 368–377. 2. R. M. Gray, "Vector quantization," IEEE ASSP Magazine, vol. 1, no. 2, pp. 4–29, 1984. 3. R. A. Fisher, "The use of multiple measurements in taxonomic problems," Annals of Eugenics, vol. 7, no. 2, pp. 179–188, 1936. 4. S. P. Lloyd, "Least squares quantization in PCM," IEEE Transactions on Information Theory, vol. 28, no. 2, pp. 129–137, 1982. 5. Q. Zhao et al., "Chinese diabetes datasets for data-driven machine learning," Scientific Data, vol. 10, no. 35, 2023. 6. J. I. Hidalgo, J. Alvarado, M. Botella, A. Aramendi, J. M. Velasco, and O. Garnica, "HUPA-UCM diabetes dataset," Data in Brief, vol. 55, art. 110559, 2024, doi:10.1016/j.dib.2024.110559. 7. T. Battelino et al., "Clinical targets for continuous glucose monitoring data interpretation: recommendations from the international consensus on time in range," Diabetes Care, vol. 42, no. 8, pp. 1593–1603, 2019. 8. S. Oviedo, J. Vehí, R. Calm, and J. Armengol, "A review of personalized blood glucose prediction strategies for T1DM patients," International Journal for Numerical Methods in Biomedical Engineering, vol. 33, no. 6, e2833, 2017. 9. B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, "Communication-efficient learning of deep networks from decentralized data," in Proc. 20th Int. Conf. Artificial Intelligence and Statistics (AISTATS), 2017, pp. 1273–1282. 10. B. A. Nosek, C. R. Ebersole, A. C. DeHaven, and D. T. Mellor, "The preregistration revolution," Proc. National Academy of Sciences, vol. 115, no. 11, pp. 2600–2606, 2018. 11. B. Efron and R. J. Tibshirani, An Introduction to the Bootstrap. New York: Chapman & Hall, 1993. 12. R. J. Ferlic and K. K. Ferlic, "A single-token class-discriminant codebook for sensor encoding (Paper 19)," Zenodo, 2026, doi:10.5281/zenodo.20788187. 13. U.S. Food and Drug Administration, "Artificial Intelligence/Machine Learning (AI/ML)-Based Software as a Medical Device (SaMD) Action Plan," 2021. 14. C. Marling and R. Bunescu, "The OhioT1DM dataset for blood glucose level prediction: Update 2020," in Proc. 5th Int. Workshop on Knowledge Discovery in Healthcare Data, CEUR Workshop Proc., vol. 2675, 2020, pp. 71–74. 15. gluco-tsfm-benchmark: an aggregated continuous-glucose-monitoring benchmark of eleven public datasets, Hugging Face Datasets, https://huggingface.co/datasets/byluuu/gluco-tsfm-benchmark (accessed 2026). License This work is released under the Creative Commons Attribution 4.0 International License (CC BY 4.0). The encoding method and its federated and privacy mechanisms are covered by previously filed U.S. provisional patent applications (Nos. 64/095,354; 64/084,807; 64/084,817; 64/084,821); patent rights are separate from the copyright license. Public datasets (figshare 20444397, CC BY 4.0; HuggingFace byluuu/gluco-tsfm-benchmark) retain their own licenses and are not redistributed in the archive. Licensing inquiries: [email protected]. Randolph James Ferlic, M.D. · Kimberly Kate Ferlic · Fieldstone Analytics, LLC · DOI 10.5281/zenodo.21114273

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-07-01
DOI
https://doi.org/10.5281/zenodo.21114272
Primary Topic
Diabetes Management and Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

On-Device Glucose Alarms from a Single Learned Token: Pre-Registered Cross- Dataset Validation of a Class-Discriminant Codebook Across Eleven CGM Datasets

Randolph James Ferlic, Kimberly Kate Ferlic
Zenodo (CERN European Organization for Nuclear Research)
Diabetes Management and Research
preprint

On-Device Glucose Alarms from a Single Learned Token: Pre-Registered Cross- Dataset Validation of a Class-Discriminant Codebook Across Eleven CGM Datasets

Randolph James Ferlic, Kimberly Kate Ferlic
preprint en

Abstract

Description This record accompanies a manuscript validating a single-token, on-device encoder for continuous glucose monitoring (CGM). Each glucose window is reduced to one compact learned token from which a decision is read on the sensor itself. Under strict pre-registration — frozen hypotheses, patient-disjoint splits, and bootstrap confidence intervals — the encoder predicts hypoglycemic and hyperglycemic excursions 30–60 minutes ahead (AUC 0.93–0.97) and, trained on a single cohort, generalizes without retraining to nine independent public CGM datasets (mean AUC 0.878). A population-level federated refresh adds a further measured gain, while per-individual personalization and multi-signal fusion are shown, with honest boundaries, to add little. Method companion: Paper 19 (doi:10.5281/zenodo.20788187). Keywords: continuous glucose monitoring; hypoglycemia prediction; hyperglycemia prediction; class-discriminant codebook; vector quantization; on-device machine learning; edge inference; cross-dataset generalization; federated refresh; pre-registration; type 1 diabetes; type 2 diabetes References 1. N. Tishby, F. C. Pereira, and W. Bialek, "The information bottleneck method," in Proc. 37th Allerton Conf. Communication, Control, and Computing, 1999, pp. 368–377. 2. R. M. Gray, "Vector quantization," IEEE ASSP Magazine, vol. 1, no. 2, pp. 4–29, 1984. 3. R. A. Fisher, "The use of multiple measurements in taxonomic problems," Annals of Eugenics, vol. 7, no. 2, pp. 179–188, 1936. 4. S. P. Lloyd, "Least squares quantization in PCM," IEEE Transactions on Information Theory, vol. 28, no. 2, pp. 129–137, 1982. 5. Q. Zhao et al., "Chinese diabetes datasets for data-driven machine learning," Scientific Data, vol. 10, no. 35, 2023. 6. J. I. Hidalgo, J. Alvarado, M. Botella, A. Aramendi, J. M. Velasco, and O. Garnica, "HUPA-UCM diabetes dataset," Data in Brief, vol. 55, art. 110559, 2024, doi:10.1016/j.dib.2024.110559. 7. T. Battelino et al., "Clinical targets for continuous glucose monitoring data interpretation: recommendations from the international consensus on time in range," Diabetes Care, vol. 42, no. 8, pp. 1593–1603, 2019. 8. S. Oviedo, J. Vehí, R. Calm, and J. Armengol, "A review of personalized blood glucose prediction strategies for T1DM patients," International Journal for Numerical Methods in Biomedical Engineering, vol. 33, no. 6, e2833, 2017. 9. B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, "Communication-efficient learning of deep networks from decentralized data," in Proc. 20th Int. Conf. Artificial Intelligence and Statistics (AISTATS), 2017, pp. 1273–1282. 10. B. A. Nosek, C. R. Ebersole, A. C. DeHaven, and D. T. Mellor, "The preregistration revolution," Proc. National Academy of Sciences, vol. 115, no. 11, pp. 2600–2606, 2018. 11. B. Efron and R. J. Tibshirani, An Introduction to the Bootstrap. New York: Chapman & Hall, 1993. 12. R. J. Ferlic and K. K. Ferlic, "A single-token class-discriminant codebook for sensor encoding (Paper 19)," Zenodo, 2026, doi:10.5281/zenodo.20788187. 13. U.S. Food and Drug Administration, "Artificial Intelligence/Machine Learning (AI/ML)-Based Software as a Medical Device (SaMD) Action Plan," 2021. 14. C. Marling and R. Bunescu, "The OhioT1DM dataset for blood glucose level prediction: Update 2020," in Proc. 5th Int. Workshop on Knowledge Discovery in Healthcare Data, CEUR Workshop Proc., vol. 2675, 2020, pp. 71–74. 15. gluco-tsfm-benchmark: an aggregated continuous-glucose-monitoring benchmark of eleven public datasets, Hugging Face Datasets, https://huggingface.co/datasets/byluuu/gluco-tsfm-benchmark (accessed 2026). License This work is released under the Creative Commons Attribution 4.0 International License (CC BY 4.0). The encoding method and its federated and privacy mechanisms are covered by previously filed U.S. provisional patent applications (Nos. 64/095,354; 64/084,807; 64/084,817; 64/084,821); patent rights are separate from the copyright license. Public datasets (figshare 20444397, CC BY 4.0; HuggingFace byluuu/gluco-tsfm-benchmark) retain their own licenses and are not redistributed in the archive. Licensing inquiries: [email protected]. Randolph James Ferlic, M.D. · Kimberly Kate Ferlic · Fieldstone Analytics, LLC · DOI 10.5281/zenodo.21114273

Zenodo (CERN European Organization for Nuclear Research)
EP Analytics (United States) (US)
Reduced inequalities
Diabetes Management and Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.