# LeafAI: Interpretable plant disease detection for edge computing

**Authors:** Md Abdullah Al Kafi, Sumit Kumar Banshal, Raka Moni, Aulia Luqman Aziz, Mohammed Aljuaid, Rohit Bansal, Asadullah Shaikh, Asadullah Shaikh, Asadullah Shaikh, Asadullah Shaikh

PMC · DOI: 10.1371/journal.pone.0335956 · PLOS One · 2026-01-23

## TL;DR

LeafAI improves plant disease detection by using a two-stage system that is faster and more efficient while maintaining accuracy.

## Contribution

An interpretable, two-stage hybrid AI system for efficient and scalable plant disease detection in agriculture.

## Key findings

- The hybrid model reduces inference time by 77.6% with minimal accuracy loss.
- Using XAI methods like Grad-CAM improves model transparency and feature extraction.
- The system achieves high efficiency on an entry-level laptop with minimal CPU load.

## Abstract

In real-world agriculture, healthy plant leaves are significantly more common than diseased ones. This natural class imbalance presents challenges in automated plant disease detection, as analyzing each leaf with computationally intensive deep-learning models is problematic, leading to inefficiency and increased resource consumption. To tackle this challenge and promote sustainable AI solutions, this study presents an iterative, hybrid AI approach that boosts computational efficiency, interpretability, and scalability for real-time disease detection. This hybrid system operates in two stages: first, a lightweight traditional machine learning classifier performs binary classification to quickly separate and exclude healthy leaves, followed by a deep learning model (ResNet, DenseNet, MobileNet, and EfficientNet) that classifies the specific disease in the smaller group of diseased leaves. This two-stage method minimizes computational load while maintaining high classification accuracy. Additionally, this study uses Explainable AI (XAI) methods, particularly Gradient-weighted Class Activation Mapping (Grad-CAM), to generate heatmaps. These heatmaps highlight the image areas that most significantly influence the model’s predictions, thereby improving transparency and refining the feature extraction process. The proposed hybrid model, comprising Logistic Regression and Mobilenetv3, offers up to 77.6% faster inference than conventional deep learning models with only about 3% accuracy loss. For a large-scale test of 1,227 images on an entry-level laptop, the hybrid model reduced the total inference time from 4,548 seconds to just 1,010.13 seconds, with minimal CPU load. By addressing class imbalance, optimizing inference efficiency, and incorporating explainable AI, this work contributes a scalable, sustainable, and trustworthy solution for plant disease detection in precision agriculture.

## Full-text entities

- **Diseases:** plant disease (MESH:D010939)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12829967/full.md

## Figures

22 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12829967/full.md

## References

47 references — full list in the complete paper: https://tomesphere.com/paper/PMC12829967/full.md

---
Source: https://tomesphere.com/paper/PMC12829967