Engineering in life sciences

CDS-RTDETR: a real-time detection model for bitter gourd surface defects.

Ying Deng, Yixin Cai, Wenli Jin, Xiaohao Zhong, Haobin Xu, Jun Tian, Ling Ma, Changsuo Xue,

College of Horticulture, Fujian Agriculture and Forestry University, Fuzhou 350002, China. · Fujian Tianmei Seed Industry Technology Co., Ltd, Fuzhou 350109, China.

Key points

From the paper's conclusion
  • Experimental results demonstrate that CDS-RTDETR achieves a mAP50 of 90.35%, which is 2.62% higher than that of the baseline model, and an inference speed of 341.08 FPS, representing a 35.8% improvement over the baseline, providing an efficient and accurate technical solution for intelligent postharvest sorting of bitter gourd.

Abstract

Bitter gourd, as an important vegetable with both edible and medicinal value, has its external quality directly determining commercial value and postharvest loss rates. However, the fruit surface is densely covered with tubercles and ridge structures, and the fruit presents a curved, elongated shape, which imposes significant limitations on the conventional RT-DETR model. Specifically, its multi-head self-attention mechanism is prone to head redundancy in dense texture regions; the nearest-neighbor interpolation upsampling fails to recover fine edge details of defects; and the standard GIoU loss provides insufficient constraint on the minor axes of elongated targets. To address these limitations, this paper proposes the CDS-RTDETR detection model. In the feature encoding stage, Cascaded Group Attention (CGA) is introduced to replace the multi-head self-attention, suppressing the interference of tuberous texture on defect features. In the upsampling stage, the DySample dynamic upsampler is adopted instead of nearest-neighbor interpolation, recovering edge details of defects and improving boundary fidelity. In the bounding box regression stage, the Shape-IoU loss function is introduced to replace GIoU, strengthening short-edge constraints and enhancing localization accuracy for elongated fruit. Experimental results demonstrate that CDS-RTDETR achieves a mAP50 of 90.35%, which is 2.62% higher than that of the baseline model, and an inference speed of 341.08 FPS, representing a 35.8% improvement over the baseline, providing an efficient and accurate technical solution for intelligent postharvest sorting of bitter gourd.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

CDS-RTDETR: a real-time detection model for bitter gourd surface defects — Science Skim