DOI: 10.3390/agriengineering8070265 ISSN: 2624-7402

Lightweight Astra-YOLO Astragalus Slices Defect Detection Method Based on Feature-Space Weight Reconstruction

Jun You, Xin Du, Qixin Sun, Shufa Chen, Yue Jiang, Ziming Lu

To address the low efficiency and high subjectivity of manual inspection of Astragalus slices, as well as the limited fine-grained detection accuracy caused by the visual similarity between the characteristic radial “chrysanthemum heart” texture and minor defects such as insect damage and mold, this study proposes a lightweight intelligent detection model named Astra-YOLO. A dataset consisting of 622 original Astragalus slice images from four categories was divided into training, validation, and test sets at a ratio of 8:1:1. Data augmentation was applied exclusively to the training set, resulting in a total of 3110 images. Based on YOLOv11n, three targeted improvements were introduced: GhostConv lightweight convolution was employed to reduce model parameters and computational cost; the parameter-free SimAM attention mechanism was integrated to suppress interference from complex textures and enhance defect feature representation; and Wise-IoU v3 was adopted to improve bounding box regression for precise localization of small defects. The experimental results demonstrate that Astra-YOLO achieves superior performance with only 2.53 million parameters and 6.20 GFLOPs. The model attains an mAP@0.5 of 92.7%, an mAP@0.5:0.95 of 73.8%, a precision of 92.4%, and a recall of 92.1%. These results indicate that Astra-YOLO effectively balances lightweight design and detection accuracy, outperforming the baseline model and other improved variants, thereby providing reliable technical support for industrial online inspection and automated quality grading of Astragalus slices.

More from our Archive