MLA-YOLO11n: a tomato disease detection model with adaptive weighted loss and multi-scale feature fusion for diverse environments

Introduction Rapid, accurate tomato disease detection is important for precision plant protection and cultivation management. In real-world planting environments, however, lesion scale variations, weak early-stage symptoms, variable illumination, foliage occlusion, complex backgrounds, and high inter-class similarity cause insufficient feature extraction, false positives, and missed detections, while mobile deployment imposes strict constraints on model complexity. Methods This study developed MLA-YOLO11n, a lightweight tomato disease detection model based on YOLO11n that integrates multi-scale feature enhancement with an adaptive weighted loss. Multi-Scale Grouped Dilated Convolution (MSGDC) was combined with C3k2 to extract spatial features across varying lesion scales via convolutional branches with different dilation rates. A Lightweight Grouped Attention (LWGA) module was introduced into the multi-scale detection branches to jointly model positional, local, medium-range, and global context, enhancing features of key diseased regions while suppressing background interference. Adaptive Threshold Focal Loss (ATFL) dynamically adjusted loss weights by classification difficulty to alleviate training bias from class imbalance and abundant background samples. For edge evaluation, the trained model was converted to TFLite with INT8 quantization and deployed locally on an OPPO Reno4 SE smartphone. Results On the simple-background dataset, MLA-YOLO11n achieved a Precision of 0.968, Recall of 0.890, [email protected] of 0.907, and [email protected]:0.95 of 0.818; its [email protected] exceeded that of YOLO11n by 0.9 percentage points, with 3.83 M parameters and 7.50 GFLOPs. On two independent test sets excluded from training and validation, [email protected] reached 0.9696 and 0.9764. On the complex-background dataset, Precision, Recall, [email protected], and [email protected]:0.95 were 0.949, 0.921, 0.963, and 0.723, respectively. Grad-CAM visualizations showed stronger feature focus on actual diseased regions and reduced activation on irrelevant backgrounds. After INT8 quantization and local TFLite deployment, model size decreased to 5.55 MB with a 1.31× to 1.34× inference speedup. Discussion Consistent accuracy across the independent test sets and complex-background dataset indicates that MLA-YOLO11n generalizes well under foliage occlusion, complex textures, and different infected plant parts. Its small size and accelerated on-device inference make the model well suited for mobile tomato disease monitoring in natural cultivation environments.

Authors

Institutions

Publication Details

Journal
Frontiers in Plant Science
Published
2026-11-30
DOI
https://doi.org/10.3389/fpls.2026.1963619
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

MLA-YOLO11n: a tomato disease detection model with adaptive weighted loss and multi-scale feature fusion for diverse environments

Canyu Wang, Ye Qian, Sunyan Hong, Jun He et al.
8 links
Frontiers in Plant Science
Smart Agriculture and AI
article

MLA-YOLO11n: a tomato disease detection model with adaptive weighted loss and multi-scale feature fusion for diverse environments

Canyu Wang, Ye Qian, Sunyan Hong, Jun He, Jiangquan Chen, Zhaocheng Sun, Jihong Sun, Xinrui Wang
article en

Abstract

Introduction Rapid, accurate tomato disease detection is important for precision plant protection and cultivation management. In real-world planting environments, however, lesion scale variations, weak early-stage symptoms, variable illumination, foliage occlusion, complex backgrounds, and high inter-class similarity cause insufficient feature extraction, false positives, and missed detections, while mobile deployment imposes strict constraints on model complexity. Methods This study developed MLA-YOLO11n, a lightweight tomato disease detection model based on YOLO11n that integrates multi-scale feature enhancement with an adaptive weighted loss. Multi-Scale Grouped Dilated Convolution (MSGDC) was combined with C3k2 to extract spatial features across varying lesion scales via convolutional branches with different dilation rates. A Lightweight Grouped Attention (LWGA) module was introduced into the multi-scale detection branches to jointly model positional, local, medium-range, and global context, enhancing features of key diseased regions while suppressing background interference. Adaptive Threshold Focal Loss (ATFL) dynamically adjusted loss weights by classification difficulty to alleviate training bias from class imbalance and abundant background samples. For edge evaluation, the trained model was converted to TFLite with INT8 quantization and deployed locally on an OPPO Reno4 SE smartphone. Results On the simple-background dataset, MLA-YOLO11n achieved a Precision of 0.968, Recall of 0.890, [email protected] of 0.907, and [email protected]:0.95 of 0.818; its [email protected] exceeded that of YOLO11n by 0.9 percentage points, with 3.83 M parameters and 7.50 GFLOPs. On two independent test sets excluded from training and validation, [email protected] reached 0.9696 and 0.9764. On the complex-background dataset, Precision, Recall, [email protected], and [email protected]:0.95 were 0.949, 0.921, 0.963, and 0.723, respectively. Grad-CAM visualizations showed stronger feature focus on actual diseased regions and reduced activation on irrelevant backgrounds. After INT8 quantization and local TFLite deployment, model size decreased to 5.55 MB with a 1.31× to 1.34× inference speedup. Discussion Consistent accuracy across the independent test sets and complex-background dataset indicates that MLA-YOLO11n generalizes well under foliage occlusion, complex textures, and different infected plant parts. Its small size and accelerated on-device inference make the model well suited for mobile tomato disease monitoring in natural cultivation environments.

Frontiers in Plant ScienceVol. 17
Kunming University (CN), Yunnan Agricultural University (CN)
Zero hunger
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon