The automated recognition of disease in tomato leaves can greatly enhance yield and allow farmers to manage challenges more efficiently. This study investigates the performance of YOLOv11 for tomato leaf disease recognition. All accessible versions of YOLOv11 were first fine-tuned on an improved tomato leaf disease dataset consisting of a healthy class and 10 disease classes. YOLOv11m was selected for further hyperparameter optimization based on its evaluation metrics. It achieved a fitness score of 0.98885, with a precision of 0.99104, a recall of 0.98597, and a mAP@.5 of 0.99197. This model underwent rigorous hyperparameter optimization using the one-factor-at-a-time (OFAT) algorithm, with a focus on essential parameters such as batch size, learning rate, optimizer, weight decay, momentum, dropout, and epochs. Subsequently, random search (RS) with 100 configurations was performed based on the results of OFAT. Among them, the C47 model demonstrated a fitness score of 0.99268 (a 0.39% improvement), with a precision of 0.99190 (0.09%), a recall of 0.99348 (0.76%), and a mAP@.5 of 0.99262 (0.07%). The results suggest that the final model works efficiently and is capable of accurately detecting and identifying tomato leaf diseases, making it suitable for practical farming applications.
To reduce production costs, environmental effects, and crop losses, tomato leaf disease recognition must be accurate and fast. Early diagnosis and treatment are necessary to cure and control illnesses and ensure tomato output and quality. The YOLOv5m was improved by using C3NN modules and Bidirectional Feature Pyramid Network (BiFPN) architecture. The C3NN modules were designed by integrating several soft attention modules into the C3 module: the Convolutional Block Attention Module (CBAM), Squeeze and Excitation Network (SE), Efficient Channel Attention (ECA), and Coordinate Attention (CA). The C3 modules in the Backbone and Head of YOLOv5 model were replaced with the C3NN to improve feature representation and object detection accuracy. The BiFPN architecture was implemented in the Neck of the YOLOv5 model to effectively merge multi-scale features and improve the accuracy of object detection. Among the various combinations for the improved YOLOv5m model, the C3ECA-BiFPN-C3ECA-YOLOv5m achieved a precision (P) of 87.764%, a recall (R) of 87.201%, an F1 of 87.482, an mAP.5 of 90.401%, and an mAP.5:.95 of 68.803%. In comparison with the YOLOv5m and Faster-RCNN models, the improved models showed improvement in P by 1.36% and 7.80%, R by 4.99% and 5.51%, F1 by 3.18% and 6.86%, mAP.5 by 1.74% and 2.90%, and mAP.5:.95 by 3.26% and 4.84%, respectively. These results demonstrate that the improved models have effective tomato leaf disease recognition capabilities and are expected to contribute significantly to the development of plant disease detection technology.