Data Visualizing Birth and Maternity Trends in New York

Posted on Nov 18, 2018
The skills we demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.


The New York State Maternity Law requires hospitals to provide data and information about their childbirth practices and procedures.  This information aims to help individuals understand what to expect, to learn more about their childbirth choices, and to plan for their baby’s birth.

The 'Hospital Maternity Information: Beginning 2008' dataset is available on the New York State Department of Health website, as part of the state's open data initiative.   This dataset contains information reported by hospitals that have been compliant with New York State’s Maternity Information Law.

The state website allows individuals like me to view some visualizations of some of the metrics in the dataset by hospital and by year. This style of visualization made it hard to metrics as they changed over the years and thus, difficult to get insights on trends. Metrics cannot be compared side by side. A geospatial representation of the data would also be useful in looking at how trends vary across the state.

The App:

To address these issues, I created a shiny app that would allow users to view trends on a geospatial representation of New York State and look at trends as they changed over time. In addition, I wanted to be able to compare county data as opposed to the current available visualization on the New York State Department of Health website, where Hospitals can be compared to one another.

With a goal of creating a  geospatial visualization of New York State Maternity Data, I used Leaflet and Google Vis to plot county shapes on New York State maps. Bar charts and Correlation plots allow the user to compare different metrics and measurements by county-vs-state averages and by county-vs-county averages. Hospital specific data can be visualized on a map as well.


Data Visualizing Birth and Maternity Trends in New York

Total Births per County in New York State for 2008

Interesting Data findings

While not surprising, most births occurred in counties with or in proximity to big metropolitan areas like New York, Kings (Brooklyn), Queens, Nassau, and Westchester. There is a high density of hospitals in these areas as well. The high compliance of these hospitals account for most of the births recorded in the data set. Surprisingly, the highest incidence of cesarean sections are in Nassau and Suffolk counties.  Areas considered to be Upstate and West New York tend to have numbers below the state average.

Future Directions

For a more robust and insightful app, I would like to include New York State infant outcomes data in addition to county and state demographics. I would like to investigate why certain counties have no reported data despite the State having laws and requirements for hospitals to provide data.

I would update the way metrics are measured as a proportion rather than actual birth counts. This would normalize data and comparisons between counties with big population differences would be possible.

Correlations and relationships between infant outcomes and delivery conditions  can be made. It would also be interesting to find if there are any demographic trends for birth and delivery conditions.

Click here for app.

Click here for code.

About Author

Denise Sison

Denise is currently a Data Science Fellow at New York City Data Science Academy. Denise has extensive molecular biology and clinical research experience with a focus on infectious disease epidemiology and neonatal births outcomes. Denise was educated in...
View all posts by Denise Sison >

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

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 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 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 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