NYC Data Science Academy| Blog
Bootcamps
Lifetime Job Support Available Financing Available
Bootcamps
Data Science with Machine Learning Flagship 🏆 Data Analytics Bootcamp Artificial Intelligence Bootcamp New Release 🎉
Free Lesson
Intro to Data Science New Release 🎉
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook Graduate Outcomes Must See 🔥
Alumni
Success Stories Testimonials Alumni Directory Alumni Exclusive Study Program
Courses
View Bundled Courses
Financing Available
Bootcamp Prep Popular 🔥 Data Science Mastery Data Science Launchpad with Python View AI Courses Generative AI for Everyone New 🎉 Generative AI for Finance New 🎉 Generative AI for Marketing New 🎉
Bundle Up
Learn More and Save More
Combination of data science courses.
View Data Science Courses
Beginner
Introductory Python
Intermediate
Data Science Python: Data Analysis and Visualization Popular 🔥 Data Science R: Data Analysis and Visualization
Advanced
Data Science Python: Machine Learning Popular 🔥 Data Science R: Machine Learning Designing and Implementing Production MLOps New 🎉 Natural Language Processing for Production (NLP) New 🎉
Find Inspiration
Get Course Recommendation Must Try 💎 An Ultimate Guide to Become a Data Scientist
For Companies
For Companies
Corporate Offerings Hiring Partners Candidate Portfolio Hire Our Graduates
Students Work
Students Work
All Posts Capstone Data Visualization Machine Learning Python Projects R Projects
Tutorials
About
About
About Us Accreditation Contact Us Join Us FAQ Webinars Subscription An Ultimate Guide to
Become a Data Scientist
    Login
NYC Data Science Acedemy
Bootcamps
Courses
Students Work
About
Bootcamps
Bootcamps
Data Science with Machine Learning Flagship
Data Analytics Bootcamp
Artificial Intelligence Bootcamp New Release 🎉
Free Lessons
Intro to Data Science New Release 🎉
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook
Graduate Outcomes Must See 🔥
Alumni
Success Stories
Testimonials
Alumni Directory
Alumni Exclusive Study Program
Courses
Bundles
financing available
View All Bundles
Bootcamp Prep
Data Science Mastery
Data Science Launchpad with Python NEW!
View AI Courses
Generative AI for Everyone
Generative AI for Finance
Generative AI for Marketing
View Data Science Courses
View All Professional Development Courses
Beginner
Introductory Python
Intermediate
Python: Data Analysis and Visualization
R: Data Analysis and Visualization
Advanced
Python: Machine Learning
R: Machine Learning
Designing and Implementing Production MLOps
Natural Language Processing for Production (NLP)
For Companies
Corporate Offerings
Hiring Partners
Candidate Portfolio
Hire Our Graduates
Students Work
All Posts
Capstone
Data Visualization
Machine Learning
Python Projects
R Projects
About
Accreditation
About Us
Contact Us
Join Us
FAQ
Webinars
Subscription
An Ultimate Guide to Become a Data Scientist
Tutorials
Data Analytics
  • Learn Pandas
  • Learn NumPy
  • Learn SciPy
  • Learn Matplotlib
Machine Learning
  • Boosting
  • Random Forest
  • Linear Regression
  • Decision Tree
  • PCA
Interview by Companies
  • JPMC
  • Google
  • Facebook
Artificial Intelligence
  • Learn Generative AI
  • Learn ChatGPT-3.5
  • Learn ChatGPT-4
  • Learn Google Bard
Coding
  • Learn Python
  • Learn SQL
  • Learn MySQL
  • Learn NoSQL
  • Learn PySpark
  • Learn PyTorch
Interview Questions
  • Python Hard
  • R Easy
  • R Hard
  • SQL Easy
  • SQL Hard
  • Python Easy
Data Science Blog > R Visualization > Impact of HbA1c test on diabetes treatment from 1999 to 2008

Impact of HbA1c test on diabetes treatment from 1999 to 2008

Jingyu Zhang
Posted on Jul 23, 2016

Diabetes mellitus is a chronic disorder associated with disturbances in carbohydrate, fat, and protein metabolism and characterized by hyperglycemia. It is one of the most prevalent diseases, affecting approximately 24 million individuals in the United States.The motivation of this study is to use data science to help focus treatment development on more effective forms of treatment. In this work, I use the Health Facts database (Cerner Corporation, Kansas City, MO), a national data warehouse that collects comprehensive clinical records across hospitals throughout the United States. [1]  The data is an extract representing 10 years (1999–2008) of clinical care at 130 hospitals and integrated delivery networks throughout the United States. The final data includes 69,051 patients’ distinct visits with 50 variables.  

