GithubHelp home page GithubHelp logo

mirokeimioniemi / optimizing-insulin-injection-timing Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 917 KB

Data processing and analysis for "Determining the optimal timing for insulin injection to minimize glucose level variability after a meal in ideal conditions" - a research project for the IB Standard Level Mathematics Analysis and Approaches course inspired by my type 1 diabetes.

Home Page: https://mirokeimioniemi.com/portfolio/writing/determining-the-optimal-timing-for-insulin-injection-to-minimize-glucose-level-variability-after-a-meal-in-ideal-conditions.html

Jupyter Notebook 100.00%
data-analysis data-science diabetes exploration international-baccalaureate mathematics optimization python type-1-diabetes insulin insulin-timing ib cgm dexcom dexcom-g6

optimizing-insulin-injection-timing's Introduction

Optimizing the Timing of Insulin Injections

Data processing and analysis for "Determining the optimal timing for insulin injection to minimize glucose level variability after a meal in ideal conditions" - a research project for the IB Standard Level Mathematics Analysis and Approaches course inspired by my type 1 diabetes.

With type 1 diabetes, there are broadly two major problems that must be solved daily by the diabetic individual: when to eat or inject insulin and how much? This research aimed to answer the former question using my personal CGM data collected between 27.10.2021 and 1.12.2021.

The overall method was to isolate the events where I naturally either injected 1 unit of insulin or consumed 10 grams of carbohydrates far enough from eating and exercise from the over 10 000 data points that my dexcom G6 glucose sensor collected over the data collection period. I used statistical methods to model the average behavior of my glucose levels in those events to produce curves (functions) for both types of events with python. Adding together the curves and taking the integral of that graph with different x-offsets of the insulin injection curve then produced the optimal timing with the simplified assumptions that were made. Due to these simplified assumptions and the one person test group, the results are not to be trusted in making medical decisions but the process may be used as inspiration for a better algorithm one day.

Read more about the results and process here: https://users.aalto.fi/~keimiom1/portfolio/writing/determining-the-optimal-timing-for-insulin-injection-to-minimize-glucose-level-variability-after-a-meal-in-ideal-conditions.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.