This invention discloses a method and
system for detecting tomato leaf diseases based on MSCB-YOLOv11, belonging to the field of agricultural
disease detection technology. The method includes: collecting images of early
blight, late
blight,
leaf mold,
leaf spot, and healthy leaves of tomatoes to construct an initial dataset; preprocessing and labeling the images to obtain a standardized dataset; improving the YOLOv11 network by replacing the C3k2 module in the
backbone network with a self-developed multi-scale edge information selection module C3k2-MSES, replacing the
upsampling module in the neck network with a high-efficiency, lightweight
upsampling convolutional block EUCB, and replacing the C2PSA module in the
backbone network with a
pyramid self-attention module C2PSA-LRSA that integrates low-resolution self-attention, thus constructing an MSCB-YOLOv11 model; training and validating the model using the standardized dataset; inputting the image to be detected into the trained model, and outputting
disease category and location information. This invention effectively improves the detection accuracy of
small target lesions and adaptability in complex scenarios, achieving a significant improvement in
detection performance while maintaining real-time performance.