Artifical intelligence and image processing-based part feeding control in a robot cell
2025
0 views
0 downloads
Advisor: Doç. Dr. Muhammed Kürşad Uçar
Abstract (EN)
In recent years, extensive literature has highlighted the challenges associated with conventional visual inspection systems in industrial settings. Traditional machine vision approaches—such as template matching, Hough transforms, and contour-based techniques—tend to perform adequately under strictly controlled laboratory conditions but often fail when deployed in dynamic environments. Numerous studies in academic literature emphasize the limitations of fixed rule-based systems, particularly under fluctuating lighting, varying object orientations, or the presence of noise and occlusion. These methods typically rely on handcrafted features and are prone to generalization failures. While artificial neural networks (ANNs) and traditional support vector machines (SVMs) have been introduced as alternatives, they too suffer from scalability issues and the need for manual feature extraction. More recent research has turned to convolutional neural networks (CNNs) and deep learning-based object detection architectures. Models such as Faster R-CNN, SSD, and YOLO have been benchmarked across diverse datasets like COCO and PASCAL VOC, demonstrating superior adaptability to real-world variability. However, most of these implementations have been confined to academic or synthetic datasets, with limited validation under real industrial constraints. This research seeks to bridge that gap by delivering a fully implemented, real-time system validated within an operational manufacturing environment. This research addresses a pressing challenge in modern manufacturing—part feeding errors in automated production lines. These errors, particularly in high-precision sectors such as automotive manufacturing, can result in defective assemblies, production halts, and increased costs. To mitigate this issue, an artificial intelligence (AI)-powered real-time visual inspection system was developed and implemented in a real industrial setting. The core of this system is the YOLOv7-tiny model, a fast and lightweight convolutional neural network optimized for edge device deployment. Traditional machine vision systems rely heavily on handcrafted features and fixed rule-based algorithms such as thresholding, edge detection, and contour analysis. While useful in controlled environments, these methods fail under varying illumination, part orientation, dust, vibrations, and background complexity. In contrast, deep learning-based solutions offer better generalization and adaptability by learning hierarchical features directly from data. However, such solutions are rarely applied and validated under real manufacturing conditions due to computational and data constraints. This study fills that gap. YOLOv7-tiny was selected due to its balance of computational efficiency and high detection accuracy. Alternative models, such as SSD and Faster R-CNN, were evaluated; SSD lacked robustness in detecting small or partially occluded objects, while Faster R-CNN demanded higher GPU resources unsuitable for embedded platforms. YOLOv7-tiny's architecture—comprising a CSPDarknet backbone, PANet neck, and decoupled head—enables real-time object detection with minimal latency. A total of 2400 labeled images were collected directly from a functioning production cell. These images included an equal distribution of OK and NG samples. Since NG parts naturally occur less frequently, a series of advanced data augmentation techniques was employed, including color jittering, Gaussian noise, histogram equalization, rotation, scaling, and synthetic NG generation using compositing methods. This not only balanced the dataset but also enhanced robustness against environmental variability. The model was trained using the Darknet framework on a CUDA-enabled workstation. All dependencies, including cuDNN, OpenCV, and NumPy, were installed. GPU acceleration was activated and training parameters—batch size, learning rate, momentum—were carefully tuned. The loss function integrated objectness confidence, bounding box regression, and class prediction. Training was monitored using validation loss and early stopping techniques to prevent overfitting. The final model achieved 98.07% accuracy, 99.89% precision, 98.08% recall, and 98.15% specificity on the test dataset. The trained model was deployed on an NVIDIA Jetson AGX Orin, capable of real-time processing with low energy consumption. An industrial-grade BASLER acA2500-60uc camera was installed to capture images at precise intervals. System integration was achieved via ModBus TCP/IP using an ADAM-6052 module to establish communication between the AI unit and the PLC. A touchscreen interface based on WaveShare technology allowed operators to monitor system output and receive alerts. During production, the PLC triggers the system upon receiving a "go to robot" signal. The AI module captures an image, analyzes part placement, and determines OK or NG status. In the case of an NG detection, the system sends an immediate signal to halt robotic action or notify the operator, thus preventing defective parts from advancing further into the process chain. The entire detection and response cycle completes in less than 200 ms. The system was validated in a challenging industrial environment subject to noise, dust, and lighting fluctuations. It performed robustly across all conditions. Performance was measured using confusion matrices, and in several validation rounds, NG detection achieved 100% sensitivity—crucial for critical failure prevention. Additional preprocessing modules were incorporated to optimize input data quality and enhance detection accuracy. Grayscale conversion reduced color variation and computational complexity. Noise filtering helped to eliminate camera artifacts and background disturbances. Histogram equalization improved contrast in low-light scenarios, making the features more distinguishable. Normalization scaled pixel values into a uniform range, ensuring stable learning. These stages collectively improved the model's consistency and robustness. The model's high performance is quantitatively demonstrated by its evaluation metrics: Accuracy (98.07%): The overall correctness of predictions across all classes.Precision (99.89%): The proportion of parts predicted as OK that were actually OK, minimizing false positives.Recall (98.08%): The percentage of actual OK parts that were correctly identified by the model.Specificity (98.15%): The ability of the model to correctly identify NG parts and minimize false negatives. Each of these metrics contributes uniquely to evaluating the system. In a manufacturing setting, high specificity is critical to ensuring that defective parts (NG) are not overlooked. High precision prevents unnecessary halts for parts that are actually OK. The balance of all metrics demonstrates the system's suitability for real-world deployment. The academic contribution of this study lies in demonstrating that AI-based visual inspection can move beyond the lab and be applied in complex, dynamic manufacturing environments. Unlike prior studies restricted to synthetic or laboratory data, this system was trained, tested, and deployed in the field. It demonstrates how deep learning can be integrated with hardware controllers and existing industrial protocols to create a seamless, intelligent automation solution. This research also introduces a novel strategy for compensating data scarcity—synthetic image generation for underrepresented defect classes. This approach significantly improved model generalization, contributing to consistent performance despite data imbalance. The integration with PLC systems and usage of real-time monitoring makes the solution immediately deployable in Industry 4.0 and 5.0 contexts. In conclusion, this work establishes a full-cycle AI solution from data acquisition to field deployment. It validates YOLOv7-tiny's effectiveness in low-latency, high-accuracy scenarios and underscores the practical feasibility of deploying AI at the edge in industrial environments. The methodology, tools, and results form a valuable reference for future implementations of intelligent visual inspection systems.
Author
Dr. Enesalp Öz
Institution
Sakarya University
Elektronik Mühendisliği Bilim Dalı
How to Cite
Enesalp Öz (Master Thesis). Artifical intelligence and image processing-based part feeding control in a robot cell, 2025, Sakarya University.
Keywords
License
Tüm Hakları Saklıdır
This work is shared under the specified license terms.
More theses from Sakarya University
- Computational investigation of battery materials using density functional theory(2023)
- Haci Ahmed b. Seyyid al-Bigavî and Tarjama al-Awārif al-maārif (sections of 22-43)(2024)
- Synthesis of carbazol substituted 3,4-dihydropyrimidine-2(1h)-thione deri̇vati̇ves(2024)
- Classification of recyclable wastes with deep learning models: A comparison on the effect of dataset size(2024)
- Hermeneutical analysis of sacrifice, sacred violence and scapegoat motifs in Turkish Mythology(2024)
- Novel thio-chalcone substituted metallophthalocyanines: synthesis, characterization and redox behaviour(2018)