Explainable Transformer-Based Modelling for Pathogen-Oriented Food Safety Inspection Grade Prediction Using New York State Open Data
Omer Faruk Sari, Mohamed Bader–El–Den, Volkan Ince
University of Portsmouth · Kuwait College of Science and Technology
Key points
From the paper's conclusion- The findings demonstrate that transformer-based models, combined with explainable AI (XAI), can support pathogen-oriented monitoring and real-time risk assessment.
Abstract
Foodborne pathogens remain a major public health concern, and the early identification of unsafe conditions is essential for preventive control. Routine inspections generate rich textual and structured data that can support real-time assessment of pathogen-related risk. The objective of this study is to develop an explainable transformer-based framework for predicting food safety inspection grades using multimodal inspection data. We combine structured metadata with unstructured deficiency narratives and evaluate classical machine learning models, deep learning architectures, and transformer models. RoBERTa achieved the highest performance (F1 = 0.96), followed by BiLSTM (F1 = 0.95) and LightGBM (F1 = 0.92). SHapley Additive exPlanations (SHAP) analysis revealed linguistically meaningful indicators of pathogen-related hazards such as temperature abuse, pests, and unsanitary practices. The findings demonstrate that transformer-based models, combined with explainable AI (XAI), can support pathogen-oriented monitoring and real-time risk assessment. This study highlights the potential of multimodal AI approaches to enhance inspection efficiency and strengthen public health surveillance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Predicting food safety problems among catering service operators using longitudinal regulatory data.Journal of food protection · 2026
- AI-enabled multi-omics integration for predictive food safetyFrontiers in Food Science and Technology · 2026
- Data Engineering and Large Language Model Construction for the Food Safety DomainApplied Sciences · 2026
- Large language models in food and nutrition science: Opportunities, challenges, and the case of FoodyLLMCurrent Research in Food Science · 2026
- A knowledge graph-enhanced framework for food safety data integration and prospective risk analytics.NPJ science of food · 2026
- Early warning of foodborne disease outbreaks using an enhanced graph attention network on patient association graphsExpert Systems with Applications · 2026