Skip to content

Menu

WorksPubMed

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

A preview from PubMed. Valency holds this work's metadata and abstract, not its full text.

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.

Paper details

Source

Source
PubMed
First available
Sep 29, 2026
Identifier
pubmed:43053907

Pick where to look, or just type