Diabetes Prevalence in a Community

No preview image

1 collaborator

Default-person Devin Bowes (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.0.4 • Viewed 162 times • Downloaded 15 times • Run 0 times
Download the 'Diabetes Prevalence in a Community' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


WHAT IS IT?

This model is showing the incidence of diabetes in the United States as set within particular clinical parameters for fasting glucose levels. Each year, approximately 1 in 10 adult Americans are diagnosed with diabetes, and currently, roughly 10% of the U.S. population is living with the disease. This model hopes to act as a visual aid to show the impact of this disease on the population as so many people are affected, or rather, are at risk and may go undiagnosed for years until they find out too late.

HOW IT WORKS

The model begins by setting up the amount of people globally in a population. At the start, 300 people are able to start off in the global environment. Depending on what the user of this model would like to specifically model will determine how many people start off either healthy (absence of diabetes), at risk, or has diabetes. Use the sliders to determine those amounts of people. Whether a person falls under these aforementioned categories depends on particular fasting glucose amounts as practiced clinically. Diabetes (>120mg/dL), at risk (105-120mg/dL), and healthy (<105 mg/dL). These were the rules presented in the code to define these populations. The plots to the right of the interface show the rise and fall of people with diabetes to place a numeric value on the amount of people in each category. The patches represent eating a healthy diet versus eating a diet which is shown to be a risk factor for diabetes incidence (high fat/sugar). Pink represents eating a healthy diet, black patches represent eating an unhealthy diet. The red people in the interface represent those with diabetes; yellow indicates at risk, and green indicates healthy. There are "unhealthy" and "healthy" buttons which are turtle-only commands which allow the user of the model to manually adjust the parameters for eating a healthy diet versus an unhealthy diet.

HOW TO USE IT

The buttons "setup", "go once" and "go" will act as the model starters. There are three sliders, "initial-diabetes", "initial-healthy" and "initial-risk" which shows the amount of people who are starting out as either diagnosed with diabetes, healthy, or at risk for developing diabetes. Click on the "go once" button to see slowly the progession of people either getting diabetes, becomnig at risk, or regressing from diabetes and becoming healthy. Click "go" to watch in real-time the overlap of peolpe eating healthy, unhealthy, getting diabetes, becoming at risk, or getting healthier. Watch the plots as they spike up and down or grow steady as time goes on.

THINGS TO NOTICE

Notice as glucose levels rise, the incidence of diabetes is more prevalent, and as glucose levels fall (eat-healthy) the incidence of diabetes is not as prevalent, but either remains steady or even decreases. The more people with diabetes will mean the more red and yellow people, and less green people, and vice versa. Notice the plots changing, increasing up and down as they correlate with these fluctuations.

THINGS TO TRY

Try clicking on the "healthy" and "unhealthy" buttons to manually force the amount of uneahlthy eating habits or healthy eating habits and notice the changes in diabetes prevalence and incidence in the global environment. Try scaling the amount of people who intially have diabetes, who are at risk, or who are healthy. This will adjust the amount of time it takes for everyone to be at risk for diabetes or who have diabetes.

EXTENDING THE MODEL

Try extending the model to adjust the patches to be more fluid, or make a segmented version of the global environment to portray possibly different demographic or geographic locations of food deserts or those who are of low SES. This could help model health disparities and differences amongst populations. Another extension could be to include more parameters that act as either risk factors or risk reducers, such as physical activity.

NETLOGO FEATURES

Special NetLogo features include the use of setting the turtle parametes and patches colors. The language in of itself is unique to this model, but it made it simple to set the parameters and rules that I needed in order to help this model come to fruition.

RELATED MODELS

There is a model which shows blood glucose levels and insulin resistance, titled "Blood Sguar Regulation". I did not use much, if at all, of this code, but it did help me create this idea to make it more applicable to real life situations, such as incidence of disease. This model is related to blood glucose levels, however does not show prevalence or incidence of diabetes specifically.

CREDITS AND REFERENCES

Blood Sugar Regulation model that gave me this idea: http://ccl.northwestern.edu/netlogo/models/BloodSugarRegulation

Credit to Dr. Garcia of Arizona State University who introduced NetLogo to our class and allowed us the opportunity to learn a new skill that can be applied in scientific research, especially in systems thinking.

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

breed [risks risk] ;; turtles at risk
breed [diabetesp diabetes] ;; turtles with diabetes
breed [healthyp healthy] ;; turtles healthy
turtles-own [ glucose ] ;; turtles eat food and increase/decrease glucose
patches-own [ health ;; representing healthy food
  unhealthy ;; representing unhealthy food
]

to setup
clear-all
create-turtles 100
setup-patches
ask patches [
    set unhealthy random 2.5

    set health random 1.5
  ]
  ask turtles [

  get-diabetes
    get-healthy
  ]
create-healthyp initial-healthy ;; represent people without diabetes in a population
[   set shape "person"
    set size 2
    set color green
    set glucose 100 ;; mg/dL, these values represent true clinical serum blood values of fasting glucose levels
setxy random-xcor random-ycor ]

create-diabetesp initial-diabetes ;; represent people with diabetes in a population
[ set shape "person"
    set size 2
  set color red
    set glucose 120 ;; mg/dL
  setxy random-xcor random-ycor ]

  create-risks initial-risk ;; represent people who are at risk of diabetes in a population
[ set shape "person"
    set size 2
  set color yellow
    set glucose 101 ;;mg/dL
  setxy random-xcor random-ycor ]

reset-ticks
end 

to go
  ask healthyp [
    move-turtles
    change-turtles
    healthy-turtles
    ]

    ask risks [
    move-turtles
    change-turtles
    healthy-turtles
    ]

    ask diabetesp [
    move-turtles
    change-turtles
    healthy-turtles
    ]
  tick
end 

to go-once
    ask healthyp [
    move-turtles
    change-turtles
    healthy-turtles
    ]

    ask risks [
    move-turtles
    change-turtles
    healthy-turtles
    ]

    ask diabetesp [
    move-turtles
    change-turtles
    healthy-turtles
    ]
  tick
end 

to get-diabetes
   ask healthyp [
    change-turtles
  ]
end 

to get-healthy
  ask diabetesp [
    healthy-turtles
  ]
    ask risks [
      healthy-turtles
  ]
end 

to change-turtles
  ask healthyp [
    eat-unhealthy
   if glucose > 105 [set
      color yellow
    ]
   if glucose > 120 [set
    color red
    ]
  ]
end 

to healthy-turtles
  ask diabetesp [
    eat-healthy
    if glucose < 100 [set
      color green
    ]
  ]
    ask risks [
      if glucose < 100 [set
        color green
      ]
  ]
end 

to move-turtles
  rt random 50
  lt random 50
  fd 1
end 

to eat-unhealthy ; turtle procedure
  ; people eat unhealthy, turn patches black
  if pcolor = pink [
    set pcolor black
    set glucose glucose + 1 ;; mg/dL
  ]
end 

to eat-healthy ; turtle procedure
  ; people eat healthier, turn patches pink
  if pcolor = black [
  set pcolor pink
    set glucose glucose - 1 ; mg/dL
  ]
end 

to setup-patches
  ask patches [set pcolor pink]
end 

There is only one version of this model, created almost 5 years ago by Devin Bowes.

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.