Automatic recognition of snack packaging time information based on YOLOv11

Authors

  • Kuiyu Chen

DOI:

https://doi.org/10.61173/4kwtg685

Keywords:

Food packaging, Object detection, YOLOv11, Text recognition, Computer Vision

Abstract

Food safety and information transparency are closely related to national economy and people's livelihood. Against the backdrop of bagged and boxed food dominating the market, accurate and clear labeling and efficient identification of production date and shelf life on packaging are of great significance. However, manual quality inspection has problems such as low efficiency, high cost, and inconsistent standards. The project "Automatic Recognition of Snack Packaging Time Information Based on YOLOv11" aims to solve this problem by focusing on the unique challenges of recognizing snack packaging time information in bags and boxes. Based on advanced YOLOv11 deep learning algorithms, a high-precision and highly robust end-to-end intelligent recognition system is constructed. At the technical level, C3k2 module is used to replace traditional C2f module, and attention mechanism (C2PSA module) is introduced. The detection and recognition module is integrated into a single network head to build an end-to-end pipeline. Hardware technology is integrated to achieve fast and accurate extraction of date information in complex packaging scenarios. In terms of data collection, in response to the problem that the production date and shelf life of most product packaging cannot be in one photo, tools such as Photoshop are used to clip the two in the same image. In addition, the dataset covers various materials and real packaging information with interference such as wrinkles and reflections. Through data augmentation, the original dataset is scaled and rotated to ensure its diversity. The results show that the model can quickly and accurately identify the production date and shelf-life information on food packaging in real-time within 0.5 seconds, and recognize the text of the box selection information through text recognition technology, and finally calculate whether the food has expired. This project implements YOLOv11 architecture improvement and end-to-end lightweight design at the technical level, and has multi scenario adaptability at the application level. Firstly, it can help consumers solve the problem of difficult identification of food packaging information; In addition, this technology is expected to be extended and applied in retail logistics and warehousing scenarios, as well as in the fields of pharmaceuticals and cosmetics.

References

[1] State Administration for Market Regulation Measures for the Supervision and Administration of Food Labeling [EB/OL]. (2025-03-14) [2025-06-12]. samr.gov.cn/zw/zfxxgk/fdzdgknr/ fgs/art/2025/art_4edcff1e8d894890a012aac1e974c1ff.html.

[2] State Administration for Market Regulation Announcement of the State Administration for Market Regulation on Encouraging Food Enterprises to Optimize the Labeling of Pre packaged Food Production Date and Shelf Life [EB/OL]. (2024- 03-26) [2025-06-12]. samr.gov.cn/zw/zfxxgk/fdzdgknr/spscs/ art/2024/art_701a6b8b063e4eab85fcb722258c310d.html.

[3] China Science and Technology Network Why is the production date of food and medicine frequently “hidden” due to the blurred printing of location “jumping”. [EB/OL]. (2024- 04-15) [2025-06-12]. https://www.stdaily.com/web/gdxw/2024- 04/15/content_1957218.html.

[4] Woo, S., Park, J., Lee, JY., Kweon, I.S. (2018). CBAM: Convolutional Block Attention Module. In: Ferrari, V., Hebert, M., Sminchisescu, C., Weiss, Y. (eds) Computer Vision – ECCV 2018. ECCV 2018. Lecture Notes in Computer Science(), vol 11211. Springer, Cham.

[5] Bochkovskiy, A., Wang, C. Y., & Liao, H. Y. M. (2020). YOLOv4: Optimal Speed and Accuracy of Object Detection . arXiv preprint arXiv:2004.10934.

[6] Shorten, C., Khoshgoftaar, T.M. A survey on Image Data Augmentation for Deep Learning. J Big Data 6, 60 (2019).

[7] Kingma, D. P., & Ba, J. (2015). Adam: A Method for Stochastic Optimization . International Conference on Learning Representations (ICLR). https://arxiv.org/abs/1412.6980.

Downloads

Published

2025-08-26