Food Safety
Crunching Data for Food Safety's Sake
To manage the growing threats to our food safety arising from increasingly diverse food sources and complex supply chains, the National Centre for Food Science (NCFS) actively leverages data science to ensure that food in Singapore remains safe for consumption.

By Singapore Food Agency Published 04 Dec 2021

ncfs scientist crunching data

NCFS scientist crunching data to ensure safe food for all.

The NCFS, established in April 2019 together with the inauguration of the Singapore Food Agency (SFA), is the cornerstone of our nation’s food safety regime. On top of testing of food to support enforcement of food regulations in Singapore, NCFS also runs a science and risk-based market monitoring programme. This programme uses food sampling and testing data to monitor the safety of food available in our market, as well as to identify potential food safety risks. Food that is of higher risk is subjected to more stringent checks and tests for food borne hazards. This enables SFA to take appropriate action to safeguard food safety in Singapore. 

ncfs scientist food safety testing

NCFS scientist carrying out food safety testing.

The NCFS team regularly analyses notifications on food safety recalls around the world to keep abreast of international food safety developments. However, trawling through these data is a tedious and time-consuming process. The team has since introduced automated data analytics tools into their workflow, greatly reducing the data preparation time and the time needed to extract, analyse and generate reports on food safety trends and to propose follow-up actions accordingly. 

Data Science in Action
Much more than just a data management tool, data science has proven to be an active and invaluable part of SFA’s food safety monitoring efforts. This was clearly demonstrated in the investigation of excessive aflatoxins in peanut and peanut products in early 2021. 
 
SFA directed the recall of several peanut products, after our food safety monitoring efforts showed excessive levels of aflatoxins. Image: CNA

While routine regulatory sampling led to the detection of excessive aflatoxins present in peanut products and the eventual recall of such products, data-driven analysis played a critical role in the investigation process. It was through data analysis that a notable trend of aflatoxin contamination in peanut and peanut products from specific sources was detected. This helped the investigation team zoom in on the source of the issue, leading SFA to work with the industry to diversify the source of peanut supplies and improve their internal food safety systems such as self-directed voluntary testing and intensified surveillance.

Tools of the Trade 
To effectively deploy data science into their workflow, NCFS scientists make use of a variety of tools, including statistical software (SPSS), programming languages (Python and R) and data visualisation tools (PowerBI and Tableau).

Such tools not only help to speed up processes and provide early-warning alerts for potential food safety issues, they also empower scientists and staff at NCFS to monitor a wider variety of traditional and non-traditional data sources, ranging from scientific literature and test results from external laboratories, to social media posts and even public feedback.

For example, by using textual analysis, NCFS is now able to identify food establishments with multiple and frequent public feedback related to food safety. This enables SFA to step up targeted inspections of food establishments, as well as identify and prevent foodborne outbreaks at the earliest opportunity.

Textual analysis using word clouds generated through Python programming to capture key food safety risks.
 
New Initiatives to Further Mitigate Food Safety Risks
To deal with new and evolving threats to food safety, SFA continuously refines its data science driven processes to develop new initiatives to ensure food safety in Singapore.

This includes a collaboration with the Nanyang Technological University on a proof-of-concept project to use advanced analytics and machine learning to intelligently predict emerging food safety risks and prioritise the management of such risks. Closely linked to SFA’s futureproofing efforts for an increasingly complex food ecosystem, amidst technological and R&D advances as well as an increasingly diversified food source market, this project funded by the TRANS Grant1 will be an exciting project to watch out for in 2023! 
 
Working together for food safety
Threats to Singapore’s food safety will continue to grow and evolve. While data science and technology play an increasingly critical role in NCFS’ efforts to expand its capabilities and manage these threats, the role of collaboration and teamwork is no less important. NCFS will continue to collaborate closely with the industry and local, regional and international regulatory science community to share knowledge and exchange insights. 

Together, we will be able to stay abreast of developments, enhance laboratory testing capabilities, and be ready to address food safety concerns as they emerge. 

1 The Public Sector Translational (TRANS) Research and Development Grant supports translation of research & development (R&D) into applications and taps on the local research community to solve public sector challenges, demonstrates feasibility of new ideas and encourages agencies to experiment and deploy innovative solutions using digital technology.