Multi-Crop Leaf Disease Detection using YOLOv12 with Class-Aware Multi-Scale Fusion and Adaptive Attention Modules
- Enhancing agricultural productivity and attaining sustainable crop management depend on the early and precise identification of leaf disease. Using state-of-the-art technologies in precision agriculture like machine learning (ML) and image processing greatly increases the effectiveness of disease detection and facilitates well-informed decision-making. But conventional manual inspection techniques are still tedious, unpredictable, and prone to errors. In order to overcome these constraints, this research offers YOLOv12-CropNet, an innovative deep learning-based system for multi-crop leaf disease diagnosis in real time. The proposed YOLOv12-CropNet approach makes use of the Convolutional Block Attention Module (CBAM) for adaptive attention, the Content-Aware Reassembly of Features (CARAFE) up-sampling module to preserve fine-grained disease characteristics, the YOLOv12 architecture improved with Ghost Convolution for effective feature extraction, and Involution layers to capture spatially specific patterns. Inspection techniques are still laborious, arbitrary, and prone to mistakes. A substantial set of data of 38 classes of both healthy and sick leaves from a variety of crops, including tomato, potato, apple, grape, corn, mango and sugarcane, was put together for training and evaluation. Experimental results show that YOLOv12-CropNet finds a suitable balance between computational speed and accurate detection. Accuracy, F1-score, recall, and precision are important performance metrics that verify the model's resilience in challenging environmental and visual circumstances. The suggested technique provides a scalable and field-deployable way to assist effective identification of diseases and precision agricultural decision-making. The proposed YOLOv12-CropNet model exhibits better performance than the other evaluated models, attaining a 98.45% peak accuracy, 98.10% precision ,98.20 % sensitivity and a 98.18% F1 score, thereby highlighting its efficacy in multi-crop leaf disease detection.