Five factors are investigated for revealing the information of diabetic patients and the relation of HbA1c testing result and patients’ readmission ratio back to hospital.

1). The diabetic population distribution in age and race

The plot below shows that patient numbers dramatically increase with age, and reaches a peak in the range of 80-90 years old.
Within the diabetic population, the highest count is Caucasian, then African American, Hispanic and Asian respectively. Because the data is collected in the USA, the result strongly depends on the specific demographics of this country.  

 

Diabates distributions in age

 

2). Primary diagnosis of diabetic patients

In our dataset, each observation corresponds to a unique patient diagnosed with diabetes. However, not every patient had diabetes as a primary diagnosis.  In many cases other diseases were more dominant in terms of symptoms, and so even people with diabetes might have a different primary diagnosis.  The plot shows the breakdown by primary diagnosis of patients who also have diabetes.  Circulatory disease ranks first  followed by respiratory disease, neoplasms, and digestive conditions. Diabetes as a primary diagnosis ranks 5th.  Since different diseases receive different medications, I categorized the data by primary diagnosis.

Primary_Diagnosis

A subset of the original 69,051 diabetics was chosen for further study.  The selection was based on including only those patients whose initial diagnosis was performed using the HBA1c test, as this is test is unique in being able to identify how well the disease is being controlled.  12,000 subjects, all diagnosed with HBA1c remained in this study for further investigation.

 

These 12,000 subjects were further broken out into three groups: those whose diabetes is  under control (“normal”), and two groups whose diabetes is not under control.  In one instance (“high without change”) the doctor did not change medication despite the high occurrence of diabetic symptoms, and in the third group (“high with change”) the doctor changed medication in response to the diabetic symptoms.

 

The objective of this study is to understand the relation of HbA1c test result and the medication numbers.

 

3). HbA1c impact on medication number

The distinct medication number with HbA1C test  is analyzed in box plot. With primary diagnosis of diabetes, the median medication numbers are lower  than that of circulatory by HbA1c test result, respectively. Among the top ranked primary diagnosis, such as circulatory, respiratory, neoplasms and digestive, patients with high HbA1C test result and medical changed received more distinct medications, compared with those with normal test result. Oppositely, those with high test result, but no medical change received less distinct medications.  This information combined with readmitted ratio back to hospital proves the treatment results according to HbA1C test.

 

HbA1c_vs_numbermedication

4). HbA1c impact on readmitted ratio

One of the features to demonstrate an effective treatment is the readmission rate of patients back to the hospital within 30 days. This bar plots show the relation of HbA1c test and readmitted ratio by primary diagnoses.

readmission ratio for HbA1C

Circulatory patients overall have higher readmission rates among all the patients. The diabetic patients with high test results show reduced readmitted rates only after being treated.  The respiratory, injury and musculoskeletal patients with normal HbA1c test result show a relatively lower possibility of going back to the hospital, compared those with high test result. We assume the patients with high test results are more serious than those with normal results. For the patients with primary diagnosis of diabetes, it appears that treatment reduces the rate at which they return to the hospital.  It is the opposite for  circulatory, respiratory, digestive, diabetes, musculoskeletal and genitourinary diagnoses.  In these cases patients appear to do better if there is no change in their medication.  

For neoplasms and injury patients with high test result, the changed medication reflects a lower readmitted ratio than the previous medication.

5). Medical specialty on readmitted ratio

The readmitted ratio by medical specialty is plotted in the bar chart.  Patients with hematology/oncology, oncology,  and vascular surgery ranked among the highest readmitted rates.  This suggests that these diabetic patients are very likely to return to the hospital in short time. On the bottom of the chart, the patients with obstetrics/gynecology and otolaryngology issues show very low readmission rates.

medication VS readmitted ratio

6). Conclusion

This study looked at diabetic patients from 1999 to 2008. First, we found that the diabetic population is increasing with age.  The rates vary for different ethnic populations, from Caucasian (the highest) to  African American, Hispanic and then Asian, respectively. Second, we found that many patients with diabetes have other primary diagnoses, such as circulatory, respiratory, neoplasms, digestive,  injury, musculoskeletal, and genitourinary in sequence by population. Third, compared with normal test results, when HbA1c high test with medication change, the number of medications increased. However, for those high test result without medication change, the number of medications is decreased. Fourth, we looked at the HbA1c test impact readmitted ratio. We found strong evidence of when there is a need to change medication, based on the diagnosis.  Fifth, the diabetic patients  with different primary diagnoses show different readmission rates.

 

I believe that for the data from 1999 to 2008, people realize how important of HbA1c test is for the diabetic patient’s treatment. Further data analysis for diabetic patients from 2008 to present with large amount of HbA1c test is ongoing.

