Artificial Intelligence-Based Quality Control of Pharmaceutical Tablets: A Visual Dataset and Benchmark for Automated Defect Detection

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.

Link
https://doi.org/10.3390/pharmaceutics18101287
Found by
Crossref
Authors
Tahir Mahmood, Sabi Ur Rehman, Arslan Niamat, Sung Jae Lee, Kang Ryoung Park
Organizations
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
Categories
benchmark, dataset
Published
2026-10-10
Last seen by the radar
2026-10-12
Citations
0
Radar score
37.25 / 100 (how it is scored)
Why it scored so
Matched: benchmark, dataset, test set; Primary record: Crossref
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Crossref