Skip to content
Universities of Wisconsin
Call Now608-262-2011 Call 608-262-2011 Request Info Request Info Search the UW Extended Campus website Search
Wisconsin Online Collaboratives
  • About Us
    • About Us
    • Accreditation
    • Our Campus Partners
  • Degrees & Programs
  • Admissions & Aid
    • How to Apply
    • Admission Pathways
    • Important Dates
    • Tuition & Financial Aid
    • Transferring Credits
    • Contact an Enrollment Adviser
  • Online Learning
    • About Online Learning
    • Online Learning Formats
    • Capstone Projects
    • Success Coaching
    • Technology Requirements
  • Stories & News
Home Home / Capstone Projects / Inspecting Restaurant Inspections – Using Machine Learning to Improve Sanitation in NYC

Inspecting Restaurant Inspections – Using Machine Learning to Improve Sanitation in NYC

Program: Data Science Master's Degree
Location: Not Specified (remote)
Student: Sean Murphy

The NYC Department of Health and Mental Hygiene (DOHMH) is responsible for conducting sanitation inspections of the nearly 27,000 restaurants in NYC’s boroughs annually. Inspections can result in grades of A, B, or C, depending on the number of violations found. Grades of B or C indicate more violations, and such inspections can result in follow-ups such as reinspections, forced closures, extra correspondence, and adjudication of contested grades. Moreover, poor restaurant sanitation can lead to an increased incidence of foodborne illness and food poisoning for customers. This research investigates the use of machine learning to predict future inspection grades from past inspection data, with the objective of achieving a high recall for at-risk restaurants. With reliable predictions, the DOHMH can proactively mitigate sanitation risk through targeted advertising, support, education, and reminders for otherwise high-risk eateries. Logistic regression, random forest, and gradient boosting models were chosen for modeling due to their high interpretability. After fitting on past inspection data, none of the models proved satisfactory. Recall and F1 score were highest for the gradient boosting model, but ultimately unsatisfactory. None of the models exhibited improvement in accuracy over naïve prediction of the majority class. The difficulties in modeling can be attributed primarily to two factors: a lack of comprehensive data collection over time, and the low signal for inspection grades present among the predictor set. Future modeling attempts should overcome both of these challenges in order to achieve significant lift and satisfactory performance.

Let's Get Started Together

Apply Apply Schedule an Advising Call Schedule an Advising Call Request Info Request Info

This field is for validation purposes and should be left unchanged.
Are you interested in pursuing the degree or taking one or two courses?(Required)
Can we text you?(Required)

By selecting yes, I agree to receive updates about online degrees, events, and application deadlines from the Universities of Wisconsin.

Msg frequency varies depending on the activity of your record. Message and data rates may apply. Text HELP for help. You can opt out by responding STOP at any time. View our Terms and Conditions and Privacy Policy for more details.

Wisconsin Online Collaboratives will not share your personal information. Privacy Policy

Wisconsin Online Collaboratives

A Collaboration of the
Universities of Wisconsin

University of Wisconsin System

Pages

  • Our Degrees & Programs
  • How to Apply
  • Online Learning Formats
  • Our Campus Partners

Enrollment Advising

608-800-6762
learn@uwex.wisconsin.edu

Contact

780 Regent Street
Suite 130
Madison, WI 53715

Technical Support

1-877-724-7883
https://uwex.wisconsin.edu/technical-support/

Connect

  • . $name .facebook
  • . $name .linkedin
  • . $name .instagram
  • . $name .youtube

Copyright © 2026 Board of Regents of the University of Wisconsin System. | Privacy Policy