References:

  1. http://dx.doi.org/10.1155/2014/781670
  2. http://www.mayomedicallaboratories.com/test-catalog/Clinical+and+Interpretive/82080

https://gist.github.com/jingyuzhang3/3dc972cd679beb14bafb493ce5844b0a

 

About Author

Jingyu Zhang

Jingyu Zhang has Ph. D degree in Electrical Engineering with emphasis on optics and electronics. She had been working as display scientist at Sharp Labs of America for four years. Now she is passionate about data science and...
View all posts by Jingyu Zhang >

Leave a Comment

Cancel reply

You must be logged in to post a comment.

township hack online November 23, 2016
Really excellent post, I surely adore this website, keep on it.
Maryjo November 9, 2016
This is a very great hints especially to those new to blogosphere, short and exact info... Thanks for sharing this one. A must read article.
Hba1c Diabetes Ranges Chart | Play GTA for free September 18, 2016
[…] Impact of HbA1c test on diabetes treatment from 1999 to 2008 – Diabetes mellitus is a chronic … readmitted ratio even though we are lack of HbA1c test results corresponding to each medical specialty. The readmitted ratio by medical specialty is plotted in the bar chart. I find the patients with hematology … […]

View Posts by Categories

All Posts 2399 posts
AI 7 posts
AI Agent 2 posts
AI-based hotel recommendation 1 posts
AIForGood 1 posts
Alumni 60 posts
Animated Maps 1 posts
APIs 41 posts
Artificial Intelligence 2 posts
Artificial Intelligence 2 posts
AWS 13 posts
Banking 1 posts
Big Data 50 posts
Branch Analysis 1 posts
Capstone 206 posts
Career Education 7 posts
CLIP 1 posts
Community 72 posts
Congestion Zone 1 posts
Content Recommendation 1 posts
Cosine SImilarity 1 posts
Data Analysis 5 posts
Data Engineering 1 posts
Data Engineering 3 posts
Data Science 7 posts
Data Science News and Sharing 73 posts
Data Visualization 324 posts
Events 5 posts
Featured 37 posts
Function calling 1 posts
FutureTech 1 posts
Generative AI 5 posts
Hadoop 13 posts
Image Classification 1 posts
Innovation 2 posts
Kmeans Cluster 1 posts
LLM 6 posts
Machine Learning 364 posts
Marketing 1 posts
Meetup 144 posts
MLOPs 1 posts
Model Deployment 1 posts
Nagamas69 1 posts
NLP 1 posts
OpenAI 5 posts
OpenNYC Data 1 posts
pySpark 1 posts
Python 16 posts
Python 458 posts
Python data analysis 4 posts
Python Shiny 2 posts
R 404 posts
R Data Analysis 1 posts
R Shiny 560 posts
R Visualization 445 posts
RAG 1 posts
RoBERTa 1 posts
semantic rearch 2 posts
Spark 17 posts
SQL 1 posts
Streamlit 2 posts
Student Works 1687 posts
Tableau 12 posts
TensorFlow 3 posts
Traffic 1 posts
User Preference Modeling 1 posts
Vector database 2 posts
Web Scraping 483 posts
wukong138 1 posts

Our Recent Popular Posts

AI 4 AI: ChatGPT Unifies My Blog Posts
by Vinod Chugani
Dec 18, 2022
Meet Your Machine Learning Mentors: Kyle Gallatin
by Vivian Zhang
Nov 4, 2020
NICU Admissions and CCHD: Predicting Based on Data Analysis
by Paul Lee, Aron Berke, Bee Kim, Bettina Meier and Ira Villar
Jan 7, 2020

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day ChatGPT citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay football gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income industry Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI

NYC Data Science Academy

NYC Data Science Academy teaches data science, trains companies and their employees to better profit from data, excels at big data project consulting, and connects trained Data Scientists to our industry.

NYC Data Science Academy is licensed by New York State Education Department.

Get detailed curriculum information about our
amazing bootcamp!

Please enter a valid email address
Sign up completed. Thank you!

Offerings

  • HOME
  • DATA SCIENCE BOOTCAMP
  • ONLINE DATA SCIENCE BOOTCAMP
  • Professional Development Courses
  • CORPORATE OFFERINGS
  • HIRING PARTNERS
  • About

  • About Us
  • Alumni
  • Blog
  • FAQ
  • Contact Us
  • Refund Policy
  • Join Us
  • SOCIAL MEDIA

    © 2025 NYC Data Science Academy
    All rights reserved. | Site Map
    Privacy Policy | Terms of Service
    Bootcamp Application