원시데이터 수집 시스템
선정목록으로

Automated optical system for quality inspection on reflective parts

간접 관련 모빌리티 소재 · (3) 자동차 인테리어 소재 (4) 카시트 모듈

기본 정보

저자
  1. Rui Nascimento — INESC TEC-Institute for Systems and Computer Engineering Technology and Science, Rua Dr. Roberto Frias, 4200-465, Porto, Portugal|||UTAD - University of Trás-os-Montes and Alto Douro, Quinta de Prados, Vila Real, 5000-801, Portugal
  2. Cláudia Rocha — INESC TEC-Institute for Systems and Computer Engineering Technology and Science, Rua Dr. Roberto Frias, 4200-465, Porto, Portugal|||UTAD - University of Trás-os-Montes and Alto Douro, Quinta de Prados, Vila Real, 5000-801, Portugal
  3. Dibet Garcia Gonzalez — SENTINEL - Sentinelconcept, Lda, N105 247 Piso 1, Sala J1.3, Guimarães, 4835-164, Portugal
  4. Tiago Silva — SENTINEL - Sentinelconcept, Lda, N105 247 Piso 1, Sala J1.3, Guimarães, 4835-164, Portugal
  5. R. Pérez Moreira — SENTINEL - Sentinelconcept, Lda, N105 247 Piso 1, Sala J1.3, Guimarães, 4835-164, Portugal
  6. Manuel F. Silva — INESC TEC-Institute for Systems and Computer Engineering Technology and Science, Rua Dr. Roberto Frias, 4200-465, Porto, Portugal|||ISEP - Polytechnic of Porto, Rua Dr. António Bernardino de Almeida, Porto, 4249-015, Portugal
  7. Vítor Filipe — INESC TEC-Institute for Systems and Computer Engineering Technology and Science, Rua Dr. Roberto Frias, 4200-465, Porto, Portugal|||UTAD - University of Trás-os-Montes and Alto Douro, Quinta de Prados, Vila Real, 5000-801, Portugal
  8. Luís F. Rocha — INESC TEC-Institute for Systems and Computer Engineering Technology and Science, Rua Dr. Roberto Frias, 4200-465, Porto, Portugal
DOI
10.1007/s00170-025-15309-0
저널
The International Journal of Advanced Manufacturing Technology
발행년도
2025
발행기관
Springer Science+Business Media
피인용수
4
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s00170-025-15309-0
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4408239325

평가 내용

관련도
간접 관련
사업분야
모빌리티 소재 · (3) 자동차 인테리어 소재
부 분야
(4) 카시트 모듈
R&D 측면
물성·성능 평가
확신도
0.80
근거 용어
automated optical inspection, defect detection, reflective aluminum parts, automotive industry, YOLOv8
판단 근거
본 논문은 자동차용 알루미늄 부품의 결함(기공 등)을 검출하기 위한 자동 광학 검사(AOI) 시스템 연구를 다루고 있습니다. 이는 코오롱인더스트리의 직접적인 제품 연구는 아니나, 자동차 인테리어 소재(3) 및 카시트 모듈(4) 등 모빌리티 부품 제조 공정의 품질 관리 및 자동화 검사 기술에 응용될 수 있는 간접적인 관련성이 있습니다.
R&D 활용 포인트
자동차 부품 및 모빌리티 소재 생산 라인에서 딥러닝 기반의 비전 검사 시스템을 도입하여 품질 관리 자동화 및 불량률 감소에 활용 가능함.
평가 입력
섹션 본문 47,312자 중 30,032자 발췌

초록

Abstract The growing demand for high-quality components in various industries, particularly in the automotive sector, requires advanced and reliable inspection methods to maintain competitive standards and support innovation. Manual quality inspection tasks are often inefficient and prone to errors due to their repetitive nature and subjectivity, which can lead to attention lapses and operator fatigue. The inspection of reflective aluminum parts presents additional challenges, as uncontrolled reflections and glare can obscure defects and reduce the reliability of conventional vision-based methods. Addressing these challenges requires optimized illumination strategies and robust image processing techniques to enhance defect visibility. This work presents the development of an automated optical inspection system for reflective parts, focusing on components made of high-pressure diecast aluminum used in the automotive industry. The reflective nature of these parts introduces challenges for defect detection, requiring optimized illumination and imaging methods. The system applies deep learning algorithms and uses dome light to achieve uniform illumination, enabling the detection of small defects on reflective surfaces. A collaborative robotic manipulator equipped with a gripper handles the parts during inspection, ensuring precise positioning and repeatability, which improves both the efficiency and effectiveness of the inspection process. A flow execution-based software platform integrates all system components, enabling seamless operation. The system was evaluated with Schmidt Light Metal Group using three custom datasets to detect surface porosities and inner wall defects post-machining. For surface porosity detection, YOLOv8-Mosaic, trained with cropped images to reduce background noise, achieved a recall value of 84.71% and was selected for implementation. Additionally, an endoscopic camera was used in a preliminary study to detect defects within the inner walls of holes. The industrial trials produced promising results, demonstrating the feasibility of implementing a vision-based automated inspection system in various industries. The system improves inspection accuracy and efficiency while reducing material waste and operator fatigue.

본문 48,157자

