Work

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

Year: 2026
Type: article
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.
Language: English
Subfield: Plant Science
Open Access status: gold
Estimated APC paid: $3,801
OpenAlex ID: W7171694017
FWCI:
Cites: 27
Cited by:
Related to: 10