SlideShare a Scribd company logo
GlucoSim
Using Python to simulate the effects of insulin, glucagon, and
metabolic activity on blood glucose in diabetic patients
John Kozlosky
Lakeland Jr-Sr Highschool
Overview
GlucoSim is a bioinformatical program
that simulates the effects of insulin and
glucagon on blood sugar using a simple
computational model.
GlucoSim’s Purpose
Diabetes is a complex
disease to manage,
and keeping blood
sugars in check is
hard. Many things can
affect blood sugar,
like…
 Exercise
 Stress
 Menstrual cycle
 Glycemic index of food
 Insulin sensitivity
 Sleep
 High blood sugar (renal glucose
threshold = ~160mg/dL)
Hormones
 Insulin lowers blood glucose
 Glucose is stored as glycogen in the liver as glycogen
 In real organisms, insulin also causes glucose to be
stored in body fat, but that was not implemented into
the program
 Glucagon raises blood glucose
 The liver breaks down its stored glycogen into glucose
and releases it into the bloodstream
Hormone Limits
Once the liver is saturated with glycogen, it will be able to
take in no more glucose from the bloodstream, and insulin
will have no effect on the liver (in real organisms, insulin
will still be stored in fat, however).
Conversely, once the liver runs out of glycogen, glucagon will
have no effect on the liver because there is no glycogen to
convert into glucose and release into the bloodstream.
Metabolic Effects
Since the body not only stores and releases glucose using
insulin and glucagon, but also burns it for fueling its
metabolic processes, the variable “metabolic rate” slowly
detracts from glucose in the blood. It can be modified to
simulate the different rates at which the body burns glucose
during different activities, such as sleeping, sitting awake,
walking, or exercising.
Code
Code – Bioinformatical Model
Interface
How It Works
 Commands are entered into a command-line interface
 Raise or lower insulin or glucagon levels, set metabolic rate, etc…
 According to a mathematical model, the program adjusts blood glucose level
and amount of glycogen stored in the liver according to insulin, glucagon, and
the metabolic rate
 Graph the data and display it to the user in a series of interactive charts as
well as a simple readout of the current values (blood glucose, insulin and
glucagon levels, glycogen stored in liver, etc.)
 This also includes an arrow displaying the current trend of the blood sugar (steady,
slowly rising, falling, etc.)
Source Code & Misc. Statistics
 Source code is available publicly on Github
 446 lines of code
 Mental breakdowns: 2 (Agh!)

More Related Content

Viewers also liked

Entrega de publicaciones 1marzo17
Entrega de publicaciones 1marzo17Entrega de publicaciones 1marzo17
Entrega de publicaciones 1marzo17
isabelri
 
Self actualization-------realizing one's potential
Self actualization-------realizing one's potentialSelf actualization-------realizing one's potential
Self actualization-------realizing one's potential
SARA ISMAIL
 
Región noa (1)
Región noa (1)Región noa (1)
Región noa (1)
AbrilTeranFrias
 
PSICOLOGIA ORGANIZACIONAL _ Aula 9 - Percepção e Atitude
PSICOLOGIA ORGANIZACIONAL _ Aula 9 - Percepção e AtitudePSICOLOGIA ORGANIZACIONAL _ Aula 9 - Percepção e Atitude
PSICOLOGIA ORGANIZACIONAL _ Aula 9 - Percepção e Atitude
Fábio Nogueira, PhD
 
Presentación sobre memorias
Presentación sobre memoriasPresentación sobre memorias
Presentación sobre memorias
carlossmdz
 
A really really fast introduction to PySpark - lightning fast cluster computi...
A really really fast introduction to PySpark - lightning fast cluster computi...A really really fast introduction to PySpark - lightning fast cluster computi...
A really really fast introduction to PySpark - lightning fast cluster computi...
Holden Karau
 
Python and Bigdata - An Introduction to Spark (PySpark)
Python and Bigdata -  An Introduction to Spark (PySpark)Python and Bigdata -  An Introduction to Spark (PySpark)
Python and Bigdata - An Introduction to Spark (PySpark)
hiteshnd
 
Presentation of the Present Tenses.
Presentation of the Present Tenses.Presentation of the Present Tenses.
Presentation of the Present Tenses.
TrinidadInesPorretti
 
10 atitudes para contar com colaboradores mais felizes
10 atitudes para contar com colaboradores mais felizes10 atitudes para contar com colaboradores mais felizes
10 atitudes para contar com colaboradores mais felizes
José Chavaglia Neto
 
COMUNICAÇÃO ORGANIZACIONAL _ Aula 1 - Comunicação
COMUNICAÇÃO ORGANIZACIONAL _ Aula 1 - ComunicaçãoCOMUNICAÇÃO ORGANIZACIONAL _ Aula 1 - Comunicação
COMUNICAÇÃO ORGANIZACIONAL _ Aula 1 - Comunicação
Fábio Nogueira, PhD
 
Imaging abdomen trauma renal part 5 Dr Ahmed Esawy
Imaging abdomen trauma  renal part 5 Dr Ahmed EsawyImaging abdomen trauma  renal part 5 Dr Ahmed Esawy
Imaging abdomen trauma renal part 5 Dr Ahmed Esawy
AHMED ESAWY
 
ensayo
ensayoensayo
Chou fasman algorithm for protein structure prediction
Chou fasman algorithm for protein structure predictionChou fasman algorithm for protein structure prediction
Chou fasman algorithm for protein structure prediction
Roshan Karunarathna
 
El guion para multimedia
El guion para multimediaEl guion para multimedia
El guion para multimedia
Hugo Santander
 

Viewers also liked (14)

Entrega de publicaciones 1marzo17
Entrega de publicaciones 1marzo17Entrega de publicaciones 1marzo17
Entrega de publicaciones 1marzo17
 
Self actualization-------realizing one's potential
Self actualization-------realizing one's potentialSelf actualization-------realizing one's potential
Self actualization-------realizing one's potential
 
Región noa (1)
Región noa (1)Región noa (1)
Región noa (1)
 
PSICOLOGIA ORGANIZACIONAL _ Aula 9 - Percepção e Atitude
PSICOLOGIA ORGANIZACIONAL _ Aula 9 - Percepção e AtitudePSICOLOGIA ORGANIZACIONAL _ Aula 9 - Percepção e Atitude
PSICOLOGIA ORGANIZACIONAL _ Aula 9 - Percepção e Atitude
 
Presentación sobre memorias
Presentación sobre memoriasPresentación sobre memorias
Presentación sobre memorias
 
A really really fast introduction to PySpark - lightning fast cluster computi...
A really really fast introduction to PySpark - lightning fast cluster computi...A really really fast introduction to PySpark - lightning fast cluster computi...
A really really fast introduction to PySpark - lightning fast cluster computi...
 
Python and Bigdata - An Introduction to Spark (PySpark)
Python and Bigdata -  An Introduction to Spark (PySpark)Python and Bigdata -  An Introduction to Spark (PySpark)
Python and Bigdata - An Introduction to Spark (PySpark)
 
Presentation of the Present Tenses.
Presentation of the Present Tenses.Presentation of the Present Tenses.
Presentation of the Present Tenses.
 
10 atitudes para contar com colaboradores mais felizes
10 atitudes para contar com colaboradores mais felizes10 atitudes para contar com colaboradores mais felizes
10 atitudes para contar com colaboradores mais felizes
 
COMUNICAÇÃO ORGANIZACIONAL _ Aula 1 - Comunicação
COMUNICAÇÃO ORGANIZACIONAL _ Aula 1 - ComunicaçãoCOMUNICAÇÃO ORGANIZACIONAL _ Aula 1 - Comunicação
COMUNICAÇÃO ORGANIZACIONAL _ Aula 1 - Comunicação
 
Imaging abdomen trauma renal part 5 Dr Ahmed Esawy
Imaging abdomen trauma  renal part 5 Dr Ahmed EsawyImaging abdomen trauma  renal part 5 Dr Ahmed Esawy
Imaging abdomen trauma renal part 5 Dr Ahmed Esawy
 
ensayo
ensayoensayo
ensayo
 
Chou fasman algorithm for protein structure prediction
Chou fasman algorithm for protein structure predictionChou fasman algorithm for protein structure prediction
Chou fasman algorithm for protein structure prediction
 
El guion para multimedia
El guion para multimediaEl guion para multimedia
El guion para multimedia
 

Similar to GlucoSim

Hormonal Regulation: glycolysis/glucogenesis-Glucose homeostasis
Hormonal Regulation: glycolysis/glucogenesis-Glucose homeostasisHormonal Regulation: glycolysis/glucogenesis-Glucose homeostasis
Hormonal Regulation: glycolysis/glucogenesis-Glucose homeostasis
Hamid Ur-Rahman
 