본문 펼치기
The growing demand for high-quality components in various industries, particularly in the automotive sector, requires advanced and reliable inspection methods to maintain competitive standards and support innovation.Manual quality inspection tasks are often inefficient and prone to errors due to their repetitive nature and subjectivity, which can lead to attention lapses and operator fatigue.The inspection of reflective aluminum parts presents additional challenges, as uncontrolled reflections and glare can obscure defects and reduce the reliability of conventional vision-based methods.Addressing these challenges requires optimized illumination strategies and robust image processing techniques to enhance defect visibility.This work presents the development of an automated optical inspection system for reflective parts, focusing on components made of high-pressure diecast aluminum used in the automotive industry.The reflective nature of these parts introduces challenges for defect detection, requiring optimized illumination and imaging methods.The system applies deep learning algorithms and uses dome light to achieve uniform illumination, enabling the detection of small defects on reflective surfaces.A collaborative robotic manipulator equipped with a gripper handles the parts during inspection, ensuring precise positioning and repeatability, which improves both the efficiency and effectiveness of the inspection process.A flow execution-based software platform integrates all system components, enabling seamless operation.The system was evaluated with Schmidt Light Metal Group using three custom datasets to detect surface porosities and inner wall defects post-machining.For surface porosity detection, YOLOv8-Mosaic, trained with cropped images to reduce background noise, achieved a recall value of 84.71% and was selected for implementation.Additionally, an endoscopic camera was used in a preliminary study to detect defects within the inner walls of holes.The industrial trials produced promising results, demonstrating the feasibility of implementing a vision-based automated inspection system in various industries.The system improves inspection accuracy and efficiency while reducing material waste and operator fatigue. Introduction The manufacturing industry continues to expand, driving economic growth and job creation and fostering research, technological innovation, and value creation.As products become more advanced, the demand for precision and reliability in components has increased.Reflective parts, widely used across various sectors, present unique challenges due to their shiny surfaces, which can complicate the inspection process.The manufacturing process of these parts is susceptible Cláudia D. Rocha, Dibet Garcia Gonzalez, Tiago Silva, Rui Moreira, Manuel F. Silva, Vítor Filipe, and Luís F. Rocha contributed equally to this work Extended author information available on the last page of the article to defects that can compromise product quality, functionality, and reliability.Detecting these defects during production is essential to ensure quality and minimize flaws.Given the competitive nature of the industry, maintaining high product quality is imperative for companies to distinguish themselves from competitors. Introduction Manual visual inspection remains a common approach to quality control in many companies.However, this method is slow, subjective, and prone to errors caused by operator fatigue and lapses in attention, often allowing non-conforming parts to pass through the production process.In line with Industry 5.0 principles, the integration of advanced technologies such as computer vision systems offers a transformative solution for quality inspection.These systems enable faster and more precise inspections, streamline workflows, enhance operator support, and significantly improve overall efficiency, reducing the occurrence of defective parts in the production line [12,13]. Introduction This paper introduces an automated optical inspection (AOI) system designed for quality inspection of reflective parts.Leveraging deep learning algorithms, specifically You Only Look Once version 8 (YOLOv8), the system aims to detect defects in reflective parts.While deep learning algorithms provide advantages, such as the ability to automatically extract and learn complex features from images and detect subtle defects that traditional methods might miss, the accuracy of defect detection in reflective parts largely depends on the lighting system.In this work, a dome lighting setup was used to provide uniform and diffuse illumination, reducing reflections and shadows that could affect image quality.This setup ensures that the captured images are suitable for reliable defect detection.To validate the system, a case study was conducted in collaboration with Schmidt Light Metal Group1 (SLM), a company specializing in manufacturing cast aluminum parts for the automotive industry.The production process at SLM begins with injection molding, followed by precision machining to achieve the required dimensions.After machining, a skilled operator manually inspects each part for porosities. Introduction In response to the challenges posed by SLM's inspection process, the AOI system was tested in a laboratory environment to evaluate its effectiveness in identifying porosities in functional areas of the parts.Additionally, an approach was developed for inspecting the inner surfaces of holes.The objective was to detect porosities within the machined hole walls.This approach addresses a significant inspection challenge and enhances the system's capability to ensure the quality of machined aluminum parts. Introduction The contributions of this work are as follows: Introduction • Development of an AOI system utilizing a robotic manipulator for defect detection in reflective parts based on YOLOv8 • A modular software pipeline that seamlessly integrates different hardware elements and executes several image processing algorithms • An AOI system that can detect the presence of defects not only on the surface of reflective parts but also on the inner walls of holes • Creation and public availability of a dataset containing 302 images from the holes of 24 aluminum parts used in the automotive industry Following this introduction, Section 2 reviews existing research on inspection systems for reflective parts.Section 3 outlines the architecture of the developed AOI system, detailing its components and their intercommunication.In Section 4, the paper presents the study used to test the developed AOI system, explicitly detailing the methodologies employed for detecting porosities on the surface and within the machined holes of the parts.Section 5 discusses the primary results of the system, including the performance of the trained models in detecting porosities, both on the surface and inside the machined holes, and their effectiveness in real-world scenarios.Finally, Section 6 summarizes the main findings and suggests future research directions. Related work Precision and reliability are paramount in the manufacturing industry, necessitating advanced quality inspection processes to ensure the production of defect-free components.Recent advancements in computer vision, particularly deep learning techniques, have substantially enhanced defect detection capabilities.A variety of approaches have been developed to improve detection accuracy, utilizing convolutional neural networks, attention mechanisms, and meta-learning strategies.These methodologies have been successfully applied to identify diverse defects, ranging from surface imperfections to internal structural anomalies, underscoring the transformative role of deep learning in modern quality inspection systems. Related work Jiang et al. [4] introduced max pooling average pooling (MA), MA-YOLO, integrating attention-guided object detection using YOLOv5s to identify defects such as nonconducting areas (NC), scratches, orange peel (OP), dirty points (DP), corner leaks (CL), leakage, jet marks (JM), paint bubbles (PB), craters, and parti-color inconsistencies (PC).Similarly, Li et al. [7] developed a lightweight defect detection model based on YOLOv4, identifying defects such as scratches, flow lines, reveals, NC, corner reveals (CR), orange peel (OP), mottles, and pits.Both approaches leverage YOLO architectures but differ in their specific versions and integration techniques. Related work Ma et al. [8] enhanced YOLOv4 by integrating metalearning, improving the detection of defects including broken edges (BE), pits, dents, back patches (BP), roll-in scratches, rub marks (RM), corrosion, peeling, roll-in metal, and waves.By incorporating advanced learning strategies, this builds on [7] work. Related work Nascimento et al. [12] conducted a comparative study on various deep learning models such as Faster R-CNN, Reti-naNet, YOLOv7, and YOLOv7-tiny for detecting filings in casting aluminum parts.Extending this research, Nascimento et al. [11] developed a comprehensive inspection system for quality assessment in casting aluminum parts.This system uses a robotic approach and leverages YOLOv8 and Mask R-CNN for filing detection and hole inspection, incorporating template-matching and blob detection. Related work Jung et al. [6] proposed Anomaly Candidate Extraction and Detection (ACED), using high-resolution image analysis and convolutional neural network (CNN) ensembles to detect and classify minute defects on cast products.Wang et al. [20] developed a model with hierarchical attention and feature fusion for detecting defects such as dirty spots (DS), convex powder (CP), orange peel (OP), lacquer bubbles (LB), bruises, jet streams (JS), scratches, and NC.Both approaches use advanced neural network architectures for high-resolution defect detection. Related work Zhang et al. [22] used the DEtection TRansformer (DETR) algorithm to detect casting defects like sand inclusions and notches.This approach differs from the YOLO-based methods but shares the goal of improving detection accuracy through advanced algorithms.Pérez et al. [15] focused on automotive cast iron inspection using cloud-based platforms and 3D point-cloud surface comparison for defect detection. Related work Hai et al. [3] presented a deep learning approach for detecting defects in X-ray images of aluminum castings, specifically targeting blowholes.This method parallels the defect detection goals of other studies.Ye et al. [21] introduced feature extraction fusion and dynamic label assignment within Faster R-CNN to detect defects such as porosity, fractures, cracks, wear, unevenness on aluminum sheet surfaces, pinholes, abrasions, soiling, and folds in CAS magnetic ties, aligning with the trend of using enhanced feature extraction and classification techniques. Related work Cardellicchio et al. [2] developed a method for defect detection using laser profilometry and lightweight machine learning algorithms, identifying defects like flat beads (FB), seam breakthroughs (SB), irregular seam heights (ISH), mesh defects (MD), slight porosity, joint breakthroughs (JB), seam deviations (SD), uneven welding (UW), and spatter.This approach uses profilometry and lightweight algorithms, contributing to industrial quality control through innovative data processing techniques. Related work To the best of the authors' knowledge and based on the reviewed literature, the proposed work introduces a novel AOI system that enhances conventional image acquisition and processing methods by integrating deep learning-based defect detection and robotic automation.These robotic capabilities handle and transport parts to the inspection location and subsequently sort them based on assessment results.Building on the developments initiated by [11], this work extends previous efforts by adapting the system to inspect different part geometries and detect new types of defects, ensuring a more comprehensive quality control process. Related work A gap identified in existing quality inspection systems is the detection of porosities inside machined holes.Traditional inspection methods often face challenges due to lighting artifacts, occlusions, and accessibility constraints, making it difficult to reliably identify defects in internal surfaces.While previous studies have focused on surface defect detection in casting aluminum parts [12], few approaches have been proposed to address porosity inspection within inner geometries.The proposed AOI system tackles this issue by integrating a high-resolution endoscopic camera and employing deep learning models for automated defect detection, allowing for a more detailed and consistent analysis of internal features. Related work Additionally, existing computer vision-based quality inspection systems often struggle with complex part geometries and inconsistent defect appearances, requiring manual adjustments or highly controlled conditions.The integration of YOLO-based deep learning models into the proposed system enables flexible and robust defect detection, leveraging advanced feature extraction and spatial localization techniques.This work contributes to bridging the gap between surface and internal defect detection, providing an integrated approach to industrial quality control that aligns with realworld manufacturing requirements. Automated optical inspection This section provides a comprehensive overview of the AOI system, designed for robust defect detection in industrial manufacturing.The system integrates hardware components such as the Universal Robot UR5 manipulator and Robotiq 2F-85 gripper, as discussed in Sect.3.1.1,and the Mako G-503B camera with VL-D430W dome light, as highlighted in Sect.3.1.2.The Sentinel Vision software framework, also covered in Sect.3.1.3,coordinates and controls these components.Additionally, Sect.3.2 presents a process flow example, illustrating the operational sequence from part handling to defect analysis and sorting, underscoring the system's adaptability and efficiency in diverse manufacturing environments. Architecture The architecture block diagram depicted in Fig. 1 presents the architecture of the AOI system, detailing all components and the various communication protocols employed between them. Architecture A Universal Robot UR5 collaborative robotic manipulator, equipped with the Robotiq 2F-85 two-finger gripper, is employed to transport parts to designated inspection locations.The Mako G-503B camera captures high-resolution grayscale images during the inspection process.To address the reflective nature of casting aluminum parts, a dome light was selected to enhance visibility and reduce reflections and shadows, ensuring reliable inspection results. Architecture The communication architecture of the system orchestrates interactions between various components.The software communicates with the robotic manipulator using TCP/IP for position data and serial communication for gripper control.The manipulator, in turn, communicates directly with the gripper via serial communication.Additionally, the software communicates with the camera using GigE protocol for image acquisition and transmission.Finally, the software controls the lighting system via RS232 communication, toggling the light on or off as needed. Architecture The modular design of the AOI system enables seamless adaptation to diverse manufacturing environments and inspection requirements.The system can be tailored to specific production processes and quality control needs by offering flexibility in hardware and software component selection and configuration.This modularity enhances operational efficiency and future-proofs the system against evolving manufacturing trends and technological advancements.It is a versatile and scalable solution for automated optical inspection across various industry sectors. Part handling The robotic handling system comprises the Universal Robot UR5 collaborative manipulator and the Robotiq 2F-85 twofinger gripper.This setup enables precise pick-and-place operations, facilitating the efficient transportation of parts to designated inspection locations.Detailed specifications of the UR5 and Robotiq 2F-85 gripper can be found in Tables 1 and 2, respectively.The UR5 offers capabilities such as a 5.00 kg payload capacity, an 850 mm reach, a speed of 180 • /s, and a repeatability of ±0.100 mm [19].In contrast, the Robotiq 2F-85 gripper features an 85 mm stroke, a closing speed range of 20-150 mm/s, and a grip force range of 20-235 N [16], ensuring reliable handling of components throughout the inspection process.This integration of a collaborative robotic manipulator enhances the efficiency of the inspection process by reducing the reliance on manual handling, which is prone to variability and inconsistencies.The robotic system ensures repeatability and precision in part positioning, optimizing the overall workflow and enabling seamless integration with the automated optical inspection system. Part handling To control the UR5 arm manipulator, URScript programming language was utilized via a TCP/IP socket connection on port 3002.A kinesthetic teaching-based programming by demonstration method was employed, allowing users to physically guide the robot to the desired positions of the parts.This approach is intuitive and does not require prior knowledge of robotics or additional hardware, making it an accessible and customized programming method for specific case studies [17] Image acquisition The MAKO G-503B camera, detailed in Table 3, is integrated into the AOI system for high-resolution imaging acquisition.It features a Complementary Metal-Oxide-Semiconductor (CMOS) sensor with a resolution of 2592 × 1944 pixels (5 To address the challenges posed by the reflective characteristics of parts during image acquisition, the AOI system employs the VL-D430W dome light, as detailed in Table 4.This dome light provides uniform white illumination over a circular area with a 430 mm diameter, effectively reducing reflections and shadows that could otherwise compromise image quality and inspection accuracy.This design ensures diffuse and homogeneous illumination across the part, minimizing glare and bright spots caused by direct light incidence, and enhancing the visibility of fine surface details.These features are particularly important for the accurate detection of defects on reflective aluminum casting components. Image acquisition Furthermore, the findings from Nascimento et al. [12] reinforce the importance of proper illumination in defect detection, demonstrating that controlled lighting conditions significantly improve the performance of deep learningbased inspection systems.The results presented in the study validate the choice of dome lighting as an optimal solution, as it enhances image quality, reduces noise caused by reflections, and improves defect visibility.The VL-D430W dome light was selected based on these considerations to ensure reliable and consistent defect detection across different surface conditions.This lighting solution is critical for maintaining consistent inspection conditions, as variations in light intensity or direction can create artifacts that interfere with the reliability of image-based analysis.With a maximum power consumption of 24 V and 8.6 W [9], the VL-D430W dome light combines energy efficiency with high performance, making it an optimal choice for applications requiring precision in the inspection of reflective parts. Image acquisition Emerging technologies such as adaptive lighting control, polarized illumination, and multi-spectral imaging could be explored to further enhance the application of dome lighting.Adaptive lighting systems, equipped with real-time feedback mechanisms, could dynamically adjust intensity based on the reflectivity of the inspected part, optimizing exposure conditions.The integration of polarized lighting would help reduce unwanted reflections, improving defect visibility on highly reflective surfaces.Additionally, multi-spectral and hyperspectral imaging could allow for the differentiation of material properties and surface anomalies that may not be detectable under standard white lighting.Future work could also investigate the use of computational photography techniques, such as high dynamic range (HDR) imaging, to further enhance contrast and defect detection capabilities.These advancements would complement the existing dome lighting setup, improving robustness and adaptability in complex inspection scenarios. Sentinel software The AOI system uses Sentinel Vision software2 to manage the inspection process.Developed in C++, this software integrates frameworks and libraries such as Qt, OpenCV, Halcon, and Nvidia CUDA Toolkit.It ensures robust communication and synchronization of various components. Sentinel software The system operates on a flow execution model managed by a multi-threaded core component.This core coordinates the execution sequence by linking individual blocks, each tasked with specific functions.These blocks manage the operational flow, facilitating transitions between different stages of the inspection process. Sentinel software Each block features methods such as Initialize, Iterate, and Log.Image processing blocks, which are crucial to the system, receive input images and include methods like getROI to optimize computational resources by excluding background areas.Communication blocks, including WriteTCP/IP, ReadTCP/IP, and SerialPort, enable interactions with external devices. Sentinel software The system includes blocks for configuring and acquiring images from GigE-compliant matrix cameras and for defect detection using a pre-trained YOLOv8 model, allowing realtime analysis of captured images.General-purpose blocks like Formula and DataValidation support flexibility and validation of script variables. Sentinel software Control of the execution flow is managed by blocks such as If, Join, WaitCondition, and Sleep, which handle conditional branching, merging, and synchronization of processes.This modular design ensures seamless execution and accurate defect detection.The modular architecture allows for customization and adaptation to various inspection requirements and operational contexts in manufacturing environments, highlighting the system's versatility and scalability.Figure 2 illustrates an example implementation of the execution flow, showcasing the constituent blocks used. Process flow of the AOI system The sequence diagram depicted in Fig. 3 offers a conceptual overview of the AOI system's operation.Within this architecture, the inspection process is initiated by the operator's command, prompting the software to coordinate the pick-and-place action and subsequent image capture.Once the part is correctly positioned, the lighting system, responsible for controlling the dome light to ensure proper illumination, is activated.The vision container then activates the camera to capture an image and loads the trained deep learning model to perform inference on the image and detect defects. Process flow of the AOI system Based on the inspection results, the software directs the sorting of parts into designated containers and provides the operator with an image highlighting any detected defects for further action.It is noteworthy that while this sequence Fig. 3 Example sequence diagram of the AOI system operation illustrates a common operational scenario, the AOI system's adaptability allows for customized configurations to meet various inspection needs and manufacturing environments. Industrial experiment This section presents the use study employed to test the developed AOI system introduced in Section 3. Section 4.1 outlines the specific problem addressed by the use case.Section 4.2 details the porosity detection process, including the datasets used to train the model for identifying surface porosities.Section 4.3 explains the process for detecting porosities inside machined holes, describing the use of an endoscopic camera to capture images and the dataset utilized to train the model. Problem description The production process comprises two primary operations: casting and machining.Casting involves injecting molten aluminum into molds under high pressure.These molds, varying in size and complexity, are assembled within a cold chamber injection machine as part of the production cell.Subsequently, the castings undergo the trimming toll in a press and deburring in a shot blasting equipment before proceeding to the machining phase.During machining, various operations are performed, including face milling and drilling threaded and calibrated holes, among others. Problem description Following machining, the components undergo inspection to identify any non-conformities before shipment to customers.These non-conformities can affect the functionality and structural integrity of the part, reducing its lifetime.Currently, the inspection process relies heavily on manual procedures, which are repetitive and complex, leading to potential errors. Problem description Considering the challenges, the objective is to validate the developed AOI system to facilitate the operator's tasks during inspection.Among the potential non-conformities, the most significant and intricate to detect for operators is the occurrence of porosity in parts after the machining process.Figure 4 displays the selected parts based on their critical significance within the company's production process.Figures 5 and 6 present the critical points and areas where the presence of porosity could have the most significant impact.These areas are the focal points where the developed system will aim to detect porosities. Porosity detection For this work, a custom dataset was created containing images of selected inspection parts with and without porosity.The dataset comprises 400 images with a resolution of 2592 × 1944 pixels, manually annotated using the Kaimaker platform [18].The porosity within the images exhibits varying lengths, shapes, and reflective characteristics.Figure 8 showcases sample images from this dataset with porosities. Porosity detection To enhance dataset diversity, images were acquired from different orientations.Subsequently, the dataset was randomly split into three subsets: training, validation, and testing, representing 80%, 10%, and 10% of the dataset, respectively. Porosity detection The primary dataset was used to train the models to detect porosities in a broad range of conditions.By including entire images with diverse examples of porosities and varying reflective properties, this dataset ensured the models A secondary dataset was generated using cropped images from the original dataset, focusing on both defective and nondefective parts.Unlike the primary dataset, this secondary dataset contained fewer images, aimed at minimizing the inclusion of background images without defects.Specifically, only 10% of the background images were incorporated for training purposes.The mosaic dataset comprised a total of 352 images, divided into three subsets: training, validation, and testing, representing 80%, 10%, and 10% of the dataset, respectively.The secondary dataset was specifically utilized to train models to focus on regions of interest containing porosities.By cropping the images, defects appeared more prominent, reducing the influence of irrelevant background information and improving recall by minimizing false negatives. Porosity detection The porosity detection process focuses on detecting and identifying porosities within the areas defined in Figs. 5 and 6.The YOLOv8 model was selected based on insights from prior work, including Nascimento et al. [12], which conducted a comparative analysis of deep learning models such as Faster R-CNN, RetinaNet, YOLOv7, and YOLOv7-tiny for detecting defects in casting aluminum parts.That study prioritized recall as a key metric to ensure that defective parts were correctly identified, selecting YOLOv7 as the most suitable model due to its high recall performance. Porosity detection Subsequently, further evaluations, currently under review [11], expanded on these findings by comparing YOLOv8 variants and Mask R-CNN for defect detection.The results demonstrated that YOLOv8 models, particularly YOLOv8sseg, achieved superior recall rates of up to 98.10%, reinforcing the importance of recall in minimizing false negatives.Given that YOLOv8 was the latest iteration of the YOLO architecture at the time of implementation, and considering its improvements in detection accuracy and inference speed, it was selected for this study.The architecture was further adapted and optimized to address the specific challenge of porosity detection, leveraging its demonstrated capability for high recall and precision. Porosity detection Initially, the models underwent training without preprocessing techniques or data augmentation, except for grayscale conversion and resizing images to 1600×1600 pixels, allowing assessment of their performance in porosity detection. Porosity detection Subsequently, preprocessing techniques such as contrast adjustment and tiling were employed on both datasets, especially beneficial for detecting small objects [14].Data augmentation techniques were applied, including flipping (horizontal and vertical), rotations (±15 • , ±90 • ), cropping, shear, saturation adjustments, brightness modifications, and adding noise to images.These techniques aimed to augment the datasets and improve the robustness of the models, enabling them to perform effectively under different conditions and variations in defect appearance. Porosity detection The emphasis was on minimizing false negatives (FN), representing failure to detect porosity, with less concern for false positives (FP), indicating incorrect detections.Therefore, the model achieving the highest recall score among all models was considered most suitable for this study. Endoscopic camera The detection of porosities inside the machined holes was also studied, aiming to assess the viability of detecting porosities within these confined spaces.Due to the small size and challenging inspection conditions of the holes, an endoscopic camera, SF-C16USB-D2.0,shown in Fig. 9, was chosen to capture images of the inner walls.This endoscopic camera, measuring 10 mm in length and 2 mm in diameter, features a field of view of 120 • and has an integrated light at its tip.It uses a 400 × 400 pixel image sensor and communicates via a Universal Serial Bus (USB) interface.To ensure highquality images, the camera was mounted on a stable support, providing steady and clear visuals of the hole walls.Multiple images were acquired at various depths to determine the optimal depths for capturing clear images for porosity detection.Figure 10 illustrates examples of these images taken with the endoscopic camera. Endoscopic camera A custom dataset with 302 images was built, with images from 24 parts.Table 5 summarizes the image count by part obtained.This set of images is publicly available at the following link. 3inally, the annotation of the dataset presented in Table 5 produced 238 defective images, with 813 annotated defects, and 64 images without defects.The images were separated into three datasets: training, validation, and testing, as presented in Table 6, and a YOLOv8 model was trained during 200 epochs using the Kaimaker platform [18]. Endoscopic camera The choice of YOLOv8 for porosity detection inside machined holes was influenced by its architectural improvements and the demonstrated effectiveness of previous YOLO models in defect detection tasks.The study by Nascimento et al. [12] highlighted the advantages of YOLOv7, which achieved superior recall in detecting defects in casting alu- [5] enhances feature propagation, while its decoupled head architecture improves object localization, which is particularly relevant for detecting defects in machined hole surfaces.Furthermore, its anchor-free detection mechanisms and optimized training strategies, such as Mosaic augmentation and auto-anchor tuning, allow for better adaptation to variations in lighting conditions and defect appearances.These characteristics make YOLOv8 a robust solution for automated optical inspection (AOI) in industrial applications, improving both detection accuracy and real-time processing capabilities. Results and discussion This section provides a comprehensive analysis of the results obtained from the training and evaluation of deep learning models for porosity detection in aluminum casting components.It covers three main aspects of the AOI system performance.Section 5.1 presents the training results of the YOLOv8 model for porosity detection on machined parts under different scenarios.Section 5.2 discusses the system's performance detecting porosities in machined parts, validating the models in industrial scenarios.Section 5.3 focuses on the training outcome for detecting porosities within machined holes. Results and discussion The training for both porosity detection and machined hole inspection was conducted using a computer equipped with Ubuntu 20.04, a 12th Generation Intel Core i7 CPU operating at 3.5 GHz, a NVIDIA RTX3060 GPU with 6 GB of memory, and CUDA 12.2 for accelerated computation. Porosity detection models training results Table 7 presents the training results for porosity detection models.The first two models, YOLOv8 without augmentation and YOLOv8 with augmentation, were trained using the dataset comprising entire images, as described in Section 4.2. Porosity detection models training results On the other hand, YOLOv8-Mosaic utilized the dataset with mosaic images, also described in the same section.Evaluations were conducted on a consistent test dataset comprising 40 images, with and without background.Notably, YOLOv8 with augmentation exhibited the highest precision and recall, at 89.10% and 79.00%, respectively, resulting in the best F1score of 83.75%.Additionally, YOLOv8 with augmentation achieved the highest mean average precision (mAP) at 0.5, with a score of 79.00%, while YOLOv8-Mosaic attained the highest mAP at 0.5:0.95,reaching 65.60 Porosity detection models training results The use of cropped images in YOLOv8-Mosaic, generated through mosaic augmentation, reduced the influence of irrelevant background information and enhanced the prominence of defects within the image.By presenting defects at a larger scale relative to the cropped image, the model was better able to focus on relevant features, reducing the likelihood of false negatives.This approach contributed to the higher recall achieved by YOLOv8-Mosaic, as it increased the model's ability to correctly identify parts with porosities.Concerning inference times, YOLOv8-Mosaic demonstrated the fastest inference time at 8.7 ms.However, it is noteworthy that all models met the speed requirement for this study, rendering time a non-rejection criterion. Performance evaluation After training the models, each model was integrated into the software to assess its performance in detecting porosity within real-life scenarios involving parts.For the evaluation, a total of 60 parts were used, comprising 30 parts of type A and 30 parts of type B. These parts were subjected to the inspection process to analyze the precision and recall of the porosity detection by the trained models.Table 8 summarizes the system porosities detection in the parts using the different trained models.Among the evaluated models, YOLOv8-Mosaic demonstrated superior performance, with the highest recall rate of 84.71%, significantly outperforming YOLOv8 without augmentation and YOLOv8 with augmentation, which achieved recall rates of 48.44% and 58.97%, respectively.While YOLOv8 with augmentation had the highest precision at 98.77%, YOLOv8-Mosaic provided a balanced performance with a precision of 95.64% and the best F1-score of 89.85%.Despite YOLOv8 without augmentation showing a high precision of 96.88%, its recall was notably lower, resulting in the lowest F1-score of 64.58%.As mentioned in Section 4.2, the system's primary goal was to achieve the highest recall possible.Therefore, YOLOv8-Mosaic is identified as the most effective model for this application, offering an optimal balance between recall and overall performance metrics.Additionally, the rapid performance of the system during the inspection process was validated in a laboratory setup at the Industry and Innovation Lab (iilab) of INESC TEC, I, with each part being inspected in less than 1 s.This demonstrates the system's potential to handle real-life scenarios efficiently while maintaining high accuracy.Compared to manual inspection, which is often slower and more prone to variability, the automated system significantly improves speed.This operational efficiency aligns with the requirements of high-throughput industrial environments, suggesting its applicability in real-world production settings. Performance evaluation A video demonstrating the system performing quality inspection of parts is available at the following link. 4This video shows the robotic handling and transport of parts, as well as the detection of defects using the AOI system. Endoscopy results The YOLOv8 model underwent training using the dataset outlined in Section 4.3, employing an early stopping method to prevent model overfitting, which halted training at epoch 168.The results of porosity detection on the hole's inner walls are presented in Table 9.Despite the results falling short, with precision and recall rates of 54.15% and 37.63% respectively, this outcome was anticipated due to the limited size of the dataset and the preliminary nature of the study, which did not include a comprehensive comparison of lighting systems and cameras to determine their suitability for this task.These findings suggest that YOLOv8 shows potential for detecting porosities in the hole's inner walls.However, other models may also be suitable for this task.Conducting further research, including a comparative evaluation of different models and configurations, could be beneficial for identifying the most effective approach to detect defects in this context.Nonetheless, the results suggest that YOLOv8 holds promise for detecting porosities in hole inner walls.Further investigation is warranted to accurately define what constitutes a defect in the hole's inner walls. Endoscopy results As illustrated in Fig. 11, certain patterns, highlighted in red, may emerge in non-machined parts of the hole's inner walls, resembling porosities but not representing defects.These patterns pose challenges to the model's prediction accuracy.The model prediction results are highlighted in green in the second row of Fig. 11.Upon analysis of these images, it becomes evident that the model can distinguish between defects in the area of interest and other patterns in non-machined parts of the hole's inner walls. Endoscopy results In Fig. 12, the first row displays a sample of the model's predictions on the test dataset, with defects located in the machined area.Additionally, the second row of Fig. 12 presents the class activation map generated by the model using the EigenCam algorithm [10], which is derived from the model's principal components analysis. Endoscopy results By observing Fig. 12 second row, it is evident that the model's predictions are based on the areas containing defects, specifically located in the machined spaces.This demonstrates the model's capability to learn visual features that accurately describe the defects.However, the use of white lighting can sometimes saturate the images acquired mainly in machined areas, posing challenges in defect detection.To address this issue, a complex strategy could involve implementing a segmentation step that divides the image into two areas: machined and background.This segmentation strategy can help reduce false positives. Endoscopy results Considering these challenges, this dataset is made available to the community to encourage further research on this topic, particularly focusing on using an endoscopic camera to detect defects in machined parts. Conclusions and future work Maintaining high product quality is crucial for companies to distinguish themselves from competitors.With increasing consumer demand for quality products, it becomes imperative that production line inspection methods effectively meet these expectations.This paper introduces an AOI system to evaluate the quality of reflective parts, capable of handling parts with distinct shapes, sizes, and weights. Conclusions and future work During laboratory experiments, the AOI system demonstrated satisfactory results in inspecting reflective cast aluminum parts.It integrates automation capabilities through the Sentinel software, performing quality inspections on distinct parts.The system autonomously transports parts to the inspection location and activates the lighting system, configures camera settings for optimal image acquisition, and conducts real-time image analysis.The Sentinel software enhances the inspection process's intuitiveness and user-friendliness, visually representing inspection results.Practically, the system can be placed at an inspection post where parts are checked after machining.Rejected parts can be recycled and turned into ingots, reducing material waste and demonstrating cost and sustainability benefits.Additionally, the versatility of the Sentinel software allows it to be utilized in various environments and types of inspections, adapting to the dynamic needs of the industry. Conclusions and future work The development of the AOI system benefited from a collaboration with SLM, which provided access to representative parts, including cast aluminum components used in the automotive industry.This collaboration also helped define key inspection requirements, such as identifying surface porosities and defects typically found in machined holes and determining the likely locations of these imperfections on the parts.These inputs ensured that the system design and dataset creation were aligned with practical industrial needs. Conclusions and future work Additionally, data from the AOI system was used to evaluate model selection and system performance.The results confirmed that inspection times remained within acceptable operational limits, supporting the system's feasibility for real-time defect detection.The use of the sliding window approach (YOLOv8-Mosaic) led to an increase in recall (84.71%) while also reducing inference time compared to other YOLOv8 configurations.By processing smaller image sections separately, the model reduced computational demand while maintaining detection accuracy. Conclusions and future work The AOI system also demonstrated effective integration of all components, ensuring a functional workflow between image acquisition, defect detection, and decision-making processes.This integration supported consistent defect identification, reinforcing the system's applicability to industrial environments. Conclusions and future work To test the developed AOI system, a study was conducted with SLM, focusing on detecting porosities on the surface of the parts and in the inner holes.Three custom datasets were created: two focused on surface inspection and one on inner hole inspection.The first dataset comprises 400 images of parts A and B, the second includes 352 cropped images of 640 × 640 pixels to minimize background noise, and the third dataset consists of 302 images designed to train the model to detect porosities in the inner walls of machined holes.This third dataset is available to the scientific community to encourage further research. Conclusions and future work For porosity detection on surface areas, YOLOv8 was trained using the two surface datasets to evaluate its perfor-mance, emphasizing the minimization of false negatives.The model with the highest recall, YOLOv8-Mosaic, achieved 84.71% recall.This high recall was attributed to the cropped images and minimized background noise, resulting in a more consistent dataset with good resolution of small porosities.Consequently, YOLOv8-Mosaic was chosen for implementation in the AOI system.For inspecting inner surface holes, an endoscopic camera was used.Results presented in Sect.5.3 indicate that YOLOv8 is suitable for this type of inspection. Conclusions and future work The insights gained from using the YOLOv8 model in this study will be applied to both future research and industrial applications.Future research will focus on expanding the dataset to include a broader range of defects beyond porosities, such as scratches, cracks, and deformations, to enhance the model's generalization capability.Additionally, optimization techniques such as knowledge distillation and quantization will be explored to improve inference speed and reduce computational requirements, facilitating real-time deployment in resource-constrained environments.Further enhancements will also investigate localized image analysis techniques, including adaptive tiling and feature-aware cropping, to refine detection performance and reduce background noise. Conclusions and future work From a practical perspective, the YOLOv8 model can be integrated into real-world industrial quality inspection systems to improve defect detection reliability and streamline production workflows.The system could be deployed in automated production lines, reducing reliance on manual inspections and improving efficiency.Additionally, adaptive lighting strategies and multi-spectral imaging techniques will be explored to further enhance detection accuracy, particularly for reflective surfaces.These advancements will contribute to the continuous improvement of automated optical inspection (AOI) systems, ensuring higher precision, consistency, and scalability in defect detection for casting aluminum parts and other industrial applications. Conclusions and future work Future developments for surface porosity detection can benefit from extended training with larger datasets to enhance accuracy and enable the identification of various defects, such as scratches, dents, and cracks.For inspecting inner hole surfaces, further studies could expand the dataset and explore different lighting systems to improve image quality and reduce noise.Integrating these enhancements with the current AOI system would not only enhance its defect detection capabilities but also increase productivity and efficiency for companies by reducing inspection times and minimizing the risk of human error.Finally, plans are in place to deploy this system on the shop floor to assess its performance in an industrial environment, further demonstrating its practical benefits in real-world applications. Fig. 1 Fig. 1 Block diagram of the inspection system architecture Fig. 2 Fig. 2 Example of an implementation of the execution flow Fig. 2 Figure 4 a and b represent part A's front and back views, respectively, and Fig. 4 c and d represent part B's front and back views, respectively. Fig. 4 Fig. 5 Figure 7 Fig. 4 Selected parts: a front side of part A, b back side of part A, c front side of part B, and d back side of part B Fig. 6 Fig. 7 Fig. 8 Fig. 9 Fig. 6 Defects location in part B Fig. 10 Fig. 10 Example of images acquired by the endoscopic camera at different depths Fig. 11 Fig. 12 Fig. 11 Holes wall patterns examples: non-defects which are similar to defects highlighted with red bounding boxes (first row) and model detections represented with green bounding boxes (second row) Table 1 Specifications of the Universal Robot UR5 Table 2 Specifications of the Robotiq 2f-85 Table 3 Specifications of the MAKO G-503B Table 4 Specifications of the dome light VL-D430W Table 5 Endoscopic dataset Table 6 Dataset division for train purpose Table 7 Comparison results of the different trained models in surface porosities detection Table 8 System performance evaluation with the different trained surface porosity detection models Table 9 YOLOv8 trained model performance in holes porosities detection

섹션 본문 88문단 · 46,486자

(제목 없음)

1The growing demand for high-quality components in various industries, particularly in the automotive sector, requires advanced and reliable inspection methods to maintain competitive standards and support innovation.Manual quality inspection tasks are often inefficient and prone to errors due to their repetitive nature and subjectivity, which can lead to attention lapses and operator fatigue.The inspection of reflective aluminum parts presents additional challenges, as uncontrolled reflections and glare can obscure defects and reduce the reliability of conventional vision-based methods.Addressing these challenges requires optimized illumination strategies and robust image processing techniques to enhance defect visibility.This work presents the development of an automated optical inspection system for reflective parts, focusing on components made of high-pressure diecast aluminum used in the automotive industry.The reflective nature of these parts introduces challenges for defect detection, requiring optimized illumination and imaging methods.The system applies deep learning algorithms and uses dome light to achieve uniform illumination, enabling the detection of small defects on reflective surfaces.A collaborative robotic manipulator equipped with a gripper handles the parts during inspection, ensuring precise positioning and repeatability, which improves both the efficiency and effectiveness of the inspection process.A flow execution-based software platform integrates all system components, enabling seamless operation.The system was evaluated with Schmidt Light Metal Group using three custom datasets to detect surface porosities and inner wall defects post-machining.For surface porosity detection, YOLOv8-Mosaic, trained with cropped images to reduce background noise, achieved a recall value of 84.71% and was selected for implementation.Additionally, an endoscopic camera was used in a preliminary study to detect defects within the inner walls of holes.The industrial trials produced promising results, demonstrating the feasibility of implementing a vision-based automated inspection system in various industries.The system improves inspection accuracy and efficiency while reducing material waste and operator fatigue.

Introduction

2The manufacturing industry continues to expand, driving economic growth and job creation and fostering research, technological innovation, and value creation.As products become more advanced, the demand for precision and reliability in components has increased.Reflective parts, widely used across various sectors, present unique challenges due to their shiny surfaces, which can complicate the inspection process.The manufacturing process of these parts is susceptible Cláudia D. Rocha, Dibet Garcia Gonzalez, Tiago Silva, Rui Moreira, Manuel F. Silva, Vítor Filipe, and Luís F. Rocha contributed equally to this work Extended author information available on the last page of the article to defects that can compromise product quality, functionality, and reliability.Detecting these defects during production is essential to ensure quality and minimize flaws.Given the competitive nature of the industry, maintaining high product quality is imperative for companies to distinguish themselves from competitors.

3Manual visual inspection remains a common approach to quality control in many companies.However, this method is slow, subjective, and prone to errors caused by operator fatigue and lapses in attention, often allowing non-conforming parts to pass through the production process.In line with Industry 5.0 principles, the integration of advanced technologies such as computer vision systems offers a transformative solution for quality inspection.These systems enable faster and more precise inspections, streamline workflows, enhance operator support, and significantly improve overall efficiency, reducing the occurrence of defective parts in the production line [12,13].

4This paper introduces an automated optical inspection (AOI) system designed for quality inspection of reflective parts.Leveraging deep learning algorithms, specifically You Only Look Once version 8 (YOLOv8), the system aims to detect defects in reflective parts.While deep learning algorithms provide advantages, such as the ability to automatically extract and learn complex features from images and detect subtle defects that traditional methods might miss, the accuracy of defect detection in reflective parts largely depends on the lighting system.In this work, a dome lighting setup was used to provide uniform and diffuse illumination, reducing reflections and shadows that could affect image quality.This setup ensures that the captured images are suitable for reliable defect detection.To validate the system, a case study was conducted in collaboration with Schmidt Light Metal Group1 (SLM), a company specializing in manufacturing cast aluminum parts for the automotive industry.The production process at SLM begins with injection molding, followed by precision machining to achieve the required dimensions.After machining, a skilled operator manually inspects each part for porosities.

5In response to the challenges posed by SLM's inspection process, the AOI system was tested in a laboratory environment to evaluate its effectiveness in identifying porosities in functional areas of the parts.Additionally, an approach was developed for inspecting the inner surfaces of holes.The objective was to detect porosities within the machined hole walls.This approach addresses a significant inspection challenge and enhances the system's capability to ensure the quality of machined aluminum parts.

6The contributions of this work are as follows:

7• Development of an AOI system utilizing a robotic manipulator for defect detection in reflective parts based on YOLOv8 • A modular software pipeline that seamlessly integrates different hardware elements and executes several image processing algorithms • An AOI system that can detect the presence of defects not only on the surface of reflective parts but also on the inner walls of holes • Creation and public availability of a dataset containing 302 images from the holes of 24 aluminum parts used in the automotive industry Following this introduction, Section 2 reviews existing research on inspection systems for reflective parts.Section 3 outlines the architecture of the developed AOI system, detailing its components and their intercommunication.In Section 4, the paper presents the study used to test the developed AOI system, explicitly detailing the methodologies employed for detecting porosities on the surface and within the machined holes of the parts.Section 5 discusses the primary results of the system, including the performance of the trained models in detecting porosities, both on the surface and inside the machined holes, and their effectiveness in real-world scenarios.Finally, Section 6 summarizes the main findings and suggests future research directions.

Related work

8Precision and reliability are paramount in the manufacturing industry, necessitating advanced quality inspection processes to ensure the production of defect-free components.Recent advancements in computer vision, particularly deep learning techniques, have substantially enhanced defect detection capabilities.A variety of approaches have been developed to improve detection accuracy, utilizing convolutional neural networks, attention mechanisms, and meta-learning strategies.These methodologies have been successfully applied to identify diverse defects, ranging from surface imperfections to internal structural anomalies, underscoring the transformative role of deep learning in modern quality inspection systems.

9Jiang et al. [4] introduced max pooling average pooling (MA), MA-YOLO, integrating attention-guided object detection using YOLOv5s to identify defects such as nonconducting areas (NC), scratches, orange peel (OP), dirty points (DP), corner leaks (CL), leakage, jet marks (JM), paint bubbles (PB), craters, and parti-color inconsistencies (PC).Similarly, Li et al. [7] developed a lightweight defect detection model based on YOLOv4, identifying defects such as scratches, flow lines, reveals, NC, corner reveals (CR), orange peel (OP), mottles, and pits.Both approaches leverage YOLO architectures but differ in their specific versions and integration techniques.

10Ma et al. [8] enhanced YOLOv4 by integrating metalearning, improving the detection of defects including broken edges (BE), pits, dents, back patches (BP), roll-in scratches, rub marks (RM), corrosion, peeling, roll-in metal, and waves.By incorporating advanced learning strategies, this builds on [7] work.

11Nascimento et al. [12] conducted a comparative study on various deep learning models such as Faster R-CNN, Reti-naNet, YOLOv7, and YOLOv7-tiny for detecting filings in casting aluminum parts.Extending this research, Nascimento et al. [11] developed a comprehensive inspection system for quality assessment in casting aluminum parts.This system uses a robotic approach and leverages YOLOv8 and Mask R-CNN for filing detection and hole inspection, incorporating template-matching and blob detection.

12Jung et al. [6] proposed Anomaly Candidate Extraction and Detection (ACED), using high-resolution image analysis and convolutional neural network (CNN) ensembles to detect and classify minute defects on cast products.Wang et al. [20] developed a model with hierarchical attention and feature fusion for detecting defects such as dirty spots (DS), convex powder (CP), orange peel (OP), lacquer bubbles (LB), bruises, jet streams (JS), scratches, and NC.Both approaches use advanced neural network architectures for high-resolution defect detection.

13Zhang et al. [22] used the DEtection TRansformer (DETR) algorithm to detect casting defects like sand inclusions and notches.This approach differs from the YOLO-based methods but shares the goal of improving detection accuracy through advanced algorithms.Pérez et al. [15] focused on automotive cast iron inspection using cloud-based platforms and 3D point-cloud surface comparison for defect detection.

14Hai et al. [3] presented a deep learning approach for detecting defects in X-ray images of aluminum castings, specifically targeting blowholes.This method parallels the defect detection goals of other studies.Ye et al. [21] introduced feature extraction fusion and dynamic label assignment within Faster R-CNN to detect defects such as porosity, fractures, cracks, wear, unevenness on aluminum sheet surfaces, pinholes, abrasions, soiling, and folds in CAS magnetic ties, aligning with the trend of using enhanced feature extraction and classification techniques.

15Cardellicchio et al. [2] developed a method for defect detection using laser profilometry and lightweight machine learning algorithms, identifying defects like flat beads (FB), seam breakthroughs (SB), irregular seam heights (ISH), mesh defects (MD), slight porosity, joint breakthroughs (JB), seam deviations (SD), uneven welding (UW), and spatter.This approach uses profilometry and lightweight algorithms, contributing to industrial quality control through innovative data processing techniques.

16To the best of the authors' knowledge and based on the reviewed literature, the proposed work introduces a novel AOI system that enhances conventional image acquisition and processing methods by integrating deep learning-based defect detection and robotic automation.These robotic capabilities handle and transport parts to the inspection location and subsequently sort them based on assessment results.Building on the developments initiated by [11], this work extends previous efforts by adapting the system to inspect different part geometries and detect new types of defects, ensuring a more comprehensive quality control process.

17A gap identified in existing quality inspection systems is the detection of porosities inside machined holes.Traditional inspection methods often face challenges due to lighting artifacts, occlusions, and accessibility constraints, making it difficult to reliably identify defects in internal surfaces.While previous studies have focused on surface defect detection in casting aluminum parts [12], few approaches have been proposed to address porosity inspection within inner geometries.The proposed AOI system tackles this issue by integrating a high-resolution endoscopic camera and employing deep learning models for automated defect detection, allowing for a more detailed and consistent analysis of internal features.

18Additionally, existing computer vision-based quality inspection systems often struggle with complex part geometries and inconsistent defect appearances, requiring manual adjustments or highly controlled conditions.The integration of YOLO-based deep learning models into the proposed system enables flexible and robust defect detection, leveraging advanced feature extraction and spatial localization techniques.This work contributes to bridging the gap between surface and internal defect detection, providing an integrated approach to industrial quality control that aligns with realworld manufacturing requirements.

Automated optical inspection

19This section provides a comprehensive overview of the AOI system, designed for robust defect detection in industrial manufacturing.The system integrates hardware components such as the Universal Robot UR5 manipulator and Robotiq 2F-85 gripper, as discussed in Sect.3.1.1,and the Mako G-503B camera with VL-D430W dome light, as highlighted in Sect.3.1.2.The Sentinel Vision software framework, also covered in Sect.3.1.3,coordinates and controls these components.Additionally, Sect.3.2 presents a process flow example, illustrating the operational sequence from part handling to defect analysis and sorting, underscoring the system's adaptability and efficiency in diverse manufacturing environments.

Architecture

20The architecture block diagram depicted in Fig. 1 presents the architecture of the AOI system, detailing all components and the various communication protocols employed between them.

21A Universal Robot UR5 collaborative robotic manipulator, equipped with the Robotiq 2F-85 two-finger gripper, is employed to transport parts to designated inspection locations.The Mako G-503B camera captures high-resolution grayscale images during the inspection process.To address the reflective nature of casting aluminum parts, a dome light was selected to enhance visibility and reduce reflections and shadows, ensuring reliable inspection results.

22The communication architecture of the system orchestrates interactions between various components.The software communicates with the robotic manipulator using TCP/IP for position data and serial communication for gripper control.The manipulator, in turn, communicates directly with the gripper via serial communication.Additionally, the software communicates with the camera using GigE protocol for image acquisition and transmission.Finally, the software controls the lighting system via RS232 communication, toggling the light on or off as needed.

23The modular design of the AOI system enables seamless adaptation to diverse manufacturing environments and inspection requirements.The system can be tailored to specific production processes and quality control needs by offering flexibility in hardware and software component selection and configuration.This modularity enhances operational efficiency and future-proofs the system against evolving manufacturing trends and technological advancements.It is a versatile and scalable solution for automated optical inspection across various industry sectors.

Part handling

24The robotic handling system comprises the Universal Robot UR5 collaborative manipulator and the Robotiq 2F-85 twofinger gripper.This setup enables precise pick-and-place operations, facilitating the efficient transportation of parts to designated inspection locations.Detailed specifications of the UR5 and Robotiq 2F-85 gripper can be found in Tables 1 and 2, respectively.The UR5 offers capabilities such as a 5.00 kg payload capacity, an 850 mm reach, a speed of 180 • /s, and a repeatability of ±0.100 mm [19].In contrast, the Robotiq 2F-85 gripper features an 85 mm stroke, a closing speed range of 20-150 mm/s, and a grip force range of 20-235 N [16], ensuring reliable handling of components throughout the inspection process.This integration of a collaborative robotic manipulator enhances the efficiency of the inspection process by reducing the reliance on manual handling, which is prone to variability and inconsistencies.The robotic system ensures repeatability and precision in part positioning, optimizing the overall workflow and enabling seamless integration with the automated optical inspection system.

25To control the UR5 arm manipulator, URScript programming language was utilized via a TCP/IP socket connection on port 3002.A kinesthetic teaching-based programming by demonstration method was employed, allowing users to physically guide the robot to the desired positions of the parts.This approach is intuitive and does not require prior knowledge of robotics or additional hardware, making it an accessible and customized programming method for specific case studies [17]

Image acquisition

26The MAKO G-503B camera, detailed in Table 3, is integrated into the AOI system for high-resolution imaging acquisition.It features a Complementary Metal-Oxide-Semiconductor (CMOS) sensor with a resolution of 2592 × 1944 pixels (5 To address the challenges posed by the reflective characteristics of parts during image acquisition, the AOI system employs the VL-D430W dome light, as detailed in Table 4.This dome light provides uniform white illumination over a circular area with a 430 mm diameter, effectively reducing reflections and shadows that could otherwise compromise image quality and inspection accuracy.This design ensures diffuse and homogeneous illumination across the part, minimizing glare and bright spots caused by direct light incidence, and enhancing the visibility of fine surface details.These features are particularly important for the accurate detection of defects on reflective aluminum casting components.

27Furthermore, the findings from Nascimento et al. [12] reinforce the importance of proper illumination in defect detection, demonstrating that controlled lighting conditions significantly improve the performance of deep learningbased inspection systems.The results presented in the study validate the choice of dome lighting as an optimal solution, as it enhances image quality, reduces noise caused by reflections, and improves defect visibility.The VL-D430W dome light was selected based on these considerations to ensure reliable and consistent defect detection across different surface conditions.This lighting solution is critical for maintaining consistent inspection conditions, as variations in light intensity or direction can create artifacts that interfere with the reliability of image-based analysis.With a maximum power consumption of 24 V and 8.6 W [9], the VL-D430W dome light combines energy efficiency with high performance, making it an optimal choice for applications requiring precision in the inspection of reflective parts.

28Emerging technologies such as adaptive lighting control, polarized illumination, and multi-spectral imaging could be explored to further enhance the application of dome lighting.Adaptive lighting systems, equipped with real-time feedback mechanisms, could dynamically adjust intensity based on the reflectivity of the inspected part, optimizing exposure conditions.The integration of polarized lighting would help reduce unwanted reflections, improving defect visibility on highly reflective surfaces.Additionally, multi-spectral and hyperspectral imaging could allow for the differentiation of material properties and surface anomalies that may not be detectable under standard white lighting.Future work could also investigate the use of computational photography techniques, such as high dynamic range (HDR) imaging, to further enhance contrast and defect detection capabilities.These advancements would complement the existing dome lighting setup, improving robustness and adaptability in complex inspection scenarios.

Sentinel software

29The AOI system uses Sentinel Vision software2 to manage the inspection process.Developed in C++, this software integrates frameworks and libraries such as Qt, OpenCV, Halcon, and Nvidia CUDA Toolkit.It ensures robust communication and synchronization of various components.

30The system operates on a flow execution model managed by a multi-threaded core component.This core coordinates the execution sequence by linking individual blocks, each tasked with specific functions.These blocks manage the operational flow, facilitating transitions between different stages of the inspection process.

31Each block features methods such as Initialize, Iterate, and Log.Image processing blocks, which are crucial to the system, receive input images and include methods like getROI to optimize computational resources by excluding background areas.Communication blocks, including WriteTCP/IP, ReadTCP/IP, and SerialPort, enable interactions with external devices.

32The system includes blocks for configuring and acquiring images from GigE-compliant matrix cameras and for defect detection using a pre-trained YOLOv8 model, allowing realtime analysis of captured images.General-purpose blocks like Formula and DataValidation support flexibility and validation of script variables.

33Control of the execution flow is managed by blocks such as If, Join, WaitCondition, and Sleep, which handle conditional branching, merging, and synchronization of processes.This modular design ensures seamless execution and accurate defect detection.The modular architecture allows for customization and adaptation to various inspection requirements and operational contexts in manufacturing environments, highlighting the system's versatility and scalability.Figure 2 illustrates an example implementation of the execution flow, showcasing the constituent blocks used.

Process flow of the AOI system

34The sequence diagram depicted in Fig. 3 offers a conceptual overview of the AOI system's operation.Within this architecture, the inspection process is initiated by the operator's command, prompting the software to coordinate the pick-and-place action and subsequent image capture.Once the part is correctly positioned, the lighting system, responsible for controlling the dome light to ensure proper illumination, is activated.The vision container then activates the camera to capture an image and loads the trained deep learning model to perform inference on the image and detect defects.

35Based on the inspection results, the software directs the sorting of parts into designated containers and provides the operator with an image highlighting any detected defects for further action.It is noteworthy that while this sequence Fig. 3 Example sequence diagram of the AOI system operation illustrates a common operational scenario, the AOI system's adaptability allows for customized configurations to meet various inspection needs and manufacturing environments.

Industrial experiment

36This section presents the use study employed to test the developed AOI system introduced in Section 3. Section 4.1 outlines the specific problem addressed by the use case.Section 4.2 details the porosity detection process, including the datasets used to train the model for identifying surface porosities.Section 4.3 explains the process for detecting porosities inside machined holes, describing the use of an endoscopic camera to capture images and the dataset utilized to train the model.

Problem description

37The production process comprises two primary operations: casting and machining.Casting involves injecting molten aluminum into molds under high pressure.These molds, varying in size and complexity, are assembled within a cold chamber injection machine as part of the production cell.Subsequently, the castings undergo the trimming toll in a press and deburring in a shot blasting equipment before proceeding to the machining phase.During machining, various operations are performed, including face milling and drilling threaded and calibrated holes, among others.

38Following machining, the components undergo inspection to identify any non-conformities before shipment to customers.These non-conformities can affect the functionality and structural integrity of the part, reducing its lifetime.Currently, the inspection process relies heavily on manual procedures, which are repetitive and complex, leading to potential errors.

39Considering the challenges, the objective is to validate the developed AOI system to facilitate the operator's tasks during inspection.Among the potential non-conformities, the most significant and intricate to detect for operators is the occurrence of porosity in parts after the machining process.Figure 4 displays the selected parts based on their critical significance within the company's production process.Figures 5 and 6 present the critical points and areas where the presence of porosity could have the most significant impact.These areas are the focal points where the developed system will aim to detect porosities.

Porosity detection

40For this work, a custom dataset was created containing images of selected inspection parts with and without porosity.The dataset comprises 400 images with a resolution of 2592 × 1944 pixels, manually annotated using the Kaimaker platform [18].The porosity within the images exhibits varying lengths, shapes, and reflective characteristics.Figure 8 showcases sample images from this dataset with porosities.

41To enhance dataset diversity, images were acquired from different orientations.Subsequently, the dataset was randomly split into three subsets: training, validation, and testing, representing 80%, 10%, and 10% of the dataset, respectively.

42The primary dataset was used to train the models to detect porosities in a broad range of conditions.By including entire images with diverse examples of porosities and varying reflective properties, this dataset ensured the models A secondary dataset was generated using cropped images from the original dataset, focusing on both defective and nondefective parts.Unlike the primary dataset, this secondary dataset contained fewer images, aimed at minimizing the inclusion of background images without defects.Specifically, only 10% of the background images were incorporated for training purposes.The mosaic dataset comprised a total of 352 images, divided into three subsets: training, validation, and testing, representing 80%, 10%, and 10% of the dataset, respectively.The secondary dataset was specifically utilized to train models to focus on regions of interest containing porosities.By cropping the images, defects appeared more prominent, reducing the influence of irrelevant background information and improving recall by minimizing false negatives.

43The porosity detection process focuses on detecting and identifying porosities within the areas defined in Figs. 5 and 6.The YOLOv8 model was selected based on insights from prior work, including Nascimento et al. [12], which conducted a comparative analysis of deep learning models such as Faster R-CNN, RetinaNet, YOLOv7, and YOLOv7-tiny for detecting defects in casting aluminum parts.That study prioritized recall as a key metric to ensure that defective parts were correctly identified, selecting YOLOv7 as the most suitable model due to its high recall performance.

44Subsequently, further evaluations, currently under review [11], expanded on these findings by comparing YOLOv8 variants and Mask R-CNN for defect detection.The results demonstrated that YOLOv8 models, particularly YOLOv8sseg, achieved superior recall rates of up to 98.10%, reinforcing the importance of recall in minimizing false negatives.Given that YOLOv8 was the latest iteration of the YOLO architecture at the time of implementation, and considering its improvements in detection accuracy and inference speed, it was selected for this study.The architecture was further adapted and optimized to address the specific challenge of porosity detection, leveraging its demonstrated capability for high recall and precision.

45Initially, the models underwent training without preprocessing techniques or data augmentation, except for grayscale conversion and resizing images to 1600×1600 pixels, allowing assessment of their performance in porosity detection.

46Subsequently, preprocessing techniques such as contrast adjustment and tiling were employed on both datasets, especially beneficial for detecting small objects [14].Data augmentation techniques were applied, including flipping (horizontal and vertical), rotations (±15 • , ±90 • ), cropping, shear, saturation adjustments, brightness modifications, and adding noise to images.These techniques aimed to augment the datasets and improve the robustness of the models, enabling them to perform effectively under different conditions and variations in defect appearance.

47The emphasis was on minimizing false negatives (FN), representing failure to detect porosity, with less concern for false positives (FP), indicating incorrect detections.Therefore, the model achieving the highest recall score among all models was considered most suitable for this study.

Endoscopic camera

48The detection of porosities inside the machined holes was also studied, aiming to assess the viability of detecting porosities within these confined spaces.Due to the small size and challenging inspection conditions of the holes, an endoscopic camera, SF-C16USB-D2.0,shown in Fig. 9, was chosen to capture images of the inner walls.This endoscopic camera, measuring 10 mm in length and 2 mm in diameter, features a field of view of 120 • and has an integrated light at its tip.It uses a 400 × 400 pixel image sensor and communicates via a Universal Serial Bus (USB) interface.To ensure highquality images, the camera was mounted on a stable support, providing steady and clear visuals of the hole walls.Multiple images were acquired at various depths to determine the optimal depths for capturing clear images for porosity detection.Figure 10 illustrates examples of these images taken with the endoscopic camera.

49A custom dataset with 302 images was built, with images from 24 parts.Table 5 summarizes the image count by part obtained.This set of images is publicly available at the following link. 3inally, the annotation of the dataset presented in Table 5 produced 238 defective images, with 813 annotated defects, and 64 images without defects.The images were separated into three datasets: training, validation, and testing, as presented in Table 6, and a YOLOv8 model was trained during 200 epochs using the Kaimaker platform [18].

50The choice of YOLOv8 for porosity detection inside machined holes was influenced by its architectural improvements and the demonstrated effectiveness of previous YOLO models in defect detection tasks.The study by Nascimento et al. [12] highlighted the advantages of YOLOv7, which achieved superior recall in detecting defects in casting alu- [5] enhances feature propagation, while its decoupled head architecture improves object localization, which is particularly relevant for detecting defects in machined hole surfaces.Furthermore, its anchor-free detection mechanisms and optimized training strategies, such as Mosaic augmentation and auto-anchor tuning, allow for better adaptation to variations in lighting conditions and defect appearances.These characteristics make YOLOv8 a robust solution for automated optical inspection (AOI) in industrial applications, improving both detection accuracy and real-time processing capabilities.

Results and discussion

51This section provides a comprehensive analysis of the results obtained from the training and evaluation of deep learning models for porosity detection in aluminum casting components.It covers three main aspects of the AOI system performance.Section 5.1 presents the training results of the YOLOv8 model for porosity detection on machined parts under different scenarios.Section 5.2 discusses the system's performance detecting porosities in machined parts, validating the models in industrial scenarios.Section 5.3 focuses on the training outcome for detecting porosities within machined holes.

52The training for both porosity detection and machined hole inspection was conducted using a computer equipped with Ubuntu 20.04, a 12th Generation Intel Core i7 CPU operating at 3.5 GHz, a NVIDIA RTX3060 GPU with 6 GB of memory, and CUDA 12.2 for accelerated computation.

Porosity detection models training results

53Table 7 presents the training results for porosity detection models.The first two models, YOLOv8 without augmentation and YOLOv8 with augmentation, were trained using the dataset comprising entire images, as described in Section 4.2.

54On the other hand, YOLOv8-Mosaic utilized the dataset with mosaic images, also described in the same section.Evaluations were conducted on a consistent test dataset comprising 40 images, with and without background.Notably, YOLOv8 with augmentation exhibited the highest precision and recall, at 89.10% and 79.00%, respectively, resulting in the best F1score of 83.75%.Additionally, YOLOv8 with augmentation achieved the highest mean average precision (mAP) at 0.5, with a score of 79.00%, while YOLOv8-Mosaic attained the highest mAP at 0.5:0.95,reaching 65.60

55The use of cropped images in YOLOv8-Mosaic, generated through mosaic augmentation, reduced the influence of irrelevant background information and enhanced the prominence of defects within the image.By presenting defects at a larger scale relative to the cropped image, the model was better able to focus on relevant features, reducing the likelihood of false negatives.This approach contributed to the higher recall achieved by YOLOv8-Mosaic, as it increased the model's ability to correctly identify parts with porosities.Concerning inference times, YOLOv8-Mosaic demonstrated the fastest inference time at 8.7 ms.However, it is noteworthy that all models met the speed requirement for this study, rendering time a non-rejection criterion.

Performance evaluation

56After training the models, each model was integrated into the software to assess its performance in detecting porosity within real-life scenarios involving parts.For the evaluation, a total of 60 parts were used, comprising 30 parts of type A and 30 parts of type B. These parts were subjected to the inspection process to analyze the precision and recall of the porosity detection by the trained models.Table 8 summarizes the system porosities detection in the parts using the different trained models.Among the evaluated models, YOLOv8-Mosaic demonstrated superior performance, with the highest recall rate of 84.71%, significantly outperforming YOLOv8 without augmentation and YOLOv8 with augmentation, which achieved recall rates of 48.44% and 58.97%, respectively.While YOLOv8 with augmentation had the highest precision at 98.77%, YOLOv8-Mosaic provided a balanced performance with a precision of 95.64% and the best F1-score of 89.85%.Despite YOLOv8 without augmentation showing a high precision of 96.88%, its recall was notably lower, resulting in the lowest F1-score of 64.58%.As mentioned in Section 4.2, the system's primary goal was to achieve the highest recall possible.Therefore, YOLOv8-Mosaic is identified as the most effective model for this application, offering an optimal balance between recall and overall performance metrics.Additionally, the rapid performance of the system during the inspection process was validated in a laboratory setup at the Industry and Innovation Lab (iilab) of INESC TEC, I, with each part being inspected in less than 1 s.This demonstrates the system's potential to handle real-life scenarios efficiently while maintaining high accuracy.Compared to manual inspection, which is often slower and more prone to variability, the automated system significantly improves speed.This operational efficiency aligns with the requirements of high-throughput industrial environments, suggesting its applicability in real-world production settings.

57A video demonstrating the system performing quality inspection of parts is available at the following link. 4This video shows the robotic handling and transport of parts, as well as the detection of defects using the AOI system.

Endoscopy results

58The YOLOv8 model underwent training using the dataset outlined in Section 4.3, employing an early stopping method to prevent model overfitting, which halted training at epoch 168.The results of porosity detection on the hole's inner walls are presented in Table 9.Despite the results falling short, with precision and recall rates of 54.15% and 37.63% respectively, this outcome was anticipated due to the limited size of the dataset and the preliminary nature of the study, which did not include a comprehensive comparison of lighting systems and cameras to determine their suitability for this task.These findings suggest that YOLOv8 shows potential for detecting porosities in the hole's inner walls.However, other models may also be suitable for this task.Conducting further research, including a comparative evaluation of different models and configurations, could be beneficial for identifying the most effective approach to detect defects in this context.Nonetheless, the results suggest that YOLOv8 holds promise for detecting porosities in hole inner walls.Further investigation is warranted to accurately define what constitutes a defect in the hole's inner walls.

59As illustrated in Fig. 11, certain patterns, highlighted in red, may emerge in non-machined parts of the hole's inner walls, resembling porosities but not representing defects.These patterns pose challenges to the model's prediction accuracy.The model prediction results are highlighted in green in the second row of Fig. 11.Upon analysis of these images, it becomes evident that the model can distinguish between defects in the area of interest and other patterns in non-machined parts of the hole's inner walls.

60In Fig. 12, the first row displays a sample of the model's predictions on the test dataset, with defects located in the machined area.Additionally, the second row of Fig. 12 presents the class activation map generated by the model using the EigenCam algorithm [10], which is derived from the model's principal components analysis.

61By observing Fig. 12 second row, it is evident that the model's predictions are based on the areas containing defects, specifically located in the machined spaces.This demonstrates the model's capability to learn visual features that accurately describe the defects.However, the use of white lighting can sometimes saturate the images acquired mainly in machined areas, posing challenges in defect detection.To address this issue, a complex strategy could involve implementing a segmentation step that divides the image into two areas: machined and background.This segmentation strategy can help reduce false positives.

62Considering these challenges, this dataset is made available to the community to encourage further research on this topic, particularly focusing on using an endoscopic camera to detect defects in machined parts.

Conclusions and future work

63Maintaining high product quality is crucial for companies to distinguish themselves from competitors.With increasing consumer demand for quality products, it becomes imperative that production line inspection methods effectively meet these expectations.This paper introduces an AOI system to evaluate the quality of reflective parts, capable of handling parts with distinct shapes, sizes, and weights.

64During laboratory experiments, the AOI system demonstrated satisfactory results in inspecting reflective cast aluminum parts.It integrates automation capabilities through the Sentinel software, performing quality inspections on distinct parts.The system autonomously transports parts to the inspection location and activates the lighting system, configures camera settings for optimal image acquisition, and conducts real-time image analysis.The Sentinel software enhances the inspection process's intuitiveness and user-friendliness, visually representing inspection results.Practically, the system can be placed at an inspection post where parts are checked after machining.Rejected parts can be recycled and turned into ingots, reducing material waste and demonstrating cost and sustainability benefits.Additionally, the versatility of the Sentinel software allows it to be utilized in various environments and types of inspections, adapting to the dynamic needs of the industry.

65The development of the AOI system benefited from a collaboration with SLM, which provided access to representative parts, including cast aluminum components used in the automotive industry.This collaboration also helped define key inspection requirements, such as identifying surface porosities and defects typically found in machined holes and determining the likely locations of these imperfections on the parts.These inputs ensured that the system design and dataset creation were aligned with practical industrial needs.

66Additionally, data from the AOI system was used to evaluate model selection and system performance.The results confirmed that inspection times remained within acceptable operational limits, supporting the system's feasibility for real-time defect detection.The use of the sliding window approach (YOLOv8-Mosaic) led to an increase in recall (84.71%) while also reducing inference time compared to other YOLOv8 configurations.By processing smaller image sections separately, the model reduced computational demand while maintaining detection accuracy.

67The AOI system also demonstrated effective integration of all components, ensuring a functional workflow between image acquisition, defect detection, and decision-making processes.This integration supported consistent defect identification, reinforcing the system's applicability to industrial environments.

68To test the developed AOI system, a study was conducted with SLM, focusing on detecting porosities on the surface of the parts and in the inner holes.Three custom datasets were created: two focused on surface inspection and one on inner hole inspection.The first dataset comprises 400 images of parts A and B, the second includes 352 cropped images of 640 × 640 pixels to minimize background noise, and the third dataset consists of 302 images designed to train the model to detect porosities in the inner walls of machined holes.This third dataset is available to the scientific community to encourage further research.

69For porosity detection on surface areas, YOLOv8 was trained using the two surface datasets to evaluate its perfor-mance, emphasizing the minimization of false negatives.The model with the highest recall, YOLOv8-Mosaic, achieved 84.71% recall.This high recall was attributed to the cropped images and minimized background noise, resulting in a more consistent dataset with good resolution of small porosities.Consequently, YOLOv8-Mosaic was chosen for implementation in the AOI system.For inspecting inner surface holes, an endoscopic camera was used.Results presented in Sect.5.3 indicate that YOLOv8 is suitable for this type of inspection.

70The insights gained from using the YOLOv8 model in this study will be applied to both future research and industrial applications.Future research will focus on expanding the dataset to include a broader range of defects beyond porosities, such as scratches, cracks, and deformations, to enhance the model's generalization capability.Additionally, optimization techniques such as knowledge distillation and quantization will be explored to improve inference speed and reduce computational requirements, facilitating real-time deployment in resource-constrained environments.Further enhancements will also investigate localized image analysis techniques, including adaptive tiling and feature-aware cropping, to refine detection performance and reduce background noise.

71From a practical perspective, the YOLOv8 model can be integrated into real-world industrial quality inspection systems to improve defect detection reliability and streamline production workflows.The system could be deployed in automated production lines, reducing reliance on manual inspections and improving efficiency.Additionally, adaptive lighting strategies and multi-spectral imaging techniques will be explored to further enhance detection accuracy, particularly for reflective surfaces.These advancements will contribute to the continuous improvement of automated optical inspection (AOI) systems, ensuring higher precision, consistency, and scalability in defect detection for casting aluminum parts and other industrial applications.

72Future developments for surface porosity detection can benefit from extended training with larger datasets to enhance accuracy and enable the identification of various defects, such as scratches, dents, and cracks.For inspecting inner hole surfaces, further studies could expand the dataset and explore different lighting systems to improve image quality and reduce noise.Integrating these enhancements with the current AOI system would not only enhance its defect detection capabilities but also increase productivity and efficiency for companies by reducing inspection times and minimizing the risk of human error.Finally, plans are in place to deploy this system on the shop floor to assess its performance in an industrial environment, further demonstrating its practical benefits in real-world applications.

Fig. 1

73Fig. 1 Block diagram of the inspection system architecture

Fig. 2

74Fig. 2 Example of an implementation of the execution flow

75Figure 4 a and b represent part A's front and back views, respectively, and Fig. 4 c and d represent part B's front and back views, respectively.

Fig. 4 Fig. 5 Figure 7

76Fig. 4 Selected parts: a front side of part A, b back side of part A, c front side of part B, and d back side of part B

Fig. 6 Fig. 7 Fig. 8 Fig. 9

77Fig. 6 Defects location in part B

Fig. 10

78Fig. 10 Example of images acquired by the endoscopic camera at different depths

Fig. 11 Fig. 12

79Fig. 11 Holes wall patterns examples: non-defects which are similar to defects highlighted with red bounding boxes (first row) and model detections represented with green bounding boxes (second row)

Table 1

80Specifications of the Universal Robot UR5

Table 2

81Specifications of the Robotiq 2f-85

Table 3

82Specifications of the MAKO G-503B

Table 4

83Specifications of the dome light VL-D430W

Table 5

84Endoscopic dataset

Table 6

85Dataset division for train purpose

Table 7

86Comparison results of the different trained models in surface porosities detection

Table 8

87System performance evaluation with the different trained surface porosity detection models

Table 9

88YOLOv8 trained model performance in holes porosities detection

참고문헌 15건

  1. The Power of Tiling for Small Object Detection 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · 2019 10.1109/cvprw.2019.00084
  2. Eigen-CAM: Class Activation Map using Principal Components 2020 10.1109/ijcnn48605.2020.9206626
  3. A kinesthetic teaching approach for automating micropipetting repetitive tasks The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2021 10.1007/s00170-021-07925-3
  4. Computer Vision Based Quality Control for Additive Manufacturing Parts The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2022 10.1007/s00170-022-10683-5
  5. Anomaly Candidate Extraction and Detection for automatic quality inspection of metal casting products using high-resolution images Journal of Manufacturing Systems · Elsevier BV · 2023 10.1016/j.jmsy.2023.02.007
  6. A cloud-based 3D real-time inspection platform for industry: a case-study focusing automotive cast iron parts Procedia Computer Science · Elsevier BV · 2023 10.1016/j.procs.2023.01.298
  7. An improved defect recognition framework for casting based on DETR algorithm Journal of Iron and Steel Research International · Springer Nature · 2023 10.1007/s42243-023-00920-w
  8. Automatic quality control of aluminium parts welds based on 3D data and artificial intelligence Journal of Intelligent Manufacturing · Springer Science+Business Media · 2023 10.1007/s10845-023-02124-1
  9. Adaptive convolutional neural network for aluminum surface defect detection Computational Materials Science · Elsevier BV · 2023 10.1016/j.commatsci.2023.112262
  10. Quality Control of Casting Aluminum Parts: A Comparison of Deep Learning Models for Filings Detection 2023 10.1109/icarsc58346.2023.10129634
  11. MA-YOLO: A Method for Detecting Surface Defects of Aluminum Profiles With Attention Guidance IEEE Access · Institute of Electrical and Electronics Engineers · 2023 10.1109/access.2023.3291598
  12. Aluminum surface defect detection method based on a lightweight YOLOv4 network Scientific Reports · Nature Portfolio · 2023 10.1038/s41598-023-38085-x
  13. Online visual end-to-end detection monitoring on surface defect of aluminum strip under the industrial few-shot condition Journal of Manufacturing Systems · Elsevier BV · 2023 10.1016/j.jmsy.2023.06.016
  14. Robustness defect detection: Improving the performance of surface defect detection in interference environment Optics and Lasers in Engineering · Elsevier BV · 2024 10.1016/j.optlaseng.2024.108035
  15. Approach for Automatic Defect Detection in Aluminum Casting X-Ray Images Using Deep Learning and Gain-Adaptive Multi-Scale Retinex Journal of Nondestructive Evaluation · Springer Science+Business Media · 2024 10.1007/s10921-023-01033-w