摘要
Tomato plant diseases often first manifest on the leaves,making the detection of tomato leaf diseases particularly crucial for the tomato cultivation industry.However,conventional deep learning models face challenges such as large model sizes and slow detection speeds when deployed on resource-constrained platforms and agricultural machinery.This paper proposes a lightweight model for detecting tomato leaf diseases,named LT-YOLO,based on the YOLOv8n architecture.First,we enhance the C2f module into a RepViT Block(RVB)with decoupled token and channel mixers to reduce the cost of feature extraction.Next,we incorporate a novel Efficient Multi-Scale Attention(EMA)mechanism in the deeper layers of the backbone to improve detection of critical disease features.Additionally,we design a lightweight detection head,LT-Detect,using Partial Convolution(PConv)to significantly reduce the classification and localization costs during detection.Finally,we introduce a Receptive Field Block(RFB)in the shallow layers of the backbone to expand the model’s receptive field,enabling effective detection of diseases at various scales.The improved model reduces the number of parameters by 43%and the computational load by 50%.Additionally,it achieves a mean Average Precision(mAP)of 90.9%on a publicly available dataset containing 3641 images of tomato leaf diseases,with only a 0.7%decrease compared to the baseline model.This demonstrates that the model maintains excellent accuracy while being lightweight,making it suitable for rapid detection of tomato leaf diseases.