Abstract
Introduction
Adverse drug events (ADEs) remain a major cause of preventable healthcare complications due to incorrect pill identification, dosage errors, and confusion between visually identical pills, particularly among older adults, visually impaired individuals, and people with limited health literacy. Recent advances in artificial intelligence and computer vision have enabled automated pill recognition systems. However, many existing methods address detection, classification, and imprint recognition as isolated tasks without providing a lightweight unified framework suitable for real-time healthcare deployment.
Methods
This study presents a lightweight hybrid framework for multi-pill and multi-attribute recognition to support pharmacovigilance and artificial intelligence-driven clinical decision support. The proposed framework integrates pill detection using YOLOv26n, MobileNetV4-ConvSmall-based classification, EasyOCR-based imprint recognition, and metadata retrieval into a unified prediction pipeline. A customized benchmark dataset containing 400 pill classes, each with 50 images, for a total of 20,000 images, was used for classification. Each image has two pills, comprising 40,000 manually labeled pill instances used for detection. Comparative experiments, functional comparisons with existing pill recognition systems, and cross-device qualitative evaluations were conducted to assess framework performance, robustness, and deployment feasibility.
Results
YOLOv26n achieved a precision of 0.963, a recall of 0.982, mAP@50 of 0.989, and mAP@50-95 of 0.981, while MobileNetV4-ConvSmall achieved a class accuracy of 99.60% with higher performance in pill shape and color accuracy. Comparative optical character recognition (OCR) analysis shows that EasyOCR achieved more reliable imprint recognition performance than TesseractOCR and TrOCR. Comparative framework evaluation demonstrated that the YOLOv26n with MobileNetV4-ConvSmall combination achieved the high overall recognition performance, obtaining a Top-1 accuracy of 89.83% and a Top-5 accuracy of 99.49%. Cross-device qualitative evaluation using smartphone cameras and direct laptop uploads demonstrated robust performance under varying image noise conditions.
Discussion
The proposed framework demonstrates the potential of lightweight deep learning architectures for scalable medication identification and AI-assisted pharmacovigilance applications. By integrating detection, classification, imprint recognition, and metadata retrieval into a unified framework, the proposed system has the potential to support medication identification and improve assistive healthcare workflows. The final clinical judgment and medication verification should remain under the supervision of a healthcare professional.
Keywords: clinical decision support, computer vision, deep learning, medication safety, multi-pill detection, optical character recognition, pharmacovigilance, pill recognition
1. Introduction
Adverse drug events (ADEs) remain a significant source of preventable healthcare complications and continue to contribute crucially to medication-based morbidity worldwide (Mekonnen et al., 2018). Medication errors often arise from incorrect pill identification, confusion between visually identical pills, improper dosage management, and inadequate communication between patients and healthcare professionals (Unnissa et al., 2024). Such errors may result in adverse drug reactions (ADRs) (Montané and Santesmases, 2020), harmful drug-drug interactions (Feng et al., 2020), organ toxicity, and reduced treatment effectiveness. Vulnerable populations, including older adults, visually impaired individuals, and people with limited health knowledge, are susceptible to medication-based risks (Lavan and Gallagher, 2016). Consequently, improving medication safety and minimizing identification errors have become important priorities in modern healthcare systems.
Advancements in artificial intelligence (AI) (Wang et al., 2026a), deep learning (DL) (Halomoan et al., 2026), and computer vision (CV) (Khadem et al., 2026) have enabled automated visual recognition systems that achieve high accuracy across a range of medical imaging and healthcare applications (Albuquerque et al., 2025). The deep learning methods have been widely investigated for pill detection, classification, and imprint recognition in pharmaceutical informatics. Lightweight convolutional neural networks (CNNs) (Nguyen et al., 2025) enable effective classification of visually similar pills, and object detection architectures enable the localization of pills in complex scenarios. In addition, based on the imprint evaluation, the optical character recognition (OCR) (Suntronsuk and Ratanotayanon, 2017) approach provides textual information, improves pill imprint recognition, and minimizes confusion during pill identification.
Although these advances have been made, many existing pill recognition systems use detection, classification, imprint recognition, and metadata retrieval as independent procedures rather than as components of a integrated end-to-end framework. Several studies focus on isolated technical performance, with a limited combination of pharmacovigilance (Bernaus and Bournissen, 2026) and AI-driven clinical decision support systems (Elhaddad and Hamam, 2024). In addition, real-world deployment complexity remains insufficiently analyzed, including multi-pill recognition, visually identical pill differentiation, cross-device evaluation, lightweight inference, and reliable metadata retrieval. The lack of computational efficiency frameworks that simultaneously address these challenges remains a gap in the current study.
Medication detection of pills in real-world conditions presents various visualization and computational challenges. Pills often have highly identical appearances in shape, color, texture, and imprints, which can cause confusion during self-medication or the prescription process (Hamid et al., 2022). It is important to identify medications based on multiple visual features, such as the class, shape, and color of the pills. In addition, a reliable and lightweight model is necessary for real-world deployment under variable factors such as illumination, camera, view angle, and input device (Ghassab-Abdollahi et al., 2024). Robust cross-device evaluation is necessary for practical implementation in edge-based devices and mobile healthcare systems.
To address these challenges, this study proposes a lightweight hybrid deep learning framework for multi-pill detection and multi-attribute classification designed to support medication safety, pharmacovigilance, and AI-assisted clinical decision support systems. The proposed framework integrates YOLOv26n-based pill detection (Chakrabarty, 2026), MobileNetV4-ConvSmall-based multi-attribute classification (Qin et al., 2024), EasyOCR-based imprint recognition (Salehudin et al., 2023), and metadata retrieval (Li and Kleinert, 2023) within a unified prediction framework. The system performs simultaneous pill localization, classification, imprint analysis, and contextual metadata retrieval to improve robustness under real-world conditions. In addition, computationally efficient architectures were selected to improve scalability and support possible edge-device deployment.
A customized benchmark dataset comprising 400 pill classes, each class with 50 images, and 20,000 images was utilized for classification experiments. Each image contains two pills, yielding approximately 40,000 manually annotated pill instances for object detection training. Multiple detection and classification architectures were comparatively evaluated to identify an optimal balance between computational efficiency and predictive performance. Additional experiments were conducted, including quantitative framework comparisons, a capability-based analysis of existing pill recognition systems, and cross-device qualitative evaluation, to assess the robustness and practical applicability of the proposed framework. Cross-device experiments using smartphone cameras and direct laptop uploads further evaluated the system's stability under heterogeneous imaging conditions.
The major contributions of this study are summarized as follows:
A lightweight end-to-end multi-pill recognition framework is developed to integrate multi-pill detection (Nguyen et al., 2023), multi-attribute classification (Danas et al., 2006), imprint recognition, and metadata retrieval into a single recognition pipeline.
A manually labeled customized benchmark dataset containing approximately 40,000 pill images in 400 pill variants to support large-scale multi-pill recognition healthcare system.
Integration and comparative evaluation of multiple OCR models, including EasyOCR, TesseractOCR, and TrOCR, for reliable recognition of the pill imprint under various imaging conditions.
Additional cross-device (Hoffman et al., 2022) qualitative evaluations were conducted in multiple image acquisition conditions to assess framework reliability.
A comparative performance analysis of multiple lightweight framework configurations was performed to evaluate the influence of different detection and classification architectures on overall pill recognition performance, this supports practical edge-based deployment in healthcare environments (Hartmann et al., 2022).
2. Related work
2.1. Pill detection approaches
Several studies have examined object detection using deep learning methods for the automatic detection of pills. Current YOLO-driven models have shown robust real-time object detection capabilities with stable localization. The YOLOv8-based pill detection model achieved precision and mean average precision values of 0.99, indicating reliable real-time detection capabilities (Qomariah et al., 2026). Improvements to the YOLOv8 model, incorporating SPD-Conv, the BiFormer attention mechanism, and the circular smooth label, achieved a precision of 94.24% and a mean average precision of 94.16% for detecting small rotating objects in pharmacy settings (Pan et al., 2025). The lightweight deployment-driven pipeline integrating YOLOv8 with ShuffleNetV2 and pruning strategies achieved a mAP of 95.1% while reducing computational complexity for embedded systems (Sun et al., 2024).
However, these methods achieve strong localization performances; most detection models focus on pill counting or localization and do not integrate other important modules, such as pill classification, imprint recognition, and metadata retrieval. Additionally, many pipelines were evaluated under less experimental conditions, with insufficient reliability for multi-pill conditions.
Multimodal frameworks that integrate Fast R-CNN, YOLOv5, and graph-based methods have been proposed to demonstrate the complexity posed by visually similar pills (Nguyen et al., 2023). However, the improved recognition capabilities of these models pose considerable architectural challenges and do not incorporate an OCR-driven imprint recognition phase. A two-stage Mask R-CNN-driven framework examined multi-pill detection using automatic labeling and augmentation (Kwon et al., 2021). However, these remain computationally intensive and offer limited generalization in challenging real-world imaging scenarios.
2.2. Pill classification approaches
The classification of pills in healthcare applications increasingly relies on convolutional neural networks and methods for visual feature extraction. Attention-based models incorporating contour, texture, RGB, and textural features achieved 96.23% of accuracy and were deployable in edge devices (Nguyen et al., 2026). An automated pill classification framework, built on a MobileNet-based medication identification system, achieved a 98% accuracy by combining visual attribute classification with database-matching techniques (Jha et al., 2025).
Despite promising performance in classification, current methods primarily focus on isolated visual classification and lack integration in multi-pill localization, OCR-driven imprint recognition, or metadata retrieval. In addition, many current methods rely heavily on shape and color features, which limit their robustness when differentiating visually identical pills.
2.3. OCR-based imprint recognition
Optical Character Recognition (OCR) approaches have proven crucial to pharmaceutical informatics for recognizing imprint information on healthcare packages. In a dual-engine system using both CnOCR and EasyOCR, including preprocessing and field extraction, the character-level accuracy was 97.1% (Wu and Chang, 2025), while the F1-score was 94.0%. A new geometry-based system that utilizes textSnake extraction, geometric alignment, and ABINet-based OCR improved detection accuracy for curved and embossed imprint patterns (Jo et al., 2026).
Although these methods highlight strong textual recognition capabilities, most OCR-based systems focus primarily on text extraction rather than unified pill recognition. OCR performance may also degrade under challenging imaging conditions, such as low illumination, reflective surfaces, occlusions, and degraded imprint visibility. In addition, OCR-driven healthcare applications using EasyOCR and similarity matching highlighted strong pharmaceutical label retrieval performance, but remained largely text-oriented without integration of visual detection and classification modules (Ghazaryan et al., 2025).
2.4. AI-driven medication identification systems
Recent studies have attempted to integrate pill recognition into broader AI-based healthcare and biomedical informatics frameworks. Hybrid frameworks integrating YOLOv12n-based pill detection with ConvNeXt-Tiny-driven multi-head classification achieved a detection precision of 0.972 with strong classification performance for a medication safety application (Sachin and Karthikeyan, 2026). However, imprint recognition and cross-device qualitative evaluation were not incorporated into the framework.
Additional multimodal systems integrated YOLOv7 with latent diffusion enhancement for multi-pill recognition, achieving approximately 97% single-pill recognition accuracy while improving recognition stability for overlapping medications and visually challenging scenes (Lee et al., 2025). Nevertheless, these systems failed to integrate OCR-based imprint recognition and metadata-supported recognition workflows.
Various imaging strategies have been examined to differentiate medications with similar features. The application of infrared imaging combined with enhanced YOLOv5s networks proved to be more effective at recognizing pills in complex imaging conditions, achieving a mAP@50 of 89.30% (Wang et al., 2024). Such solutions require specialized imaging equipment, while the datasets used for testing were relatively small, thereby limiting the scalability of these models in real-world healthcare systems.
The comparison of various YOLO variants further highlighted high precision of 99.17% and an F1 score of 96.95% for pharmaceutical pill recognition systems in real-world conditions (Ramlee et al., 2024). Such methods mainly focus on object localization and recognition, without integrating OCR or metadata retrieval. The systems, which use YOLOv5s for detection, ResNet for classification, and OCR for imprint recognition, obtain 97.8% recognition in pill identification tasks (Kavitha and Madhumathy, 2025). Despite these frameworks being close to a real-world healthcare system, which faces architectural challenges, requires substantial computational resources, and imposes a practical gap on lightweight edge-driven deployment.
2.5. Gaps and limitations of existing approaches
Despite significant improvements in AI-assisted pill recognition technologies, several implementation gaps remain insufficiently addressed in the current literature. Existing studies are limited to certain tasks, like detection (Nguyen et al., 2023; Qomariah et al., 2026; Pan et al., 2025; Sun et al., 2024; Kwon et al., 2021) or classification (Nguyen et al., 2026; Jha et al., 2025) or optical character recognition (OCR) (Wu and Chang, 2025; Jo et al., 2026; Ghazaryan et al., 2025) without developing a unified multimodal recognition system. Detection-based systems frequently lack downstream verification mechanisms (Lee et al., 2025; Wang et al., 2024; Ramlee et al., 2024). In contrast, recognition techniques based on classification typically focus on visual features such as pill shape and color, which can reduce the reliability of visually similar pills.
In addition, various multimodal frameworks incorporate computationally expensive models, such as graph neural networks (Nguyen et al., 2023) and attention-based models, thereby limiting their scalability. Thus, there is a strong need to develop lightweight architectures for pill recognition systems and practical real-world deployments.
Most existing studies were evaluated on smaller datasets with minimal variability in lighting, viewing angles, and device specifications. Evaluation of cross-device reliability and real-world implementation, including smartphone-based image capture and various input data, remains underexplored in the importance of real-time medication safety systems.
Few existing studies have attempted to incorporate pill recognition systems into medical informatics settings and AI-enabled decision support platforms (Sachin and Karthikeyan, 2026; Kavitha and Madhumathy, 2025). Consequently, there remains a need for unified, lightweight frameworks that integrate multi-pill detection, multi-attribute classification, OCR-driven imprint recognition, and metadata retrieval within a scalable, end-to-end architecture suitable for real-world healthcare implementation.
3. Proposed hybrid pill recognition framework
3.1. Overall framework architecture
An end-to-end artificial intelligence-based approach in the proposed framework automates pill identification through multi-pill detection, multi-attribute classification, imprint recognition, and metadata retrieval. The unified framework combines deep learning models for object detection. classification, Optical Character Recognition (OCR), and structured metadata retrieval within a single architecture, allowing a supportive approach to medication safety and AI-driven pharmacovigilance (Nagar et al., 2025).
The overall process begins with acquiring images from a set of customized benchmark datasets. To assess framework robustness in diverse acquisition conditions, additional cross-device analyses were performed using direct image uploads and smartphone-captured images. These analyses were designed to evaluate the effects of variations in image quality, illumination, noise, and device characteristics on Framework performance. The YOLOv26n detection model processes the acquired input image to localize multiple pills in a single frame. The detector creates bounding boxes for each pill instance, enabling multi-pill recognition across different imaging conditions and visual environments.
Following localization, each detected pill region is automatically cropped and then sent to the classification module, which is based on MobileNetV4-ConvSmall. The multi-attribute classification pipeline predicts pill class, shape, and color simultaneously, using structured labels derived from the metadata repository using a CSV file. The lightweight architecture allows computationally efficient inference without compromising high recognition performance for visually identical pills. (Kim et al., 2025).
In parallel, EasyOCR is used to extract alphanumeric imprint information from detected pill regions. The extracted imprint information serves as an additional verification during pill identification and complements the visual predictions generated by the classification module. To improve recognition reliability, OCR processing is applied only to cropped pill regions generated by the detection stage, thereby reducing background interference during imprint extraction.
After detection, classification, and OCR inference, the framework subsequently retrieves structured medication information from a CSV-based metadata repository, including medication attributes and contextual information. The retrieved metadata is integrated with prediction outputs to support medication verification and improve interpretability.
Specifically, the metadata retrieval module employs a rule-based exact-match lookup strategy in which the predicted pill class generated by the classification module is used as the primary retrieval key. The corresponding metadata record is then retrieved from the CSV-based repository to provide medication attributes, including pill name, dosage strength, shape, color, and usage information. OCR-derived imprint information is subsequently used as an auxiliary verification cue to support consistency between visual predictions and retrieved metadata. The metadata repository is implemented as a lightweight local CSV-based backend, enabling efficient offline retrieval without requiring external database services or cloud connectivity.
The overall framework architecture, illustrated in Figure 1, was designed using lightweight deep learning components to support computationally efficient inference and scalable deployment. In addition, the modular design allows flexible integration within AI-based healthcare, medication safety, and pharmacovigilance support systems.
Figure 1.
The end-to-end flow diagram demonstrating detection, classification, OCR recognition, and metadata retrieval prediction workflow.
3.2. Multi-pill detection module
The pill detection module was developed to accurately localize individual pills within an image before classification and imprint recognition. Detection represents the initial phase of the proposed framework and enables multi-pill processing in heterogeneous imaging conditions, as illustrated in Figure 2.
Figure 2.
Pill detection training pipeline using YOLOv26n architecture.
A lightweight YOLOv26n-based object detection architecture was used for its balanced detection accuracy and computational efficiency. YOLOv26n simultaneously localizes objects and estimates confidence, making it reliable for real-time healthcare computer vision applications and scalable deployment scenarios. The architecture uses conventional feature extraction and multi-scale prediction attributes to enable reliable detection on different sizes and multiple conditions.
Given an input image I ∈ ℝH×W×3, the detector predicts a set of bounding boxes, as defined in Equation (1)
| (1) |
where (xi, yi) denote the center coordinates, (wi, hi) represent the width and height of the predicted bounding box (Kang and Park, 2026), and ci denotes the detection confidence score.
The detection confidence is defined in Equation (2) as follows:
| (2) |
where P(object) represents the objectness probability and IoUpred, gt denotes the intersection-over-union between the predicted and ground-truth bounding boxes.
The detection model was initialized with weights fine-tuned on a custom pill dataset, which contains 40,000 manually labeled pill instances in 20,000 images. The model was trained using a standardized preprocessing and augmentation pipeline designed to improve robustness and generalization in heterogeneous imaging conditions. To prevent data leakage, the dataset was divided into training, validation, and testing subsets before model training.
Training was performed using the AdamW optimizer with automatic mixed precision (AMP) enabled to improve optimization stability, computational efficiency, and numerical reliability during training. The overall optimization objective consisted of bounding box regression, objectness prediction, and classification losses is formulated in Equation (3):
| (3) |
During inference, prediction bounding boxes were filtered using a confidence threshold to remove low-confidence detections and retain reliable pill localizations. The final detected pill regions were subsequently cropped and forwarded to the downstream classification and imprint recognition module for detailed pill identification.
3.3. Multi-attribute classification module
The multi-attribute classification module was developed to perform a simultaneous classification of pill class, shape, and color attributes from the detected pill regions generated by the detection phase. To support computationally efficient inference under lightweight deployment constraints, MobileNetV4-ConvSmall was adapted as the backbone architecture, as illustrated in Figure 3. The model was selected due to its favorable balance between feature representation capability and computational efficiency, making it suitable for scalable healthcare-based computer vision applications.
Figure 3.
Multi-attribute classification pipeline using Lightweight MobileNetV4-ConvSmall Architecture.
Given an input pill image x ∈ ℝH×W×3, the backbone network extracts a high-level feature representation, as expressed in Equation (4):
| (4) |
where Fθ denotes the MobileNetV4-ConvSmall feature extractor and f represents the learned embedded feature. Dropout regularization was applied during training to improve generalization and reduce overfitting.
The proposed framework performs simultaneous multi-attribute classification of pill shape, class, and color using independent classification heads attached to the shared backbone representation, as presented in Equation (5):
| (5) |
where G denotes the set of classification heads used for multi-attribute classification from the shared feature representation. This shared feature learning technique enables efficient extraction of discriminative visual characteristics while minimizing additional computational overhead.
To improve representation diversity and increase the number of training samples, a front-back image splitting strategy was applied during preprocessing. Since each benchmark image contains two pills, individual pill regions were separated into independent training samples before model training. This technique effectively increased dataset diversity while preserving leakage-free dataset separation between training, validation, and testing subsets.
The dataset was partitioned into training, validation, and test subsets prior to model development to prevent information leakage. The class, shape, and color labels were generated using the CSV-based metadata repository. Training a two-stage optimization strategy that begins with an initial backbone-freezing stage, followed by fine-tuning the entire network to improve adaptation to specific visual features of the pill.
The overall optimization objective was defined as the integrated multi-task classification loss is defined in Equation (6):
| (6) |
where each component corresponds to the categorical cross-entropy loss for the associated classification task. The model was trained with the AdamW optimizer, and automatic mixed precision (AMP) was enabled to improve computational efficiency and numerical stability, both of which are needed for training. To prevent overfitting and rapid convergence, adaptive learning rate scheduling and early stopping were also used.
Input images were processed using a standardized preprocessing pipeline to ensure consistency during training and inference.
During inference, the final classification output was generated using the softmax decision rule, while a Top-5 accuracy evaluation was additionally performed to assess the robustness of the classification for the large-scale pill recognition task. The best-performing model checkpoint was selected based on validation macro F1-score performance and subsequently integrated into the final pill identification framework.
3.4. Integrated prediction pipeline
The integrated prediction framework combines multi-pill detection, multi-attribute classification, OCR-based imprint recognition, and metadata retrieval within a unified end-to-end framework for automated pill identification, as illustrated in Figure 4. The pipeline was designed to support medication safety and pharmacovigilance workflow supported by artificial intelligence in heterogeneous imaging conditions.
Figure 4.
End-to-end framework demonstrating Pill detection, classification, OCR recognition, and Metadata Retrieval Workflow.
The overall framework can be represented by Equation (7):
| (7) |
where F denotes the integrated prediction pipeline consisting of detection, classification, OCR-driven imprint recognition, and metadata retrieval module operating sequentially in the input image I to generate the final pill identification output Y.
Given an input image I ∈ ℝH×W×3, the framework initially performs pill localization using the YOLOv26n detection model, as described in Equation (8):
| (8) |
where B = b1, b2, ..., bn represents the set of pill bounding boxes θd detected and denotes the trained detection parameters.
Each detected pill region is subsequently cropped and forwarded to the multi-attribute classification module, as shown in Equation (9):
| (9) |
where Ci denotes the cropped region corresponding to the i-th detected pill instance.
The cropped pill regions are normalized and processed using the MobileNetV4-ConvSmall classification network to perform a simultaneous classification of pill class, shape, and color attributes, as described in Equation (10):
| (10) |
where ŷshape, ŷcolor, and ŷclass represent the classified shape, color, and pill category outputs, respectively.
In parallel, the alphanumeric imprint information is extracted from the cropped pill areas using OCR-driven imprint recognition with EasyOCR. Symbols that are not valid or alphanumeric are removed from the detected text before the final imprint extraction, as described in Equation (11):
| (11) |
where T represents the text of the imprinted image after the OCR module. OCR-based imprint recognition complements visual appearance by providing additional imprint information that improves differentiation between visually identical pills.
Following classification and imprint recognition, the framework retrieves medication-related information from the CSV-based metadata repository. The retrieved metadata is integrated with the prediction outputs of the detection, classification, and OCR modules to support interpretable pill identification and contextual verification.
The final product displays the detected pill instance along with metadata and confidence information, including detected pill regions, classified pill attributes, imprint-recognition results, and contextual medication information. The integrated workflow enables scalable, computationally efficient pill identification suitable for AI-based healthcare support systems and a lightweight deployment conditions.
4. Dataset preparation and pre-processing
4.1. Dataset collection, annotation, and metadata construction
Customized large-scale pill datasets were developed using the publicly available benchmark medical dataset from the U.S. Department of Health and Human Services' Pillbox (Sachin and Karthikeyan, 2026; National Library of Medicine, 2021). The Pillbox database has a total of 8,691 unique pill types, along with their pharmaceutical information. In our analysis, 400 distinct pill variations were selected to create a customized benchmark dataset of pill types commonly encountered in real-world pill identification.
Multiple Pill variants were divided into multiple pill attributes for multi-attribute classification. In this process, each pill class was expanded to 50 images using appropriate preprocessing and data augmentation approaches to increase dataset variability and improve generalization. The customized dataset contained 400 pill classes, with each class containing a total of 50 images. Thus, the total number of images used to train the AI-driven pill identification model was 20,000. Each image contains two pills; therefore, the total number of pill instances in the dataset was 40,000. The primary need for the multiple visually similar pill variations was to provide realistic challenges for AI models' pill recognition.
As shown in Table 1, the pill dataset exhibits substantial variation in the texture, shape, color, and imprint of the pill. These differences were intentionally preserved to enhance the proposed pipeline's generalization across multiple imaging conditions.
Table 1.
Summary of the customized pill dataset and annotation statistics.
| Dataset property | Value | Description |
|---|---|---|
| The original pill types | 8,691 | The pillbox benchmark dataset |
| The selected pill variants/classes | 400 | Customized benchmark subset |
| An augmented images per class | 50 | Generated images for each pill class |
| Total images | 20,000 | A complete customized dataset size |
| Total pill instances | ~40,000 | Two pills instances in each image |
| Shape categories | 8 | Distinct pill shape attributes |
| Color categories | 39 | Distinct pill color attributes |
| Imprint availability | Yes | An alphanumeric pill imprint information |
| Annotation type | Bounding Boxes | The manual object annotations |
| Metadata format | CSV | Structured metadata repository |
Manual labeling was performed using the LabelImg annotation tool (Tan et al., 2021) to generate bounding-box labels for training the detection model. The 40,000 pill instances have been manually labeled to ensure precise pill localization and accurate ground-truth supervision for the YOLOv26n detection model.
In multi-attribute classification, each pill instance was annotated using three attribute groups, such as pill class, shape, and color. The dataset contains 400 pill classes corresponding to unique pill categories, 8 shape variants, and 39 color variants derived from the structured metadata repository. These attribute labels were used to support the simultaneous prediction of pill class, shape, and color within the proposed multi-attribute classification framework. The shape variants include round, oval, square, triangle, trapezoid, rhomboid, pentagon, and teardrop. Color annotations were derived from 39 unique color variants represented within the metadata repository, including both single-color and multi-color pill appearances.
The structured metadata representing pill variations has been stored in a CSV-based repository that includes pill identifiers, medication names, class labels, shape and color attributes, dosage information, and medication usage descriptions. This repository supports both multi-attribute classification and medication information retrieval during framework inference. Each metadata record is indexed using a unique pill identifier associated with the corresponding classification label, enabling efficient exact match retrieval of medication attributes during prediction.
4.2. Leakage-free dataset splitting strategy
To avoid potential bias in model evaluation and reduce information leakage (Amanatidis et al., 2025) during development, the initial dataset was split into training, validation, and test sets prior to model training. The dataset uses a stratified process, assigning 70% of the samples to training, 20% to validation, and 10% to testing, maintaining class balance in all splits.
Since each benchmark image contains two pills, front-back splitting (Zeng et al., 2017) was applied to extract additional pill samples for training. To avoid contamination between datasets, pill samples extracted from the same parent image were assigned to the same subset of the overall dataset during the split procedure. Deterministic random seeds were applied to maintain reproducibility and experimental consistency.
4.3. Image pre-processing and data augmentation
To improve input consistency and model generalization, standardized preprocessing and data augmentation procedures were applied during model development. For object detection, all images were resized to 640 × 640 pixels and bounding-box annotations were converted to the YOLO annotation format. For multi-attribute classification, pill regions obtained through the front-back splitting strategy were resized according to the input requirements of the MobileNet architectures and normalized using ImageNet (Usuyama et al., 2020) statistics during training and inference.
Several controlled augmentation techniques (Dang et al., 2024) were applied during training, including random rotation, translation, scaling, horizontal flipping, color jittering, HSV-based color perturbation, and mosaic augmentation for object detection. HSV augmentation was used to simulate illumination variability and improve robustness under heterogeneous imaging conditions. Mixup augmentation was intentionally excluded because combining multiple pill instances could alter clinically relevant visual characteristics and reduce the interpretability of pill appearance. The selected augmentation strategies were designed to preserve medically relevant visual attributes while improving robustness under real-world imaging conditions.
In general, the preprocessing and augmentation framework was designed to preserve important pill attributes, including shape, color, and imprint information, while improving model robustness across diverse acquisition devices and imaging environments.
5. Experimental setup
5.1. Experimental environment
All experiments were conducted using a Python-based deep learning pipeline for multi-pill detection, multi-attribute classification, OCR recognition, and integrated inference. The proposed framework was implemented using PyTorch (Wang et al., 2026b) and associated deep learning libraries to enable scalable experimentation and reproducible evaluation. The object detection component was developed using the Ultralytics (Sapkota and Karkee, 2025) YOLO framework, while multi-attribute classification models were implemented using the timm library for lightweight neural network deployment. OCR-driven imprint recognition experiments were performed using EasyOCR, TesseractOCR (Paglinawan et al., 2023), and TrOCR (Zaman et al., 2024) models for comparative analysis.
The experimental pipeline was designed with lightweight deployment considerations to support potential real-world healthcare and edge-device applications that require computationally efficient inference.
5.2. Hardware and software configuration
The proposed framework was developed and evaluated using a hybrid local and cloud-based experimental condition. Local preprocessing, annotation management, metadata handling, and inference-based experiments were conducted using an HP Laptop equipped with an Intel Core i5 processor and 16 GB RAM.
Computationally intensive training and large-scale experiments were performed using the Google Colab cloud platform with NVIDIA Tesla T4 GPU acceleration (Dymora et al., 2025). GPU-driven training was used for detection, classification, and OCR-based inference to improve computational efficiency during model optimization and evaluation (Sachin and Karthikeyan, 2026). In addition, optimization was implemented to improve memory utilization and accelerate training performance while maintaining numerical stability.
5.3. Training configuration
5.3.1. Detection model training
Pill detection experiments were performed using multiple YOLO architectures, including YOLOv11n (Chen et al., 2025), YOLOv12n (Malepati et al., 2026), and YOLOv26n, to comparatively evaluate lightweight detection performance under identical experimental settings. All detection models were trained using an image resolution of 640 × 640, a batch size of 16, and 15 training epochs.
Training optimization was used with AdamW (Nsumba et al., 2026) optimizer with an initial learning rate of 0.002 and a weight decay of 5 × 10−4. Deterministic training with a fixed random seed was also applied to enhance reproducibility, while early stopping with a patience of 5 epochs was used to reduce overfitting.
5.3.2. Multi-attribute classification training
Multi-attribute classification experiments were performed using a lightweight MobileNet architecture, including MobileNetV2-Small (Kannan et al., 2025), MobileNetV3-Small (Pinto et al., 2025), and MobileNetV4-ConvSmall to support computationally efficient implementation.
Training was conducted using input images resized to 220 × 224, a batch size of 32, and 15 training epochs. Optimization used the AdamW optimizer with a learning rate of 1 × 10−4 and a weight decay of 1 × 10−4. In addition, early stopping (Chiu, 2024) with a patience value of five epochs was added to improve generalization performance.
5.4. Evaluation metrics and validation strategies
To comprehensively evaluate the proposed framework, separate evaluation metrics were defined for pill detection, multi-attribute classification, OCR-driven imprint recognition, and integrated end-to-end prediction.
The detection module was evaluated using precision, recall, mean Average Precision at the IoU threshold 0.50 (mAP@50), mean Average Precision across multiple IoU thresholds (mAP@50-95), and Intersection over Union (IoU) (Wang et al., 2025). Precision and recall were computed, as defined in Equations (12) and (13):
| (12) |
| (13) |
where TP, FP, and FN denote true positive, false positive, and false negative, respectively.
Mean Average Precision at IoU threshold 0.50, as described in Equation (14):
| (14) |
where denotes the average precision of class i calculated as an IoU threshold of 0.50, and N represents the total number of classes.
Mean Average Precision across multiple IoU thresholds, as described in Equation (15):
| (15) |
where represents the average precision for the class i evaluated in IoU thresholds ranging from 0.50 to 0.95 with increments of 0.05.
The IoU metric used for detection evaluation was defined in Equation (16):
| (16) |
where Bpred and Bgt represent the predicted and ground-truth bounding boxes.
The multi-attribute classification phase was evaluated using accuracy, macro precision, macro recall, macro F1-score, and Top-5 accuracy. The Top-5 accuracy was included due to the large number of pill classes and the presence of visually identical pills.
Detection confidence (Wenkel et al., 2021) was calculated using Equation (17):
| (17) |
where P(object) denotes the objectness probability predicted by the detection model and IoUpred, gt represents the overlap between the predicted and ground-truth bounding boxes.
The confidence score (Shen et al., 2025) for pill variants classification was calculated using the maximum softmax probability, as shown in Equation (18):
| (18) |
where zclass denotes the classification logits corresponding to the prediction of the pill variants.
The shape classification confidence was defined using Equation (19):
| (19) |
where zshape represents the logits generated for pill shape classification.
Similarly, the color classification confidence was calculated using Equation (20):
| (20) |
where zcolor represents the logits generated for pill color classification.
OCR-driven imprint recognition performance was evaluated using imprint recognition confidence and valid imprint detection robustness under heterogeneous imaging conditions. OCR confidence (Vignesh et al., 2025) was calculated using Equation (21):
| (21) |
where pi denotes the recognition probability of the i-th detected character and N represents the total number of recognized characters.
To assess framework robustness under different image acquisition conditions, cross-device qualitative evaluation experiments were additionally conducted using multiple image acquisition platforms. The evaluation was initially performed using direct benchmark dataset image uploads under controlled experimental conditions. Additional experiments were conducted using smartphone-driven image acquisition, where benchmark pill images displayed on a laptop screen were captured using Android and iPhone devices equipped with high-resolution camera systems.
Cross-device qualitative evaluation experiments were conducted to examine framework performance under heterogeneous acquisition conditions, including variations in camera characteristics, image quality, illumination conditions, and acquisition perspectives.
5.5. Framework configuration evaluation
To evaluate the integrated pipeline of lightweight detection and classification architectures on overall pill recognition performance, a comparative framework evaluation was performed. The two high performing detection models and the two high performing classification models identified during the preliminary experiments were selected to construct four framework configurations. Each configuration integrated a detection model with a classification model while maintaining identical OCR, metadata retrieval, preprocessing, and evaluation conditions.
The evaluation was performed using the same test dataset generated during dataset partitioning. The complete dataset consisted of 20,000 pill images representing 400 pill categories and was divided into training, validation, and test subsets using a 70%,20% and 10% split strategy. Consequently, all framework configurations were evaluated on the same test set comprising 1,980 images to ensure a fair and consistent comparison.
For each test image, pill localization was first performed using the selected detection model, followed by pill classification using the corresponding classification backbone. Performance was evaluated using Top-1 Accuracy, Top-5 Accuracy, Precision, Recall, and F1-score. By maintaining all remaining framework components unchanged, this evaluation protocol enabled a systematic comparison of different detector and classifier combinations and their impact on overall pill recognition performance.
6. Results and analysis
6.1. Detection performance analysis
The performance of the proposed multi-pill detection framework was evaluated using multiple lightweight YOLO architectures, including YOLOv11n, YOLOv12n, and YOLOv26n. Among the evaluated models, YOLOv26n was found to be the best in multi-pill detection settings and showed strong localization accuracy and reliability. The model achieved a precision of 0.963, a recall of 0.982, an mAP@50 of 0.989, and an mAP@50-95 of 0.981. The quantitative detection results are illustrated in Table 2.
Table 2.
Performance comparison of lightweight YOLO architectures for pill detection.
| Model | Layers | Parameters (M) | GFLOPs | Precision | Recall | mAP@50 | mAP@50–95 |
|---|---|---|---|---|---|---|---|
| YOLOv11n | 182 | 2.74 | 7.3 | 0.912 | 0.968 | 0.981 | 0.969 |
| YOLOv12n | 272 | 2.72 | 7.3 | 0.934 | 0.979 | 0.986 | 0.975 |
| YOLOv26n | 260 | 2.81 | 7.4 | 0.963 | 0.982 | 0.989 | 0.981 |
Bold values indicate the best-performing results for each evaluation metric among the compared methods.
The results have shown the efficiency of the proposed detection pipeline to detect multiple pills in different visual scenarios. The high recall further indicates that the model has shown a strong performance at detecting multiple instances of pills in a single image, which is required for a real-time pill identification system.
The precision-confidence curve, recall-confidence curve, F1-confidence curve, and precision-recall curve (Jepisah et al., 2025) corresponding to the selected YOLOv26n detection model are shown in Figure 5. The results highlight stable convergence behavior and strong generalization performance throughout training.
Figure 5.
The confidence curves of YOLOv26n detection model.
Training and validation convergence curves, including box loss, classification loss, distribution focal loss (DFL) (Li et al., 2022), precision, recall, mAP@50, and mAP@50-95 in training epochs, are presented in Figure 6.
Figure 6.
Training and validation convergence curves of YOLOv26n detection model.
6.2. Multi-attribute classification performance
The proposed multi-attribute classification framework was evaluated using lightweight MobileNet architectures, including MobileNetV2-Small, MobileNetV3-Small, and MobileNetV4-ConvSmall. The comparative classification performance is summarized in Table 3.
Table 3.
Performance comparison of lightweight architectures for multi-attribute pill classification.
| Model | Task | Accuracy | Precision | Recall | F1-score | Loss |
|---|---|---|---|---|---|---|
| MobileNetV2-Small | Shape | 0.9977 | 0.9996 | 0.9996 | 0.9996 | 0.0463 |
| Color | 1.0000 | 1.0000 | 1.0000 | 1.0000 | 0.0463 | |
| Class | 0.9864 | 0.9898 | 0.9863 | 0.9854 | 0.0463 | |
| MobileNetV3-Small | Shape | 1.0000 | 1.0000 | 1.0000 | 1.0000 | 0.0194 |
| Color | 1.0000 | 1.0000 | 1.0000 | 1.0000 | 0.0194 | |
| Class | 0.9922 | 0.9938 | 0.9923 | 0.9918 | 0.0194 | |
| MobileNetV4-ConvSmall | Shape | 1.0000 | 1.0000 | 1.0000 | 1.0000 | 0.0114 |
| Color | 1.0000 | 1.0000 | 1.0000 | 1.0000 | 0.0114 | |
| Class | 0.9960 | 0.9964 | 0.9956 | 0.9954 | 0.0114 |
Bold values indicate the best-performing results for each evaluation metric among the compared methods.
Among the evaluated models, MobileNetV4-ConvSmall achieved the best overall performance in all classification tasks. The model achieved a higher classification accuracy for pill shape and color, and for pill class prediction, with 99.60% accuracy, 99.64% precision, 99.56% a recall, and 99.54% of F1-score in the 400-class pill classification task.
These results highlight the effectiveness of the proposed multi-head learning framework for simultaneously predicting multiple pill attributes while maintaining computational efficiency suitable for lightweight deployment environments. The representation of the shared feature further improved discriminative capability in visually similar pill classes.
6.3. Confusion matrix analysis
The confusion matrix (Salmon et al., 2015) was evaluated to assess class-level prediction performance and identify potential misclassification patterns in both the detection and classification modules.
The confusion matrix for the YOLOv26n object detection model is shown in Figure 7, whereas the confusion matrix for the multi-attribute classifier MobileNetV4-ConvSmall model is shown in Figure 8.
Figure 7.
The confusion matrix of YOLOv26n detection model.
Figure 8.

