Crop diseases constitute a danger to worldwide food stability, diminishing harvest yield, grade, and total farming efficiency. Conventionally, the identification of plant ailments has depended on lengthy visual assessments by specialists, a method that frequently results in mistakes. Machine learning (ML) and artificial intelligence (AI), in particular Vision Transformers (ViTs) and Convolutional Neural Networks, deliver a swifter, automated substitute for recognizing plant illnesses through leaf image analysis. However, these frameworks are regularly faulted for their "black box" character, which curbs confidence in their outputs due to a lack of clarity. Our outcomes indicate that integrating Explainable AI (XAI) approaches like Grad-CAM, Integrated Gradients, and LIME notably boosts model explainability, rendering it simpler for users to detect the fundamental indicators of plant sicknesses. This investigation not only adds to the area of plant disease recognition but also supplies an original viewpoint on advancing AI openness in actual farming settings through the application of XAI methods. With training accuracy rates of 100.00% for ViT, 96.88% for EfficientNetB7, 93.75% for EfficientNetB0, and 87.50% for ResNet50, and equivalent validation accuracy rates of 96.39% for ViT, 86.98% for EfficientNetB7, and 82.00% for EfficientNetB0, our suggested architectures exceed earlier studies performed on the identical dataset. This illustrates a considerable leap in model capability while upholding clarity and dependability by way of explainable and trustworthy decision procedures.
Artificial intelligence is increasingly used in food safety systems to support contamination detection, shelf-life prediction, quality classification, inspection prioritisation, and risk scoring. These applications promise faster, more sensitive, and more scalable decision support across complex food supply chains. However, the same predictive complexity that makes AI useful can also make its outputs difficult for food safety professionals, regulators, and operators to interpret. The central problem addressed in this framework article is that AI-supported food safety decisions may become opaque, uncontestable, and weakly aligned with existing structures of regulatory responsibility. When risk scores or alerts cannot be understood, challenged, or traced to relevant evidence, they may undermine rather than strengthen food safety governance. This problem is especially serious because food safety decisions involve direct public health consequences, market consequences, and legal accountability. The objective of this article is to develop an original Explainable AI Framework tailored to food safety decision systems. The framework integrates four interdependent dimensions: risk interpretation, regulatory confidence, operational accountability, and human review. It treats explainability not only as a technical property of models but also as a governance condition for responsible food safety decision-making. The article is based on a conceptual synthesis of 27 peer-reviewed articles published between 2017 and 2025 across food safety, explainable artificial intelligence, algorithmic accountability, risk assessment, and digital food safety systems. It does not present new empirical data. Instead, it constructs a design and governance framework that can guide the development, validation, deployment, and oversight of AI-supported food safety tools. The proposed framework defines four pillars: interpretable risk communication, transparent regulatory evidence, accountable operational responsibility, and contestable human review. Together, these pillars show how food safety AI systems can become not only predictive but also auditable, trustworthy, and practically usable. The article argues that embedding explainability into food safety AI is a governance and trust-building imperative rather than a purely technical enhancement.