You can now compare restaurant reviews with hygiene data about the state of the kitchens, reports Alex Starritt, prompting dirty eateries to clean up their act
Cities across the US have taken to Yelp to tell their residents where not to eat.
San Francisco, Los Angeles, Raleigh (North Carolina) and many others have started to post their restaurant hygiene ratings next to reviews on the hugely popular site, to prevent outbreaks of food poisoning and pressure dirty eateries into cleaning up.
‘We had a 15% pick up in users accessing the data in one week,’ Stephanie Cushing of the San Francisco Department of Public Health told Apolitical.
Previously, information about hygiene standards was only available on placards at the restaurants themselves or on little-visited government websites – while people looking at restaurant reviews wouldn’t know anything about the state of the kitchen.

The collaboration also cuts the other way – food safety inspectors are using the reviews, and a clever algorithm, to target which places they should be looking at.
Words and phrases like ‘dirty’ or ‘made me sick’ can be flagged to inspectors, so they visit those restaurants instead of making their spot checks at random. Merging these notifications with the history of hygiene violations and feeding all that information into an algorithm means it can predict the likelihood of problems at specific restaurants.
A study for the Harvard Business Review found that more than 80% of restaurants could be correctly classified into the top or bottom half of hygiene scores using only Yelp text and ratings.
This idea has been taken much further in Chicago, which has used all kinds of information – such as inspection scores, the age of the business and sanitation complaints – to predict which restaurants ought to be looked at.
The need for a more targeted system is pressing: Chicago has 42 employees trying to keep tabs on around 15,000 eateries.
Some 3,000 Americans die of food poisoning each year
The predictive analytics were bankrolled by a $1million grant from Bloomberg Philanthropies, set up by former New York mayor Michael Bloomberg. The city’s Department of Innovation and Technology developed the system with analysts from AllState Insurance and the Civic Consulting Alliance.
This analysis is not, however, available on any review sites, and nor are Chicago’s hygiene ratings. Although several cities have replicated the Yelp model, it has happened piecemeal. Moreover, several places have so far been unable to act on it because they don’t collect their information in the right format; some just have collections of PDFs.
The [San Francisco variant](https://www.yelp.co.uk/c/sf/restaurants ), which has been running for seven years, now covers 5,000 restaurants and 2,000 other places where food is prepared. The information is now available is 17 municipalities, including Boulder, Colorado; Anchorage, Alaska; and the entire state of Florida.
A randomised controlled trial by Harvard Business Review found that restaurants whose low hygiene ratings are posted on Yelp tend to respond by raising standards – and perform better in subsequent inspections.

If you have ideas or experience in open data that you’d like to share, pitch us a blog or tweet us at @ODIHQ.