The confusion metrix of MobileNetV4-ConvSmall classification model.
The confusion matrix results show minimal misclassification across multiple pill categories. This shows strong discrimination based on learned features, even among visually identical pills. Misclassification occurred between pills that contain highly similar visual features, such as comparable shape and color, reflecting the complexity of large-scale pill recognition, which involves thousands of pill classes.
In general, the results show that the utilization of multi-attribute learning strategies improves classification performance when combined as shape, color, and pill classes.
6.4. OCR imprint recognition performance
The OCR-driven imprint recognition module was evaluated using multiple OCR pipelines, including EasyOCR, TesseractOCR, and TrOCR. Comparative experiments were conducted to evaluate recognition reliability under varying imprint visibility and heterogeneous conditions.
Among these, the EasyOCR qualitative OCR comparison provided more reliable recognition for short alphanumeric pill imprints. For example, the imprint “Z11” was correctly recognized by EasyOCR, whereas TesseractOCR incorrectly predicted the imprint as “211,” and TrOCR failed to produce a valid recognition output under the same imaging conditions. These observations demonstrate the effectiveness of EasyOCR for practical pill imprint recognition involving small, visually challenging alphanumeric markings. The comparative OCR prediction examples are illustrated in Figures 9–11.
Figure 9.

EasyOCR qualitative evaluation.
Figure 11.

