Real-time pill identification and classification using deep learning framework for medicine inspection systems
N. Kavitha, P. Madhumathy
Central Manufacturing Technology Institute
Key points
From the paper's conclusion- These results suggest strong potential for adoption in pharmaceutical quality assurance, clinical verification systems, and forensic pill analysis.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A hybrid framework for pill identification using convolutional neural networks and optical character recognitionDiscover Artificial Intelligence · 2026
- Implementation and Design of a Smart Pharmacy Automation System Using Raspberry PiJournal of Engineering · 2026
- PharmaNet Deep: Real-Time Pharmaceutical Defect Detection Using Defect-Guided Feature Fusion and Uncertainty-Driven InspectionInternational Journal of Computational Intelligence Systems · 2025
- An intelligent recognition method for narcotic and psychotropic drugs in complex scenes based on multi-stage image enhancement and optimized YOLOv8Alexandria Engineering Journal · 2026
- Objective Assessment of Medication Adherence Through Automated Pill Detection Using a Computer Vision Framework: Development and Evaluation Study.JMIR AI · 2026
- Recommendation Based AI Powered Medicine Expiry and Counterfeit Detection SystemInternational Journal of Engineering Research and Science & Technology · 2026