A Low-Cost IIoT-enabled Computer Vision-based System for Classifying Defect Types and Severity Levels in Industry 4.0

Main Article Content

Warut Pannakkong
Panisara Kanjanarut


Industry 4.0 technologies such as the Industrial Internet of Things (IIoT) and Artificial Intelligence (AI) can assist in automating defect
detection and classification processes which are crucial for quality control in the manufacturing industry. However, there is still a barrier to adopting the technologies in Small and Medium Enterprises (SMEs) because of their limited budget. This
paper presents a low-cost defect detection and classifcation system and an interactive real-time dashboard monitoring IIoT data utilizing a singleboard computer and mainly open-source software. In the system, workpieces will be classified into non-defective (OK) and defective (NG) workpieces. Then, the NG workpieces will be further classified into defective types and severity levels. The workpiece used in the case study is a sticker on a 4.4 cm diameter bottle cap. The defect types are Off-Color, Missing Details, and Scratches, then each type is divided further into four severity levels. From evaluation, the system can achieve 96% when classifัying as
OK/NG and 88% accuracy in classifying defective types and levels. The system’s reliability is 100%. Based on experts’ opinions, the proposed system is relatively low-cost, reliable, and accurate for practical uses. The proposed system can be implemented locally or globally via a cloud server.

Article Details

How to Cite
Pannakkong, W., & Kanjanarut, P. (2023). A Low-Cost IIoT-enabled Computer Vision-based System for Classifying Defect Types and Severity Levels in Industry 4.0. INTERNATIONAL SCIENTIFIC JOURNAL OF ENGINEERING AND TECHNOLOGY (ISJET), 7(2), 1–10. Retrieved from https://ph02.tci-thaijo.org/index.php/isjet/article/view/246780
Research Article


Z. Shahbazi and Y. C. Byun, “Integration of Blockchain, IoT, and Machine Learning for Multistage Quality Control and Enhancing Security in Smart Manufacturing,” Sensors, vol. 21, no. 4, p. 1467, Feb. 2021.

U. Ullah, F. A. Bhatti, A. R. Maud et al., “IoT-Enabled Computer Vision-Based Parts Inspection System for SME 4.0,” Microprocessors and Microsystems, vol. 87, p. 104354, Nov. 2021.

P. Naruetharadhol, W. A. Srisathan, N. Gebsombut et al., “Industry 4.0 for Thai SMEs: Implementing Open Innovation

as Innovation Capability Management,” International Journal of Technology, vol. 13, no. 1, pp. 48-57, Jan. 2022.

E. Rauch, P. Dallasega, and M. Unterhofer, “Requirements and Barriers for Introducing Smart Manufacture Ring in

Small and Medium-Sized Enterprises,” IEEE Engineering Management Review, vol. 47, no. 3, pp. 87-94, Jul. 2019.

H. Han and S. Trimi, “Towards a Data Science Platform for Improving SME Collaboration Through Industry 4.0 Technologies,” Technological Forecasting and Social Change, vol. 174, p. 121242, Jan. 2022.

H. Oliff and Y. Liu, “Towards Industry 4.0 Utilizing DataMining Techniques: A Case Study on Quality Improvement,” in Proc. CIRP, 2017, pp. 167-172.

M. Sony and S. Naik, “Critical Factors for the Successful Implementation of Industry 4.0: A Review and Future

Research Direction,” Production Planning & Control, vol. 31, no. 10, pp. 799-815.

J. Villalba-Diez, D. Schmidt, R. Gevers et al., “Deep Learning for Industrial Computer Vision Quality Control in the Printing

Industry 4.0,” Sensors, vol. 19, no. 18, p. 3987, Nov. 2019.

Z. Zhang, Z. Yang, W. Ren et al., “Random Forest-Based Real-Time Defect Detection of Al Alloy in Robotic Arc Welding Using Optical Spectrum,” Journal of Manufacturing Processes, vol. 2, pp. 51-59, Jun. 2019.

H. I. Çelik, L. C. Dülger, and M. Topalbekiroğlu, “Development of a Machine Vision System: Real-Time Fabric Defect Detection

and Classifcation with Neural Networks,” The Journal of the Textile Institute, vol. 105, no. 6, pp. 575-585, Jun. 2017.

A. Kanawaday and A. Sane, “Machine Learning for Predictive Maintenance of Industrial Machines Using IoT Sensor Data,”

in Proc. The 8th IEEE International Conference on Software Engineering and Service Science (ICSESS) 2017, 2017,

pp. 87-90.

S. Mei, Y. Wang, and G. Wen, “Automatic Fabric Defect Detection with a Multi-Scale Convolutional Denoising

Autoencoder Network Model,” Sensors, vol. 18 no. 4, p. 1064, Apr. 2018.

K. Shafque, B. A. Khawaja, and F. Sabir, “Internet of Things (Iot) for Next-Generation Smart Systems: A Review of

