Utilization of a Deep Learning Algorithm for Automated Segmentation of Median Nerve from Ultrasound Obtained from the Distal Forearm and Wrist
Abstract
1. Introduction
2. Materials and Methods
2.1. Study Population
2.2. Nerve Ultrasound
2.3. Data Preprocessing
2.4. Deep Learning Model
2.5. Deep Learning Model Performance Analysis
3. Results
3.1. Demographics
3.2. Results from the First Dataset
3.3. Results from the Second Dataset
3.4. Results from the Combined First and Second Datasets
3.5. CSA Reliability Analysis
4. Discussion
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A


References
- Penry, V.B.; Mehta, R.K.G.; Alavi, R.H. Neuromuscular Ultrasound of the Median Nerve at the Carpal Tunnel. J. Vis. Exp. 2022, 188, e63982. [Google Scholar]
- Kanagasabai, K. Ultrasound of Median Nerve in the Diagnosis of Carpal Tunnel Syndrome—Correlation with Electrophysiological Studies. Indian J. Radiol. Imaging 2022, 32, 16–29. [Google Scholar] [CrossRef]
- Ridolfi, M.; Caruso, P.; Stella, A.B.; Manganotti, P. Very high-resolution ultrasound of the distal median nerve. Clin. Neurophysiol. 2020, 131, 1267–1271. [Google Scholar] [CrossRef]
- Žiga, S.; Igor, S.; Urša, M.; Domen, P.; Erika, C.; Gregor, O. Median and ulnar nerve fascicle imaging using MR microscopy and high-resolution ultrasound. J. Neuroimaging 2022, 32, 420–429. [Google Scholar] [CrossRef] [PubMed]
- Liu, B.; Zhang, Y.; Zhang, L.; Zhang, F.; Li, H.; Li, S.; Liu, Y.; Du, J.; Zhao, L. A rare case of bilateral cervical vagal neurofibromas: Role of high-resolution ultrasound. BMC Neurol. 2017, 17, 26. [Google Scholar] [CrossRef] [PubMed]
- Kowalska, B.; Sudol-Szopinska, I. Ultrasound assessment of selected peripheral nerve pathologies. Part III: Injuries and postoperative evaluation. J. Ultrason. 2013, 13, 82–92. [Google Scholar] [CrossRef] [PubMed]
- Sevy, J.O.; Sina, R.E.; Varacallo, M.A. Carpal Tunnel Syndrome. In StatPearls; StatPearls Publishing: Treasure Island, FL, USA, 2025. Available online: http://www.ncbi.nlm.nih.gov/books/NBK448179/ (accessed on 18 November 2025).
- Joshi, A.; Patel, K.; Mohamed, A.; Oak, S.; Zhang, M.H.; Hsiung, H.; Zhang, A.; Patel, U.K. Carpal Tunnel Syndrome: Pathophysiology and Comprehensive Guidelines for Clinical Evaluation and Treatment. Cureus 2022, 14, e27053. [Google Scholar] [CrossRef]
- Genova, A.; Dix, O.; Saefan, A.; Thakur, M.; Hassan, A. Carpal Tunnel Syndrome: A Review of Literature. Cureus 2020, 12, e7333. [Google Scholar] [CrossRef]
- Rosario, N.B.; De Jesus, O. Electrodiagnostic Evaluation of Carpal Tunnel Syndrome. In StatPearls; StatPearls: Treasure Island, FL, USA, 2024. Available online: http://www.ncbi.nlm.nih.gov/books/NBK562235/ (accessed on 17 April 2024).
- Heiling, B.; Wiedfeld, L.I.; Müller, N.; Kobler, N.J.; Grimm, A.; Kloos, C.; Axer, H. Electrodiagnostic Testing and Nerve Ultrasound of the Carpal Tunnel in Patients with Type 2 Diabetes. J. Clin. Med. 2022, 11, 3374. [Google Scholar] [CrossRef]
- Dong, Y.; Alhaskawi, A.; Zhou, H.; Zou, X.; Liu, Z.; Ezzi, S.H.A.; Kota, V.G.; Abdulla, M.H.A.H.; Olga, A.; Abdalbary, S.A.; et al. Imaging diagnosis in peripheral nerve injury. Front. Neurol. 2023, 14, 1250808. [Google Scholar] [CrossRef]
- Carroll, A.S.; Simon, N.G. Current and future applications of ultrasound imaging in peripheral nerve disorders. World J. Radiol. 2020, 12, 101–129. [Google Scholar] [CrossRef]
- Hafiane, A.; Vieyres, P.; Delbos, A. Deep Learning with Spatiotemporal Consistency for Nerve Segmentation in Ultrasound Images. arXiv 2017, arXiv:1706.05870. [Google Scholar] [CrossRef]
- Festen, R.T.; Schrier, V.; Amadio, P.C. Automated Segmentation of the Median Nerve in the Carpal Tunnel using U-Net. Ultrasound Med. Biol. 2021, 47, 1964–1969. [Google Scholar] [CrossRef]
- Cosmo, M.D.; Fiorentino, M.C.; Villani, F.P.; Sartini, G.; Smerilli, G.; Filippucci, E.; Frontoni, E.; Moccia, S. Learning-Based Median Nerve Segmentation From Ultrasound Images For Carpal Tunnel Syndrome Evaluation. Annu. Int. Conf. IEEE Eng. Med. Biol. Soc. 2021, 2021, 3025–3028. [Google Scholar] [PubMed]
- Smerilli, G.; Cipolletta, E.; Sartini, G.; Moscioni, E.; Di Cosmo, M.; Fiorentino, M.C.; Moccia, S.; Frontoni, E.; Grassi, W.; Filippucci, E. Development of a convolutional neural network for the identification and the measurement of the median nerve on ultrasound images acquired at carpal tunnel level. Arthritis Res. Ther. 2022, 24, 38. [Google Scholar] [CrossRef] [PubMed]
- Peng, J.; Zeng, J.; Lai, M.; Huang, R.; Ni, D.; Li, Z. One-Stop Automated Diagnostic System for Carpal Tunnel Syndrome in Ultrasound Images Using Deep Learning. Ultrasound Med. Biol. 2024, 50, 304–314. [Google Scholar] [CrossRef]
- Moser, F.; Muller, S.; Lie, T.; Langø, T.; Hoff, M. Automated segmentation of the median nerve in patients with carpal tunnel syndrome. Sci. Rep. 2024, 14, 16757. [Google Scholar] [CrossRef] [PubMed]
- Linehan, C.; Childs, J.; Quinton, A.E.; Aziz, A. Ultrasound parameters to identify and diagnose carpal tunnel syndrome. A review of the literature. J. Ultrasound Med. 2020, 23, 194–206. [Google Scholar] [CrossRef]
- Yoshii, Y.; Zhao, C.; Amadio, P.C. Recent Advances in Ultrasound Diagnosis of Carpal Tunnel Syndrome. Diagnostics 2020, 10, 596. [Google Scholar] [CrossRef]
- Ahmed, A.; Malik, G.; Imtiaz, H.; Riaz, R.; Badshah, M.; Zameer, S. Assessment Of Carpal Tunnel Syndrome with Ultrasonography. J. Ayub Med. Coll. Abbottabad 2022, 34, 295–299. [Google Scholar] [CrossRef]
- Singh, P.; Mukundan, R.; De Ryke, R. Feature Enhancement in Medical Ultrasound Videos Using Contrast-Limited Adaptive Histogram Equalization. J. Digit. Imaging 2020, 33, 273–285. [Google Scholar] [CrossRef]
- Tupper, A.; Gagné, C. Revisiting Data Augmentation for Ultrasound Images. arXiv 2025, arXiv:2501.13193. [Google Scholar] [CrossRef]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015; Springer International Publishing: Cham, Switzerland, 2015. [Google Scholar]
- Qureshi, A.; Lim, S.; Suh, S.Y.; Mutawak, B.; Chitnis, P.V.; Demer, J.L.; Wei, Q. Deep-Learning-Based Segmentation of Extraocular Muscles from Magnetic Resonance Images. Bioengineering 2023, 10, 699. [Google Scholar] [CrossRef] [PubMed]
- Muller, D.; Soto-Rey, I.; Kramer, F. Towards a guideline for evaluation metrics in medical image segmentation. BMC Res. Notes 2022, 15, 210. [Google Scholar] [CrossRef]
- Cartwright, M.S.; Shin, H.W.; Passmore, L.V.; Walker, F.O. Ultrasonographic reference values for assessing the normal median nerve in adults. J. Neuroimaging 2009, 19, 47–51. [Google Scholar] [CrossRef]
- Wang, J.C.; Shu, Y.C.; Lin, C.Y.; Wu, W.T.; Chen, L.R.; Lo, Y.C.; Chiu, H.C.; Özçakar, L.; Chang, K.V. Application of deep learning algorithms in automatic sonographic localization and segmentation of the median nerve: A systematic review and meta-analysis. Artif. Intell. Med. 2023, 137, 102496. [Google Scholar] [CrossRef]
- Palaniappan, D.; Jain, R.; Premavathi, T.; Parmar, K.; Ghribi, W.; Ahmed, A.M.; Ahmad, N. Yolo in healthcare: A comprehensive review of detection architectures, domain applications, and future innovations. IEEE Access 2025, 13, 145714–145735. [Google Scholar] [CrossRef]
- Hobson-Webb, L.D. Neuromuscular ultrasound in polyneuropathies and motor neuron disease. Muscle Nerve 2023, 47, 790–804. [Google Scholar] [CrossRef]
- Huang, P.; He, P.; Tian, S.; Ma, M.; Feng, P.; Xiao, H.; Mercaldo, F.; Santone, A.; Qin, J. A vit-amc network with adaptive model fusion and multiobjective optimization for interpretable laryngeal tumor grading from histopathological images. IEEE Trans. Med. Imaging 2023, 42, 15–28. [Google Scholar] [CrossRef] [PubMed]
- Huang, P.; Li, C.; He, P.; Xiao, H.; Ping, Y.; Feng, P.; Tian, S.; Chen, H.; Mercaldo, F.; Santone, A.; et al. MamlFormer: Priori-experience guiding transformer network via manifold adversarial multi-modal learning for laryngeal histopathological grading. Inf. Fusion 2024, 108, 102333. [Google Scholar] [CrossRef]
- Qu, Y.; Zhou, X.; Huang, P.; Liu, Y.; Mercaldo, F.; Santone, A.; Feng, P. CGAM: An end-to-end causality graph attention Mamba network for esophageal pathology grading. Biomed. Signal Process. Control 2025, 103, 107452. [Google Scholar] [CrossRef]
- Huang, P.; Luo, X. Fdts: A feature disentangled transformer for interpretable squamous cell carcinoma grading. IEEE/CAA J. Autom. Sin. 2024, 12, 2365–2367. Available online: https://www.ieee-jas.net/en/article/id/5070f13e-1ef7-4848-99f5-efaedf69792b (accessed on 13 November 2025). [CrossRef]
- Wen, Y.; Mahmoud, M.A.; Wu, W.; Chen, H.; Zhang, Y.; Pan, X.; Guan, Y. Predicting pathological subtypes of pure ground-glass nodules using Swin Transformer deep learning model. Insights Into Imaging 2025, 16, 223. [Google Scholar] [CrossRef]
- Wang, Y.; Luo, F.; Yang, X.; Wang, Q.; Sun, Y.; Tian, S.; Feng, P.; Huang, P.; Xiao, H. The Swin-Transformer network based on focal loss is used to identify images of pathological subtypes of lung adenocarcinoma with high similarity and class imbalance. J. Cancer Res. Clin. Oncol. 2023, 149, 8581–8592. [Google Scholar] [CrossRef] [PubMed]
- Wang, L.; Yi, S.; Yu, Y.; Gao, C.; Samali, B. Automated ultrasonic-based diagnosis of concrete compressive damage amidst temperature variations utilizing deep learning. Mech. Syst. Signal Process. 2024, 221, 111719. [Google Scholar] [CrossRef]
- Palma-Ramírez, D.; Ross-Veitía, B.D.; Font-Ariosa, P.; Espinel-Hernández, A.; Sanchez-Roca, A.; Carvajal-Fals, H.; Nuñez-Alvarez, J.R.; Hernández-Herrera, H. Deep convolutional neural network for weld defect classification in radiographic images. Heliyon 2024, 10, e30590. [Google Scholar] [CrossRef] [PubMed]
- Harris-Love, M.O.; Gonzales, T.I.; Wei, Q.; Ismail, C.; Zabal, J.; Woletz, P.; DiPietro, L.; Blackman, M.R. Association between muscle strength and modeling estimates of muscle tissue heterogeneity in young and old adults. J. Ultrasound Med. 2019, 38, 1757–1768. [Google Scholar] [CrossRef]