Liver
LiverLiver
Ghrelin mathematical modeling and beyond (The big glucose model: the quest fo...
Ghrelin mathematical modeling and beyond (The big glucose model: the quest fo...Ghrelin mathematical modeling and beyond (The big glucose model: the quest fo...
Ghrelin mathematical modeling and beyond (The big glucose model: the quest fo...
Jorge Pires
 
Regulation of body glucose
Regulation of body glucoseRegulation of body glucose
Regulation of body glucose
Fatima Gul
 
Gluconeogenesis
GluconeogenesisGluconeogenesis
Gluconeogenesis
WITTYGOLD
 
glucose homeostasis.pptx
glucose homeostasis.pptxglucose homeostasis.pptx
glucose homeostasis.pptx
vineetarun1
 
Regulation of blood Glucose Part-I.pptx
Regulation of blood Glucose Part-I.pptxRegulation of blood Glucose Part-I.pptx
Regulation of blood Glucose Part-I.pptx
ABHIJIT BHOYAR
 
Regulation of blood glucose
Regulation of blood glucose Regulation of blood glucose
Regulation of blood glucose
S.G.T Medical College Gurgaon Haryana (India)
 
9 blood glucose
9 blood glucose9 blood glucose
9 blood glucose
dream10f
 
Interpret the results of blood glucose levels
Interpret the results of blood glucose levelsInterpret the results of blood glucose levels
Interpret the results of blood glucose levels
vidhyaloginirajavel
 
Regulation of blood glucose concentration
Regulation of blood glucose concentrationRegulation of blood glucose concentration
Regulation of blood glucose concentration
Ramesh Gupta
 
Glucose secretion
Glucose secretionGlucose secretion
Glucose secretion
NaveedMurtazaAslam
 
Blood glucose Regulation Dr veerendra
Blood glucose Regulation Dr veerendraBlood glucose Regulation Dr veerendra
Blood glucose Regulation Dr veerendra
Veerendra Kumar Arumalla
 
Newer OHA and insulin
Newer OHA and insulinNewer OHA and insulin
Newer OHA and insulin
NamrataRaja1
 
ieee_tbme_apc_nov_2013_May_2014_FINAL
ieee_tbme_apc_nov_2013_May_2014_FINALieee_tbme_apc_nov_2013_May_2014_FINAL
ieee_tbme_apc_nov_2013_May_2014_FINAL
Nick Preiser
 
Glucose metabolism.pptx
Glucose metabolism.pptxGlucose metabolism.pptx
Glucose metabolism.pptx
NabdNabd
 
Glucagon-9.pptx- Physiology, functions, regulation
Glucagon-9.pptx- Physiology, functions, regulationGlucagon-9.pptx- Physiology, functions, regulation
Glucagon-9.pptx- Physiology, functions, regulation
Sai Sailesh Kumar Goothy
 
regulation of blood sugar
regulation of blood sugar regulation of blood sugar
regulation of blood sugar
Bala Vidyadhar
 
ةةةةGlucose metabolism.pptx
ةةةةGlucose metabolism.pptxةةةةGlucose metabolism.pptx
ةةةةGlucose metabolism.pptx
NabdNabd
 
Regulation of blood glucose
Regulation of blood glucoseRegulation of blood glucose
Regulation of blood glucose
Dr Hakim Mehenni
 

Similar to GlucoSim (20)

Hormonal Regulation: glycolysis/glucogenesis-Glucose homeostasis
Hormonal Regulation: glycolysis/glucogenesis-Glucose homeostasisHormonal Regulation: glycolysis/glucogenesis-Glucose homeostasis
Hormonal Regulation: glycolysis/glucogenesis-Glucose homeostasis
 
Liver
LiverLiver
Liver
 
Ghrelin mathematical modeling and beyond (The big glucose model: the quest fo...
Ghrelin mathematical modeling and beyond (The big glucose model: the quest fo...Ghrelin mathematical modeling and beyond (The big glucose model: the quest fo...
Ghrelin mathematical modeling and beyond (The big glucose model: the quest fo...
 
Regulation of body glucose
Regulation of body glucoseRegulation of body glucose
Regulation of body glucose
 
Gluconeogenesis
GluconeogenesisGluconeogenesis
Gluconeogenesis
 
glucose homeostasis.pptx
glucose homeostasis.pptxglucose homeostasis.pptx
glucose homeostasis.pptx
 
Regulation of blood Glucose Part-I.pptx
Regulation of blood Glucose Part-I.pptxRegulation of blood Glucose Part-I.pptx
Regulation of blood Glucose Part-I.pptx
 
Regulation of blood glucose
Regulation of blood glucose Regulation of blood glucose
Regulation of blood glucose
 
9 blood glucose
9 blood glucose9 blood glucose
9 blood glucose
 
Interpret the results of blood glucose levels
Interpret the results of blood glucose levelsInterpret the results of blood glucose levels
Interpret the results of blood glucose levels
 
Regulation of blood glucose concentration
Regulation of blood glucose concentrationRegulation of blood glucose concentration
Regulation of blood glucose concentration
 
Glucose secretion
Glucose secretionGlucose secretion
Glucose secretion
 
Blood glucose Regulation Dr veerendra
Blood glucose Regulation Dr veerendraBlood glucose Regulation Dr veerendra
Blood glucose Regulation Dr veerendra
 
Newer OHA and insulin
Newer OHA and insulinNewer OHA and insulin
Newer OHA and insulin
 
ieee_tbme_apc_nov_2013_May_2014_FINAL
ieee_tbme_apc_nov_2013_May_2014_FINALieee_tbme_apc_nov_2013_May_2014_FINAL
ieee_tbme_apc_nov_2013_May_2014_FINAL
 
Glucose metabolism.pptx
Glucose metabolism.pptxGlucose metabolism.pptx
Glucose metabolism.pptx
 
Glucagon-9.pptx- Physiology, functions, regulation
Glucagon-9.pptx- Physiology, functions, regulationGlucagon-9.pptx- Physiology, functions, regulation
Glucagon-9.pptx- Physiology, functions, regulation
 
regulation of blood sugar
regulation of blood sugar regulation of blood sugar
regulation of blood sugar
 
ةةةةGlucose metabolism.pptx
ةةةةGlucose metabolism.pptxةةةةGlucose metabolism.pptx
ةةةةGlucose metabolism.pptx
 
Regulation of blood glucose
Regulation of blood glucoseRegulation of blood glucose
Regulation of blood glucose
 

GlucoSim

  • 1. GlucoSim Using Python to simulate the effects of insulin, glucagon, and metabolic activity on blood glucose in diabetic patients John Kozlosky Lakeland Jr-Sr Highschool
  • 2. Overview GlucoSim is a bioinformatical program that simulates the effects of insulin and glucagon on blood sugar using a simple computational model.
  • 3. GlucoSim’s Purpose Diabetes is a complex disease to manage, and keeping blood sugars in check is hard. Many things can affect blood sugar, like…  Exercise  Stress  Menstrual cycle  Glycemic index of food  Insulin sensitivity  Sleep  High blood sugar (renal glucose threshold = ~160mg/dL)
  • 4. Hormones  Insulin lowers blood glucose  Glucose is stored as glycogen in the liver as glycogen  In real organisms, insulin also causes glucose to be stored in body fat, but that was not implemented into the program  Glucagon raises blood glucose  The liver breaks down its stored glycogen into glucose and releases it into the bloodstream
  • 5. Hormone Limits Once the liver is saturated with glycogen, it will be able to take in no more glucose from the bloodstream, and insulin will have no effect on the liver (in real organisms, insulin will still be stored in fat, however). Conversely, once the liver runs out of glycogen, glucagon will have no effect on the liver because there is no glycogen to convert into glucose and release into the bloodstream.
  • 6. Metabolic Effects Since the body not only stores and releases glucose using insulin and glucagon, but also burns it for fueling its metabolic processes, the variable “metabolic rate” slowly detracts from glucose in the blood. It can be modified to simulate the different rates at which the body burns glucose during different activities, such as sleeping, sitting awake, walking, or exercising.
  • 10.
  • 11. How It Works  Commands are entered into a command-line interface  Raise or lower insulin or glucagon levels, set metabolic rate, etc…  According to a mathematical model, the program adjusts blood glucose level and amount of glycogen stored in the liver according to insulin, glucagon, and the metabolic rate  Graph the data and display it to the user in a series of interactive charts as well as a simple readout of the current values (blood glucose, insulin and glucagon levels, glycogen stored in liver, etc.)  This also includes an arrow displaying the current trend of the blood sugar (steady, slowly rising, falling, etc.)
  • 12. Source Code & Misc. Statistics  Source code is available publicly on Github  446 lines of code  Mental breakdowns: 2 (Agh!)