Abstract:Aiming to address the problems of challenges of difficult feature extraction and insufficient recognition accuracy due to the highly similar phenotypic characteristics of stem scars and residual stem bases in Gentiana scabra Bunge roots, as well as their small size and complex morphology, the Focal Modulation-DyHead seg-Context Guided-Mamba (FDC-Mamba) Gentiana scabra Bunge roots instances segmentation was proposed. Firstly, to solve the problems of blurred boundaries between adjacent root fibers and overlapping in entangled parts of Gentiana scabra Bunge, the object detection Mamba (ODMamba) backbone network was introduced to supplement texture details and enhance structural consistency. Secondly, by integrating the Focal Modulation and Context Guided structural, the multi-scale perception abilities and detail segmentation abilities were enhanced. Finally, the dynamic head structure was combined with the Auxiliary Head training strategies to develop a training structure for instance segmentation, DyHead seg, which improved information transmission efficiency and optimized the learning process. The proposed model was compared with other commonly used instance segmentation models (YOLO series, Mask R-CNN, PointRend, HTC, SOLOv2, RT-DETR, HYPER), different feature pyramid architecture modules (RepBN, AIFI, LSKA), and different downsampling structure modules (SRFD, ADown, CARAFE, EUCB, Gold-YOLO, HWD, PSConv, SODConv, WaveletPool) on the Gentiana scabra Bunge roots datasets. The improved model successfully completed the instance segmentation of Gentiana scabra Bunge roots. FDC-Mamba model had high accuracy in the positioning of root and stem margins and small areas. The Box type and Mask type P, AP50, and AP95 were increased by 6.52, 5.09, 5.44 percentage points and 4.49, 2.68, 1.16 percentage points, respectively. Based on the segmentation results, four phenotypic parameters extraction methods for Gentiana scabra Bunge sorting were figured put, including root length, root thickness degrees, impurity rate, and chromaticity. The experimental results showed that the proposed model achieved a Mask type P of 87.12%, which was 4.49 percentage points higher than that of the baseline model. The relative errors between the extraction results of Gentiana scabra Bunge phenotypic parameters and the manual measurement results were all within 5%. The research result had high accuracy in extracting phenotypic features of roots Chinese medicinal materials represented by Gentiana scabra Bunge, providing a foundation for subsequent processing technology and equipment research and development.