TrOCR qualitative evaluation.
Figure 10.

TesseractOCR qualitative evaluation.
In addition, OCR confidence scores were analyzed to assess recognition consistency in varying image conditions. The results further support the suitability of EasyOCR for practical pill imprint recognition.
6.5. End-to-end multi-pill prediction performance
The overall performance of the framework was analyzed using an end-to-end approach that included detecting multiple pills, classifying multiple attributes, OCR for imprint recognition, and retrieving metadata.
The end-to-end prediction framework demonstrated strong recognition of visually identical and visually similar pills by combining pill localization, shape, color, class predictions, and imprint information, as illustrated in Figures 12a, b.
Figure 12.

Reliable recognition of visually similar pills through the proposed framework. (a) Visually Similar Pill A. (b) Visually Similar Pill B.
The combination of multiple prediction modules provides complementary information for pill identification in challenging multi-pill scenarios. This capability is important in medication safety settings, where visually similar pills can cause medication errors.
6.6. Cross-device qualitative evaluation
To evaluate framework reliability across heterogeneous acquisition environments, cross-device experiments were conducted using benchmark pill images acquired through smartphone-based imaging approaches (Agu et al., 2013) (Hunt et al., 2021). A representative pill image from the benchmark dataset was captured through Android smartphones, iPhones, and direct laptop uploads to qualitatively assess framework behavior in different image acquisition conditions.
Images captured using Android devices demonstrated stable framework performance under varying illumination conditions and imaging perspectives, achieving an inference time of 54.8 ms and an FPS of 14.95. Similarly, iPhone-acquired images produced reliable detection, multi-attribute classification, and OCR-based imprint recognition results, with an inference time of 113.2 ms and an FPS of 8.58.
Under controlled conditions, direct laptop image uploads consistently achieved high detection, classification, and OCR confidence, with an inference time of 109.0 ms and an FPS of 8.97.
Although the predicted pill identities remained consistent across the evaluated acquisition platforms, variations in confidence scores were observed. These variations are likely associated with differences in camera characteristics, image quality, illumination conditions, and acquisition perspectives across the evaluated devices, which can influence the confidence levels produced by the detection, classification, and OCR modules.
In general, the experiments indicate that the proposed framework maintains stable performance across different acquisition platforms despite variations in imaging conditions.
Representative prediction outputs obtained from Android devices, iPhones, and direct laptop uploads are presented in Figures 13–15.
Figure 13.

