Automated Simultaneous Segmentation of the Median Nerve, Carpal Tunnel and Flexor Carpi Radialis in Dynamic Ultrasound Videos Using Deep Learning Models: A Comparison of Model Accuracies.
Authors
Affiliations (1)
Affiliations (1)
- Department of Orthopaedic Surgery, Graduate School of Medicine, Kobe University, Kobe, Hyogo, Japan.
Abstract
<b>Background:</b> Dynamic ultrasonography (US) is valuable for assessing median nerve (MN) mobility in carpal tunnel syndrome (CTS). Although deep learning (DL) has been applied to MN segmentation, the simultaneous recognition of the carpal tunnel and adjacent landmarks such as the flexor carpi radialis (FCR) tendon in US videos remains unexplored. This study aimed to develop and compare DL models for the simultaneous segmentation of these three structures in dynamic US, contrasting a Transformer-based model with CNN-based and platform-hosted models. <b>Methods:</b> Dynamic US videos at the carpal tunnel inlet were collected from 50 healthy hands and 50 CTS hands during active finger movements. A total of 1,000 images (10 images/hand) were extracted and manually annotated. The dataset was split into training, validation, and testing sets at a 7:2:1 ratio on a patient level. Four models (RF-DETR, YOLO26-seg, YOLOv11-seg and Roboflow 3.0) were compared, with mAP@50 as the primary outcome measure and mAP@[0.50:0.95], precision, recall, F1-score and region-level Dice and intersection over union (IoU) as secondary measures. <b>Results:</b> The Transformer-based RF-DETR model showed the highest values across the metrics examined (mAP@50, 96.1%; mAP@[0.50:0.95], 66.5%; mean Dice, 84.6%; mean IoU, 78.0%). Its advantage was greatest for the smaller MN and FCR tendon, whereas all models segmented the larger carpal tunnel accurately. For RF-DETR, the per-structure mAP@50 was 100.0% (carpal tunnel), 93.8% (MN) and 94.3% (FCR). Qualitatively, RF-DETR produced the most anatomically consistent boundaries. <b>Conclusions:</b> The Transformer-based RF-DETR model achieved accurate, simultaneous segmentation of the MN, carpal tunnel and FCR in dynamic US. Its global-context modelling appears advantageous for overcoming motion artefacts, providing a reliable coordinate system for fully automated kinematic analysis of the MN in patients with CTS. <b>Level of Evidence:</b> Level IV (Diagnostic).