Developing a deep learning model for the automated monitoring of acupuncture needle insertion: enhancing safety in traditional acupuncture practices
- PMID: 40102810
- PMCID: PMC11917098
- DOI: 10.1186/s12906-025-04853-7
Developing a deep learning model for the automated monitoring of acupuncture needle insertion: enhancing safety in traditional acupuncture practices
Abstract
Background: Acupuncture is a widely practiced traditional therapy, yet safety concerns, particularly needle breakage and retention, remain critical issues that can lead to complications such as infections, organ injury, or chronic pain. This study aimed to develop a deep learning model to monitor acupuncture needle insertion, detect instances of needle breakage, and prevent needle retention, ultimately improving patient safety and treatment outcomes.
Methods: A deep learning model based on the YOLOv8 architecture was trained using a dataset comprising 192 images from a commercial image library and 73 clinical images captured during real-world acupuncture sessions. Images were preprocessed through cropping and annotation, and augmented to enhance model generalizability. Five-fold cross-validation was employed to ensure robust performance. Model evaluation metrics included precision, recall, F1 score, and mean average precision (mAP) at Intersection over Union (IoU) thresholds of 50% (mAP@50) and 50-95% (mAP@50-95).
Results: The model demonstrated strong performance, achieving an average precision of 88.0% and a recall of 82.9%. The mean average precision was 88.6% at mAP@50 and 62.9% at mAP@50-95, indicating high reliability in detecting acupuncture needles across diverse scenarios. These results highlight the potential of the model to enhance clinical safety by minimizing risks associated with needle breakage and retention, regardless of practitioner experience or patient demographics.
Conclusions: The proposed YOLOv8-based deep learning model offers a reliable method for real-time needle monitoring in acupuncture. Its integration into clinical workflows can improve safety and efficiency, especially in underserved regions or settings with less experienced practitioners. Future research should validate the model with larger, more diverse datasets and explore its application in various healthcare settings.
Trial registration: Not applicable; this study did not involve a healthcare intervention requiring registration. Data collection adhered to ethical standards with institutional approval (TCHIRB-11310004).
Keywords: Acupuncture needle; Acupuncture practice; Deep learning; Needle detection; Safety.
© 2025. The Author(s).
Conflict of interest statement
Declarations. Ethics approval and consent to participate: All methods were performed in accordance with the relevant guidelines and regulations in the Declaration of Helsinki. Informed consent was obtained from all subjects. The research protocol was approved by the Taipei City Hospital Research Ethics Committee under approval number TCHIRB-11310004. Informed consent was obtained from all subjects. Consent for publication: Not Applicable as there were no identifiable details of individuals reported in the manuscript. Competing interests: The authors declare no competing interests.
Figures

Similar articles
-
Leveraging code-free deep learning for pill recognition in clinical settings: A multicenter, real-world study of performance across multiple platforms.Artif Intell Med. 2024 Apr;150:102844. doi: 10.1016/j.artmed.2024.102844. Epub 2024 Mar 13. Artif Intell Med. 2024. PMID: 38553153
-
[Precise application of Traditional Chinese Medicine in minimally-invasive techniques].Zhongguo Gu Shang. 2018 Jun 25;31(6):493-496. doi: 10.3969/j.issn.1003-0034.2018.06.001. Zhongguo Gu Shang. 2018. PMID: 29945400 Chinese.
-
Ameliorating standard operating procedures could reduce the risk of needle retention after acupuncture.Medicine (Baltimore). 2025 Feb 14;104(7):e41488. doi: 10.1097/MD.0000000000041488. Medicine (Baltimore). 2025. PMID: 39960942 Free PMC article.
-
[Objective reasons and the strategies on pain during the needle insertion and the key points in teaching program].Zhongguo Zhen Jiu. 2016 Jul 12;36(7):763-766. doi: 10.13703/j.0255-2930.2016.07.026. Zhongguo Zhen Jiu. 2016. PMID: 29231420 Review. Chinese.
-
Treating primary dysmenorrhoea with acupuncture: a narrative review of the relationship between acupuncture 'dose' and menstrual pain outcomes.Acupunct Med. 2016 Dec;34(6):416-424. doi: 10.1136/acupmed-2016-011110. Epub 2016 Nov 14. Acupunct Med. 2016. PMID: 27913451 Review.
Cited by
-
Artificial intelligence in acupuncture: bridging traditional knowledge and precision integrative medicine.Front Med (Lausanne). 2025 Jul 31;12:1633416. doi: 10.3389/fmed.2025.1633416. eCollection 2025. Front Med (Lausanne). 2025. PMID: 40823583 Free PMC article. Review.
References
-
- Fang X, Tian Z, Xie B, Guo H. Removal of an acupuncture needle accidentally broken in the neck. Asian J Surg. 2019;42(4):582–3. - PubMed
-
- Wong TH, Wei J, Chen H, Ng BFL. A novel deep learning based cloud service system for automated acupuncture needle counting: a strategy to improve acupuncture safety. Digit Chin Med. 2024;7(1):40–6.
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
Medical