| Characteristics (Total N = 37) | Findings |
|---|---|
| Age—median (range) | 39 (21–77) |
| Sex | 21F (57%) |
| Right Handedness | 33 (89%) |
| Electrophysiology (mean ± STD) | |
| Median Motor Nerve (Amplitude/distal latency/conduction velocity) | 11.7 ± 3.2 mV/3.2 ± 0.4 ms/59.1 ± 4.7 m/s |
| Median Sensory Nerve (Amplitude/conduction velocity) | 43.3 ± 17.5 µV/57.5 ± 6.1 m/s |
| Performance Metric | Forearm (N = 100) | Wrist (N = 100) |
|---|---|---|
| IoU ± STD | 0.844 ± 0.077 | 0.876 ± 0.047 |
| Dice ± STD | 0.913 ± 0.053 | 0.933 ± 0.030 |
| Accuracy | 0.999 | 0.999 |
| Precision | 0.947 | 0.947 |
| Specificity | 1.000 | 0.999 |
| Sensitivity | 0.888 | 0.922 |
| Anatomical Location (Number of Testing Images) | Average Metric ± STD | Split 1 | Split 2 | Split 3 | Split 4 | Split 5 |
|---|---|---|---|---|---|---|
| Wrist (N = 177) | IoU ± STD | 0.922 ± 0.048 | 0.924 ± 0.038 | 0.917 ± 0.047 | 0.918 ± 0.045 | 0.917 ± 0.044 |
| Dice ± STD | 0.956 ± 0.027 | 0.960 ± 0.021 | 0.956 ± 0.027 | 0.956 ± 0.025 | 0.956 ± 0.024 | |
| Forearm (N = 157) | IoU ± STD | 0.895 ± 0.075 | 0.892 ± 0.071 | 0.882 ± 0.076 | 0.892 ± 0.073 | 0.892 ± 0.082 |
| Dice ± STD | 0.943 ± 0.044 | 0.942 ± 0.042 | 0.935 ± 0.046 | 0.941 ± 0.042 | 0.941 ± 0.055 |
| Study | Model | Image Data | Results |
|---|---|---|---|
| Hafiane (2017) [14] | Probabilistic, edge phase information, and active contours | Average 500 US frames per patient (10 patients) obtained at the forearm | Dice: 0.85 (forearm) |
| Festen (2021) [15] | U-Net | 5560 dynamic US images (99 patients) obtained at the wrist (carpal tunnel inlet) | Dice: 0.77 (finger flexion), 0.86 (wrist flexion), 0.82 (both flexion dataset) |
| Cosmo (2021) [16] | Mask R-CNN | 151 US images (53 patients) from the wrist (carpal tunnel inlet) | Dice: 0.93 (wrist) |
| Smerilli (2022) [17] | Mask R-CNN | 246 US images (103 patients) obtained at the wrist (carpal tunnel inlet) | Dice: 0.88 (wrist) |
| Peng (2024) [18] | OSA-CTSD method using Segformer B2 variant | 32,301 US images (from 130 videos from 81 participants) obtained at the wrist | IoU: 0.76 (wrist) Dice: 0.86 (wrist) |
| Moser (2024) [19] | U-Net | 2355 US images (25 CTS patients; 26 healthy) obtained at the distal forearm | Dice: 0.76 (distal forearm) |
| OUR STUDY (2025) | U-Net | First dataset: 500 forearm images and 500 wrist images from 8 patient videos Second dataset: 26 forearm images and 35 wrist images Totals: 786 forearm images, 885 wrist images (37 healthy patients) | IoU: 0.84 (forearm, first dataset), 0.89 (forearm, combined dataset), 0.88 (wrist, first batch), 0.92 (wrist, combined dataset) Dice: 0.91 (forearm, first dataset), 0.94 (forearm, combined dataset), 0.93 (wrist, first dataset), 0.96 (wrist, combined dataset) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Qureshi, A.; Tse, K.; Sikdar, S.; Serlin, Y.; Akalu, A.; Wu, T.; Alter, K.; Wei, Q.; Lehky, T. Utilization of a Deep Learning Algorithm for Automated Segmentation of Median Nerve from Ultrasound Obtained from the Distal Forearm and Wrist. Bioengineering 2025, 12, 1289. https://doi.org/10.3390/bioengineering12121289
Qureshi A, Tse K, Sikdar S, Serlin Y, Akalu A, Wu T, Alter K, Wei Q, Lehky T. Utilization of a Deep Learning Algorithm for Automated Segmentation of Median Nerve from Ultrasound Obtained from the Distal Forearm and Wrist. Bioengineering. 2025; 12(12):1289. https://doi.org/10.3390/bioengineering12121289
Chicago/Turabian StyleQureshi, Amad, Kyle Tse, Siddhartha Sikdar, Yonatan Serlin, Atsede Akalu, Tianxia Wu, Katharine Alter, Qi Wei, and Tanya Lehky. 2025. "Utilization of a Deep Learning Algorithm for Automated Segmentation of Median Nerve from Ultrasound Obtained from the Distal Forearm and Wrist" Bioengineering 12, no. 12: 1289. https://doi.org/10.3390/bioengineering12121289
APA StyleQureshi, A., Tse, K., Sikdar, S., Serlin, Y., Akalu, A., Wu, T., Alter, K., Wei, Q., & Lehky, T. (2025). Utilization of a Deep Learning Algorithm for Automated Segmentation of Median Nerve from Ultrasound Obtained from the Distal Forearm and Wrist. Bioengineering, 12(12), 1289. https://doi.org/10.3390/bioengineering12121289

