{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,11,26]],"date-time":"2025-11-26T11:06:15Z","timestamp":1764155175183,"version":"3.46.0"},"reference-count":30,"publisher":"MDPI AG","issue":"12","license":[{"start":{"date-parts":[[2025,11,26]],"date-time":"2025-11-26T00:00:00Z","timestamp":1764115200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"the \u201cPioneer\u201d and \u201cLeading Goose\u201d Research and Development Program of Zhejiang","award":["2024C01213"],"award-info":[{"award-number":["2024C01213"]}]},{"DOI":"10.13039\/501100001809","name":"the National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["62203388","62572439"],"award-info":[{"award-number":["62203388","62572439"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"name":"the Provincial Universities of Zhejiang","award":["RF-A2024002"],"award-info":[{"award-number":["RF-A2024002"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["BDCC"],"abstract":"<jats:p>To enable fully automated medicine warehousing in intelligent pharmacy systems, accurately detecting disordered, stacked pillboxes is essential. This paper proposes a high-precision detection algorithm for such scenarios based on an improved YOLOv8 framework. The proposed method integrates a novel convolutional module that replaces traditional stride convolutions and pooling layers, enhancing the detection of small, low-resolution targets in computer vision tasks. To further enhance detection accuracy, the Bi-Level Routing Attention (BiFormer) Vision Transformer is incorporated as a Cognitive Computing module. Additionally, the circular Smooth Label (CSL) technique is employed to mitigate boundary discontinuities and periodic anomalies in angle prediction, which often arise in the detection of rotated objects. The experimental results demonstrate that the proposed method achieves a precision of 94.24%, a recall of 90.39%, and a mean average precision (mAP) of 94.16%\u2014improvements of 3.34%, 2.53%, and 3.35%, respectively, over the baseline YOLOv8 model. Moreover, the enhanced detection model outperforms existing rotated-object detection methods while maintaining real-time inference speed. To facilitate reproducibility and future benchmarking, the full dataset and source code used in this study have been released publicly. Although no standardized benchmark currently exists for pillbox detection, our self-constructed dataset reflects key industrial variations in pillbox size, orientation, and stacking, thereby providing a foundation for future cross-domain validation.<\/jats:p>","DOI":"10.3390\/bdcc9120300","type":"journal-article","created":{"date-parts":[[2025,11,26]],"date-time":"2025-11-26T10:04:57Z","timestamp":1764151497000},"page":"300","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Unordered Stacked Pillbox Detection Algorithm Based on Improved YOLOv8"],"prefix":"10.3390","volume":"9","author":[{"given":"Jiahang","family":"Pan","sequence":"first","affiliation":[{"name":"College of Information Engineering, Zhejiang University of Technology, Hangzhou 310023, China"}]},{"given":"Rui","family":"Zhou","sequence":"additional","affiliation":[{"name":"College of Information Engineering, Zhejiang University of Technology, Hangzhou 310023, China"}]},{"given":"Jie","family":"Feng","sequence":"additional","affiliation":[{"name":"China Mobile (Hangzhou) Information Technology Co., Ltd., Hangzhou 311121, China"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9966-8427","authenticated-orcid":false,"given":"Mincheng","family":"Wu","sequence":"additional","affiliation":[{"name":"College of Information Engineering, Zhejiang University of Technology, Hangzhou 310023, China"}]},{"given":"Xiang","family":"Wu","sequence":"additional","affiliation":[{"name":"College of Information Engineering, Zhejiang University of Technology, Hangzhou 310023, China"}]},{"given":"Hui","family":"Dong","sequence":"additional","affiliation":[{"name":"College of Information Engineering, Zhejiang University of Technology, Hangzhou 310023, China"}]}],"member":"1968","published-online":{"date-parts":[[2025,11,26]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Jiang, W., Chen, Z., Zhang, H., and Li, J. (2024). MelSPPNET\u2014A self-explainable recognition model for emerald ash borer vibrational signals. Front. For. Glob. Change, 7.","DOI":"10.3389\/ffgc.2024.1239424"},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Girshick, R., Donahue, J., Darrell, T., and Malik, J. (2014, January 23\u201328). Rich Feature Hier Archies for Accurate Object Detection and Semantic Segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA.","DOI":"10.1109\/CVPR.2014.81"},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"4420","DOI":"10.1109\/JIOT.2024.3485748","article-title":"End-to-end multi-target flexible job shop scheduling with deep reinforcement learning","volume":"12","author":"Wang","year":"2024","journal-title":"IEEE Internet of Things J."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"1137","DOI":"10.1109\/TPAMI.2016.2577031","article-title":"Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks","volume":"39","author":"Ren","year":"2017","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"103","DOI":"10.1007\/s10846-024-02132-0","article-title":"Manipulation of a Complex Object Using Dual-Arm Robot with Mask R-CNN and Grasping Strategy","volume":"110","author":"Kijdech","year":"2024","journal-title":"J. Intell. Robot. Syst."},{"key":"ref_6","first-page":"110","article-title":"Method of Dead Standing Tree Detection Based on RetinaNet Object Detection Network","volume":"8","author":"Liu","year":"2024","journal-title":"Int. J. New Dev. Eng. Soc."},{"key":"ref_7","first-page":"83","article-title":"Research on Employee Abnormal Behavior Detection Algorithm Based on Improved SSD","volume":"8","author":"Zhou","year":"2024","journal-title":"Adv. Comput. Signals Syst."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"351","DOI":"10.1063\/5.0202721","article-title":"Optimization of intelligent guided vehicle vision navigation based on improved YOLOv2","volume":"95","author":"Hua","year":"2024","journal-title":"Rev. Sci. Instrum."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"123757","DOI":"10.1109\/ACCESS.2019.2928603","article-title":"A Target Detection Model Based on Improved Tiny-Yolov3 Under the Environment of Mining Truck","volume":"7","author":"Xiao","year":"2019","journal-title":"IEEE Access"},{"key":"ref_10","first-page":"409","article-title":"Refining Yolov4 for vehicle detection","volume":"11","author":"Panda","year":"2020","journal-title":"Int. J. Adv. Res. Eng. Technol."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"E37591","DOI":"10.1097\/MD.0000000000037591","article-title":"Design of a multi-category drug information integration platform for intelligent pharmacy management: A needs analysis study","volume":"103","author":"Pan","year":"2024","journal-title":"Medicine"},{"key":"ref_12","first-page":"268","article-title":"Helmet wearing detection algorithm based on improved YOLOv4","volume":"48","author":"Jin","year":"2021","journal-title":"Comput. Sci."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"104602","DOI":"10.1016\/j.dsp.2024.104602","article-title":"Low contrast stamped dates recognition for pill packaging boxes based on YOLO-SFD and image fusion","volume":"153","author":"Wang","year":"2024","journal-title":"Digit. Signal Process."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Sun, W., Niu, X., Wu, Z., and Guo, Z. (2024). Lightweight Detection and Counting Method for Pill Boxes Using Machine Vision. Electronics, 13.","DOI":"10.3390\/electronics13244953"},{"key":"ref_15","first-page":"1572","article-title":"Improvement of YOLOv5 algorithm for detecting counting of pill boxes in drug vending machines","volume":"45","author":"Li","year":"2024","journal-title":"Comput. Eng. Des."},{"key":"ref_16","first-page":"29","article-title":"Research on Deep Learning-based Drug Name Recognition Technology for Pill Boxes","volume":"34","author":"Liu","year":"2021","journal-title":"J. Qingdao Univ."},{"key":"ref_17","first-page":"3693","article-title":"A Comprehensive Review of Pill Image Recognition","volume":"82","author":"My","year":"2025","journal-title":"Comput. Mater. Contin."},{"key":"ref_18","first-page":"141","article-title":"Design of Multi-target Pillbox Gripping System Based on YOLOv5 and U-NET","volume":"45","author":"Yuan","year":"2024","journal-title":"Packag. Eng."},{"key":"ref_19","first-page":"229","article-title":"Research on rotating target detection algorithm based on improved YOLOv5 and its application","volume":"44","author":"Shen","year":"2023","journal-title":"Packag. Eng."},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Wei, C., Ni, W., Qin, Y., Wu, J., Zhang, H., Liu, Q., Cheng, K., and Bian, H. (2023). RiDOP: A Rotation-Invariant Detector with Simple Oriented Proposals in Remote Sensing Images. Remote Sens., 15.","DOI":"10.3390\/rs15030594"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"112181","DOI":"10.1016\/j.asoc.2024.112181","article-title":"MCSC-Net: A Rotated Object Detection Strategy for Densely Arranged Objects","volume":"166","author":"Li","year":"2024","journal-title":"Appl. Soft Comput."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"1655","DOI":"10.1049\/ipr2.13011","article-title":"Rotated Points for Object Detection in Remote Sensing Images","volume":"18","author":"Wang","year":"2024","journal-title":"IET Image Process."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Zhu, L., Wang, X., Ke, Z., Zhang, W., and Lau, R. (2023). BiFormer: Vision Transformer with Bi-Level Routing Attention. arXiv.","DOI":"10.1109\/CVPR52729.2023.00995"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Cao, X., Zhang, Y., Lang, S., and Gong, Y. (2023). Swin-Transformer-Based YOLOv5 for Small-Object Detection in Remote Sensing Images. Sensors, 23.","DOI":"10.3390\/s23073634"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Tsai, C.-Y., and Lin, W.-C. (2024). Precise Orientation Estimation for Rotated Object Detection Based on a Unit Vector Coding Approach. Electronics, 13.","DOI":"10.3390\/electronics13224402"},{"key":"ref_26","unstructured":"Yaseen, M. (2024). What is YOLOv8: An In-Depth Exploration of the Internal Features of the Next-Generation Object Detector. arXiv."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Li, J., Wu, J., and Shao, Y. (2024). FSNB-YOLOv8: Improvement of Object Detection Model for Surface Defects Inspection in Online Industrial Systems. Appl. Sci., 14.","DOI":"10.3390\/app14177913"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"296","DOI":"10.1007\/s10489-025-06232-8","article-title":"Meng, L.; Han, J. Object detection in optical remote sensing images: A survey and a new benchmark","volume":"159","author":"Li","year":"2025","journal-title":"Appl. Intell."},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Zhao, Y., Lv, W., Xu, S., Wei, J., Wang, G., Dang, Q., Liu, Y., and Chen, J. (2024, January 16\u201322). DETRs Beat YOLOs on Real-time Object Detection. Proceedings of the 2024 IEEE\/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.","DOI":"10.1109\/CVPR52733.2024.01605"},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Tang, S., Zhang, S., and Fang, Y. (2024, January 13\u201317). HIC-YOLOv5: Improved YOLOv5 For Small Object Detection. Proceedings of the 2024 IEEE International Conference on Robotics and Automation (ICRA), Yokohama, Japan.","DOI":"10.1109\/ICRA57147.2024.10610273"}],"container-title":["Big Data and Cognitive Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2504-2289\/9\/12\/300\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,11,26]],"date-time":"2025-11-26T10:55:52Z","timestamp":1764154552000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2504-2289\/9\/12\/300"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,11,26]]},"references-count":30,"journal-issue":{"issue":"12","published-online":{"date-parts":[[2025,12]]}},"alternative-id":["bdcc9120300"],"URL":"https:\/\/doi.org\/10.3390\/bdcc9120300","relation":{},"ISSN":["2504-2289"],"issn-type":[{"value":"2504-2289","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,11,26]]}}}