Inspiration

I want to predict when people will have low events before they happen so they will expect them and not let their sugar levels drop dangerously low.

What it does

This code uses pandas to process glucose readings over ~1 year. The data is then fed into an LSTM using a couple of stats like min, max, average, and range over a timeframe such as 1 hour or 1 day. The result is an image showing the predictions compared to the actual result. Typically I was trying to predict the minimum glucose in the next timeframe because low glucose events can be very dangerous. This proved to be minorly effective. The LSTM was good at fitting to the overall trend of the data according to the results on the test dataset, but it is difficult to predict lows before they happen. The accuracy overall of predicting whether the next reading will be above or below the low threshold was over 90%, but that is because they are sparse. The accuracy of predicting a low glucose event given that one is about to occur is about 40-45%.

Challenges we ran into

The amount of information in the glucose reading data doesn't seem to be enough to fully predict severe lows. This makes sense, because stress, exercise, or an overdose of insulin can drop blood sugar despite any previous trend. Also I was not able to show the complete working due to the time frame which I have tried to cover.

Accomplishments that we're proud of

The LSTM shows a proof of concept that the trend of the data can be learned and predicted.

What's next for glycoma detector

I want to add more sources of data like exercise and stress levels to see if I can increase the accuracy of my predictions

Built With

Share this project:

Updates