Abstract
Continuous glucose monitors (CGMs) produce data that could train accurate glucose forecasters, but those data are sensitive health records. Shaped by my work as a medical interpreter, where trust in how institutions handle personal information affects access to care, this project asks whether patients can help train glucose forecasters without giving up their privacy. Federated learning is combined with private stream aggregation (PSA) and fully homomorphic encryption (FHE): the masked aggregate is unmasked and applied to the model inside OpenFHE’s BFV scheme, so an untrusted server never sees any update, their sum, or the model. A threshold-gated update rule’s L2 clipping bound also guarantees wraparound-free modular aggregation. I also extend Takeshita’s unified framework for lattice PSA to many rounds, deriving a noise budget for a long-lived encrypted model. Experiments forecast glucose 30 minutes ahead from real CGM, insulin, and carbohydrate records of 25 adults with type 1 diabetes (AZT1D). PSA and PSA-to-FHE matched plaintext federated averaging within 0.02 mg/dL RMSE and beat the no-model baseline by 3.1 mg/dL. For new patients, the private federated model was 8.5 mg/dL more accurate than a model trained on their own first day. Only a threshold computed from public information reduced communication, by up to 66%. In the SLAP-based variant, choosing q ≡ 1 (mod t) made noise-budget overflows harmless, and an adaptive refresh threshold prevented them (9 refreshes per 100 rounds). All models rarely predicted hypoglycemia, and strong user-level differential privacy (ε ≈ 11.6) degraded the shared model; local fine-tuning recovered most of its accuracy.
Keywords: federated learning, continuous glucose monitoring, private stream aggregation, homomorphic encryption, differential privacy
Faculty Advisor/Mentor
Jonathan Takeshita
Document Type
Paper
Disciplines
Artificial Intelligence and Robotics | Bioinformatics | Biomedical Informatics | Computer Sciences | Data Science | Health Information Technology | Information Security
DOI
10.25776/mptk-nb76
Publication Date
12-1-2026
Upload File
wf_yes
Included in
Artificial Intelligence and Robotics Commons, Bioinformatics Commons, Biomedical Informatics Commons, Data Science Commons, Health Information Technology Commons, Information Security Commons
Privacy-Preserving Federated Blood Glucose Forecasting with Threshold-Gated Updates, Private Stream Aggregation, and Homomorphic Post-Aggregation Computation
Continuous glucose monitors (CGMs) produce data that could train accurate glucose forecasters, but those data are sensitive health records. Shaped by my work as a medical interpreter, where trust in how institutions handle personal information affects access to care, this project asks whether patients can help train glucose forecasters without giving up their privacy. Federated learning is combined with private stream aggregation (PSA) and fully homomorphic encryption (FHE): the masked aggregate is unmasked and applied to the model inside OpenFHE’s BFV scheme, so an untrusted server never sees any update, their sum, or the model. A threshold-gated update rule’s L2 clipping bound also guarantees wraparound-free modular aggregation. I also extend Takeshita’s unified framework for lattice PSA to many rounds, deriving a noise budget for a long-lived encrypted model. Experiments forecast glucose 30 minutes ahead from real CGM, insulin, and carbohydrate records of 25 adults with type 1 diabetes (AZT1D). PSA and PSA-to-FHE matched plaintext federated averaging within 0.02 mg/dL RMSE and beat the no-model baseline by 3.1 mg/dL. For new patients, the private federated model was 8.5 mg/dL more accurate than a model trained on their own first day. Only a threshold computed from public information reduced communication, by up to 66%. In the SLAP-based variant, choosing q ≡ 1 (mod t) made noise-budget overflows harmless, and an adaptive refresh threshold prevented them (9 refreshes per 100 rounds). All models rarely predicted hypoglycemia, and strong user-level differential privacy (ε ≈ 11.6) degraded the shared model; local fine-tuning recovered most of its accuracy.
Keywords: federated learning, continuous glucose monitoring, private stream aggregation, homomorphic encryption, differential privacy
Comments
The following files accompany this paper and are available from the author on request:
- Code (Python and shell): the AZT1D data converter, the federated learning pipeline with threshold-gated updates, private stream aggregation, and OpenFHE BFV post-aggregation computation, the multi-round SLAP extension, and scripts that regenerate every table and figure in the paper.
- Results: raw output from all 144 federated runs and the OFPSA C++ benchmark logs.
- Reproduction guide: step-by-step instructions for running the full study on macOS.
- Paper source: LaTeX files and figures.
- Presentation slides from the COVA CCI Undergraduate Research Showcase.
To request access, please email Vera Pande at [email protected]
Data: Experiments use the public AZT1D dataset (Khamesian et al., 2025), available under a CC BY 4.0 license at https://doi.org/10.17632/gk9m674wcx.1. The dataset is not redistributed with these materials.
Software: This work builds on Dr. Jonathan Takeshita's OFPSA framework (https://github.com/jtakeshi/ofpsa) and the OpenFHE library (https://github.com/openfheorg/openfhe-development).
This research was completed through the COVA CCI Undergraduate Cybersecurity Research Program under the mentorship of Dr. Jonathan Takeshita, Old Dominion University.