Android smartphone-based evaluation.
Figure 15.

Direct laptop upload-based evaluation.
Figure 14.

iPhone-based evaluation.
6.7. Functional comparison with existing pill recognition systems
The proposed framework integrates multi-pill detection, multi-attribute classification, OCR-based imprint recognition, and metadata retrieval within a single lightweight architecture. To position the proposed framework within the current literature, a functional comparison was conducted with existing pill recognition systems. The comparison was performed based on four major framework capabilities, such as pill detection, pill classification, OCR-based imprint recognition, and multi-pill recognition.
As summarized in Table 4, many existing studies primarily focus on individual tasks, such as pill detection, classification, or OCR-based imprint analysis, while only a limited number of approaches attempt to integrate multiple functionalities within a single framework. In contrast, the proposed framework combines these complementary capabilities into an end-to-end pill recognition pipeline, enabling comprehensive pill identification through simultaneous localization, multi-attribute classification, and imprint recognition. This integrated design enhances practical applicability in real-world healthcare environments and addresses several limitations associated with task-specific pill recognition systems.
Table 4.
Functional Comparison with existing pill recognition systems.
| Study | Source | Detection | Classification | OCR | Multi-pill |
|---|---|---|---|---|---|
| Multi-pill recognition | (Lee et al., 2025) | ✓ | ✓ | ✓ | |
| Real-time pill image recognition | (Nguyen et al., 2026) | ✓ | |||
| Pill recognition | (Ramlee et al., 2024) | ✓ | ✓ | ||
| Hybrid deep learning framework | (Sachin and Karthikeyan, 2026) | ✓ | ✓ | ||
| Stacked pillbox detection | (Pan et al., 2025) | ✓ | |||
| Pill detection for medicine inspection | (Kwon et al., 2021) | ✓ | |||
| Proposed framework | ✓ | ✓ | ✓ | ✓ |
Bold values indicate the best-performing results for each evaluation metric among the compared methods.
6.8. Comparative performance analysis of framework configurations
A comparative evaluation was performed to investigate the influence of different lightweight detector and classifier combinations on overall pill recognition performance. The quantitative results achieved from the four framework configurations are summarized in Table 5.
Table 5.
Performance comparison of framework configurations.
| Framework configuration | Top-1 | Top-5 | Precision | Recall | F1-score |
|---|---|---|---|---|---|
| YOLOv12n + MobileNetV3-Small | 87.96 | 98.74 | 90.20 | 87.80 | 86.84 |
| YOLOv12n + MobileNetV4-ConvSmall | 89.12 | 99.39 | 90.82 | 89.09 | 87.63 |
| YOLOv26n + MobileNetV3-Small | 88.15 | 98.63 | 90.17 | 88.15 | 87.09 |
| YOLOv26n + MobileNetV4-ConvSmall | 89.83 | 99.49 | 91.06 | 89.78 | 88.38 |
Bold values indicate the best-performing results for each evaluation metric among the compared methods.
Among the evaluated Frameworks, YOLOv26n with MobileNetV4-ConvSmall achieved the highest overall performance, achieving a Top-1 accuracy of 89.83%, Top-5 accuracy of 99.49%, precision of 91.06%, recall of 89.78%, and an F1-score of 88.38%. The results illustrate that both the detection and classification architectures contributed to overall recognition performance. MobileNetV4-ConvSmall consistently achieved better performance than MobileNetV3-Small when paired with both YOLO variants, while YOLOv26n achieved better overall performance than YOLOv12n across all evaluated metrics.
A representative qualitative comparison of the four framework configurations is presented in Figure 16. Although all configurations successfully recognized the target pill category, differences in prediction confidence and prediction ranking were observed. Overall, the YOLOv26n with MobileNetV4-ConvSmall configuration demonstrated the most reliable and consistent performance and was therefore selected as the final framework for the proposed pill recognition system.
Figure 16.

