基於深度學習的藥盒自動辨識系統:嶄新的庫存管理研究與應用

A Novel Inventory Management Research and Application of Drug-Box Automatic Identification System based on Deep Learning

檔案

日期

2026

類型

語言

中文

摘要

研究目的:自動化與智慧化已成為世界衛生組織及全球醫療機構發展的重要趨勢。藥品調劑與庫儲管理做為醫療流程中不可或缺的一環,但至今仍高度依賴人力,從而需要大量勞力成本並拖慢醫療效率。
在現今藥局作業環境,特別是在藥品調劑與庫存管理方面,仍遵循傳統的庫存管理方式,倚仗字母排列、肉眼檢索及手動上架置藥取藥。以往雖然有許多醫院試圖應用嶄新技術協助藥品調劑流程,如RFID、藍牙、條碼等技術,但在實際作業的藥局,仍無一套自動化藥品庫儲管理方法,因為前述方法都未能兼具低廉成本、高準確度及高效率。
本研究旨在探討深度學習物件辨識技術於藥盒檢索之應用可行性,並比較不同訓練數據集特性對模型效能之影響。相關自動化技術尚在萌芽階段,若可以透過攝影鏡頭視覺辨識方式,由電腦人工智慧技術分析儲架影像並檢索藥品位置。如此既可免去建置大量冗餘的感應設備,亦可達到與人類同樣使用視覺檢索藥品的高效作法。

研究方法:本篇研究使用開源的深度學習物件辨識模型YOLO V11(by Ultralytics)及Faster R-CNN,並於北部某一區域醫院藥局內,以手機距離一公尺處蒐集藥局儲藥架及40種藥盒之照片,蒐集特性相異的數據集。數量訂為40種係因這是一座儲藥架常有的藥品種類數。研究使用YOLO V11及faster R-CNN深度模型學習所拍攝的藥盒外觀及儲架背景,研究結果以模型表現的precision、recall及mAP@0.5作為評估指標,試驗出最適合應用於藥局的數據集和模型。得到準確度及泛用性最高的數據集和模型架構後,研究以此擴展優化,完成軟硬體結合與實務測試,於終端的平價設備實現優秀的檢索藥盒能力,發展低成本、高準確、高效率的自動檢索設備之潛力,為未來藥局自動化建立視覺化的基石。

研究結果:研究成果顯示以藥盒大小經調整、複雜背景以及多張藥盒在同一圖片的數據集,可以在YOLO V11模型經過100epochs訓練後precision達到96.1%。在使用真實照片做為testing set的測試中,模型測試結果為precision 93.9%、recall 89.4%及mAP@0.5 94.6%。而其泛用性極高及開源的架構設計,亦可以透過即時畫面實時檢索藥盒,相較市面售價動輒千萬的藥盒自動庫儲設備,整體架構成本不到十萬,醫院得以大幅減少資本投入。研究亦完成軟硬體整合,並在藥局複雜背景下完成實務測試,展現高準確度藥盒檢索功能,這將讓視覺化檢索技術成為自動化流程中十分可靠的解決方案。

結論:不同於市面現有依賴條碼、QRcode及無線基地台等複雜技術及設備,本研究使用深度學習模型完成權重訓練,並成功建置在平價的終端設備,藥局可僅憑一台筆記型電腦及攝影鏡頭達成複雜且多品項的藥盒檢索。期待這篇研究激勵更多廠商及使用者未來朝此方向投入並完善,亦為藥局自動化及視覺化技術建立重要基石。
Objective:Automation and intelligence have become crucial development trends for the World Health Organization (WHO) and healthcare institutions worldwide. As an indispensable part of the medical workflow, medication dispensing and inventory management still rely heavily on manual labor, which incurs significant labor costs and hinders medical efficiency.
In current pharmacy operating environments, particularly regarding medication dispensing and stock management, traditional inventory methods are still followed—relying on alphabetical arrangement, visual searching, and manual stocking and retrieval. Although many hospitals have previously attempted to apply innovative technologies such as RFID, Bluetooth, and barcodes to assist the dispensing workflow, a fully automated medication inventory management method remains absent in practical pharmacy operations. This is because the aforementioned approaches fail to simultaneously achieve low cost, high accuracy, and high efficiency.
This study aims to explore the feasibility of applying deep learning object detection technology to drug-box retrieval, and to compare the effects of different training dataset characteristics on model performance. As related automation technologies are still in their infancy, utilizing camera-based visual recognition allows artificial intelligence to analyze shelf images and retrieve medication locations. This approach not only eliminates the need to install a massive amount of redundant sensing equipment, but also achieves a highly efficient method of medication retrieval that mirrors human visual searching.

Method:This study utilized the open-source deep learning object detection models YOLO11 (by Ultralytics) and Faster R-CNN. The datasets were collected inside the pharmacy of a regional hospital in northern Taiwan, where a smartphone was used to capture images of medicine storage shelves and 40 distinct types of drug-boxes from a distance of one meter, creating datasets with varying characteristics. The number of box types was set to 40 because this represents the typical capacity of a standard pharmacy storage shelf. The deep learning models, YOLO11 and Faster R-CNN, were used to train on the captured appearance of the medicine boxes and the shelf backgrounds. Precision, recall, and mAP@0.5 were adopted as evaluation metrics for model performance to determine the dataset and model best suited for pharmacy application. After identifying the dataset and model architecture with the highest accuracy and generalizability, this study further expanded and optimized the system to complete hardware-software integration and practical testing. This achieved excellent medicine box retrieval capabilities on affordable terminal equipment, demonstrating the potential to develop low-cost, high-accuracy, and high-efficiency automated retrieval devices, and establishing a visual cornerstone for future pharmacy automation

Results:Research results indicate that by utilizing a dataset characterized by adjusted drug-box sizes, complex backgrounds, and multiple drug-boxes within a single image, the YOLO11 model achieved a precision of 96.1% after 100 epochs of training. When evaluated against a testing set consisting of real-world photographs, the model yielded a precision of 93.9%, a recall of 89.4%, and an mAP@0.5 of 94.6%. Furthermore, due to its highly versatile and open-source architecture, the system is capable of performing real-time drug-box retrieval through live video feeds. Compared to commercially available automated drug-box storage equipment, which often costs tens of millions of NTD, the total architecture cost of this system is under 100,000 NTD, allowing hospitals to substantially reduce capital expenditures. The study also successfully completed hardware-software integration and practical field testing under complex pharmacy backgrounds, demonstrating highly accurate drug-box retrieval capabilities. This establishes visual retrieval technology as a remarkably reliable solution within automated workflows.

Conclusion:Unlike existing market solutions that rely on complex technologies and equipment such as barcodes, QR codes, and wireless base stations, this study utilized a deep learning model to complete weight training and successfully deployed it on affordable terminal equipment. With just a standard laptop and a camera, pharmacies can achieve complex, multi-item drug-box retrieval. We expect this research to inspire more developers and users to invest in and refine this direction in the future, while serving as a vital cornerstone for pharmacy automation and computer vision technologies.

所屬典藏

醫務管理研究所
顯示完整詮釋資料 統計資料

引用此條目

黎非易 (2026). 基於深度學習的藥盒自動辨識系統:嶄新的庫存管理研究與應用. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/89152

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/89152