This study aims to develop a machine learning model capable of predicting the type of non-compliance (NC) most likely to be detected by competent authorities during official control of food establishments based on their structural, product, and management characteristics. A Bayesian Network (BN) model was developed using data from 145 NCs detected by the Local Health Authority of Messina during 588 official controls performed on 101 approved food establishments between 2018 and 2021. The NCs were classified into 10 distinct categories based on the requirement not met: i) structural and equipment conditions; ii) water supply; iii) fight against pests; iv) hygiene of staff and processing; v) cleaning and sanitizing conditions; vi) raw materials, semi-finished and finished products; vii) labeling; viii) traceability; ix) hazard analysis and critical control points (HACCP); and x) microbiological criteria according to Regulation (EC) 2005/2073. The model was constructed by associating the number and type of NC with the criteria and corresponding evaluations established by the Veterinary Services for each food establishment risk categorization according to Annex 2 of the Intesa Stato-Regioni CSR 212/2016. In detail, 8 different criteria were considered: i) date of construction or renovation; ii) general maintenance conditions; iii) marketing area; iv) food category; v) product intended use; vi) professionalism of management; vii) hygienic-sanitary training of employees; and viii) HACCP self-control plan. The BN model was implemented using the Hugin Lite software, considering the NC type as the parent node and the 8 different criteria as the child nodes. The implemented model allowed the prediction of the most probable type of NCs by inputting the evaluations of each risk categorization criterion for a given food establishment into the child nodes. A total of 25 NCs detected in 10 food establishments during 2024 were used to validate the model. The validation cases were not included in the learning dataset. The model correctly predicted the occurrence of 19 NCs (76%), while 6 NCs (24%) were not predicted, and 3 NCs (12%) were rightly predicted as the most probable ones. Although further efforts are needed to implement the model with a greater amount of data, this study highlights the potential of a BN-based approach as a valuable tool for competent authorities in organizing and performing official controls from a new technological and sustainable perspective.

Machine learning and food inspection: use of Bayesian Network modeling to support official controls in the food industries

Nalbone, Luca
Primo
;
Forgia, Salvatore
Secondo
;
Giarratana, Filippo;Ziino, Graziella;Giuffrida, Alessandro
Ultimo
2026-01-01

Abstract

This study aims to develop a machine learning model capable of predicting the type of non-compliance (NC) most likely to be detected by competent authorities during official control of food establishments based on their structural, product, and management characteristics. A Bayesian Network (BN) model was developed using data from 145 NCs detected by the Local Health Authority of Messina during 588 official controls performed on 101 approved food establishments between 2018 and 2021. The NCs were classified into 10 distinct categories based on the requirement not met: i) structural and equipment conditions; ii) water supply; iii) fight against pests; iv) hygiene of staff and processing; v) cleaning and sanitizing conditions; vi) raw materials, semi-finished and finished products; vii) labeling; viii) traceability; ix) hazard analysis and critical control points (HACCP); and x) microbiological criteria according to Regulation (EC) 2005/2073. The model was constructed by associating the number and type of NC with the criteria and corresponding evaluations established by the Veterinary Services for each food establishment risk categorization according to Annex 2 of the Intesa Stato-Regioni CSR 212/2016. In detail, 8 different criteria were considered: i) date of construction or renovation; ii) general maintenance conditions; iii) marketing area; iv) food category; v) product intended use; vi) professionalism of management; vii) hygienic-sanitary training of employees; and viii) HACCP self-control plan. The BN model was implemented using the Hugin Lite software, considering the NC type as the parent node and the 8 different criteria as the child nodes. The implemented model allowed the prediction of the most probable type of NCs by inputting the evaluations of each risk categorization criterion for a given food establishment into the child nodes. A total of 25 NCs detected in 10 food establishments during 2024 were used to validate the model. The validation cases were not included in the learning dataset. The model correctly predicted the occurrence of 19 NCs (76%), while 6 NCs (24%) were not predicted, and 3 NCs (12%) were rightly predicted as the most probable ones. Although further efforts are needed to implement the model with a greater amount of data, this study highlights the potential of a BN-based approach as a valuable tool for competent authorities in organizing and performing official controls from a new technological and sustainable perspective.
2026
Inglese
ELETTRONICO
Page Press Publications
15
2
1
6
6
https://www.pagepressjournals.org/ijfs/article/view/13491
Internazionale
Esperti anonimi
AI, Artificial intelligence, food control, naïve Bayes, neural network
no
info:eu-repo/semantics/article
Nalbone, Luca; Forgia, Salvatore; Giarratana, Filippo; Ziino, Graziella; Monaco, Salvatore; La Macchia, Santino; Giuffrida, Alessandro
14.a Contributo in Rivista::14.a.1 Articolo su rivista
7
262
open
File in questo prodotto:
File Dimensione Formato  
2026_Rete+neurale_compressed (1).pdf

accesso aperto

Tipologia: Versione Editoriale (PDF)
Licenza: Creative commons
Dimensione 2.15 MB
Formato Adobe PDF
2.15 MB Adobe PDF Visualizza/Apri
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11570/3355750
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
social impact