Ijraset Journal For Research in Applied Science and Engineering Technology
Authors: S Venkatalakshmi, Mani Gopalsamy, S. Deepika, V. Manjula, Dheepthi M, Sasikumar R, Ramya S, Pragya Prashant Gupta
DOI Link: https://doi.org/10.22214/ijraset.2025.66242
Certificate: View Certificate
This paper explores an advanced solution for enhancing quality control in Printed Circuit Board (PCB) manufacturing by integrating the YOLO (You Only Look Once) object detection algorithm. The system features a conveyor belt, DC motors, and a high-resolution camera for real-time identification and localization of defects on moving PCBs. The YOLO algorithm processes captured images, effectively identifying various flaws such as soldering issues and component misalignments. Precise control over the inspection process is achieved through seamless integration between the conveyor belt and DC motors, which improves both the speed and accuracy of defect detection. Upon identifying defects, the system includes a mechanism to separate defective PCBs from the production line. Defective PCBs are rerouted to a designated area via the conveyor belt, ensuring that only high-quality PCBs proceed in the manufacturing process. This automated approach reduces human intervention, significantly enhances production efficiency, lowers manufacturing costs, and improves overall PCB quality. The proposed system showcases the synergy between cutting-edge image processing technologies and robust mechanical components, providing a comprehensive solution for defect detection and segregation in PCB manufacturing
I. INTRODUCTION
Agriculture The production of Printed Circuit Boards (PCBs) plays a crucial role in the electronics industry, requiring precision and reliability throughout every stage of manufacturing. Ensuring the quality of PCBs is essential to prevent defects that could compromise the functionality and performance of electronic devices. This project addresses the challenges associated with PCB quality control by introducing an innovative Automated PCB Defect Detection and Segregation System. The system integrates the YOLO (You Only Look Once) object detection algorithm with a conveyor belt, DC motors, and a high-resolution camera to achieve real-time defect identification and segregation. The implementation of the YOLO algorithm facilitates the efficient detection and localization of various defects, ranging from soldering issues to component misalignments, ensuring a comprehensive quality assessment of PCBs. The combination of a conveyor belt and DC motors provides precise control over the movement and positioning of PCBs during inspection. This integrated approach aims to minimize human intervention, enhance manufacturing efficiency, and reduce the likelihood of defective PCBs advancing through the production process. Subsequent sections will delve into the system's architecture, highlighting the role of each component, and discuss the methodologies employed for defect detection and segregation. This project seeks to contribute to the advancement of PCB manufacturing processes by emphasizing automation and state-of-the-art image processing technologies to improve the overall quality of produced PCBs.
Currently, the PCB manufacturing industry often relies on manual inspection methods, which can be time-consuming, error-prone, and subjective. Human operators are responsible for visually identifying defects on PCBs, leading to inconsistencies and potential oversights. This manual inspection process also lacks scalability and may not keep pace with the high-speed production demands of modern manufacturing environments. Furthermore, the absence of real-time defect detection mechanisms can result in defective PCBs progressing to subsequent production stages, leading to increased rework costs and a higher likelihood of faulty finished products. The proposed system leverages the YOLO object detection algorithm, alongside a conveyor belt, DC motors, and a high-resolution camera, to create an integrated solution for automated defect detection and segregation in PCB manufacturing. By combining advanced image processing with precise mechanical control, the system aims to provide a seamless and efficient workflow. The incorporation of a conveyor belt not only facilitates the movement of PCBs through the inspection area but also serves as a mechanism for real-time segregation of defective PCBs. This proposed system offers a more objective, scalable, and automated approach to PCB quality control.
II. LITERATURE SURVEY
Jing Yang et al. [1] tackled the limitations in traditional defect detection methodologies by proposing a novel method for detecting microscopic defects in industrial components. They addressed the real-time detection challenges by integrating a model that considers the properties of small parts and environmental parameters to enhance detection reliability. Their approach combined a Single Shot Detector (SSD) network with machine learning to improve precision. The detection system achieved optimal performance at a conveyor belt speed of 7.67 m/min, leading to more consistent and precise defect identification.
Zhiquan He and Qifan Liu [2] developed a framework for industrial defect detection with a focus on regression and classification models. Their method included machine learning-based detection, reducing false positives, and analyzing connected components for classification accuracy. Tested on AigleRN, DAGM2007, and an in-house dataset, their approach demonstrated superior accuracy and efficiency in defect identification.
Ammar Mansoor Kamoona et al. [3] explored the use of point pattern features within a random restricted set framework for defect detection. Comparing multiple feature detectors and descriptors, including handcrafted and pre-trained machine features, their method showed promising results on the MVTec AD dataset. While SIFT required manual threshold settings, leveraging deep learning for local features improved detection consistency.
Hai Feng Leo and colleagues [4] proposed an improved surface defect detection technique using YOLOv5 to enhance the detection of dense items. Their approach utilized convolutional networks with BiFPN for multi-scale feature fusion, reducing missed detections and false positives in fine-grained inspections. Michela Prunella et al. [5] detailed automated vision systems for quality assessment, which shifted from manual to AI-driven methods. These systems, benefiting from deep learning, improved the reliability of defect detection through better feature extraction and classification.
Vignesh Sampath and others [6] presented an MTL scheme using attention-guided learning for automated surface defect detection, integrating Resnet-50 and introducing a hybrid loss function. Their model has shown improved performance on structured datasets [7]. Tsukasa Ueno and Qiangfu Zhao [8] reviewed methods for product defect detection, emphasizing AI's role in minimizing false negatives while maintaining low false positives. They proposed a rejection mechanism to reduce errors, aiming to balance defect detection with manual oversight.
Adriana Birlutiu and Manuella Kadar [9] described an AI vision-based system for managing defects in porcelain products, demonstrating significant improvements over traditional methods through convolutional neural networks. Lien Po Chun and Qiangfu Zhao [10] highlighted AI's capacity to replicate human vision systems for defect classification, suggesting machine learning as a viable replacement for human inspectors.
Bijiang Li et al. [11] addressed challenges in traditional image processing, such as high false detection rates, by employing YOLOv3 for object recognition amidst complex backgrounds. Their method showed impressive recognition rates by extending training datasets through advanced augmentation techniques. Posse Lv et al. [12] discussed anomaly detection leveraging autoencoding models, noting limitations in addressing real-world defects. They suggested enhancing model training with augmented data to improve detection capabilities.
Al Amin et al. [13] introduced an AI-based customized UNet model for defect detection across multiple datasets, achieving higher precision through adaptive learning. Yunjie Tang et al. [14] emphasized the importance of surface inspection in product quality assurance, promoting automated systems to reduce labor costs and enhance production line consistency. Chien-Hung Chen and colleagues [15] addressed the evolution of defect types during manufacturing. They proposed lifelong learning models capable of adapting to new defect types without losing previously learned patterns.
Daniel Matuszczyk et al. [16] presented a novel approach for generating synthetic images to enhance AI-based defect detection, focusing on Fused Deposition Modeling parts. Xiyu He and Xiang Qian [17] highlighted challenges in visual recognition for surface defects with imbalanced datasets, promoting methods to handle long-tail distributions in industrial applications.The integration of IoT and Machine learning within the system has led to notable improvements in network resilience and data integrity [17]
Each of these studies contributes significant advancements to defect detection methodologies, underscoring the importance of integrating AI and machine learning for improved accuracy and efficiency in industrial applications
III. MODEL DESIGN
A. Design of a Machine Learning Model for Detecting Defective Industrial Products
The design of a detection model is a critical phase in developing an effective system for identifying defective products within the industrial manufacturing process. This framework encompasses various components, modules, interactions, and data flows necessary to fulfill specified requirements [18].
It represents an application of design theory specifically tailored for enhancing processes related to Printed Circuit Board (PCB) production. At the heart of the design process is the systematic organization of a solution based on identified needs as outlined in the project documentation. This initial step is vital as it sets the foundation for addressing the challenges presented in defect detection. Effective system design is essential, as it fundamentally influences the overall efficiency, accuracy, and functionality of the final program. The primary objective of the design phase is to construct a comprehensive blueprint for the software system, ensuring all components work seamlessly together. This involves defining the architecture of the application, selecting appropriate algorithms, and establishing data flow structures that will facilitate real-time defect detection.
To illustrate the flow of data within the system, a Data Flow Diagram (DFD) can be employed. A DFD visually represents how information moves through the processes involved in the defect detection system, highlighting the interactions between different modules. It serves as a roadmap, detailing how raw input data is processed, analyzed, and ultimately transformed into actionable insights regarding defective products.
Figure 1. Block Diagram of Industrial Defective Product Detection
In summary, the design of a machine learning model for industrial defect detection not only aims to streamline the identification of flaws but also sets out to enhance the overall quality assurance process in manufacturing. A well-structured design process will ensure that the system is robust, scalable, and capable of adapting to evolving industrial needs.
A Data Flow Diagram (DFD) is a method for visualizing the progression of data through a process or system. It illustrates how information enters and exits various components, detailing the inputs and outputs for each element and their interactions within the overall process. Importantly, a DFD does not depict control flows, decision-making rules, or loops.
In our Model, we employ three distinct levels of Data Flow Diagrams:
This structured approach allows for a comprehensive understanding of the data processing workflow, from initial input to final classification, ensuring clarity and coherence in the model's design.
IV. IMPLEMENTATION
A. Image Processing
This section provides a detailed overview of the image processing algorithm implemented in our system. Once an image is processed, it is transferred to a classification network designed to determine whether the Printed Circuit Board (PCB) is defective.
B. YOLOv5
The YOLO (You Only Look Once) algorithm represents a sophisticated approach in artificial intelligence, utilizing a vast number of neural networks that leverage the multiple cores of CPU and GPU processing. YOLOv5 is a convolutional neural network (CNN) specifically designed for real-time object detection. The algorithm processes the entire image through a single neural network, dividing the image into regions and predicting bounding boxes and probabilities for each region. These bounding boxes are then weighted according to the predicted probabilities. Over the years, several enhancements have been made to the YOLO framework, with versions YOLOv2 and YOLOv3 released in 2016 and 2018, respectively. Our implementation utilizes YOLOv5, which delivers outstanding performance in both object detection and classification tasks.
C. Steps for Implementation
The following steps outline the execution of the YOLOv5 algorithm in our project:
The following pseudocode outlines the functioning of our project:
1. Capture Image
2. Read video and divide it into individual frames
3. For each frame:
a. Identify objects using YOLOv5 and obtain bounding boxes
b. If end of file (EOF) is reached, stop processing
4. While detecting PCB:
a. Analyze shape, color, and size using bounding boxes
5. Create a results panel overlay on the image to display outcomes
6. Stream results and display them
7. Repeat for each frame until the end of the video is reached
This structured approach details the workflow of our industrial defect detection system, ensuring a clear path from image capture to result presentation.
V. RESULTS
Implementing artificial intelligence (AI) for industrial product defect detection represents a groundbreaking advancement in manufacturing and quality assurance. AI technologies, and specifically deep learning algorithms such as YOLOv5, provide significant improvements in multiple key performance metrics, including accuracy, speed, and efficiency.
A. Enhanced Accuracy
One of the primary advantages of using AI for defect detection is the dramatic increase in accuracy. Traditional inspection methods often rely on manual processes which can lead to human error and inconsistency.
In contrast, AI models like YOLOv5 are trained on extensive datasets, enabling them to learn intricate patterns and identify various types of defects with high precision. This level of accuracy contributes to a more reliable quality assurance process, significantly reducing the number of faulty products that reach customers.
B. Speed and Efficiency
In addition to accuracy, AI greatly enhances the speed of defect detection. YOLOv5 is designed for real-time object detection, allowing manufacturers to inspect products as they move along the production line without causing bottlenecks. This capability facilitates quicker feedback loops, enabling immediate corrective actions when defects are identified. As a result, the overall efficiency of the manufacturing process is improved, leading to increased throughput and operational productivity.
C. Cost Reduction
By enhancing quality control processes through AI, manufacturers can achieve substantial cost savings. Improved defect detection leads to decreased scrap rates, minimized rework, and lower warranty claims. Manufacturers can also allocate their human resources more effectively, concentrating on more complex tasks while allowing AI systems to handle routine inspections, thus maximizing workforce productivity.
D. Continuous Improvement
To ensure sustained effectiveness over time, continuous monitoring and occasional retraining of the AI model are essential. As new production processes, materials, or defect types emerge, the system must adapt to these changes. By retraining models with new data, manufacturers can keep the defect detection process aligned with current production conditions and maintain high performance levels. This proactive approach allows organizations to stay ahead of potential quality issues and ensures that the inspection system evolves alongside their operational requirements.
E. Interactive Web Application
To streamline the implementation of AI in defect detection, we have developed an interactive web application that harnesses the power of the YOLOv5 algorithm. This application serves as an accessible platform where users can easily upload images of products for analysis. Through a straightforward user interface, personnel can quickly ascertain the condition of their items. The web application not only simplifies the defect identification process but also provides real-time feedback and insightful analytics. Users can monitor defect rates, track performance trends, and make data-driven decisions to enhance their quality control efforts.
Overall, the integration of AI in industrial defect detection represents a transformative shift in manufacturing, making it possible to deliver consistently high-quality products while reducing costs and improving operational efficiencies. The combination of advanced algorithms, continuous learning, and user-friendly interfaces ensures that organizations can meet evolving quality standards and maintain a competitive edge in their respective markets.
Figure 2.: Signup page of Industrial Defective Product Detection
Figure 2 presents the Client Login page, where users enter their Username and Password to access the web application.
Figure 3. Login Page
Figure 3 depicts the Registration page for new users, allowing them to input their details if they have not registered previously.
Critical information such as Username and Password must be provided, facilitating secure future access to the web application. This user-friendly interface is designed to streamline the defect detection process, making it accessible to quality control personnel and enabling efficient monitoring of product integrity.
The Automated PCB Defect Detection and Segregation System represents a significant advancement in the realm of quality control for Printed Circuit Board (PCB) manufacturing. By seamlessly integrating the YOLO object detection algorithm with a conveyor system, DC motors, and a high-resolution camera, this innovative framework provides a comprehensive and automated approach to identifying and segregating defects. This pioneering solution effectively addresses the limitations and subjectivity commonly associated with manual inspection processes. As a result, it markedly enhances the speed, accuracy, and scalability of the quality control workflow, ultimately leading to improved production efficiency and a reduced incidence of defective PCBs reaching the final assembly stage. The successful implementation of this system underscores the immense potential of interdisciplinary collaboration, merging cutting-edge image processing technologies with robust mechanical components. As we transition into an era characterized by Industry 4.0 principles, the Automated PCB Defect Detection and Segregation System emerges as a beacon of innovation, exemplifying how the synergy between artificial intelligence and precision engineering can transform traditional manufacturing practices. This project not only marks a critical advancement in reducing production costs and enhancing quality within PCB manufacturing but also sets a precedent for the integration of advanced technologies to drive efficiency and reliability across various industrial sectors. By leveraging sophisticated algorithms and automated systems, industries can move toward a future where quality assurance becomes more efficient, effective, and aligned with the demands of modern manufacturing environments.
[1] Jing Yang, Shaobo Zheng Wang, Guanci Yang, “Croup and pertussis cough sound classification algorithm based on channel attention and multiscale Mel-spectrogram”, Biomedical Signal Processing and Control, 2019. [2] Zhiquan He, Qifan Liu, “Machine Regression Neural Network for Industrial Surface Defect Detection”, “Shenzhen university”, IEEE Access, 2020. [3] Ammar Mansoor Kamoona, Amirali Khodadadian Gostar, Alireza Bab-Hadiashar, Reza Hoseinnezhad, “Point Pattern Feature-Based Anomaly Detection for Manufacturing Defects, in the Random Finite Set Framework”, IEEE Access, 2021. [4] Hai Feng Leo, Wjia Zhang, Yan Xia Liu, “Surface Defect Detection of Industrial Parts Based on YOLOv5”, IEEE Access PP(99):1-1, PP(99):1-1, DOI:10.1109/ACCESS.2022.3228687, 2024. [5] Michela Prunella, Roberto Maria Scardigno, Domenico Buongiorno, Antonio Brunetti, Nicola Longo, Raffaele Carli [Mariagrazia Dotoli [7], “Deep Learning for Automatic VisionBased Recognition of Industrial Surface Defects: A Survey”, “Polytechnical University of Bari, Italy”, 2023. [6] Vignesh Sampath, Inaki Maurtua, Juan Jose Aguilar Martin, Andoni Rivera, Jorge Molina, Aitor Gutierrez, “Attention- Guided Multitask Learning for Surface Defect Identification”, 2023. [7] Tsukasa Ueno, Qiangfu Zhao, Shota Nakada, “Deep Learning-Based Industry Product Defect Detection with Low False Negative Error Tolerance”, “The University of Aizu, Japan”2023. [8] Adriana Birlutiu, Manuella Kadar, “Defect Detection in Porcelain Industry based on Deep Learning Techniques”, “19th International Symposium on Symbolic and Numeric Algorithms for Scientific Computing (SYNASC)”, 2017. [9] Lien Po Chun, Qiangfu Zhao, “Product Surface Defect Detection Based on Deep Learning”,” The University of Aizu, Japan “, 2018. [10] [Bijiang Li, Xuejun Zhang, Chan Liang, Tao Wei, “Deep Learning?Excellent Method at Surface Defect Detection of Industrial Products”, “School of Computer, Electronics and Information Guangxi University”, 2019. [11] Gang Lv, Yi Mei, Yining Sun,Yanhong Gu, Fudong Nian,” Comprehensive review of continuous and discrete orthogonal moments in biometrics. Inter-national Journal of Computer Mathematics: Computer Systems Theory”,2015 [12] Zhang, H., Song, A.” A map-based normalized cross correlation algorithm using dynamic template for vision- guided telerobot. Advances in Mechanical Engineering”, 2019 [13] Zhang, G., Kuang, Z,” Hardware Implementation for an Improved Full-Pixel Search Algorithm Based on Normalized Cross Correlation Method. Electronics”, 2020. [14] Chandran, K. R. S., Chandramani, P. V.,” Energy?efficient system?on?chip reconfigurable architecture design for sum of absolute difference computation in motion estimation process of H.265/HEVC video encoding. Concurrency and Compu-tation: [15] Practice and Experience”,2021 [16] Ghaffari, A., Fatemizadeh, E.,” Image Registration Based on Low Rank Matrix: Rank-Regularized SSD. IEEE Transactions on Medical Imaging”, 2022. [17] Zhou, Z., Wang, M., Cao, Y., Su, Y,” CNN Feature-Based Image Copy Detection with Contextual Hash Embedding. Mathematics”,2022. [18] P. M. Manjunath, Gurucharan and M. Dsouza, Shwetha, \"IoT Based Agricultural Robot for Monitoring Plant Health and Environment\", Journal of Emerging Technologies and Innovative Research vol. 6, no. 2, pp. 551-554, Feb 2019 [19] Melwin D Souza, Ananth Prabhu G and Varuna Kumara, A Comprehensive Review on Advances in Deep Learning and Machine Learning for Early Breast Cancer Detection, International Journal of Advanced Research in Engineering and Technology (IJARET), 10 (5), 2019, pp 350-359.
Copyright © 2025 S Venkatalakshmi, Mani Gopalsamy, S. Deepika, V. Manjula, Dheepthi M, Sasikumar R, Ramya S, Pragya Prashant Gupta. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Paper Id : IJRASET66242
Publish Date : 2025-01-02
ISSN : 2321-9653
Publisher Name : IJRASET
DOI Link : Click Here