Decoding Dot Peen Data Matrix Code with Deep Learning Capability for Product Traceability

Siu Hong Loh, Peh Chiong Teh, Jia Jia Sim, Chian Kwang Tai, Kim Ho Yeap, Yu Jen Lee, Ahmad Uzair Mazlan


An approach for recognizing and decoding the industrial-based dot peen data matrix code is presented in this paper. Dot peen marking is a type of direct part marking (DPM). Due to the reduced contrast characteristic, it could be difficult to read a DPM code. Additionally, the readability of a DPM code may deteriorate over time due to partial degradation on the product surface. A deep-learning-based method using You-Only-Look-Once (YOLO) v5 model is proposed. Firstly, a large dataset of dot peen data matrix symbols was prepared to initiate the YOLOv5 model training. Image data augmentation was then applied to the training images to increase the size of the training dataset. The YOLOv5 model training was processed with a batch size of 16 and the epochs number of 60 due to its high accuracy (97.79%). All dot peen data matrix codes were detected accurately within one second, fulfilling our intention to design a high-speed reader for industrial-based dot peen data matrix. With ANOVA analysis, we observed that the brightness level and the camera distance significantly affect the decoding process. Additionally, our developed model can successfully decode a partially damage code if the level of damage is below 30%.


Data matrix code; Deep learning; Direct part marking; Dot peen marking.

Article Metrics

Abstract view : 288 times
PDF - 146 times

Full Text:



T. Sun and D. Zhou, Automatic identification technology - Application of two-dimensional code, 2011 IEEE International Conference on Automation and Logistics (ICAL), Chongqing, China, 2011, 164-168.

B. Santra and D. P. Mukherjee, A comprehensive survey on computer vision based approaches for automatic identification of products in retail store, Image and Vision Computing, 86, 2019, 45-63.

M. Liukkonen and T. -N. Tsai, Toward decentralized intelligence in manufacturing: Recent trends in automatic identification of things, International Journal of Advanced Manufacturing Technology, 87(9-12), 2016, 2509-2531.

R. Schuitemaker and X. Xu, Product traceability in manufacturing: A technical review, Procedia CIRP, 93, 2020, 700-705.

C. Plain‐Jones, Data matrix identification, Sensor Review, 15(1), 1995, 12-15.

E. Ahearne, Engineering the surface for direct part marking (DPM), CIRP Journal of Manufacturing Science and Technology, 29, 2020, 1-10.

C. Moss, S. Chakrabarti and D. W. Scott, Parts quality management: Direct part marking of data matrix symbol for mission assurance, 2013 IEEE Aerospace Conference, Big Sky, MT, 2013, 1-12.

K. Czerwińska and A. Pacana, Analysis of the implementation of the identification system for directly marked parts - DataMatrix code, Production Engineering Archives, 23(23), 2019, 22-26.

D. M. Segura Velandia, N. Kaur, W. G. Whittow, P. P. Conway and A. A. West, Towards industrial internet of things: Crankshaft monitoring, traceability and tracking using RFID, Robotics and Computer-Integrated Manufacturing, 41, 2016, 66-77.

F. A. Eyahanyo, Computer Vision Reading on Stickers and Direct Part Marking on Horticultural Products: Challenges and Possible Solutions, Ph.D. Thesis, Leibniz Universität Hannover, Hanover, Germany, 2020.

D. Matuszczyk and F. Weichert, Reading direct-part marking data matrix code in the context of polymer-based additive manufacturing, Sensors, 23(3), 2023, 1619.

Dot Peen Marking, (accessed Mar. 03, 2023).

D. Dragičević, S. Tegeltija, G. Ostojić, S. Stankovski and M. Lazarević, Reliability of dot peen marking in product traceability, International Journal of Industrial Engineering and Management, 8(2), 2017, 71-76.

F. Deng, R. Li, S. Klan and W. Volk, Comparative evaluation of marking methods on cast parts of Al–Si Alloy with image processing, International Journal of Metalcasting, 16(3), 2022, 1122-1139.

G. Jocher, YOLOv5 by Ultralytics,, 2020 (accessed Mar. 03, 2023).

L. Gur Arie, The practical guide for object detection with YOLOv5 algorithm, Medium, 2023. (accessed Mar. 03, 2023).

OpenCV, (accessed Mar. 03, 2023).

I. Culjak, D. Abram, T. Pribanic, H. Dzapo and M. Cifrek, A brief introduction to OpenCV, Proceedings of the 35th International Convention MIPRO, 2012, 1725-1730.

dmtx/libdmtx,, 2023 (accessed Feb. 26, 2023).

F. Liu, A. Liu, M. Wang and Z. Yang, Robust and fast localization algorithm for data matrix barcode, International Conference on Optoelectronics and Image Processing, Hainan, China, 2010, 356-359.

Q. Huang, W. -S. Chen, X. -Y. Huang and Y. -Y. Zhu, Data matrix code location based on finder pattern detection and bar code border fitting, Mathematical Problems in Engineering, 2012, 1-13.

R. Kulshreshtha, A. Kamboj and S. Singh, Decoding robustness performance comparison for QR and data matrix code, Proceedings of the Second International Conference on Computational Science, Engineering and Information Technology, Coimbatore, India, 2012.

L. Karrach and E. Pivarciova, The analyse of the various methods for location of data matrix codes in images, ELEKTRO, Mikulov, Czech Republic, 2018, 1-6.

L. Karrach and E. Pivarčiová, Comparative study of data matrix codes localization and recognition methods, Journal of Imaging, 7(9), 2021, 163.

Y. Dai, L. Liu, W. Song, C. Du and X. Zhao, The realization of identification method for datamatrix code, International Conference on Progress in Informatics and Computing (PIC), Nanjing, China, 2017, 410-414.

L. Karrach and E. Pivarčiová, Options to Use data matrix codes in production engineering, Management Systems in Production Engineering, 26(4), 2018, 231-236.

R. Wudhikarn, P. Charoenkwan and K. Malang, Deep learning in barcode recognition: A systematic literature review, IEEE Access, 10, 2022, 8049-8072.

T. Almeida, V. Santos, O. M. Mozos and B. Lourenço, Comparative analysis of deep neural networks for the detection and decoding of data matrix landmarks in cluttered indoor environments, Journal of Intelligent & Robotic Systems, 103, 2021, 13.

A. Bochkovskiy, C. -Y. Wang and H. -Y. M. Liao, YOLOv4: Optimal Speed and Accuracy of Object Detection, arXiv: 2004.10934, 2020.

S. Ren, K. He, R. Girshick and J. Sun, Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks, arXiv: 1506.01496, 2015.

W. Liu et al., SSD: Single Shot MultiBox Detector, arXiv: 1512.02325, 2015.

Y. Xiao and Z. Ming, 1D barcode detection via integrated deep-learning and geometric approach, Applied Sciences, 9(16), 2019, 3268.

E. Hannes, OCR of Dot Peen Markings: With Deep Learning and Image Analysis, Master Thesis, Luleå University of Technology, Sweden, 2018.

N. Otsu, A threshold selection method from gray-level histograms, IEEE Transactions on Systems, Man and Cybernatics, 9(1), 1079, 62-66.

zxing/zxing,, 2023 (accessed Feb. 26, 2023).

Ubidots - Powerful but simple Industrial IoT, (accessed Mar. 07, 2023).

R. M. Heiberger and E. Neuwirth, One-Way ANOVA, in R Through Excel, New York: Springer New York, 2009, 165-191.


  • There are currently no refbacks.