Artificial Intelligence-Based Quality Control of Pharmaceutical Tablets: A Visual Dataset and Benchmark for Automated Defect Detection.
Tahir Mahmood, Sabi Ur Rehman, Arslan Niamat, Sung Jae Lee, Kang Ryoung Park
Division of Electronics and Electrical Engineering, Dongguk University, 30 Pildong-ro 1-gil, Jung-gu, Seoul 04620, Republic of Korea. · Department of Pharmacy, Faculty of Natural Sciences, Forman Christian College (A Chartered University), Lahore 54600, Pakistan.
Key points
From the paper's conclusion- The PV dataset, code, and evaluation protocol are publicly available on GitHub to support reproducible AI-based tablet quality control.
Abstract
Background/Objectives: Automated visual inspection of pharmaceutical tablets is increasingly important for detecting manufacturing defects and maintaining consistent product quality. Progress in artificial intelligence-based defect classification is, however, constrained by the scarcity of publicly accessible image datasets covering defective tablets under diverse visual conditions. This study introduces the PharmaVision (PV) dataset, a public visual dataset and benchmark for classifying normal and defective compressed tablets. Methods: The PV dataset contains 640 smartphone-acquired images spanning varied tablet products, backgrounds, and lighting, with fixed tablet-level splits (190/190 training, 30/30 validation, and 100/100 test images for the normal and defective classes, respectively). Twelve representative architectures spanning classical convolutional networks, mobile networks, and vision transformers were benchmarked under an identical protocol using accuracy, precision, recall, and harmonic mean of precision and recall (F1-score), with 95% confidence intervals and paired statistical tests. Cross-dataset generalization was assessed on the independent pillQC dataset without fine-tuning, and efficiency was profiled using parameters, Giga floating-point operations (GFLOPs), latency, and throughput. Results: EfficientNetV2-S achieved the highest F1-score on the PV test set (88.56%), although paired statistical tests did not distinguish it from Xception (87.08%) or Swin-B (85.71%). On pillQC, GoogLeNet and EfficientNetV2-S showed the strongest cross-dataset performance, whereas both vision transformers declined relative to their in-domain results. AlexNet gave the highest theoretical throughput (602.41 frames per second (FPS), median latency 1.66 ms), whereas ShuffleNetV2 and MobileNetV3-small offered the smallest parameter counts. Conclusions: In-domain accuracy, cross-dataset robustness, and measured latency diverged, with no single architecture best on all three axes. The PV dataset, code, and evaluation protocol are publicly available on GitHub to support reproducible AI-based tablet quality control.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- PharmaNet Deep: Real-Time Pharmaceutical Defect Detection Using Defect-Guided Feature Fusion and Uncertainty-Driven InspectionInternational Journal of Computational Intelligence Systems · 2025
- Multimodal AI and Process Analytical Technology for Solid-Dosage Quality Inspection: A Narrative Review.Pharmaceutics · 2026
- A Review of Steel Surface Defect Detection for Industrial Applications: Evaluation Frameworks, Data Challenges, and Model MechanismsTechnologies · 2026
- An Industrial Carpet Defect Dataset and a Hybrid Two-Stage Inspection Framework for Automated Quality ControlIndustries · 2026
- Artificial Intelligence and Computer Vision for Automated Quality Inspection of Processed Foods: A Comprehensive Review.Foods (Basel, Switzerland) · 2026
- A Multi-Parameter Inspection Platform for Transparent Packaging Containers: System Design for Stress, Dimensional, and Defect DetectionSensors · 2025