![]()
Last Updated: Wednesday, January 28, 2026 09:15 AM - Data up to Tuesday, 27 January, 2026
As we explore the complexities of food safety in the UK, let's start by peeling back the layers and uncovering the truth behind the safety of our daily diets.
Food safety is a critical issue in the UK. Millions of people are affected by foodborne illnesses every year. These illnesses can range from mild discomfort to life-threatening complications.
In this report, I delve into the complexities of food safety in the UK. I examine the trends, patterns, and areas for improvement, to better understand the issues.
The purpose of this report is to provide a comprehensive visual overview of food safety alerts issued by the UK Food Standards Agency, with a focus on major food categories and their corresponding contamination risks. By presenting a range of visualizations, including stacked bar plots, pie chart and time-series plots. The objective is to provide readers with valuable insights into the types of contaminants that pose the greatest threats to consumer health. By visualizing the data, I have improved accessibility, and in turn, I hope that this helps empower policymakers, industry professionals, and consumers with data-driven insights that inform their decisions on food safety management and risk mitigation strategies.
The report's objective is threefold.
By achieving these objectives, I hope to contribute to a safer and more informed food system in the UK, and assuage my intense curiosity about how safe UK food really is (Hint, we're good ....)
The main goal of this analysis is to provide data-driven insights that inform policymakers, industry professionals, and consumers about effective strategies for managing food safety risks in the UK. By visualizing the data, I aim to improve accessibility and empower stakeholders with actionable recommendations that can help reduce foodborne illnesses and ensure a safer food system.
TopThis report employed a comprehensive approach to analysing Food Standards Agency (FSA) alert data. A dataset comprising 824 FSA alerts was obtained and thoroughly cleaned to ensure accuracy. The data was then categorized by contaminant type and food category, allowing for the identification of trends and patterns. To gain insights into the complexities of food safety in the UK, I utilised statistical analysis tools to examine the relationships between different contaminants and food categories. This methodology enabled me to uncover key findings that inform understanding of the FSA's alert data and its implications for the food industry.
Web Scraping: I developed a web scraping script with selenium and Streamlit that collects the search results from food.gov.uk and archived alerts from nationalarchive.gov.uk. During the data collection process, it was noted that a lot of data was missing from 2017 to 2020.
The web scrape app compares these search results with the data already collected and highlights any missing alert notices allowing a single click to scrape, assemble and present the alert notice data for editing and validation.There were two types of alerts that are issued and have been scraped from the websites: Allergen Alerts and Safety Alerts.
Each observation from the original webs scrape includes the date, Title and search results body text
Additional features were engineered from the data as part of the Data Cleanse and Feature Engineering phases of development.
There were a number of issues identified when working with the data and I would like to recommend improvements to the data captured by the Food Standards Agency Team:
I would like to see the the FSA update the data structure and breakout key data:
In this report, I've analyzed trends, patterns, and areas for improvement across various contaminant types and affected food categories. The following pages present a series of visualizations that illustrate these findings, providing insights into which contaminants are most prevalent in different food groups. You'll see how some contaminants are more likely to occur in certain types of food, while others show no clear patterns. This comprehensive analysis will help you better understand the complex landscape of food safety in the UK and identify opportunities for improvement."