Current Challenges, Future Trends and Prospects for Emerging 5G-IoT Scenarios,” IEEE Access, vol. 8, pp.

-23040, Jan. 2020.

D. Shah, J. Wang, and Q. P. He, “An Internet-of-Things Enabled Smart Manufacturing Testbed,” IFAC-Papers OnLine,

vol. 52, no. 1, pp. 562-567, Jan. 2019.

G. Erboz, “How to Defne Industry 4.0: Main Pillars of Industry 4.0,” in Proc. International Scientifc Conference Managerial Trends in the Development of Enterprises in Globalization Era, 2017, pp. 761-767.

S. T. Liong, Y. S. Gan, Y. C. Huang et al., “Integrated Neural Network and Machine Vision Approach for Leather Defect

Classifcation,” arXiv, vol. 1, pp. 1-12, May. 2019.

D. Hou, T. Liu, Y. T. Pan et al., “AI on Edge Device for Laser Chip Defect Detection,” in Proc. The 2019 IEEE 9th Annual

Computing and Communication Workshop and Conference (CCWC), 2019. pp. 0247-0251.

K. Židek, V. Modrák, J. Pitel et al., “The Digitization of Quality Control Operations with Cloud Platform Computing

Technologies,” In Industry 4.0 for SMEs, pp. 305-334, 2020.

S. Groggert, M. Wenking, R.H. Schmitt et al., “Status Quo and Future Potential of Manufacturing Data Analytics—An

Empirical Study,” inProc.2017IEEEInternationalConference on Industrial Engineering and Engineering Management (IEEM), 2017, pp. 779-783.

C. Jian, J. Gao, and Y. Ao, “Automatic Surface Defect Detection for Mobile Phone Screen Glass Based on Machine Vision,” Applied Soft Computing, vol. 52, pp. 348-358, Mar.2017.

Y. He, K. Song, H. Dong et al., “Semi-Supervised Defect Classifcation of Steel Surface Based on Multi-Training and

Generative Adversarial Network,” Optics and Lasers in Engineering, vol. 122, pp. 294-302, Nov. 2019.

J. Harkonen, E. Mustonen, J. Koskinen et al., “Digitizing Company Analytics–Digitalization Concept for Valuable Insights.” in Proc. The 2020 IEEE International Conference on Industrial Engineering and Engineering Management (IEEM), 2020, pp. 1012-1016.

D. Grube, A. A. Malik, and A. Bilberg, “Generic Challenges and Automation Solution in Manufacturing SMEs,” in Proc.

The 28th DAAAM International Symposium, 2017, pp.1161- 1169.

S. A. Kurkovsky and C. Williams, “Raspberry Pi as a Platform for the Internet of Things Projects: Experiences and Lessons,”

in Proc. The 2017 ACM Conference on Innovation and Technology in Computer Science Education, 2017, pp. 64-69.

Raspberry Pi. (2022, Mar. 8). Raspberry Pi 4 Model B Specifcations. [Online]. Available: https://shorturl.asia/


Newark. (2022, Mar. 8). Single Board Computer, Raspberry Pi 4 Model B. [Online]. Available: https://shorturl.asia/


Mitsubishi Electric (2022, Mar. 8). Melsensor Vision Sensor. [Online]. Available: https://www.mitsubishifa.co.th/fles/dl/


Keyence. (2022, Mar. 8). Square Retro-Reflective Cable Type. [Online]. Available: https://shorturl.asia/a9TOQ

Mitsubishi Electric. (2022, Mar. 8). MELSEC iQ-R Series iQ Platform-compatible PAC. [Online]. Available: https://shorturl.asia/dfJZx

F. D. M. Marconcini, M. E. V. Segatto, and E. O. T. Salles, “A Low-Cost Smart Surveillance System Applied to Vehicle License Plate Tracking,” Journal of Microwaves, Optoelectronics and Electromagnetic Applications, vol. 21, no. 1, pp.141-156, Mar. 2022.

A. Arunachalam and H. Andreasson “RaspberryPi‐Arduino (RPA) Powered Smart Mirrored and Reconfgurable Iot Facility for Plant Science Research,” Internet Technology Letters, vol. 5, no. 1, p. e272, Jan. 2022.

S. Komarizadehasl, M. Komary, A. Alahmad et al., “A Novel Wireless Low-Cost Inclinometer Made from Combining the Measurements of Multiple MEMS Gyroscopes and Accelerometers,” Sensors, vol. 22, no. 15, p. 5605.

T. Shaown, M. Shohrab Hossain, and T. M. Mukur, “Low-Cost Health Monitoring System: A Smart Technological Device for Elderly People,” in Proc. 6th International Congress on Information and Communication Technology, pp. 851-860, 2021.

J. S. Botero-Valencia, J. Valencia-Aguirre, D. Gonzalez Montoya et al., “A Low-Cost System for Real-Time Measuring of the Sunlight Incident Angle Using IoT,” HardwareX, vo1. 11, p. e00272, Apr. 2022.