Research Article | ![]()
Deep Learning-Driven Expiry Date Recognition on Medicine Bottles via YOLOv8 Segmentation and Multi-Stage Image Denoising
Author(s): Saistha N1*, and Dr. S. Sridevi2
Published In : International Journal of Electrical and Electronics Research (IJEER) Volume 13, Issue 4
Publisher : FOREX Publication
Published : 30 December 2025
e-ISSN : 2347-470X
Page(s) : 920-931
Abstract
Automated expiry date recognition (EDR) on pharmaceutical packaging is essential for ensuring medicine safety and minimizing waste, but it poses challenges due to text unpredictability, environmental interference, and intricate label geometries. This study presents a comprehensive deep learning system that integrates sophisticated picture pre-processing with YOLOv8-based instance segmentation to overcome these restrictions. A curated dataset including 1,000 high-resolution photos of pharmaceutical bottles, encompassing various lighting situations, camera angles, and date formats, was assembled. The pre-processing pipeline incorporates wavelet denoising, BM3D filtering, and contrast-limited adaptive histogram equalization (CLAHE) to alleviate glare and enhance low-contrast text artefacts. The advanced YOLOv8 architecture utilizes multi-scale feature fusion for accurate text localization on curved and uneven surfaces. Comparative assessments reveal the framework's superiority over leading models (Mask R-CNN, U-Net, and FCN) in segmentation precision, attaining a 95.7% F1 score and a 34% decrease in boundary error (ASD). Ablation research verifies the impact of each pre-processing step. The technology, in conjunction with an OCR module, facilitates comprehensive expiry date extraction with a character error rate (CER) of 0.9% under optimum settings. The method, although based on a restricted dataset, demonstrates significant potential for real-time quality management in pharmaceutical supply chains, enhancing AI-driven compliance monitoring and sustainable healthcare practices.
Keywords: Pharmaceutical Packaging, Expiry Date Detection, Deep Learning Segmentation, Real-Time OCR, Healthcare Automation.
Saistha N*, Research Scholar, Department of Computer Science and Engineering, VELS Institute of Science, Technology and Advanced Studies, Chennai, India; Email: saisthashajakan@gmail.com
Dr. S. Sridevi, Associate Professor, Department of Computer Science and Engineering, VELS Institute of Science, Technology and Advanced Studies, Chennai, India; Email: sridevis.se@vistas.ac.in
-
[1] Prasadu, R.; Surya, K.; Sampath, C.; Hemanth, B.; Sai Ram, V.; Manoj, P. Extract Product Name from Image and Track Expiry. Int. J. Innov. Res. Technol. 2024, 10, 30.
-
[2] Deshkar, A.; Sonawani, S. Extracting Medicine Name and Expiry Date from Medicine Strip Using OCR and NLP Techniques. MIT World Peace Univ., Pune, India, 2023.
-
[3] Manlises, C.O.; Santos, J.B.; Adviento, P.A.; Padilla, D.A. Expiry Date Character Recognition on Canned Goods Using Convolutional Neural Network VGG16 Architecture. In Proceedings of the 2023 15th International Conference on Computer and Automation Engineering (ICCAE), Sydney, Australia, 17–19 February 2023; pp. 394–399.
-
[4] Rebedea, T.; Florea, V. Expiry Date Recognition Using Deep Neural Networks. Int. J. User-Syst. Interact. 2020, 13, 1–17.
-
[5] Seker, A.C.; Ahn, S.C. A Generalized Framework for Recognition of Expiration Dates on Product Packages Using Fully Convolutional Networks. Expert Syst. Appl. 2022, 203, 117310.
-
[6] Gong, T.; Yao, X. A Deep Learning Technology-Based OCR Framework for Recognition of Handwritten Expression and Text. Converter Mag. 2021, 5, 1.
-
[7] Li, J.; Jiang, P.; An, Q.; Wang, G.G.; Kong, H.F. Medical Image Identification Methods: A Review. Comput. Biol. Med. 2024, 169, 107777.
-
[8] Nisa, S.Q.; Ismail, A.R.; Ali, M.A.B.M.; Khan, M.S. Medical Image Analysis Using Deep Learning: A Review. In Proceedings of the 2020 IEEE 7th International Conference on Engineering, 2020.
-
[9] Salvi, M.; Acharya, U.R.; Molinari, F.; Meiburger, K.M. The Impact of Pre- and Post-Image Processing Techniques on Deep Learning Frameworks: A Comprehensive Review for Digital Pathology Image Analysis. Comput. Biol. Med. 2020, 126, 104129.
-
[10] Khanna, C.; Bish, B.; Kamshetty, D.; Bhardwaj, H.; Bhutani, M. Enhancing License Plate Recognition Using YOLONAS, YOLOv8, and SORT Algorithms. J. Artif. Intell. 2025, 2, 167–174.
-
[11] Ga, K.; P., E.; A., S.; D., V. An Efficient Deep Learning Approach for Automatic License Plate Detection with Novel Feature Extraction. In Proceedings of the 2023 International Conference on Machine Learning and Data Engineering (ICMLDE), Coimbatore, India, 2023.
-
[12] Omar, N.; Sengur, A.; Al Ali, S.G.S. Cascaded Deep Learning-Based Efficient Approach for License Plate Detection and Recognition. Expert Syst. Appl. 2020, 149, 113280.
-
[13] Delight, D.T.; Velswamy, K. Deep Learning-Based Object Detection Using Mask RCNN. In Proceedings of the 2021 6th International Conference on Communication and Electronics Systems (ICCES), Coimbatore, India, 8–10 July 2021; pp. 948–952.
-
[14] Alsuwaylimi, A.A. Enhanced YOLOv8-Seg Instance Segmentation for Real-Time Submerged Debris Detection. IEEE Access 2024, 12, 1–10.
-
[15] Lu, M.; Mou, Y.; Chen, C.-L.; Tang, Q. An Efficient Text Detection Model for Street Signs. Appl. Sci. 2021, 11, 5962.
-
[16] Gnanaprakash, V.; Kanthimathi, N.; Saranya, N. Automatic Number Plate Recognition Using Deep Learning. IOP Conf. Ser. Mater. Sci. Eng. 2021, 1084, 012027.
-
[17] Peng, H.; Bayon, J.; Recas, J.; Guijarro, M. Efficient Expiration Date Recognition in Food Packages for Mobile Applications. Algorithms 2025, 18, 286
-
[18] Dewi, C.; Chen, R.-C.; Zhuang, Y.-C.; Manongga, W.E. Image Enhancement Method Utilizing YOLO Models to Recognize Road Markings at Night. IEEE Access 2024, 12, 131065–131081.
-
[19] Fang, S.; Zhang, B.; Hu, J. Improved Mask R-CNN Multi-Target Detection and Segmentation for Autonomous Driving in Complex Scenes. Sensors 2023, 23, 3853.
-
[20] Soni, V.; Shukla, V.; Tandan, S.R.; Pimpalkar, A.; Nema, N.; Naik, M. Performance Evaluation of Efficient and Accurate Text Detection and Recognition in Natural Scenes Images Using EAST and OCR Fusion. Int. J. Adv. Comput. Sci. Appl. 2025, 16, 0144.
-
[21] Talib, M.; Al-Noori, A.; Suad, J. YOLOv8-CAB: Improved YOLOv8 for Real-Time Object Detection. Karbala Int. J. Mod. Sci. 2024, 10, 3339.
-
[22] Li, M., et al. (2021). TrOCR: Transformer-based Optical Character Recognition with Pre-trained Models. Proceedings of the ACM International Conference on Multimedia.
-
[23] Khalili, B., & Smyth, A. W. (2024). SOD-YOLOv8—Enhancing YOLOv8 for small object detection in aerial imagery and traffic scenes. Sensors, 24(19), 6209.
-
[24] Khallouli, W., Uddin, M. S., Sousa-Poza, A., Li, J., & Kovacic, S. (2025). Leveraging transformer-based OCR model with generative data augmentation for engineering document recognition. Electronics, 14(1), 5.

I. J. of Electrical & Electronics Research