A medical device for predicting a user's future glycemic state includes a
memory module, a processor module and a user alert module. The memory
module is configured to receive and store a plurality of glucose
concentrations as a function of time that were generated by a user's use
of a continuous glucose monitor. The processor module is configured to
derive first and second glucose prediction equations that are fits to the
plurality of glucose concentrations stored in the memory module with the
fits being based on first and second mathematical models, respectively.
The processor module is also configured to calculate first and second
predicted glucose concentrations at a future time using the first and
second glucose prediction equations, respectively, and to also calculate
an average predicted glucose concentration and a merit index based on the
first and second predicted glucose calculations. The processor module is
further configured to input the plurality of glucose concentrations as a
function of time, the average predicted glucose concentration and the
merit index into a trained model (e.g., a Hidden Markov Model) that
outputs a set of glucose concentration probabilities for the future time
and to then predict the user's future glycemic state based on the set of
glucose concentration probabilities. The user alert module is configured
to alert the user in a manner dependent on the predicted user's future
glycemic state.