Qualitative framework evaluation. Representative prediction outputs produced by the proposed framework configuration are presented to show the framework's detection performance, multi-attribute classification capability, OCR-driven imprint recognition, and metadata retrieval functionality in identical input conditions.
7. Discussion
7.1. Overall framework effectiveness
The experimental results highlight that the proposed lightweight framework obtained robust performance in multi-pill detection, multi-attribute classification, and OCR-based imprint recognition tasks. The combination of complementary modules within a unified pipeline improved robustness for practical multi-pill identification settings. In addition, a large-scale, manually labeled dataset contains 40,000 pills in 400 pill categories, enabling robust learning across various visual features.
The YOLOv26n detection model demonstrated effective localization capability for multiple pills in various scenes, while the multi-attribute classification pipeline using MobileNetV4-ConvSmall improved discriminative performance through combined classification of pill class, shape, and color attributes. OCR-driven imprint recognition provided additional imprint information that assisted differentiation between visually similar pills using alphanumeric imprint characteristics.
The framework-level comparative evaluation further demonstrated that the combination of YOLOv26n and MobileNetV4-ConvSmall achieved the highest overall recognition performance among the evaluated lightweight framework configurations. The results indicate that improvements in both detection and classification architectures contributed positively to overall pill recognition performance. MobileNetV4-ConvSmall consistently achieved better classification performance than MobileNetV3-Small, while YOLOv26n provided more reliable pill localization performance than YOLOv12n. These findings support the selection of YOLOv26n and MobileNetV4-ConvSmall as the final components of the proposed pill recognition framework.
7.2. Clinical and practical relevance
Reliable pill identification plays a crucial role in reducing medication errors, thereby supporting pharmacovigilance workflows and reducing Adverse Drug Events (ADEs) in healthcare applications. The incorrect identification of medication is a major contributor to the risk of patient safety, particularly in polypharmacy environments, where the pills are visually similar.
The proposed end-to-end pipeline contributes to medication safety by combining automated pill detection, classification, imprint recognition, and metadata retrieval as a lightweight framework.
In addition, metadata retrieval improves interpretability by providing medication names, dosages, and usage information, thereby supporting a safer medication verification process for healthcare professionals, caregivers, and patients.
7.3. Strengths of the proposed framework
Several strengths were observed throughout the experimental evaluation of the proposed framework. First, the framework combines multi-pill detection, multi-attribute classification, OCR-based imprint recognition, and metadata retrieval into a unified prediction framework rather than as isolated single-task predictions.
Second, by combining the attributes of pill shape, color, and class, the multi-attribute learning strategy improved the robustness of recognition for visually identical pills.
Third, cross-device qualitative evaluation demonstrated the ability of the framework to operate across heterogeneous image acquisition scenarios, including smartphone-captured images and benchmark images.
Finally, the lightweight characteristic of the proposed framework is primarily attributed to the need of computationally efficient model architectures and a low-overhead metadata retrieval mechanism, allowing efficient deployment without relying on computationally intensive backbone networks or external database services.
7.4. Limitations
Despite promising experimental performance, several limitations remain within the proposed framework. The system depends primarily on visual pill characteristics and OCR-derived imprint information, which may be affected by poor illumination, low-resolution image acquisition, motion blur, occlusion, or partially degraded pill characteristics.
Although OCR-driven imprint recognition improved discrimination between visually identical pills, recognition confidence can still degrade when imprint text is unclear, faded, or partially visible. Similarly, pills with highly comparable visual appearance can occasionally produce ambiguous predictions under challenging imaging conditions.
In addition, the OCR module was evaluated primarily through comparative imprint recognition analysis and OCR confidence assessment. Character-level evaluation metrics such as Character Error Rate (CER) and Word Error Rate (WER) were not investigated because the customized benchmark dataset did not contain manually annotated character-level ground-truth imprint transcriptions.
In addition, the framework was evaluated using a customized subset derived from a benchmark pharmaceutical dataset under controlled experimental conditions. Therefore, further large-scale validation using diverse real-world pill datasets and heterogeneous acquisition settings is necessary to fully assess practical generalizability and reliability.
The current cross-device evaluation was limited to a representative benchmark image and therefore does not provide a comprehensive quantitative assessment of device-specific generalization.
Furthermore, the proposed framework was developed and evaluated using a supervised learning setting involving predefined pill categories. Consequently, the current study does not investigate recognition of previously unseen pill classes, open-set pill identification, or out-of-distribution generalization. The ability to recognize novel medications that were not included during training remains an important challenge for future research.
7.5. Future directions
Future work can focus on extending the proposed framework to edge healthcare systems based on the Internet of Things (IoT) (Kashani et al., 2021) for the identification and validation of real-world pills. Integration with lightweight embedded devices can further support practical implementation in mobile and resource-constrained healthcare conditions.
Additional validation experiments under multiple lighting conditions, heterogeneous backgrounds, and various real-world acquisition settings can further improve reliability and generalizability. Future research can investigate large real-time pill datasets that contain categories in pill appearance and imaging conditions.
Future studies may investigate large-scale cross-device evaluations using diverse unseen pill images, multiple smartphone models, acquisition environments, and user conditions to quantitatively assess framework robustness and generalization.
Future research can also incorporate dedicated imprint recognition datasets containing character-level annotations to facilitate quantitative OCR evaluation using metrics such as Character Error Rate (CER) (Pujari et al., 2026) and Word Error Rate (WER) (Zaman et al., 2024). Such evaluation protocols can provide a more comprehensive assessment of OCR performance in challenging imprint visibility conditions.
In addition, future studies can investigate open-set (Li et al., 2025) and few-shot (Chee et al., 2024) pill recognition approaches capable of identifying previously unseen pill categories and improving framework generalization under real-world deployment settings.
Furthermore, Explainable Artificial Intelligence (XAI) (Saraswat et al., 2022) techniques can be incorporated to improve model interpretability and provide transparent decision-support information to healthcare professionals and end users. Clinical validation studies and integration with healthcare decision-support systems can support the practical adoption of AI-assisted pill recognition technologies for pharmacovigilance, medication safety, and reduction of Adverse Drug Events (ADEs).
8. Conclusion
This study presented a lightweight end-to-end multi-pill recognition framework integrating YOLOv26n-based pill detection, MobileNetV4-ConvSmall multi-attribute classification, OCR-based imprint recognition, and metadata retrieval within a unified prediction framework. The manually annotated dataset supported large-scale multi-pill detection and recognition experiments. The proposed framework was designed to support practical pill identification workflows while maintaining computational efficiency suitable for lightweight and edge-based deployment conditions. The experimental results highlighted robust performance in pill detection, classification, and imprint recognition tasks under heterogeneous imaging conditions. The proposed multi-attribute learning strategy improved discriminative capacity through combined classification of pill class, shape, and color attributes. In addition, OCR-based imprint recognition provided additional imprint information to assist the identification of visually similar pills. Metadata retrieval further improved interpretability by providing structured pharmaceutical information, including medication name, dosage, and usage description. Comparative framework evaluation demonstrated that the combination of YOLOv26n and MobileNetV4-ConvSmall achieved the highest overall recognition performance among the evaluated lightweight framework configurations, supporting its selection as the final framework architecture. Cross-device qualitative evaluation using smartphone-driven image acquisition and benchmark dataset uploads demonstrated the ability of the framework to operate across heterogeneous image acquisition conditions. In general, the proposed framework demonstrated strong potential to support pharmacovigilance workflows, reduce medication errors, and minimize the risk of Adverse Drug Events (ADEs) in real-world healthcare settings. The lightweight architecture and integrated prediction design further support the future deployment of AI-assisted pill identification systems in real-world healthcare settings.
Acknowledgments
The authors thank the School of Computer Science Engineering and Information Systems for supporting this research and the Vellore Institute of Technology, Vellore, Tamil Nadu, India, for providing the required facilities for this research.
Funding Statement
The author(s) declared that financial support was not received for this work and/or its publication.
Footnotes
Edited by: Nasser Kashou, Kash Global Tech, United States
Reviewed by: J. Jesy Janet Kumari, The Oxford College of Engineering, India
S. Siddesha, JSS Science and Technology University, India
Data availability statement
Publicly available datasets were analyzed in this study. This data can be found here: https://datadiscovery.nlm.nih.gov/Chemicals-and-Drugs/Pillbox-Archived-Data/crzr-uvwg/about_data.
Author contributions
AS: Investigation, Software, Visualization, Writing – review & editing, Writing – original draft, Data curation, Methodology, Validation, Conceptualization. JK: Resources, Project administration, Writing – review & editing, Formal analysis, Supervision, Conceptualization.
Conflict of interest
The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declared that Generative AI was not used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher's note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
- Agu E., Pedersen P., Strong D., Tulu B., He Q., Wang L., et al. (2013). “The smartphone as a medical device: assessing enablers, benefits and challenges,” in 2013 IEEE international workshop of internet-of-things networking and control (IoT-NC) (Piscataway, NJ: IEEE; ), 48–52. doi: 10.1109/IoT-NC.2013.6694053 [DOI] [Google Scholar]
- Albuquerque C., Henriques R., Castelli M. (2025). Deep learning-based object detection algorithms in medical imaging: systematic review. Heliyon 11:e28281. doi: 10.1016/j.heliyon.2024.e41137 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Amanatidis A., Egan K., Nio K., Toma M. (2025). Data-leakage-aware preoperative prediction of postoperative complications from structured data and preoperative clinical notes. Surgeries 6:87. doi: 10.3390/surgeries6040087 [DOI] [Google Scholar]
- Bernaus C. G., Bournissen M. L. (2026). Global pharmacovigilance reporting: comparative analysis of adverse event obligations across five major regulatory authorities. Front. Drug Saf. Regul. 6:1821686. doi: 10.3389/fdsfr.2026.1821686 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chakrabarty S. (2026). Yolo26: An analysis of nms-free end-to-end framework for real-time object detection. arXiv [Preprint]. doi: 10.48550/arXiv.2601.12882 [DOI] [Google Scholar]
- Chee H.-Z., Lim J.-Y., Lim K.-M., Lee C.-P., Tan Y.-X., et al. (2024). “Transfer learning for few-shot pill image recognition,” in 2024 IEEE 12th conference on systems, process and control (ICSPC) (Piscataway, NJ: IEEE; ), 77–82. doi: 10.1109/ICSPC63060.2024.10862882 [DOI] [Google Scholar]
- Chen Y., Chen Y., Peng J., Liu S. (2025). “Research on pill detection based on improved yolo11,” in 2025 3rd international conference on mobile internet, cloud computing and information security (MICCIS) (Piscataway, NJ: IEEE; ), 244–248. doi: 10.1109/MICCIS66057.2025.00047 [DOI] [Google Scholar]
- Chiu Y.-J. (2024). Automated medication verification system (amvs): system based on edge detection and cnn classification drug on embedded systems. Heliyon 10:e30486. doi: 10.1016/j.heliyon.2024.e30486 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Danas K., Roudsari A., Ketikidis P. H. (2006). The applicability of a multi-attribute classification framework in the healthcare industry. J. Manuf. Technol. Manag. 17, 772–785. doi: 10.1108/17410380610678792 [DOI] [Google Scholar]
- Dang B., Zhao W., Li Y., Ma D., Yu Q., Zhu E. Y. (2024). “Real-time pill identification for the visually impaired using deep learning,” in 2024 6th international conference on communications, information system and computer engineering (CISCE) (Piscataway, NJ: IEEE; ), 552–555. doi: 10.1109/CISCE62493.2024.10653353 [DOI] [Google Scholar]
- Dymora P., Mazurek M., Elgass P. (2025). “Comparison of neural network training time using cpu and gpu with nvidia cuda technology,” in Conference on automation (Cham: Springer; ), 296–306. doi: 10.1007/978-3-032-08359-3_28 [DOI] [Google Scholar]
- Elhaddad M., Hamam S. (2024). Ai-driven clinical decision support systems: an ongoing pursuit of potential. Cureus 16:e57728. doi: 10.7759/cureus.57728 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Feng Y.-H., Zhang S.-W., Shi J.-Y. (2020). Dpddi: a deep predictor for drug-drug interactions. BMC Bioinformatics 21:419. doi: 10.1186/s12859-020-03724-x [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ghassab-Abdollahi N., Ghorbani Z., Kheirollahi N., Nadrian H., Hashemiparast M. (2024). Exploring the reasons for self-administration medication errors among illiterate and low-literate community-dwelling older adults with polypharmacy: a qualitative study. BMC Geriatr. 24:1010. doi: 10.1186/s12877-024-05595-w [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ghazaryan A., Hovhanisyan J., Kirakosyan A., Aramyan A., Moghadam S. M. (2025). An intelligent web application for drug information retrieval using optical character recognition and deep learning. Nor. J. Dev. Int. Sci. 152:86. doi: 10.5281/zenodo.15024999 [DOI] [Google Scholar]
- Halomoan H.akiki, M., Putra B. A. W., Hamid M. A., Utami R., Saputro I. N., Azizah W. A., et al. (2026). Deep learning methods towards a pedagogical framework and implementation strategy: a study of information technology education curriculum development in indonesia. J. Teach. Learn. 20, 185–205. doi: 10.22329/jtl.v20i1.9970 [DOI] [Google Scholar]
- Hamid A. A. A., Rahim R., Teo S. P. (2022). Pharmacovigilance and its importance for primary health care professionals. Korean J. Fam. Med. 43:290. doi: 10.4082/kjfm.21.0193 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hartmann M., Hashmi U. S., Imran A. (2022). Edge computing in smart health care systems: review, challenges, and research directions. Trans. Emerg. Telecommun. Technol. 33:e3710. doi: 10.1002/ett.3710 [DOI] [Google Scholar]
- Hoffman J. S., Viswanath V. K., Tian C., Ding X., Thompson M. J., Larson E. C., et al. (2022). Smartphone camera oximetry in an induced hypoxemia study. NPJ Dig. Med. 5:146. doi: 10.1038/s41746-022-00665-y [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hunt B., Ruiz A. J., Pogue B. W. (2021). Smartphone-based imaging systems for medical applications: a critical review. J. Biomed. Opt. 26, 40902–40902. doi: 10.1117/1.JBO.26.4.040902 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jepisah D., Octaria H., Muhamadiah M., Irawan Y. (2025). Yolov12 model optimization for monitoring occupational health and safety in hospital archive rooms. J. Appl. Data Sci.6, 2666–2681. doi: 10.47738/jads.v6i4.936 [DOI] [Google Scholar]
- Jha P. B., Mishra A. K., Ansari R., Khadka S., Dahal B., Aryal S. (2025). Easypill: Ai-powered pill identification for enhancing medication safety and reducing errors by using mobilenet cnns. J. Prod. Discourse 3, 23–38. doi: 10.3126/prod.v3i1.78454 [DOI] [Google Scholar]
- Jo J., Yoon S., Cho J. (2026). Go-pill: a geometry-aware ocr pipeline for reliable recognition of debossed and curved pill imprints. Mathematics 14:356. doi: 10.3390/math14020356 [DOI] [Google Scholar]
- Kang H., Park G. (2026). Development of yolo-based object detection model with bounding box separation techniques. Int. J. Automot. Technol. 27, 843–856. doi: 10.1007/s12239-025-00336-3 [DOI] [Google Scholar]
- Kannan V., Shuff J., Acharya A., Venkatesh R., Shekhawat N. S., Parikh K. S. (2025). Development and clinical validation of lightweight, multimodal machine learning models for smartphone-based cataract detection and classification. medRxiv [Preprint]. doi: 10.1101/2025.11.14.25340278 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kashani M. H., Madanipour M., Nikravan M., Asghari P., Mahdipour E. (2021). A systematic review of iot in healthcare: applications, techniques, and trends. J. Netw. Comput. Applic. 192:103164. doi: 10.1016/j.jnca.2021.103164 [DOI] [Google Scholar]
- Kavitha N., Madhumathy P. (2025). Real-time pill identification and classification using deep learning framework for medicine inspection systems. Discover Electr. 2:80. doi: 10.1007/s44291-025-00122-6 [DOI] [Google Scholar]
- Khadem N., Nashir A., Rahmatyar S. (2026). The role of deep learning in advancing computer vision applications: a comprehensive systematic review. J. Adv. Comput. Knowl. Algorithms 3, 1–8. doi: 10.29103/jacka.v3i1.24732 [DOI] [Google Scholar]
- Kim S., Chae M., Lee J., Lee H. (2025). Advanced pharmaceutical recognition system based on deep learning for mobile medication identification. Appl. Sci. 15:5644. doi: 10.3390/app15105644 [DOI] [Google Scholar]
- Kwon H.-J., Kim H.-G., Lee S.-H. (2021). Pill detection model for medicine inspection based on deep learning. Chemosensors 10:4. doi: 10.3390/chemosensors10010004 [DOI] [Google Scholar]
- Lavan A. H., Gallagher P. (2016). Predicting risk of adverse drug reactions in older adults. Ther. Adv. Drug Saf. 7, 11–22. doi: 10.1177/2042098615615472 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Lee S.-H., Son D.-M., Lee S.-H. (2025). Enhanced multi-pill detection and recognition using vfi augmentation and auto-labeling for limited single-pill data. IEEE Access 13, 60859–60878. doi: 10.1109/ACCESS.2025.3557569 [DOI] [Google Scholar]
- Li W., Kleinert T. (2023). A concept for providing and utilizing metadata in data analytics applications. At-Automatisierungstechnik 71, 44–55. doi: 10.1515/auto-2022-0107 [DOI] [Google Scholar]
- Li X., Lv C., Wang W., Li G., Yang L., Yang J. (2022). Generalized focal loss: Towards efficient representation learning for dense object detection. IEEE Trans. Pattern Anal. Mach. Intell. 45, 3139–3153. doi: 10.1109/TPAMI.2022.3180392 [DOI] [PubMed] [Google Scholar]
- Li X., Quan W., Huang J., Hong P. (2025). Recognizing unknowns: a survey on visual open-set recognition. Appl. Intell. 55:1055. doi: 10.1007/s10489-025-06956-7 [DOI] [Google Scholar]
- Malepati B., Nandamury S., Manjunath U., Rajan D., Prabhune A. G. (2026). “Comparative evaluation of yolov12 and sahi for medication identification in hospital pharmacies,” in 2026 international conference on intelligent and innovative technologies in computing, electrical and electronics (IITCEE) (Piscataway, NJ: IEEE; ), 1–5. doi: 10.1109/IITCEE67948.2026.11394638 [DOI] [Google Scholar]
- Mekonnen A. B., Alhawassi T. M., McLachlan A. J., Brien J.-A. E. (2018). Adverse drug events and medication errors in african hospitals: a systematic review. Drugs Real World Outcomes 5, 1–24. doi: 10.1007/s40801-017-0125-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Montané E., Santesmases J. (2020). Reacciones adversas a medicamentos. Med. Clin. 154, 178–184. doi: 10.1016/j.medcli.2019.08.007 [DOI] [PubMed] [Google Scholar]
- Nagar A., Gobburu J., Chakravarty A. (2025). Artificial intelligence in pharmacovigilance: advancing drug safety monitoring and regulatory integration. Ther. Adv. Drug Saf. 16:20420986251361435. doi: 10.1177/20420986251361435 [DOI] [PMC free article] [PubMed] [Google Scholar]
- National Library of Medicine (2021). Pillbox Archived Drug and Pill Image Dataset Retired on January 28, 2021. Available online at: https://datadiscovery.nlm.nih.gov/Chemicals-and-Drugs/Pillbox-Archived-Data/crzr-uvwg/about_data (Accessed December 14, 2025).
- Nguyen A. D., Pham H. H., Trung H. T., Nguyen Q. V. H., Truong T. N., Nguyen P. L. (2023). High accurate and explainable multi-pill detection framework with graph neural network-assisted multimodal data fusion. PLoS ONE 18:e0291865. doi: 10.1371/journal.pone.0291865 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Nguyen L., Le V.-T., Vo T., Hoang V. (2025). A comprehensive review of pill image recognition. Comput. Mater. Contin. 82:3693. doi: 10.32604/cmc.2025.060793 [DOI] [Google Scholar]
- Nguyen L. T. M., Vo T., Hoang V. T. (2026). Real-time pill image recognition on edge devices with adaptive lightweight attention. J. Real-Time Image Process 23:53. doi: 10.1007/s11554-025-01831-7 [DOI] [Google Scholar]
- Nsumba S., Ninsiima F. D., Nampawu M. J., Nabende P., Nakatumba-Nabende J. (2026). Modeling anesthetic-drug label detection for low-resource operating rooms. BMC Med. Inform. Decis. Mak. 26:28. doi: 10.1186/s12911-025-03316-w [DOI] [PMC free article] [PubMed] [Google Scholar]
- Paglinawan C. C., Caliolio M. H. M., Frias J. B. (2023). “Medicine classification using yolov4 and tesseract ocr,” in 2023 15th international conference on computer and automation engineering (ICCAE) (Piscataway, NJ: IEEE; ), 260–263. doi: 10.1109/ICCAE56788.2023.10111387 [DOI] [Google Scholar]
- Pan J., Zhou R., Feng J., Wu M., Wu X., Dong H. (2025). Unordered stacked pillbox detection algorithm based on improved yolov8. Big Data Cogn. Comput. 9:300. doi: 10.3390/bdcc9120300 [DOI] [Google Scholar]
- Pinto G., Martins R., Pereira H., Ribeiro R., Conceição L., Marreiros G. (2025). “Enhancing medication adherence with computer vision: object detection models for pill detection,” in World conference on information systems and technologies (Cham: Springer; ), 425–437. doi: 10.1007/978-3-031-97119-8_33 [DOI] [Google Scholar]
- Pujari J. J., Bikku T., Singamaneni K. K., Priya A. C., Ranjani N. A. D. I., Thota S. (2026). A hybrid framework for pill identification using convolutional neural networks and optical character recognition. Discover Artif. Intell. doi: 10.1007/s44163-026-01405-x [DOI] [Google Scholar]
- Qin D., Leichner C., Delakis M., Fornoni M., Luo S., Yang F., et al. (2024). “Mobilenetv4: universal models for the mobile ecosystem,” in European conference on computer vision (Cham: Springer; ), 78–96. doi: 10.1007/978-3-031-73661-2_5 [DOI] [Google Scholar]
- Qomariah D. U. N., Elvira A. I., Kurniasari A. A., Maulana B. W. (2026). Automatic pill counting using yolov8 to improve medication distribution accuracy. Int. J. Public Health Excell. 5, 28–33. doi: 10.55299/ijphe.v5i2.1724 [DOI] [Google Scholar]
- Ramlee M. R. H., Khairuddin I. M., Zamri Z., Shapiee M. N. A., Abdullah M. A. (2024). Pill recognition via deep learning approaches. Mekatronika 6, 88–95. doi: 10.15282/mekatronika.v6i2.11020 [DOI] [Google Scholar]
- Sachin A. S., Karthikeyan J. (2026). A hybrid-based deep learning framework for pill detection, multi-attribute classification, and prediction with metadata retrieval. IEEE Access 14, 17905–17919. doi: 10.1109/ACCESS.2026.3654582 [DOI] [Google Scholar]
- Salehudin M. A. M., Basah S. N., Yazid H., Basaruddin K. S., Safar M. J. A., Som M. H. M., et al. (2023). Analysis of optical character recognition using easyocr under image degradation. J. Phys.: Conf. Ser. 2641:012001. doi: 10.1088/1742-6596/2641/1/012001 [DOI] [Google Scholar]
- Salmon B. P., Kleynhans W., Schwegmann C. P., Olivier J. C. (2015). “Proper comparison among methods using a confusion matrix,” in 2015 IEEE international geoscience and remote sensing symposium (IGARSS) (Piscataway, NJ: IEEE; ), 3057–3060. doi: 10.1109/IGARSS.2015.7326461 [DOI] [Google Scholar]
- Sapkota R., Karkee M. (2025). Ultralytics yolo evolution: An overview of yolo26, yolo11, yolov8 and yolov5 object detectors for computer vision and pattern recognition. arXiv [Preprint]. doi: 10.48550/arXiv.2510.09653 [DOI] [Google Scholar]
- Saraswat D., Bhattacharya P., Verma A., Prasad V. K., Tanwar S., Sharma G., et al. (2022). Explainable ai for healthcare 5.0: opportunities and challenges. IEEE Access 10, 84486–84517. doi: 10.1109/ACCESS.2022.3197671 [DOI] [Google Scholar]
- Shen X., Huang H., Nichyporuk B., Arbel T. (2025). Improving robustness and reliability in medical image classification with latent-guided diffusion and nested-ensembles. IEEE Trans. Med. Imaging 44, 4890–4902. doi: 10.1109/TMI.2025.3583974 [DOI] [PubMed] [Google Scholar]
- Sun W., Niu X., Wu Z., Guo Z. (2024). Lightweight detection counting method for pill boxes based on improved yolov8n. Electronics 13:4953. doi: 10.3390/electronics13244953 [DOI] [Google Scholar]
- Suntronsuk S., Ratanotayanon S. (2017). “Automatic text imprint analysis from pill images,” in 2017 9th international conference on knowledge and smart technology (KST) (Piscataway, NJ: IEEE; ), 288–293. doi: 10.1109/KST.2017.7886081 [DOI] [Google Scholar]
- Tan L., Huangfu T., Wu L., Chen W. (2021). Comparison of retinanet, ssd, and yolo v3 for real-time pill identification. BMC Med. Inform. Decis. Mak. 21:324. doi: 10.1186/s12911-021-01691-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Unnissa Z., Unnisa M., Khan S. (2024). A comprehensive review of medication errors in modern healthcare. J. Drug Deliv. Ther. 14, 220–228. doi: 10.22270/jddt.v14i5.6565 [DOI] [Google Scholar]
- Usuyama N., Delgado N. L., Hall A. K., Lundin J. (2020). “epillid dataset: a low-shot fine-grained benchmark for pill identification,” in 2020 IEEE/CVF conference on computer vision and pattern recognition workshops (CVPRW) (Piscataway, NJ: IEEE; ), 3971–3977. doi: 10.1109/CVPRW50498.2020.00463 [DOI] [Google Scholar]
- Vignesh S., Harikarthick T., Vimal R., Suthar R. (2025). “Ai-powered tablet identification and information extraction system using image recognition and optical character recognition,” in 2025 6th international conference on recent advances in information technology (RAIT) (Piscataway, NJ: IEEE; ), 1–6. doi: 10.1109/RAIT65068.2025.11088891 [DOI] [Google Scholar]
- Wang G., Yin L., Zhang H., Xia K., Su Y., Chen J. (2025). A yolov11-based ai system for keypoint detection of auricular acupuncture points in traditional chinese medicine. Front. Physiol. 16:1629238. doi: 10.3389/fphys.2025.1629238 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wang M., Jiang Y., Xu B., Huang M., Xue X., Wu X., et al. (2024). Mcir-yolo: white medication pill classification using multi-band infrared images. IEEE Photonics J. 16, 1–13. doi: 10.1109/JPHOT.2024.3426929 [DOI] [Google Scholar]
- Wang T., He J., Yan W., Chen K., Zhang X., Zhang N., et al. (2026a). Artificial intelligence in primary health care: a bibliometric analysis of publications from 2015 to 2024. Dig. Health 12:20552076251411631. doi: 10.1177/20552076251411631 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wang W., Jing X., Jiang S., Han Y. (2026b). Pill-msvae: a multi-scale variational autoencoder based on the internet of things for accurate automatic drug identification and monitoring. IEEE Internet Things J. 1. doi: 10.1109/JIOT.2026.3664411 [DOI] [Google Scholar]
- Wenkel S., Alhazmi K., Liiv T., Alrshoud S., Simon M. (2021). Confidence score: the forgotten dimension of object detection performance evaluation. Sensors 21:4350. doi: 10.3390/s21134350 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wu S., Chang F. (2025). A dual-engine fusion optical character recognition method for fast identification and key information extraction of drug labels. Alex Eng. J. 128, 1027–1036. doi: 10.1016/j.aej.2025.05.037 [DOI] [Google Scholar]
- Zaman M. F. U., Rahman B., Rubyat A., Halder N., Mahmud A., Islam A., et al. (2024). “Recognizing medicine names from bangladeshi handwritten prescription images using trocr,” in 2024 7th Asia conference on cognitive engineering and intelligent interaction (CEII) (Piscataway, NJ: IEEE; ), 55–59. doi: 10.1109/CEII65291.2024.00020 [DOI] [Google Scholar]
- Zeng X., Cao K., Zhang M. (2017). “Mobiledeeppill: a small-footprint mobile deep learning system for recognizing unconstrained pill images,” in Proceedings of the 15th annual international conference on mobile systems, applications, and services (New York, NY: ACM; ), 56–67. doi: 10.1145/3081333.3081336 [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
Publicly available datasets were analyzed in this study. This data can be found here: https://datadiscovery.nlm.nih.gov/Chemicals-and-Drugs/Pillbox-Archived-Data/crzr-uvwg/about_data.







