Lightweight Detection Counting Method for Pill Boxes Based on Improved YOLOv8n
Open Access
- 16 December 2024
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 13 (24) , 4953
Abstract
Vending machines have evolved into a critical element of the intelligent healthcare service system. To enhance the precision of pill box detection counting and cater to the lightweight requirements of its internal embedded controller for deep learning frameworks, an enhanced lightweight YOLOv8n model is introduced. A dataset comprising 4080 images is initially compiled for model training and assessment purposes. The refined YOLOv8n-ShuffleNetV2 model is crafted, featuring the integration of ShuffleNetv2 as the new backbone network, the incorporation of the VoVGSCSP module to bolster feature extraction capabilities, and the utilization of the Wise-IoU v3 loss function for bounding box regression enhancement. Moreover, a model pruning strategy based on structured pruning (SFP) and layer-wise adaptive magnitude pruning (LAMP) is implemented. Comparative experimental findings demonstrate that the enhanced and pruned model has elevated the mean Average Precision (mAP) rate from 94.5% to 95.1%. Furthermore, the model size has been reduced from 11.1 MB to 6.0 MB, and the inference time has been notably decreased from 1.97 s to 0.34 s. The model’s accuracy and efficacy are validated through experiments conducted on the Raspberry Pi 4B platform. The outcomes of the experiments underscore how the refined model significantly amplifies the deployment efficiency of the deep learning model on resource-limited devices, thus greatly supporting the advancement of intelligent medicine management and medical vending machine applications.Keywords
This publication has 36 references indexed in Scilit:
- Slim-neck by GSConv: a lightweight-design for real-time detector architecturesJournal of Real-Time Image Processing, 2024
- AFF-YOLOX: An improved lightweight YOLOX network to detect early hatching information of duck eggsComputers and Electronics in Agriculture, 2023
- Small unopened cotton boll counting by detection with MRF-YOLO in the wildComputers and Electronics in Agriculture, 2022
- A Deep Learning Approach for Automatic Counting of Bales and Product Boxes in Industrial Production Lines2022
- Yolov4-tiny with wing convolution layer for detecting fish body partComputers and Electronics in Agriculture, 2022
- Optimized convolutional neural network architectures for efficient on-device vision-based object detectionNeural Computing and Applications, 2021
- A real-time table grape detection method based on improved YOLOv4-tiny network in complex backgroundBiosystems Engineering, 2021
- Differential box counting methods for estimating fractal dimension of gray-scale images: A surveyChaos, Solitons & Fractals, 2019
- An enhanced SSD with feature fusion and visual reasoning for object detectionNeural Computing and Applications, 2018
- SSD: Single Shot MultiBox Detector2016