Real-time pill identification and classification using deep learning framework for medicine inspection systems

The accurate identification of pharmaceutical pills is crucial for ensuring medication safety, enhancing healthcare delivery, and supporting regulatory compliance. While manual verification remains common, it is often time-consuming and prone to human error. In response, this chapter proposes an advanced deep learning-based system for real-time pill detection and classification using the YOLOv5s object detection framework. A novel component of this system is the integration of a Deep Text Spotter (DTS) module, further enhanced by a character-level Recurrent Neural Network (RNN) with coordinate encoding to improve imprint recognition. This combination effectively addresses spatial inconsistencies and mitigates optical character recognition (OCR) errors that typically arise in incomplete or unclear pill imprints. To address limitations in small-object detection and sparse annotations, a training strategy is introduced that enables generalization from single-object scenarios to multi-object contexts. The system is trained on a hybrid dataset that includes the National Library of Medicine (NLM) Pill Dataset and real-world pill images with diverse morphologies and imprint styles. The proposed framework achieves a detection accuracy of 97.8%, outperforming baseline models across precision, recall, and F1-score metrics. These results suggest strong potential for adoption in pharmaceutical quality assurance, clinical verification systems, and forensic pill analysis.

Authors

Institutions

Publication Details

Journal
Discover Electronics
Published
2025-10-03
DOI
https://doi.org/10.1007/s44291-025-00122-6
Citations
2
Primary Topic
AI in cancer detection
Type
article
Field-Weighted Citation Impact
4.96
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Real-time pill identification and classification using deep learning framework for medicine inspection systems

N. Kavitha, P. Madhumathy
2 citations
Discover Electronics
AI in cancer detection
4.96
article

Real-time pill identification and classification using deep learning framework for medicine inspection systems

N. Kavitha, P. Madhumathy
article en
2 citations

Abstract

The accurate identification of pharmaceutical pills is crucial for ensuring medication safety, enhancing healthcare delivery, and supporting regulatory compliance. While manual verification remains common, it is often time-consuming and prone to human error. In response, this chapter proposes an advanced deep learning-based system for real-time pill detection and classification using the YOLOv5s object detection framework. A novel component of this system is the integration of a Deep Text Spotter (DTS) module, further enhanced by a character-level Recurrent Neural Network (RNN) with coordinate encoding to improve imprint recognition. This combination effectively addresses spatial inconsistencies and mitigates optical character recognition (OCR) errors that typically arise in incomplete or unclear pill imprints. To address limitations in small-object detection and sparse annotations, a training strategy is introduced that enables generalization from single-object scenarios to multi-object contexts. The system is trained on a hybrid dataset that includes the National Library of Medicine (NLM) Pill Dataset and real-world pill images with diverse morphologies and imprint styles. The proposed framework achieves a detection accuracy of 97.8%, outperforming baseline models across precision, recall, and F1-score metrics. These results suggest strong potential for adoption in pharmaceutical quality assurance, clinical verification systems, and forensic pill analysis.

Discover ElectronicsVol. 2(1)
Central Manufacturing Technology Institute (IN)
Openalex Percentile: Top 5%
AI in cancer detection
4.96
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.