LEVERAGING MACHINE LEARNING TECHNIQUES FOR THE PREDICTION AND ENHANCEMENT OF FOOD SAFETY STANDARDS IN NIGERIA: A DATA-DRIVEN APPROACH TO IDENTIFYING AND MITIGATING CONTAMINATION RISKS

  • Abayomi Opeoluwa Kehinde Ogun State Polytechnic of Health and Allied Science, Ijebu
  • Mariam Adeyinka Onafowokan Ogun State Polytechnic of Health and Allied Science, Ijebu
  • Olawale Olalekan Onalaja Ogun State Polytechnic of Health and Allied Science, Ijebu
Keywords: Machine Learning, Food Safety, Nigeria, Prediction, Public Health

Abstract

Food safety in Nigeria is a critical public health concern, with an estimated 200,000 annual foodborne illness cases straining a system reliant on traditional methods like inspections and laboratory testing. These approaches, hindered by high costs, limited scalability, and delays, struggle to address the growing complexity of contamination risks in the country’s decentralized food supply chain. This study investigates the use of machine learning (ML) to predict food safety risks, leveraging data from 2015 to 2023, including over 50,000 data points from government reports, inspection records, and public datasets. Focusing on microbial contamination, chemical residues, and illness reports, the research tested three ML models: Random Forest (RF) with 89% accuracy, Support Vector Machines (SVM) with 85% accuracy, and Neural Networks (NN) with the highest performance at 91% accuracy, 89% precision, 88% recall, and an F1-score of 88%. The NN model excelled in predicting risks tied to fresh produce and processed foods, which account for about 60% of foodborne illnesses in Nigeria. Findings suggest ML, particularly NN, could reduce illness rates by up to 20% if scaled. The study highlights ML’s potential to revolutionize food safety protocols, offering more accurate and reliable predictions than traditional methods. However, challenges such as poor data quality and availability could limit effectiveness. Addressing these barriers could enhance food safety management in Nigeria, improving public health and providing a scalable solution to a pressing national issue.

References

Bouzembrak, Y., & van der Fels-Klerx, H. J. (2018). Application of machine learning to the monitoring and prediction of food safety: A review. Food Control, 93, 47-53. https://doi.org/10.1016/j.foodcont.2018.05.023

Deng, X., Li, X., & Cheng, H. (2021). Emerging machine learning applications in food safety risk assessment: A comprehensive review. Food Science and Technology International, 27(3), 213-225. https://doi.org/10.1177/1082013221996465

Geng, X., Liu, J., Yin, J., & Wang, W. (2017). Bayesian network model for Listeria monocytogenes contamination risk assessment in dairy products. Food Control, 79, 54-62. https://doi.org/10.1016/j.foodcont.2017.02.011

Géron, A. (2019). Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems (2nd ed.). O’Reilly Media.

Liu, J., Wang, X., Chen, L., & Wu, Y. (2018). Application of machine learning algorithms in food safety risk prediction in Chinese markets. Journal of Food Safety, 38(3), e12488. https://doi.org/10.1111/jfs.12488

Marvin, H. J. P., Bouzembrak, Y., Janssen, E. M., & van Asselt, E. D. (2017). Big data in food safety: An overview. Trends in Food Science & Technology, 68, 160-175. https://doi.org/10.1016/j.tifs.2017.08.014

Ropodi, A. I., Panagou, E. Z., & Nychas, G. J. E. (2016). Data mining approaches for spoilage prediction of food products: A comprehensive review. International Journal of Food Microbiology, 220, 89-109. https://doi.org/10.1016/j.ijfoodmicro.2016.02.028

Ru, Y., Zhang, H., & Xiao, Y. (2017). A machine learning approach for pesticide residue prediction in vegetables using ensemble models. Journal of Agricultural and Food Chemistry, 65(14), 2938-2946. https://doi.org/10.1021/acs.jafc.7b00863

van Asselt, E. D., Focker, M., Marvin, H. J. P., & van der Fels-Klerx, H. J. (2018). Application of machine learning to food safety risk prediction: A case study on aflatoxin contamination in maize. Food Control, 89, 223-231. https://doi.org/10.1016/j.foodcont.2018.01.029

Wang, X., Bouzembrak, Y., Oude Lansink, A. G. J. M., & van der Fels-Klerx, H. J. (2021). Application of machine learning to the monitoring and prediction of food safety: A review. Comprehensive Reviews in Food Science and Food Safety, 20(4), 3918-3935. https://doi.org/10.1111/1541-4337.12868

Zhou, Y., Chen, H., & Zou, Y. (2019). Convolutional neural networks for the detection of foodborne pathogens in food images: A comprehensive review. Current Opinion in Food Science, 28, 15-24. https://doi.org/10.1016/j.cofs.2019.07.001

Published
2025-04-30
How to Cite
Kehinde, A. O., Onafowokan, M. A., & Onalaja, O. O. (2025). LEVERAGING MACHINE LEARNING TECHNIQUES FOR THE PREDICTION AND ENHANCEMENT OF FOOD SAFETY STANDARDS IN NIGERIA: A DATA-DRIVEN APPROACH TO IDENTIFYING AND MITIGATING CONTAMINATION RISKS. FUDMA JOURNAL OF SCIENCES, 9(4), 130 - 136. https://doi.org/10.33003/fjs-2025-0904-3562