New Issue: Orbital Catastrophe Ahead? Read Now

Artificial Intelligence Sniffs Out Unsafe Foods

Researchers trained machine-learning algorithms to read Amazon reviews for hints that a food product would be recalled by the FDA. Christopher Intagliata reports.

Illustration of a Bohr atom model spinning around the words Science Quickly with various science and medicine related icons around the text

Join Our Community of Science Lovers!

The Food and Drug Administration has to recall hundreds of foods every year. Like cookie snack packs with chunks of blue plastic hiding inside, Salmonella-tainted taco seasoning or curry powder laced with lead

It can take months before a recall is issued. But now researchers have come up with a method that might fast-track that process, leading to early detection and, ultimately, faster recalls. 

The system relies on the fact that people increasingly buy foods and spices online. And people tend to write reviews of products they buy online—which are like bread crumbs to food-safety officials sniffing out dangerous products. 


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


The researchers linked FDA food recalls from 2012 to 2014 to Amazon reviews of those same products. They then trained machine-learning algorithms to differentiate between reviews for recalled items and reviews for items that had not been flagged. 

And the trained algorithms were able to predict FDA recalls three quarters of the time. They also identified another 20,000 reviews for possibly unsafe foods—most of which had never been recalled. The results are in [JAMIA Open]. [Adyasha Maharana et al., Detecting reports of unsafe foods in consumer product reviews]

The World Health Organization estimates that 600 million people worldwide get sick annually, and more than 400,000 people die from contaminated food. “So having tools that allow us to detect this faster and hopefully investigate and do recalls faster will be useful not just in the U.S. but in other countries around the world as well.” Study author Elaine Nsoesie of Boston University. 

She did add one caveat: even recalled products can still get five-star reviews. So stars alone don’t tell the whole sickening story. The proof, unfortunately, may still be in the pudding.

—Christopher Intagliata

[The above text is a transcript of this podcast.]

Subscribe to Support Independent Journalism

Great science journalism requires human expertise, time, effort and creativity. And it costs money. That’s why I and the journalists here at Scientific American hope you’ll join our community.

When you subscribe, you are supporting staff and freelance journalists who are passionate about telling science stories that are true, important and compelling. Our editors and reporters are often experts in their fields, which means they understand the nuances of big discoveries and can untangle the breakthroughs from the hype. With a subscription, you are also supporting rigorous fact-checking to ensure the words we publish are precise and accurate. And you’re supporting original illustrations, graphics and photos that bring you closer to an advanced laboratory, an ice sheet in Antarctica or a space mission in orbit. You’re helping us craft other types of high-quality journalism as well: Our newsletters are carefully written, edited and curated by staffers you have or will come to know and love. Our Science Quickly podcast is based on original reporting, collaboration with editors and scientists and exacting production.

Subscriptions keep this engine running so we can continue to deliver thoughtful, rigorous and independent science journalism to you. In an era of viral misinformation, this work is crucial. If you value what we do, I hope you’ll consider joining us as a subscriber

Thank you,

Jeanna Bryner, Editor in Chief, Scientific American

Subscribe