EC-PFN: a multiscale woven fusion network for industrial product surface defect detection
간접 관련 필름·전자재료 · (13) 프리즘 필름 (11) 배리어 필름(15) 디스플레이 패널재료
기본 정보
- 저자
- DOI
- 10.1007/s40747-024-01699-3
- 저널
- Complex & Intelligent Systems
- 발행년도
- 2024
- 발행기관
- Springer Science+Business Media
- 피인용수
- 3
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1007/s40747-024-01699-3
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W4404902750
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- (11) 배리어 필름, (15) 디스플레이 패널재료
- R&D 측면
- 분석·모델링
- 확신도
- 0.80
- 근거 용어
- industrial product surface defect detection, light guide plate defects, computer vision, deep learning, feature fusion
- 판단 근거
- 이 논문은 산업용 제품(특히 광학용 라이트 가이드 플레이트)의 표면 결함을 탐지하기 위한 딥러닝 모델(EC-PFN)을 다룹니다. 코오롱인더스트리의 필름/전자재료 사업 중 디스플레이용 광학 필름(13) 및 관련 소재의 품질 관리 공정에 적용 가능한 기술입니다.
- R&D 활용 포인트
- 광학 필름(프리즘, 증착 등) 및 디스플레이 소재 제조 공정에서 머신 비전을 활용한 실시간 표면 결함 자동 검사 시스템 구축 및 품질 관리 고도화에 활용 가능합니다.
- 평가 입력
- 섹션 본문 47,485자 중 30,032자 발췌
초록
본문 48,942자
본문 펼치기
섹션 본문 89문단 · 46,556자
(제목 없음)
1and indistinct inter-class differences.These challenges arise primarily to meet the practical demands of industrial defect detection.In industrial manufacturing, many defects often exhibit subtle and weak characteristics, necessitating network models with enhanced perceptual capabilities and robustness to handle complex scenarios such as low contrast and small defects.Conventional object detection approaches often fall short of these requirements as they typically assume higher contrast and larger target sizes during their design, neglecting sensitivity to subtle features.Furthermore, since the morphology and characteristics of defects vary for different industrial products, simply replacing datasets may not cover all cases and may lack specificity.In summary, to achieve better results in the field of industrial defect detection, we require an efficient and accurate detection method to address these issues and enhance the performance and effectiveness of defect detection.As shown in Fig.1, industrial defect detection typically faces three main challenges:(1) Low Contrast: In industrial production, the contrast between defects in images and the background is often low, primarily due to the presence of dust and variations in lighting conditions.As illustrated in Fig.1(a), defects within the red box are almost imperceptible.
Introduction
2In recent years, digital transformation has rapidly proliferated in the industrial and manufacturing sectors, evolving from the concept of traditional manual factories towards automated factories and, ultimately, smart factories.Among the relevant technologies, especially computer vision-based inspection techniques have emerged through the integration of machine vision and artificial intelligence technologies, finding extensive applications [1].
3In modern industrial production, product defect detection is a critical step with significant implications for ensuring product quality, improving production efficiency, and reducing costs.In industrial sectors such as light guide plates, bearings, and magnets, the process of defect detection often encounters various challenges [2], including small target sizes, low contrast, significant intra-class variations, (2) Significant Intra-Class Variations: Unlike other applications, defects in industrial production often exhibit irregular shapes.As depicted in Fig. 1(b), defects within the same category may have significant variations in size and shape.
4(3) Inter-Class Similarity: Due to the uncertainties in the production process, some different types of defects can have minor differences.As shown in Fig. 1(c), different types of defects (located within the orange and blue boxes) exhibit similarity in texture and grayscale information.
5Therefore, to address these challenges and requirements, this study proposes a new network model, EC-PFN, for application in product defect detection tasks in the industrial domain.This novel network model possesses robust contextual awareness and parallel feature fusion capabilities, with a focus on the feature fusion architecture within the Neck section, known as the Feature Weave Network.This architecture significantly enhances the performance and effectiveness of feature fusion, resulting in more accurate defect detection.Furthermore, we incorporate a Loss Ranking Module into the loss function and define the parameter LRM_ignore to optimize the target-oriented loss in object detection tasks.This helps improve the model's performance by mitigating the impact of low-confidence predictions through the omission of low-confidence bounding boxes.Additionally, a series of differently sized receptive field blocks (RFB modules) are introduced into the backbone network to enhance the accuracy and speed of object detection.These structured improvements collectively constitute the EC-PFN network.Overall, we propose a new feature fusion network model and simultaneously make modifications to loss functions, constructing a novel detection network.Through extensive experiments conducted on a dataset of light guide plate defects collected from industrial settings, the experimental results demonstrate that EC-PFN achieves a detection accuracy (mAP) of 98.9%, a detection speed of up to 92 FPS, and a computation cost (GFlops) of only 14.5.These results surpass the performance of current mainstream surface defect detection models.Furthermore, the model is validated on Northeastern University's publicly available surface defect dataset, NEU-DET.EC-PFN exhibits higher detection accuracy compared to detection models like the YOLO series, validating the superior performance and scalability of EC-PFN across various scenarios.
Related work
6In recent years, there have been advancements in the research of industrial product defect detection [2,3].Some researchers have proposed defect detection algorithms based on traditional image processing and machine learning methods, such as using traditional techniques like edge detection, texture analysis, and morphological operations [4][5][6] for defect detection.These methods can to some extent detect surface defects on products but often rely on manual feature extraction and manual rule design, lacking adaptability and intelligence.
7With the application of deep learning in the field of computer vision, some researchers have begun to explore the use of deep learning methods for industrial product defect detection.Notably, the use of Convolutional Neural Networks (CNN) for defect detection has made significant progress.CNN possess the ability to learn local features and abstract representations of images, effectively detecting defects in products.In reference [7], researchers employed CNN to detect cracks on concrete surfaces, and the results demonstrated strong performance in successfully detecting concrete surface cracks in practical applications.However, CNN models also have some drawbacks, such as the need for large amounts of training data and substantial computational resources, making them challenging to apply in resourceconstrained environments.In addition, some researchers have adopted Faster R-CNN (Region-based Convolutional Neural Network) [8]-based methods for defect detection.These methods [9,10] segment images into multiple candidate regions and then detect and classify each region, thereby achieving defect detection.Such approaches have achieved significant success in the field of object detection, effectively locating and identifying defect areas in industrial products.In reference [11], researchers improved the Faster R-CNN structure to build an automatic detection system for surface defects on aircraft engine blades, providing a detailed description of the enhancements.However, these two-stage detection networks still face some challenges, as they involve a two-stage process where the first stage generates candidate boxes, and the second stage classifies and locates these candidates.This multi-stage processing results in slower model speeds, making them less suitable for real-time application scenarios.In addition, some scholars have proposed single-stage object detection algorithms based on Convolutional Neural Networks (CNN), such as SSD [12] and the YOLO (You Only Look Once) series of networks [13,14].These networks typically offer faster detection speeds and have found widespread application in various fields.In reference [15], researchers introduced a real-time steel surface defect detection technique based on the YOLO-v5 detection network, effectively enhancing the model's ability to acquire multiscale information about steel surface defects.However, these networks tend to perform poorly in detecting low-contrast and small-sized objects and require further improvement to enhance their performance.Furthermore, some researchers have explored the use of methods such as Generative Adversarial Networks (GAN) develop intelligent detection models that can flexibly adapt to various industrial environments and defect types.This will contribute to improving the efficiency and accuracy of quality control for industrial products, reducing defect rates in the production process, and lowering labor costs, thereby positively impacting the industrial manufacturing industry.
8Overall, researchers have proposed numerous innovative methods and techniques in the field of industrial product defect detection.They have been dedicated not only to improving the accuracy and robustness of defect detection but also to addressing the challenge of building highly general defect detection systems [28,29] capable of adapting to various types of industrial products and production environments.
The EC-PFN defect detection model
9In the field of industrial defect detection, there are numerous challenges such as low contrast, irregular defect shapes, and similarities between different types of defects.To address these issues, this paper introduces the Enhanced Contextaware Parallel Fusion Network (EC-PFN) defect detection network.This network aims to enhance the performance and effectiveness of defect detection, overcome various challenges in industrial product defect detection, and meet the demands of real-world industrial production.
The network architecture of the EC-PFN model
10EC-PFN is an enhanced, context-aware parallel feature fusion network designed to enhance the performance and effectiveness of feature fusion.The network architecture and specific modules are illustrated in Figs. 2 and 3, respectively.To construct EC-PFN, this paper draws inspiration from the classic Backbone architecture of YOLOv7's object detection network.The Backbone structure provides powerful feature extraction capabilities, enabling it to better address challenges in industrial defect detection.In constructing the Backbone, this paper employs 3 × 3 convolutional kernels with a stride of 2, combined with multiple pooling operations to downsample the image, reducing feature dimensions and acquiring positional information, thereby reducing the model's parameters and simplifying network computation complexity.The Neck network utilizes a novel feature fusion architecture, known as the Feature Weave Network, which introduces three parallel branches for feature fusion, effectively extracting and fusing target features.
11The detailed structure of the backbone network is shown in Table 1, consisting of CBS, ELAN, MP, and SPPCSPC modules.The CBS convolution module comprises a Conv layer, a BN layer, and the Silu activation function.The [16,17] and multi-task learning [18] to improve the performance and robustness of defect detection.
12In comparison to other advanced methods, such as those evaluated by [19], which examined common pre-trained CNNs, our method offers better adaptability to challenging environments, including low contrast or varying defect sizes.Similarly [20], applied deep learning for rail surface defect detection, highlighting the relevance of advanced neural networks in industrial settings.Our approach builds on this by incorporating modules like the RFB to handle complex texture variations, making it ideal for real-time inspection systems.
13Additionally [21], demonstrated the utility of machine vision in leather surface inspection.The fast convergence and ensemble classifiers employed in their work show the importance of optimizing both speed and accuracy for defect detection.The EC-PFN, with its 92 FPS performance and high mAP, meets these real-time requirements, making it suitable for real-world production lines that require both speed and accuracy in defect detection.
14Due to the scarcity of industrial abnormal samples, semisupervised and unsupervised learning methods find applicability in industrial quality inspection.In the literature [22], researchers delve into the inconsistency of pseudo targets in semi-supervised object detection (SSOD) and propose a systematic solution, termed Consistent-Teacher, to alleviate the inconsistency.In [23], a unified CNN framework named OmniAL is proposed for unsupervised anomaly localization.This method overcomes the lack of abnormal samples by enhancing anomaly synthesis, reconstruction, and localization methods.Unsupervised methods effectively address the limitations of supervised methods, yet they still exhibit some inherent issues.As only positive examples are trained, unsupervised methods cannot determine what constitutes a correct output, thereby not ensuring optimal detection performance for every type of defect sample not encountered during training.
15However, it is worth noting that most of the current research on industrial product defect detection tends to focus on specific domains such as electronic products [24,25], steel products [26], or textile products [27].The detection models are typically designed for particular defects, resulting in higher accuracy but limited generalizability.They face challenges when it comes to transferring and applying them across different industrial domains.In contrast, research on defect detection methods with strong generality for industrial products is relatively limited.This research landscape highlights a crucial challenge: designing defect detection methods that are adaptable to multiple industrial domains, possess high generality, and deliver superior performance.The current research trends necessitate more interdisciplinary collaboration and innovation to 1 3 first branch consists of four max-pooling layers (MaxPool), representing its ability to handle objects of different sizes and distinguish between small and large targets effectively.The second branch performs conventional convolution operations, and these two parts are merged to reduce computational complexity, resulting in faster speed and higher accuracy.
RFB module
16Considering the challenge of detecting elongated target defects in industrial defect types, this paper introduces receptive field modules to address this issue.In convolutional neural networks, the definition of receptive field refers to the region size on the input image that corresponds Conv layer uses a 3 × 3 kernel size with a stride of 2. The CBS module works in conjunction with the MP module to downsample the image, generating feature maps of different sizes with resolutions of 224 × 224, 112 × 112, 56 × 56, 28 × 28, 14 × 14, and 7 × 7. The ELAN module is an efficient network structure that allows the network to learn more features and enhances robustness by controlling the shortest and longest gradient paths.The ELAN module has two branches: the first branch undergoes channel transformation through a 1 × 1 convolution, while the second branch first undergoes channel transformation with a 1 × 1 convolution module and then performs feature extraction with two 3 × 3 convolution modules.Finally, the four features are concatenated, followed by another channel transformation to obtain the final feature extraction result.The SPPCSP module's In summary, the calculation rules for receptive field can be expressed by the following formula:
17In the equation, ' r i 'represents the size of the receptive field for the i-th layer, ' k i ' represents the size of the convolutional kernel for the i-th layer, and ' s n 'represents the stride for the n-th layer.
18That is, The receptive field size of the nth layer = The receptive field size of the previous layer+(The kernel size of layer n-1)×The product of all strides before this layer.
19For object detection tasks, if the receptive field is too small while the target size is large, or if the receptive field is too large while the target size is small, the model may have difficulty converging, significantly impacting detection performance.Therefore, in detection networks, it is common to use feature maps from different levels to obtain anchors of different sizes.This is because feature maps from different levels have different receptive field sizes, which helps the detection network adapt to objects of different sizes.
20This paper introduces a multi-branch dilated convolution module (RFB), which was proposed by Yang et al. in 2018.This module consists of multiple branches with different-sized convolution kernels and introduces dilated to each pixel on the feature map output by the convolutional neural network layer.
21Dumoulin et al. [30] introduced the fundamental principles and examples of receptive field calculation, including the impact of convolutional layers, pooling layers, and strides on the receptive field, as well as how to calculate the receptive field layer by layer in a network.Additionally, they analyzed the influence of padding operations on receptive field size, providing relevant formulas and derivations.Lu et al. [31] conducted an analysis of feature maps in different layers of deep convolutional neural networks, studying the concept and role of effective receptive fields.They pointed out that due to the presence of nonlinear activation functions and operations like pooling, the network's receptive field increases with the depth of layers, but not all regions are equally important for target recognition tasks.They quantitatively assessed the impact of receptive fields at different layers, revealing information propagation paths and key regions within the network.Yang et al. [32] convolution kernels are typically used to capture details and local features.By using small-sized convolution kernels, the RFB module can better capture fine-grained features of the target, such as texture and edges.On the other hand, largesized convolution kernels are used to obtain more extensive contextual information.By using large-sized convolution kernels, the RFB module can better understand the global context around the target, thereby improving the accuracy of object detection.
22(2) It introduces dilated convolution layers.Dilated convolution is a type of convolution operation that introduces dilation rates to expand the receptive field.Dilated convolution layers, where different rate values represent the parameters of dilated convolution layers.In this paper, the RFB module is placed after the backbone network, taking the P6 feature map as input, and then injected into the Feature Weave Network for fusion to enrich context information and reduce information loss during propagation.
23The schematic representation of the RFB module's effect is shown in Fig. 4, and its structural diagram is illustrated in Fig. 5.The RFB module has two main characteristics:
24(1) A multi-branch structure composed of convolution layers with different-sized convolution kernels, where different kernel sizes have different effects.Small-sized The new feature fusion structure is called the feature weave network
25In traditional feature fusion networks, there are often limitations or shortcomings, such as insufficient utilization of multiscale information, limited awareness of contextual information, and a high reliance on feature fusion strategies.These limitations lead to poor model performance when dealing with defects characterized by low contrast, irregular shapes, and similarity among categories.To overcome these issues, this paper introduces a Feature Weave Network (FWN), a context-aware parallel fusion and weaving network designed to achieve superior performance during the feature fusion stage.The FWN feature fusion structure is depicted in Fig. 6.
26The core idea of the Context-aware Parallel Fusion Network is to simultaneously utilize both global context and local context for feature fusion.The global context refers to the contextual information across the entire input image or feature map, while the local context pertains to contextual information within specific local regions.By considering the fusion of both global and local contexts, we can comprehensively capture feature correlations and spatial information.
27In the Context-aware Parallel Fusion Network, we introduce three parallel branches for feature fusion.They extract features from different layers, encompassing information at various scales.The network uses a feature fusion module called UniFusionLayer, which is capable of effectively merging features from different scales, thereby enhancing convolution can extend the receptive field without increasing the number of convolution parameters, allowing it to capture a broader range of contextual information.
28Due to the presence of not only large-scale defects such as dirt and damage in industrial defect datasets but also small target defects with a width of one pixel, in order to capture defect features of different sizes and scales, the RFB module employs the following strategies: Firstly, by using dilated convolutions with different dilation rates (kernel size 3 × 3, dilation rates 1, 2, 3), different receptive field feature maps are obtained.For example, for small target defects, different dilation rates help to expand their receptive fields, reducing the problem of information loss during downsampling.Features from different receptive fields contribute to enhanced multi-scale feature representation, enriched contextual information, and strengthened feature information.Then, the feature maps obtained with different dilation rates are concatenated and fused, followed by channel restoration using a 1 × 1 convolution, and finally outputting the feature maps through a ReLU activation function.In addition, a skip connection structure is added in this module, directly connecting the input and output to preserve the semantic information of shallow defects and effectively prevent gradient vanishing issues, ensuring the effective propagation of gradients to deeper layers in the network.
29Here is a schematic diagram of the RFB module, as shown in the following figure.The core objective of the UniFusionLayer module is to effectively merge multiple feature maps to enhance the model's representation capacity and performance, facilitating the model's effective learning of multi-scale and multisemantic information.This module achieves feature fusion and information propagation through the following steps:
30(1) Multi-scale feature preparation: The UniFusionLayer receives multiple input feature maps from different layers, which typically have varying scales and semantic information.First, to ensure that these feature maps have consistent scales, upsampling or downsampling operations may be applied if necessary.(2) Feature Fusion: After scale alignment, these feature maps are fused through concatenation operations to create a comprehensive feature representation.This helps integrate information from different scales and semantics, providing a more comprehensive set of features for subsequent tasks.the model's ability to learn from diverse information.Additionally, this network incorporates a forward-looking mechanism that allows bidirectional fusion between the feature representation of the current layer and that of future layers.By leveraging information from future layers, the network can better capture potentially useful features that may appear in subsequent layers, subsequently refining and enhancing the feature representation of the current layer.This "bidirectional fusion" design contributes to improved feature diversity and discriminability, thus enhancing the model's performance and generalization capability.In summary, the Context-aware Parallel Fusion Network excels in feature fusion, enabling a more comprehensive capture of correlations and spatial information between features.This improvement enhances the model's performance and accuracy.
The feature fusion module UniFusionLayer
31The feature fusion module (UniFusionLayer) is a neural network layer used to merge multiple features from different sources or types, which is highly valuable in machine learning and deep learning.It helps the model capture correlations and interactions among various sources of information, thereby enhancing performance and representation.
32In the equation, ' n ' represents the number of input samples, ' y n ' represents the target value, and ' x n ' represents the network's predicted value.The equation calculates the probability of belonging to a certain target and class.A higher probability value indicates higher confidence.
33To address issues such as class imbalance and inadequate handling of hard samples in industrial data, this paper improves the loss function by incorporating hard sample mining [35] into the confidence loss function.This adjustment aims to reduce the interference of negative samples, thus improving model performance and training effectiveness.Hard sample mining is a technique used in training deep learning models, particularly in computer vision tasks like object detection and object recognition.Its objective is to better leverage information in the data and weight different samples to enhance model performance.
34In traditional classification tasks, the cross-entropy loss function is commonly used to measure the difference between the model's predicted results and the true labels.However, the cross-entropy loss treats all samples equally and does not take into account the differences in importance among different samples.This can lead to insufficient learning of some hard samples because these samples may contain more valuable information.The hard sample mining loss function [36,37] addresses this issue by introducing difficulty or importance weights for the samples.It is based on the feature representations or prediction results of the samples and assigns different weights to different samples, which can be set as needed.These weights can be fixed, random, or determined through other means, allowing the model to focus more on samples that are more challenging or critical for the classification task.
35Based on this, this paper introduces the Loss Ranking Module (LRM) into the confidence loss function and defines the parameter LRM_ignore to optimize the objectness loss in object detection tasks.It achieves the goal of reducing the impact of negative samples by ignoring low-confidence predicted boxes.This improvement modifies the hard sample mining loss function and processes the loss values through loss ranking mining [38] to filter out low-confidence predicted boxes.The goal of this technique is to reduce the influence of negative samples on the loss, thereby improving the performance of the object detection model.
36In this improved approach, the top N (N is a parameter called the "rank factor") detection results are selected for each feature map.Here, the feature map refers to feature maps of different scales used to detect objects of different (3) Residual Connection: To preserve the original information of input features and enhance gradient flow, Uni-FusionLayer internally employs the residual connection [33] concept.This means that by adding a residual connection between the fused feature representation and the original input features, the module can learn features more effectively and ensure that information propagation is not lost.(4) Reparameterization Structure: During training, UniFu-sionLayer utilizes a reparameterization [34] structure.This structure allows the module to use more complex convolutional branches during training to better capture features, while during validation or inference, it can switch to less computationally intensive branches to save computing resources.This helps the module achieve efficient feature processing at different stages.
37In summary, UniFusionLayer is a module designed for feature fusion.Its primary role is to merge feature maps from different layers, scales, and semantics to enhance the model's capability to learn diverse information.By introducing residual connections and a reparameterization structure, this module not only preserves the original information of input features but also makes feature learning and gradient propagation more efficient and stable.This leads to improved model expressiveness and performance, contributing to successful outcomes in computer vision tasks.
Hard sample mining loss function
38The loss function of the network in this paper consists of three parts: classification loss (cls_loss), localization loss (box_loss), and confidence loss (obj_loss).These loss functions are used for different aspects of the object detection task.The classification loss is used to compute whether the classification of the anchor box matches the ground truth.The localization loss represents the error between the predicted box and the ground truth box.The confidence loss calculates the network's confidence.The loss function is expressed as follows:
39In the equation, the confidence loss and classification loss use the binary cross-entropy loss function (BCEWithLogit-sLoss), and the localization loss uses the CIoU loss function.
40The binary cross-entropy loss function BCEWithLogitsLoss is defined as follows:
41device is used to transport the light guide plate along a specific track or direction to the camera's shooting area.The conveying device ensures continuous and uninterrupted supply of light guide plates for image capture, enabling the experiment to operate efficiently.The role of the robotic arm is to classify the light guide plates in an orderly and accurate manner based on the detection results, ensuring that products deemed non-compliant or possessing specific features receive appropriate treatment.The light source provides ample illumination, ensuring the camera can capture clear and accurate images.To meet the requirements of actual production for process speed, we deliberately utilized a 16 K line-scan camera to capture high-resolution images (30000 × 16384), ensuring the detection of subtle defects.
42Considering that high-resolution images may consume more computational resources and memory, this paper made a comprehensive consideration and cropped these images, resulting in 4,111 images with a resolution of 448 × 448 pixels.These images were classified and annotated by skilled technicians, primarily categorized into four types based on the defect's nature, including B_line, D_line, area, and white_point, as detailed in Table 2.
43The light guide plate dataset has the challenges of small defect targets and low contrast.Moreover, due to the complex optical structure characteristics of the light guide plate, the light guide points are unevenly distributed, presenting changes in density, making the image background full of sizes.The improved method can be summarized in the following steps, performed for each feature map:
44(1) During the training process in each mini-batch, apply balanced Focal Loss [39] to each cell to obtain the loss value for the detection results.
45(2) Flatten the three-dimensional cell structure and connect the loss values of each image sample to different weight vectors.
46(3) Sort the loss values for each image.
47(4) Select the quantity ratio of the top B cells for each image sample from the sorted loss vectors.(The quantity B is determined by the "LRM_ignore" parameter.)
48(5) Calculate the mean of each selected loss separately.( 6) Sum these averages to obtain the objectness loss.In summary, this improved approach in the Loss Ranking Module (LRM) structure computes the loss in a balanced manner by selecting the top B detection results for each feature map.This helps better address the issue of sample imbalance in object detection and focuses more on the classification of challenging samples on each feature map.
Experimental platform and dataset preprocessing
49In the experimental study of this paper, a self-built light guide plate defect dataset was used, which was collected from real industrial sites.The equipment for capturing light guide plate images is shown in Fig. 9, including a camera, light source, robotic arm, and conveyor.The conveying loss function (Loss) through improvements, resulting in a faster and higher convergence speed of mAP.
50According to Table 6, the addition of the RFB module improves the detection accuracy of B_line and D_line defects but is not friendly to the other two types, indicating that the increased receptive field is beneficial for detecting line-shaped defects in the light guide plate.The inclusion of the FWN architecture results in overall improvements but also significantly increases the computational complexity (GFlops).The introduction of the improved loss function with LRM similarly leads to overall improvements in detection accuracy without increasing computational complexity.When combining RFB, FWN, and LRM, the mAP reaches 98.6%, demonstrating that the combination of the three is effective.This combination not only increases the receptive field during feature extraction but also incorporates more semantic information of multiple scales during feature fusion, enhancing the network's ability to detect defects of different sizes.However, it also comes with a significant increase in computational complexity (GFlops).After increasing the detection hierarchy, not only is the computational complexity (GFlops) reduced, but there is also a slight improvement in detection accuracy, achieving the highest detection accuracy.
51We chose to increase the detection level because increasing the level of feature fusion is accompanied by a decrease complex texture.At the same time, the imaging characteristics of dust and white spot defects are very similar, which is easy to lead to misjudgment.In addition, the area of some white spot defects is very close to that of the light guide point, making it difficult to distinguish effectively; while the dark line defect is difficult to distinguish obviously by the naked eye due to the low contrast with the background.The size differences of white spots, bright lines, dark lines and surface defects are obvious, so the detection model needs to have a good detection effect on multi-scale targets at the same time.
52Before feeding the dataset into the network for training, it is necessary to partition the dataset appropriately.In this paper, based on the number of dataset samples and the rationality of training, each type of defect sample is divided into a training set, a validation set, and a test set, with a ratio of 6:2:2.It is important to emphasize that the images in these sets are non-overlapping to ensure the effectiveness of evaluating the model's performance.Table 3 shows the specific distribution of each defect type across the training, validation, and testing sets.
53The software versions and hardware environment for this experiment are shown in Table 4, and the network training parameters are presented in Table 5.
54The network training parameters were fine-tuned through multiple experiments to optimize the model's convergence speed and detection performance.The initial and final learning rates were set to account for rapid convergence at the beginning of training and fine optimization at later stages.A batch size of 16 was chosen to ensure computational efficiency and stability in gradient updates.The settings of LRM_ignore and dynamic parameters help enhance the model's robustness when handling low-confidence bounding boxes and complex samples.We explored various parameter combinations in our experiments, and the final hyperparameters achieved an optimal balance between performance and model stability for the defect detection task.Table 5 presents the selected parameter values.
Ablation experiment
55The paper made four modifications to the base model YOLOv7-Backbone + FPN [40] of the EC-PFN network.In order to individually verify each modification as well as the integrated detection results, an ablation experiment was conducted, and the experimental results are shown in Fig. 10; Table 6 .
56From Fig. 10, it can be observed that the training loss function (Loss) and mAP curve converge rapidly within the first 50 training iterations and reach convergence around 300 iterations.The model exhibits a reduction in the training This article randomly selected a total of 9 images from the four defect categories for testing on some models.For each defect, it marked the bounding boxes, categories, and category scores, as shown in Fig. 11.It can be observed that different models have varying detection performance on the Light Guide Plate Defect Dataset.Clearly, compared to other detection models, our model exhibits better detection performance with higher confidence in the detection results.
Experimental results on the NEU-DET surface defect dataset
57To further validate the effectiveness of the EC-PFN network, comparative experiments were conducted on the NEU surface defect database (NEU-DET) dataset, which was released by Professor Ke-Chen Song's team at Northeastern University.
58In the Northeastern University (NEU) surface defect database [41,42] contains six typical surface defects found on hot-rolled steel strips, including rolled-in scale (RS), patches (Pa), crazing (Cr), pitted surface (PS), inclusion (In), and scratches (Sc).This database consists of 1800 grayscale images, with 300 samples, each containing six different types of typical surface defects.The NEU-DET surface defect dataset exhibits significant variations in appearance within the same defect class, for instance, scratches can be horizontal, vertical, or inclined.At the same time, different defect classes share similar appearances, such as rolled-in scale, crazing, and pitted surfaces.These are all problems that exist in the industrial field and are challenging to distinguish and detect.in the resolution of the feature map, which helps reduce computational complexity by conducting fusion at higher levels while retaining sufficient semantic information.
Performance comparison between EC-PFN and YOLO series models
59To validate the effectiveness of the EC-PFN defect detection model, this paper compares it with one-stage and twostage object detection methods.One-stage methods mainly include SSD, YOLOv5, YOLOv6, YOLOv7, and YOLOv7tiny, while two-stage methods mainly include Faster-RCNN.The comparison results of each object detection method are shown in Table 7, and the test results for each model are displayed in Fig. 11.
60As shown in Table 7, the EC-PFN defect detection network proposed in this paper outperforms other object detection networks.In terms of detection accuracy, the mAP value of the EC-PFN defect detection network proposed in this paper is the highest (98.9%), compared to SSD, Faster-RCNN, YOLOv5, YOLOv6, YOLOv7, and YOLOv7-tiny, it improves by 14.9%, 15.3%, 0.8%, 1.5%, 1.1%, and 2.3%, respectively.In terms of detection speed (FPS), YOLOv7tiny achieves the fastest detection speed at 142 FPS.In terms of computational complexity (GFlops), YOLOv7-tiny has the least computation, at 13.2 GFlops, while EC-PFN is second with 14.5 GFlops.Compared to SSD, Faster-RCNN, YOLOv5, YOLOv6, YOLOv7, and YOLOv7-tiny networks, EC-PFN achieves higher detection accuracy (mAP) while maintaining lower computational and parameter complexity.Additionally, it meets real-time requirements in terms of detection speed.This paper compares the network with various object detection methods, mainly including YOLOv5, YOLOv6, YOLOv7, YOLOv7-tiny, A-ODSS, and Multi-Scale YOLO-v5.The A-ODSS method is from a paper published in the journal APPLIED SCIENCES-BASEL in 2022 [43], which proposes a hierarchical approach to detect various non-typical defects on steel surfaces, and it is included for comparison due to its innovative approach.The Multi-Scale YOLO-v5 method is from a paper published in the journal PROCESSES in 2023 [15], which improves YOLOv5 and enhances its detection performance.The comparison results of various object detection methods are shown in Table 8, and the model's test results are shown in Fig. 12.
61As shown in Table 8, the EC-PFN defect detection network proposed in this paper outperforms other target detection networks.In terms of detection accuracy, the mAP value of the EC-PFN defect detection network proposed in this paper is the highest (79.1%), compared to YOLOv5, YOLOv6, YOLOv7, YOLOv7-tiny, A-ODSS, and MS-YOLO-v5, it has improved by 1.5%, 7.4%, 3.5%, 6.9%, 1.98%, and 7.1% respectively.Although the EC-PFN defect detection network cannot achieve the best detection accuracy in the crazing, inclusion, patches, and pitted_surface classes, its overall accuracy has improved.These results indicate that the EC-PFN network model proposed in this paper is effective and practical.
62This article randomly selected a total of 11 images from 6 defect categories for testing on several models, and the results are shown in Fig. 12.It can be observed that different models have varying detection performance on the NEU-DET dataset.Clearly, compared to other detection models, our model demonstrates superior detection performance.YOLOv5 encounters a problem of multiple detections for the inclusion defect, while YOLOv7 and YOLOv7-tiny cannot detect the rolled-in_scale and scratches defects.
Computational efficiency and statistical analysis
63We further evaluated the computational efficiency of the proposed EC-PFN model compared to other models by measuring their training time and testing speed (images per second).Table 9 shows that the training time for EC-PFN is 3.0 h, which is comparable to YOLOv5 (3.5 h) and significantly faster than YOLOv6 (5.1 h).In terms of testing speed, EC-PFN achieves 67 images per second, slightly slower than YOLOv7-tiny (72 images per second), the fastest model.However, EC-PFN maintains a substantial balance between computational efficiency and detection performance, outperforming other models in terms of accuracy.This indicates that EC-PFN offers competitive statistical tests on these algorithms.The confusion matrix shown in Fig. 13 records the p-value matrix returned by the Friedman test with the post hoc Nemenyi test [44].The p-value in Fig. 13 indicates statistical significance, and the assumption that two algorithms perform equally in accuracy can be rejected when the p-value is less than 0.05.The p-value obtained from the Friedman test is 0.00075, indicating significant differences among the models.The Nemenyi test reveals that our proposed EC-PFN model demonstrates statistically significant improvements over SSD and Faster_RCNN.However, no statistically significant differences were found in p-values between EC-PFN and YOLOv5, YOLOv6, YOLOv7, and YOLOv7-tiny.This finding suggests that EC-PFN achieves competitive performance comparable to these advanced models while providing significant improvements over SSD and Faster_RCNN.
Limitations and future work
64While the proposed EC-PFN network has demonstrated excellent performance, there are still instances of failure, particularly with images that have low contrast and quality, as shown in Fig. 14.These factors make it challenging to determine defect locations and quantities.To address these limitations, we propose applying image enhancement techniques, such as contrast enhancement and denoising, as preprocessing steps to improve the distinction between defects and background.computational efficiency while achieving superior defect detection results.
65To further evaluate the significant performance differences between EC-PFN and other models, such as YOLOv5, YOLOv6, YOLOv7, and YOLOv7-tiny, we conducted We validated the model on a self-built light guide plate defect dataset, as well as the publicly available Northeastern University steel defect dataset.The EC-PFN achieved superior performance, attaining a 98.9% mAP on the light guide plate dataset while maintaining low computational complexity, making it suitable for real-time applications.On the steel defect dataset, EC-PFN outperformed stateof-the-art methods, achieving 79.1% detection accuracy, surpassing other mainstream models such as YOLOv5, YOLOv6, and A-ODSS.These results highlight EC-PFN's robustness and scalability across various industrial defect detection scenarios.
66In future work, we aim to further optimize the network's efficiency and adaptability by exploring advanced optimization techniques and improving its ability to generalize to different industrial defect datasets.LGG19F030014).
Data availability
67To facilitate reproducibility and further research, we will make the EC-PFN model code and experimental configurations publicly available at https:/ /github .com/LiangGe -Ning/ EC-PFN.Although the full industrial dataset is not shareable due to proprietary restrictions, we are exploring the possibility of releasing a small subset or synthetic version of the dataset.We encourage researchers to utilize the provided code and experiment settings for further study and improvements.
68Furthermore, to optimize the network's efficiency and accuracy, we plan to explore several techniques:
69(1) Adopting advanced non-maximum suppression (NMS) methods, such as Soft-NMS or Learning-NMS, to reduce redundant detection boxes and improve localization precision.
70(2) Integrating lightweight backbone networks, such as MobileNetV3 or EfficientNet, to reduce computational complexity without sacrificing detection accuracy.
71(3) Using knowledge distillation to transfer the learned knowledge from a larger, more accurate model to a smaller model, thereby improving inference speed while maintaining high accuracy.
72(4) Incorporating neural architecture search (NAS) methods to automate and optimize the network design, ensuring an optimal balance between detection performance and computational cost.These techniques will help further optimize the model for variable and challenging defect detection scenarios, improving its robustness and efficiency.
Conclusion
73This study addresses the key challenges in industrial surface defect detection, including low-contrast defects, significant intra-class variation, and difficulties in detecting small targets.In response, we propose the Enhanced Context-aware Parallel Fusion Network (EC-PFN), which introduces several innovations.Firstly, the RFB module in the backbone expands the receptive field, significantly improving the network's ability to extract features from complex and subtle defects.Secondly, the Feature Weave Network in the neck part employs a novel multiscale fusion strategy, combining
Fig. 1
74Fig. 1 Challenges in Industrial Defect Detection: (a) Low contrast defect; (b) Significant intra-class variations; (c) Inter-class similarity
Fig. 2
75Fig. 2 EC-PFN network architecture diagram
Fig. 3
76Fig. 3 Details of some modules in the architecture
Fig. 4
77Fig. 4 Schematic representation of the RFB module effect
Fig. 6 Fig. 5
78Fig. 6 Schematic Diagram of the FWN feature fusion structure
Fig. 8 Fig. 7
79Fig. 8 Details of the fusion module
Fig. 10
80Fig. 10 Training loss curve and training mAP curve
Fig. 11
81Fig. 11 Test results on the light guide plate defect dataset with different models
Fig. 13 p 3
82Fig. 13 p-values of statistical analysis
Fig. 14
83Fig. 14 Missed detection and duplicate detection cases
Table 1 The
84detailed structure of backbone Type Size Stride Filters Param Output CBS 3 × 3 2 32 928 224 × 224 × 32 CBS 3 × 3 2 64 18,560 112 × 112 × 64 CBS 3 × 3 2
Table 2
85Light guide plate defect detection dataset
Table 3
86Statistics of the light guide plate dataset for training, valida-
Table 7
87Detection results on the light guide plate defect dataset with different networks
Table 8
88Detection results of NEU-DET on different networks
Table 9
89Training/testing execution times
참고문헌 39건
- Advances in neural information processing systems 7 Neurocomputing · Elsevier BV · 1997 10.1016/s0925-2312(97)90018-7
- Nonparametric statistical analysis for multiple comparison of machine learning regression algorithms International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2012 10.2478/v10006-012-0064-z
- SSD: Single Shot MultiBox Detector Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_2
- Feature Pyramid Networks for Object Detection 2017 10.1109/cvpr.2017.106
- Deep Learning‐Based Crack Damage Detection Using Convolutional Neural Networks Computer-Aided Civil and Infrastructure Engineering · Wiley · 2017 10.1111/mice.12263
- A Surface Defect Detection Method Based on Positive Samples Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-319-97310-4_54
- Focal Loss for Dense Object Detection IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2018 10.1109/tpami.2018.2858826
- Re-ranking Person Re-identification with Adaptive Hard Sample Mining Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-03398-9_1
- Automatic fabric defect detection with a wide-and-compact network Neurocomputing · Elsevier BV · 2018 10.1016/j.neucom.2018.10.070
- An End-to-End Steel Surface Defect Detection Approach via Fusing Multiple Hierarchical Features IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2019 10.1109/tim.2019.2915404
- Training Region-Based Object Detectors with Online Hard Example Mining 2016 10.1109/cvpr.2016.89
- Receptive Field Block Net for Accurate and Fast Object Detection Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01252-6_24
- Loss Rank Mining: A General Hard Example Mining Method for Real-time Detectors 2022 International Joint Conference on Neural Networks (IJCNN) · 2018 10.1109/ijcnn.2018.8489071
- Hard sample mining makes person re-identification more efficient and accurate Neurocomputing · Elsevier BV · 2019 10.1016/j.neucom.2019.11.094
- PGA-Net: Pyramid Feature Fusion and Global Context Attention Network for Automated Surface Defect Detection IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2958826
- Multistage GAN for Fabric Defect Detection IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2019 10.1109/tip.2019.2959741
- Aluminum Surface-Defect Detection Based on Multi-Task Deep Learning Laser & Optoelectronics Progress · Shanghai Institute of Optics and Fine Mechanics · 2020 10.3788/lop57.101501
- Visual Perception Enabled Industry Intelligence: State of the Art, Challenges and Prospects IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tii.2020.2998818
- Vision based inspection system for leather surface defect detection using fast convergence particle swarm optimization ensemble classifier approach Multimedia Tools and Applications · Springer Science+Business Media · 2020 10.1007/s11042-020-09727-3
- SSD: Single Shot MultiBox Detector Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_2
- Detection for Rail Surface Defects via Partitioned Edge Feature IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tits.2021.3058635
- Mobile Phone Surface Defect Detection Based on Improved Faster R-CNN 2022 26th International Conference on Pattern Recognition (ICPR) · 2021 10.1109/icpr48806.2021.9412119
- Triplet-Graph Reasoning Network for Few-Shot Metal Generic Surface Defect Segmentation IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3083561
- Research on Image Defect Detection of Silicon Panel Based on Prewitt and Canny Operator Frontiers in Physics · Frontiers Media · 2021 10.3389/fphy.2021.701462
- Surface Defect Detection Methods for Industrial Products: A Review Applied Sciences · Multidisciplinary Digital Publishing Institute · 2021 10.3390/app11167657
- Improved faster R-CNN for fabric defect detection based on Gabor filter with Genetic Algorithm optimization Computers in Industry · Elsevier BV · 2021 10.1016/j.compind.2021.103551
- A Small-Sized Object Detection Oriented Multi-Scale Feature Fusion Approach With Application to Defect Detection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3153997
- The Amalgamation of the Object Detection and Semantic Segmentation for Steel Surface Defect Detection Applied Sciences · Multidisciplinary Digital Publishing Institute · 2022 10.3390/app12126004
- Defect Detection of Integrated Circuit Based on YOLOv5 2022 10.1109/ccai55564.2022.9807758
- Deep Residual Learning for Image Recognition: A Survey Applied Sciences · Multidisciplinary Digital Publishing Institute · 2022 10.3390/app12188972
- HM-YOLOv5: A fast and accurate network for defect detection of hot-pressed light guide plates Engineering Applications of Artificial Intelligence · Elsevier BV · 2022 10.1016/j.engappai.2022.105529
- Comparative assessment of common pre-trained CNNs for vision-based surface defect detection of machined components Expert Systems with Applications · Elsevier BV · 2023 10.1016/j.eswa.2023.119623
- 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
- A survey of real-time surface defect inspection methods based on deep learning Artificial Intelligence Review · Springer Science+Business Media · 2023 10.1007/s10462-023-10475-7
- Real-Time Steel Surface Defect Detection with Improved Multi-Scale YOLO-v5 Processes · Multidisciplinary Digital Publishing Institute · 2023 10.3390/pr11051357
- Aeroengine Blade Surface Defect Detection System Based on Improved Faster RCNN International Journal of Intelligent Systems · Wiley · 2023 10.1155/2023/1992415
- Consistent-Teacher: Towards Reducing Inconsistent Pseudo-Targets in Semi-Supervised Object Detection 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2023 10.1109/cvpr52729.2023.00316
- YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors 2023 10.1109/cvpr52729.2023.00721
- OmniAL: A Unified CNN Framework for Unsupervised Anomaly Localization 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2023 10.1109/cvpr52729.2023.00382