Skip to content
#explainable ai Open access

Deep learning and computer vision framework for tomato insect classification with XAI insights

Sep 2026 · Scientific Reports
Smart Agriculture and AI

Abstract

Pest infestations pose a life-threatening challenge to global tomato production, often resulting in devastating yield losses and economic instability. Traditional manual identification practices are subjective, labor-intensive, and prone to error. To address this, within the paradigm of Agriculture 5.0, we introduce a novel hybrid deep learning model, ResNet50-Fusion (ViT), designed for the precise detection of six economically relevant tomato pests. The proposed architecture integrates a ResNet50 backbone with a Vision Transformer (ViT) branch via a Multi-Head Cross-Attention mechanism that facilitates asymmetric semantic alignment, enabling the simultaneous extraction of fine-grained morphological features and global contextual patterns. To ensure scientific rigor and eliminate the risk of data leakage, a ‘Split-then-Augment’ protocol was implemented, keeping the test set entirely independent and original. The framework achieved a state-of-the-art test accuracy of 97.00% ± 0.12%, significantly outperforming baseline models such as ResNet50 (96.44%) and DenseNet169 (96.00%), while demonstrating high computational efficiency with an average inference latency of 26.6 ms per image for real-time edge deployment. Beyond predictive accuracy, the model’s reliability was validated using a multi-method quantitative Explainable AI (XAI) framework integrating semantic indicators: Semantic Localization Score (SLS) for feature alignment, Robustness Score (RS) for logical stability, and Interpretability Reliability Coefficient (IRC) for decision consistency. Our results demonstrate a 96.5% Pointing Game Accuracy and a low Deletion AUC (0.142), indicating that the model’s attention patterns strongly align with biologically relevant morphological features rather than background artifacts. Systematic occlusion sensitivity analysis further confirmed model robustness with a stability score of 0.988. Finally, external validation on world-scale datasets, including IP102 and Pest24, yielded accuracies exceeding 90% via direct inference, demonstrating the generalizability of the framework to diverse automated field monitoring conditions. This research provides a precise, robust, and scalable solution for real-time pest identification in global precision agriculture.

View source

Similar papers

#artificial intelligence Conference Open access Apr 2020

ECCOLA - a Method for Implementing Ethically Aligned AI Systems

The method, ECCOLA, is presented, which aims at making the high-level AI ethics principles more practical, making it possible for developers to more easily implement them in practice.

Ville Vakkuri, Kai-Kristian Kemell, P. Abrahamsson · 64 citations · ⚡6
#computer vision Review Apr 2024

AI-powered Code Review with LLMs: Early Results

The goal is to not only refine the accuracy of the LLM-based tool but also to underscore its potential in streamlining the software development lifecycle through proactive code improvement and education.

Z. Rasheed, Malik Abdul Sami, Muhammad Waseem et al. · 62 citations · ⚡3
#computer vision Open access Mar 2024

LLM-based agents for automating the enhancement of user story quality: An early report

The use of large language models to automatically improve the user story quality in Austrian Post Group IT agile teams is explored, with a reference model for an Autonomous LLM-based Agent System developed and implemented at the company.

Zheying Zhang, M. Rayhan, Tomas Herda et al. · 48 citations · ⚡4
#computer vision Review Mar 2024

System for systematic literature review using multiple AI agents: Concept and an empirical evaluation

This paper introduces a novel multi-AI-agent system designed to fully automate SLRs, and demonstrates how it substantially reduces the time and effort traditionally required for SLRs while maintaining comprehensiveness and precision.

Abdul Malik Sami, Z. Rasheed, Kai-Kristian Kemell et al. · 44 citations · ⚡2
#computer vision Feb 2024

Can Large Language Models Serve as Data Analysts? A Multi-Agent Assisted Approach for Qualitative Data Analysis

The proposed LLM-based multi-agent system automates qualitative data analysis process, creating opportunities for researchers and practitioners, and future improvements focus on enhancing multilingual performance and integrating continuous expert feedback.

Z. Rasheed, Muhammad Waseem, Aakash Ahmad et al. · 41 citations
#artificial intelligence Conference Open access Jun 2018

The Key Concepts of Ethics of Artificial Intelligence

It is suggested that the focus on finding keywords is the first step in guiding and providing direction for future research in the AI ethics field.

Ville Vakkuri, P. Abrahamsson · 39 citations · ⚡2

Related blog posts

GPT-Lab Sep 17, 2026

Beyond Prompt Engineering: The Role of Tacit Knowledge in Software Engineering

AI is making software generation faster, but speed does not remove the need for expertise. As more work is delegated to AI, tacit knowledge may become one of the most important human advantages in software engineering. The post Beyond Prompt Engineering: The Role of Tacit Knowledge in Software Engineering appeared first on GPT-Lab.

MIT News · Artificial Intelligence Sep 14, 2026

New method enables AI for safety-critical situations

The “HardFlow” algorithm could help generative AI models produce high-quality outputs that obey strict requirements when “pretty close” doesn’t cut it.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.