Skip to content
Open access

Efficient and explainable attention-based multitask learning for fruit type, ripeness, and disease classification

Sep 2026 · Journal of Agricultural Engineering · 0 citations · 28 references

TL;DR

An efficient and explainable multitask learning (MTL) model for fruit monitoring that performs all three tasks simultaneously and gradient-based explainability analysis provides transparency into the model's decision-making process is proposed.

Abstract

Precision agriculture increasingly relies on automated crop monitoring to support disease prevention and harvest decisions. However, most existing systems treat fruit type, ripeness, and disease classification as separate tasks, leading to high computational costs in real-world deployments. This paper proposes an efficient and explainable multitask learning (MTL) model for fruit monitoring that performs all three tasks simultaneously. The MTL model uses a shared lightweight MobileNetV2 backbone with a convolutional block attention module (CBAM) to extract both shared and discriminative features. Dedicated classification heads then utilize these features to generate predictions for each task. To address the scarcity of fully annotated agricultural datasets, we combine multiple public datasets and apply a partial label-masking strategy to handle missing annotations. In addition, the proposed model is evaluated using several backbone architectures, including ResNet-50, EfficientNetV2-M, and ViT-B/16, under both single optimizer and separate optimizers. Experimental results demonstrate that the proposed MTL model achieves 99.39% (fruit type), 96.35% (ripeness), and 99.7% (disease) accuracy, while using only 5.5M parameters, outperforming single-task solutions. Furthermore, gradient-based explainability analysis provides transparency into the model's decision-making process.

Read PDF

Similar papers

Open access Sep 2026

Multi-scale attention-based feature learning for jujube fruit bruise detection and variety classification

Automated fruit classification plays a central role in post-harvest quality assessment, particularly in reducing dependence on manual inspection within smart agriculture systems. In this work, a deep learning framework, MSA-TNet, is introduced to address jujube fruit classification across two related tasks, binary br...

Yonis Gulzar, Sharyar Wani, B. Nath et al. · 0 citations
Preprint Oct 2026

Multibranch Ensemble Head in Vision Foundation Models for Efficient Cucumber Phenological Stage Classification

Vision Foundation Models (VFMs) pretrained with self-supervised learning, such as DINOv2, provide highly transferable features, yet adapting them to small, domain-shifted datasets is still challenging. We propose a regularizing multibranch ensemble head: a training and inference scheme that pairs low- and high-capacity...

Kostiantyn Khabarlak · 0 citations
Open access Oct 2026

MultiBranchFusionNet: A Lightweight Attention-Guided Dual-Branch Framework for Tomato Leaf Disease Classification Using Heterogeneous Field and Public Images

Tomato foliar diseases reduce yield, degrade fruit quality, and cause major economic losses, especially in regions such as Nigeria where diagnosis still relies largely on manual visual inspection. Although deep learning has improved automated plant disease recognition, many models are trained on controlled datasets tha...

Olayiwola Charles Adesoba, Waliu Olalekan Apena, Folasade Mojisola Dahunsi et al. · 0 citations
Oct 2026

Explainable deep learning for Mango leaf disease recognition using AlexNet and grad-CAM

This study presents an explainable deep learning framework for automated ten-class mango leaf disease classification using a publicly available dataset containing approximately 5000 images distributed across Anthracnose, Bacterial Canker, Cutting Weevil, Dag Disease, Die Back, Galls, Healthy, Powdery Mildew, Red Rust,...

Anay Ghosh, T. Rahman, Md. Moniruzzaman et al. · 0 citations
Open access Oct 2026

Lightweight Transfer Learning for Multi-Class Cabbage Leaf Disease Detection Using MobileNetV2

Accurate and timely recognition of leaf diseases is a prerequisite for reducing crop losses and supporting data-driven horticultural management. This study develops a lightweight transfer-learning framework for the multi-class classification of cabbage (Brassica oleracea) leaf conditions using MobileNetV2. The dataset...

Ahmad Zidan Wirawan, M. S. Wisnubroto, Fajri Farid et al. · 0 citations
Open access Oct 2026

Explainable fine-grained feature enhancement framework for strawberry diagnostic decision making

As the number of smart agricultural automation systems increases, accurate disease diagnosis is essential to maximize production efficiency. However, early-stage symptoms of strawberry diseases (e.g., Tipburn, Phytophthora blight, and Fusarium wilt) often manifest as low-contrast micro-symptoms that are visually simila...

Hye-Young Wang, Seoung-Ho Choi · 0 citations

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