Efficient and accurate semi-supervised semantic segmentation for industrial surface defects
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (3) 자동차 인테리어 소재(11) 배리어 필름(12) 증착 필름
기본 정보
- 저자
- DOI
- 10.1038/s41598-024-72579-6
- 저널
- Scientific Reports
- 발행년도
- 2024
- 발행기관
- Nature Portfolio
- 피인용수
- 2
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1038/s41598-024-72579-6
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W4402645620
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (3) 자동차 인테리어 소재, (11) 배리어 필름, (12) 증착 필름
- R&D 측면
- 물성·성능 평가
- 확신도
- 0.80
- 근거 용어
- industrial surface defects, defect detection, semantic segmentation, quality inspection, machine vision
- 판단 근거
- 이 논문은 산업용 제품의 표면 결함을 딥러닝으로 검출하는 기술을 다루고 있습니다. 코오롱인더스트리의 직접적인 제품 연구는 아니지만, 제조 공정 중 필름, 섬유, 컴파운드 등 다양한 소재의 품질 관리(Quality Control) 및 외관 검사 자동화 시스템에 적용 가능한 기술입니다.
- R&D 활용 포인트
- 필름(11, 12)의 표면 결함(스크래치, 이물질)이나 산업용 섬유/컴파운드(23) 제조 공정의 실시간 비전 검사 시스템 고도화에 활용 가능합니다.
- 평가 입력
- 본문 65,346자 중 30,032자 발췌
초록
본문 65,346자
본문 펼치기
섹션 본문 72문단 · 34,593자
(제목 없음)
1Deep learning-based defect detection methods have gained widespread application in industrial quality inspection.However, limitations such as insufficient sample sizes, low data utilization, and issues with accuracy and speed persist.This paper proposes a semi-supervised semantic segmentation framework that addresses these challenges through perturbation invariance at both the image and feature space.The framework employs diverse perturbation cross-pseudo-supervision to reduce dependency on extensive labeled datasets.Our lightweight method incorporates edge pixel-level semantic information and shallow feature fusion to enhance real-time performance and improve the accuracy of defect edge detection and small target segmentation in industrial inspection.Experimental results demonstrate that the proposed method outperforms the current state-of-theart (SOTA) semi-supervised semantic segmentation methods across various industrial scenarios.Specifically, our method achieves a mean Intersection over Union (mIoU) 3.11% higher than the SOTA method on our dataset and 4.39% higher on the public KolektorSDD dataset.Additionally, our semantic segmentation network matches the speed of the fastest network, U-net, while achieving a mIoU 2.99% higher than DeepLabv3Plus.
2• The semi-supervised semantic segmentation model increases the disturbance of feature space and executes cross pseudo-supervision in parallel within the image-level.• Lightweight attention module and Shallow feature fusion improve detection speed and segmentation accu- racy.• Dynamic threshold strategy generates more reliable pseudo labels.
3• Constructs the datasets of five scenarios: dirty bottom, broken bottle body, foreign body in noodles, folded label, and broken egg case, which provides a research basis for semi-supervised industrial defect detection.
Semi-supervised learning framework
4Defects in industrial scenarios are usually diverse and complex, and there may be factors such as illumination change, angle change, size deviation, occlusion, and interference 15 .Disturbance of the feature space can make the model tolerant to the absence of certain features, thus improving its robustness.Even when some features are missing or the input data is noisy, the model can still perform well.In addition, different feature subset combinations can be introduced through a part of the feature channels of random dropout, which is helpful for the model to learn more abundant feature representations, reducing the situation of missed detection and false detection, and thus improving the efficiency of the production line and product quality.Moreover, to meet thehigh-efficiency requirements in industrial scenarios, the random deletion of feature channels can reduce parameters and calculations of the model and improve the efficiency of training and reasoning.In deep neural networks, reducing the number of feature channels can reduce calculation and speed up training.Therefore, in order to comprehensively improve the performance and generalization ability of the model, this paper proposes a new Two-Branch Perturbation Cross Pseudo Supervision [16][17][18] model, from now on referred to as TPcps, which perturbs the input image at the image-level.One branch is added to disturb the image feature space strongly.The prediction results of the two branches tend to be consistent, as shown in Fig. 1.Specifically, the method proposed obtains the prediction results after the labeled images are directly sent into the model and use the cross entropy loss function (CEloss) as a constraint ( p i is the grand truth, and q i is the prediction value).The cross-entropy loss function is defined as follows:
5For unlabeled images, they will enter the model through two branches.The first branch is to disturb the unlabeled images at the image-level: The disturbance methods include random geometric data enhancement: rotation, translation, and shearing.Disturbance methods also include non-geometric data enhancement, such as flipping, cropping, and re-sizing.Noise Injection and random image erasure are injected.Even small perturbations in the pixel space can generate substantial noise in the feature maps after propagation through multiple layers of the network, causing the model to acquire incorrect information and diminishing the efficiency of model learning, The second branch disturbs the image at the feature-level and randomly drips the features at the channel dimension.Two branches generate two prediction results, each other's pseudo-labels.They are constrained by the cross pseudo-supervised loss function, so the enhanced inputs at different levels tend to have the same prediction results.The cross pseudo-supervised loss function is defined as follows:
6The final total loss is the sum of supervised loss and unsupervised loss, as shown in Eq. ( 3).
7(1)
8where D l is the labeled dataset given with a size of N, D u is an unlabeled dataset with a size of M. W and H are the width and height of the input image.At each position i, q i and q * i are the prediction values of the first and second branches, respectively.The label vector l i ( l * i ) is a one-hot vector computed from q i ( q * i ).The model structure combines self-training and consistency learning so that the model can better use a small amount of labeled defect data in industrial scenarios, improving data utilization and enhancing model performance.
Segmentation model and network improvement
9Model architecture Due to the scene's and data's inherent properties, the industrial defect target is weak and difficult to detect, with unclear boundaries between different defect categories, requiring high-speed detection in industrial settings.In this paper, a new network structure of DeepLabv3Plus+Simplified MobileNetv2 is designed, which inherits the advantages of DeepLabv3Plus 19 .Using dilated convolution and multi-scale information fusion technology, the new network can effectively capture the semantic information and detailed features in the image.At the same time, the the network's speed of training and reasoning is improved by combining MobileNetv2 lightweight network.The segmentation accuracy of small targets and defects is improved by combining the ECA module 12 and the attention module, as shown in Fig. 2.
10The backbone network Xception model of DeepLabv3Plus has many parameters, extended training and prediction times, and cannot meet industrial needs.Replacing the original backbone network with a modified lightweight backbone network MobileNetv2, which is driven by its efficiency, lightweight architecture, scalability, accuracy, and transfer learning capabilities, effectively reduces the number of model parameters and training time while improving prediction speed and makes it well-suited for resource-constrained environments.In order to improve the resolution of the final output feature map, the fifth and seventh layer modules are changed from the original stride size 2 to stride size 1.At this time, the output resolution of the feature map of the improved MobileNetv2 network is four times higher than that of the original MobileNetv2 network, which is 1/8 of the input image and can retain more detailed information in the feature map.After the 8th floor, the number of channels of the original MobileNetv2 increased to 1280, and the number of parameters significantly increased.Prune the original MobileNetv2 network and discard the last three layers for classification.The specific networks before and after modification are shown in Tables 1 and 2. Operators are different network module layers; Input is the size of the input feature map; C is the number of output channels of the feature map, and n is the number of times the module of this layer is used; S is the convolution step size.
Lightweight attention module
11The semantic segmentation model designs a lightweight attention mechanism module after dilated convolution, aiming at improving the model's attention to critical areas 20 , thus effectively extracting defective parts and reducing information duplication 21 .CBAM 22 uses the fully connected layer to map features when calculating the generated channel attention, but the calculation amount of the fully connected layer is enormous.In the spatial attention module, to aggregate broader spatial context features, a 7 × 7 large receptive field convolution kernel is used to aggregate spatial features, increasing the receptive field and the parameters of the module, which significantly limits the application of the module in industrial scenarios.
12In order to solve this problem, this paper designs a one-dimensional convolution operation to aggregate the channel features of one-dimensional channel attention.As shown in Fig. 3, the size of a one-dimensional convolution kernel is the number of channels in the aggregation neighborhood.Due to the parameter-sharing nature of convolution operation, introducing one-dimensional convolution reduces the parameter quantity of the channel attention module to a constant level.For spatial attention, this paper uses dilated convolution to aggregate the spatial features of two-dimensional spatial attention; this dramatically reduces the number of module parameters in the same size receptive field.The specific operation is executed as follows: Global mean pooling and maximum pooling operations are used to aggregate the spatial information of feature mapping.One-dimensional convolution with convolution kernel length k is used to aggregate the information of k channels in the neighborhood of the channel.Add the two convolved features element-wise, generate channel attention C F ∈ R 1×H×W through Sigmoid function operation, then broadcast and expand the generated channel attention along the two spatial dimensions to R C×H×W , and multiply it with the input feature map by the corresponding elements to obtain the injected channel attention feature map.The specific channel attention calculation process is defined as follows:
13Here, sig denotes the Sigmoid function, and f k 1D represents the one-dimensional convolution operation with a kernel size of k.
14The calculation of the k value 23 is shown in Eq. ( 5), where c represents the number of channels of the input feature map, and |t| odd represents the odd number closest to t.
15Similarly, effective spatial feature descriptors F s avg and F s max are generated in spatial attention.Then, dilated convolution is used to encode and map the regional information that needs to be emphasized or suppressed in space, and spazzzzxtial context information is aggregated more efficiently.Finally, these weights are multiplied with the original input feature map, and after convolution, deep features containing multi-scale context information are generated.Finally, the shallow features and deep features are combined by the concat part to realize the accurate segmentation of the defective part.The calculation process of spatial attention is defined as follows:
16Among them, f 3×3 dilat represents the dilated convolution with a convolution kernel size of 3, and the experiment uses a hole rate of 2. The model can focus more on essential regions within the image by introducing lightweight attention modules, reducing attention to irrelevant information.This enhancement improves both the efficiency and accuracy of detection.It allows the model to better adapt to various environments and conditions in industrial scenarios, enabling it to handle the complexities of industrial production lines more effectively.These complexities include variations in lighting, angles, and backgrounds.As a result, the model's generalization capability and practical application value are significantly improved.Figure 4 compares the heatmaps before and after the lightweight attention modules were added.
Shallow feature fusion
17The traditional DeepLabv3Plus model does not thoroughly combine the shallow feature map in the decoding part, and the extracted local details need to be more prosperous, making the whole model's prediction result inaccurate.In order to solve this problem, this paper uses the idea of a feature pyramid and ECA 24 to add a 1/2 size feature map based on applying a 1/4 size feature map.As shown in Fig. 5, shallow and middle features have higher resolution and show different details such as color, texture, and edge 25 .The resolution of deep features is low, but it shows more robust high-level semantic information.In order to reduce the loss of details in the process of downsampling the deep features, the shallow features output by the backbone network are downsampled and fused with the middle features to obtain more detailed features of the image(SFF).The number of channels is adjusted by convolution, ReLU activation function, and regularization operation to prevent too much low-level semantic information affecting the expression of deep semantic information, effectively improving the accuracy of small target segmentation with few parameters.
18The specific operation is shown on the right in Fig. 5.A and B are the feature maps generated when the coding part is down-sampled, with the size of 1/2 and 1/4, respectively.The number of channels is 16 and 24, respectively.Feature map A obtains feature map C after passing through an inflated convolution block with a convolution kernel size of 3, step size of 2, and void ratio of 2. C is 1/4 of the input feature map, using the expansion convolution to expand the receptive field while removing noise using the ECA module to learn more useful feature
Dynamic threshold strategy
19A dynamic threshold strategy is proposed to prevent the double-branch model from simultaneously generating the same false label 12,19,26 .Generating false labels leads to the TPcps model learning the wrong label information, thus reducing the detection accuracy.Our method selects reliable data according to pseudo-labels' stability in the first training stage.The method reduces the selection criteria of pseudo-tags because the model does not learn compelling features, and the prediction results are not accurate enough, so the selection criteria of high www.nature.com/scientificreports/threshold pseudo-tags are not applicable.As the model learns the discriminating characteristics of data, the model improves the detection threshold according to the feedback of the effect evaluation index, subdivides the defect edge, and further improves the semantic segmentation accuracy.Experiments show that the dynamic threshold method effectively solves the problem of the double-branch model generating false labels simultaneously, making pseudo labels more reliable.The dynamic threshold strategy first needs to evaluate the model's training effect at a particular moment.This paper proposes an effective learning effect evaluation index and dynamically adjusts the strategy accordingly.Specifically, the learning effect of a defect category is determined by a score, and S t represents the learning effect of the defect at time t, as shown in Eq. (7).Before model training, a fixed threshold τ is set, and the expression of learning performance is as follows:
20For all samples belonging to a particular defect category ' c, ' the model estimates the number of instances where the predicted score for that defect category exceeds a fixed threshold.In the normalization process, a dynamic threshold strategy is also employed.In the early stages of the model, where there is a high number of undetermined samples, N − � c σ t plays a dominant role.However, in the later stages of model training, as most samples have been selected at least once, the denominator becomes the maximum value among all estimated learning effects for each class, denoted as maxS t .The normalization is defined as follows:
21The final threshold is determined as shown in Eq. (9).By combining the threshold preheating method, the dynamic threshold strategy, and the ingenious normalization method, the learning effect of the classification with the best prediction accuracy is 1.After applying the Eq. ( 9), its threshold becomes τ , and at this time, it has reached the upper limit of the dynamic threshold.
Experiment Datasets
22Firstly, the defects in industrial scenarios are classified, and datasets are made according to the characteristics of each category and the existing industrial inspection problems.The first type is an additional anomaly: dirt, foreign matter, and adhesion.For this scenario, we designed the Bottle Bottom Spoils and Noodles Adhesion Detection.The second type is loss anomaly: incomplete, scratched, and broken.For this scenario,we designed for bottle breakage and poultry egg case breakage detection.The third is to replace the anomalies: mixed color, different color, impurities, and confusion.For this scenario, we designed the detection of black spots, impurities, and discoloration in noodles.The fourth is abnormal deformation: distortion, crease, and fold.For this scenario, we designed bottle label distortion and fold detection.The specific data of each category are shown in Table 3.
23Description of industrial defect categories. 1 Additional: Dirty, foreign matter, adhesion. 2Loss: Incomplete, scratched and damaged. 3Replacement: mixed color, different color, impurity, confusion. 4Deformation: distortion, size, wrinkle.
24In this experiment, five scene datasets are designed, including simple and complex scenarios, and the defect types include binary classification and multi-classification situations.Specifically, the contents of each dataset are shown in the following Table 4.The label tool is used to mark the defects in the defective samples.The marked samples participating in the training account for 1/2, 1/4, 1/8, and 1/16 of the total training set, respectively, and the rest of the samples enter the unlabeled branch training model as unlabeled images.
Experimental environment and benchmark experiment
25This paper'sa method uses the Ubuntu 22.04.1 operating system, with a GeForce RTX 3090 GPU and a 12th Gen Intel (R) Core (TM) i7-12700k CPU.The spec details are shown in Table 5.
26In the training stage, parallel and distributed training strategies based on the PyTorch framework are adopted in the experiment.According to the specific configuration of the experimental environment and available GPU resources, different data-parallel strategies are adopted to optimize the training efficiency.The model can use multiple GPUs to process batch data in parallel, thus speeding up the training process, calculating forward and backward propagation in parallel, and finally synchronizing and updating the model parameters on the primary device.As for the implementation details, this paper uses an SGD optimizer and polynomial learning rate scheduler with a momentum of 0.9, and the initial learning rate is 0.001.At the same time, with the increase in training rounds, the learning rate is dynamically adjusted, and the initial prediction threshold is set to 0.9.Random data enhancement within the scale of [0.5, 2.0] is adopted for image-level disturbances, which is realized by a random combination of geometric disturbances, non-geometric disturbances, and image erasure.
Comparison between self-built datasets and mainstream semi-supervised methods
27In the context of semi-supervised semantic segmentation for defect detection, challenges such as low contrast and background noise significantly impact model performance.Low-contrast images often conceal defects that fuse with the background, rendering traditional segmentation methods ineffective.To address this, this paper employs multi-scale feature fusion capable of capturing rich contextual information.For instance, in images of Label Folds with minimal colour differentiation, conventional methods struggle, whereas our network enhances feature maps to identify subtle structural variations, as shown in Fig. 6a.
28Similarly, background noise can mislead the model by introducing irrelevant features.For instance, in the Broken Egg Shell dataset, the cracks in the egg shells are affected by the intrinsic patterns and spots on the eggs.We mitigate this issue by incorporating attention mechanisms that allow the model to focus on critical defects while disregarding noise.Additionally, data augmentation and multi-task learning strategies further enhance the model's robustness against background interferences.Together, these methodologies not only improve the accuracy of defect detection but also provide a pathway for future advancements in this domain.as shown in Fig. 6b.
29This paper compares the above industrial datasets with the SOTA method of semi-supervised learning in recent years.We evaluated several key xmetrics, including Intersection over mIoU, F1 score, and pixel accuracy.The performance metrics are summarized in Table 6.In images with low contrast, such as Label Folds, our framework demonstrated superior capabilities in identifying defects compared to AugSeg and DGCL.The attention mechanism helped isolate the defects from the noisy backgrounds, resulting in clearer segmentations.As shown in Fig. 6.In the Broken Egg Shell dataset, the cracks in the eggshells are affected by the intrinsic patterns and spots on the eggs.Our proposed model outperforms other methods, as it successfully highlights the defects while minimizing the false positives related to background interference.Additionally, the method proposed in this paper also outperforms the SOTA methods in handling variations in lighting conditions, defect types, and background complexity.The proposed framework was further evaluated on the Noodles dataset, which contains three common defect types in noodle production: discolouration, foreign objects, and black spots, with significant variations in shape, texture, and visual characteristics.The Noodles dataset encompasses a wide range of illumination, from bright and uniform to dark and uneven.As shown in Fig. 7.
30The model demonstrated the ability to detect and segment this diverse range of defect types accurately and maintained high detection accuracy even under complex, non-uniform lighting conditions by focusing on the distinctive visual features of the defects themselves rather than solely relying on local brightness information, effectively generalizing to this diverse range of defects and suppressing background noise to reliably identify defect regions even in the presence of complex backgrounds, indicating the framework's suitability for real-world noodle production defect detection scenarios.
31To further validate the robustness of our proposed framework, we conducted extensive experiments across diverse real-world scenarios and different datasets.We evaluated the model's performance under varying lighting conditions, defect types, and background complexities.As shown in Fig. 8. (1/4 labelled data samples are used as the supervision part of training)
32It can be seen from Fig. 8 that the segmentation effect of this method is better in detail, such as small targets and edges, and edge segmentation is more straightforward.The proposed framework's superior performance across these diverse datasets can be attributed to its ability to effectively capture the distinctive features of defects while suppressing irrelevant background information.The model's architectural design and training strategies enable it to generalize well to various types of defects and environmental conditions, making it a promising solution for real-world industrial inspection tasks.However, the framework's performance may degrade for certain extreme conditions, such as high-speed motion blur or severe occlusions, which could limit its applicability in some industrial scenarios.The second limitation is that the framework currently only handles 2D image data and cannot directly process 3D or multi-dimensional data.Future work could consider extending the framework to support more diverse data input forms.
33In addition to using 1/4 labeled data samples as the supervision part of training, this paper also uses 1/16, 1/8, and 1/2 labeled samples to carry out comparative experiments.The results are shown in Table 7. Table 7 shows the experimental comparison of eggshell breakage detection.The dataset contains 3,436 images, 2,500 of which are used for training models, and 1/16 of the dataset is set as labeled samples to enter the supervised learning branch.To better illustrate the significance of semi-supervised algorithms, we also report the results obtained solely using labelled images.Please refer to the SupOnly results in the first row under each model, where it is evident that the improvement provided by the semi-supervised algorithms over SupOnly is substantial.
Comparison between self-built datasets and mainstream segmentation models
34In addition, this paper compares three network models with excellent semantic segmentation performance.Given the demand for defect detection efficiency in industrial scenarios, the experiment adds prediction speed and model parameter evaluation indicators to evaluate its algorithm performance comprehensively.The comparison results are shown in Table 8.
35The data in Table 8 shows that PSPNet+MobileNetv2 has advantages in speed and model parameters but relatively low semantic segmentation accuracy.In contrast, the proposed method, Modified DeepLabv3Plus+Simplified MobileNetv2, has a speed second only to PSPNet+MobileNetv2 and achieves the highest detection accuracy.Therefore, it offers a more robust overall performance and is more suitable for semantic segmentation defect detection tasks.
Comparison between public datasets and mainstream semi-supervised methods
36In order to further verify the effectiveness of the proposed semi-supervised training strategy, we compared the proposed model with other SOTA methods of semi-supervised semantic segmentation models on public datasets.The samples are shown in Fig. 9.The dataset used in the experiment are defective electronic commutator images provided and annotated by Kolektor Group, as shown in Fig. 9.There are tiny damages or cracks on the surface of the plastic bag of the electronic commutator, and the dataset contains 399 pictures, including 52 images with visible defects,347 images without any defects.One-quarter and one-half of the training set were used in the experiment as the supervised learning part (90/180 images) and the rest as an unsupervised learning part (360/180 images).The experimental results are shown in Table 9.
37In the public dataset KolektorSDD, our proposed method achieved the best results in experiments with both 1/4 labeled data and 1/2 labeled data.To further validate our method's high real-time performance and efficiency in industrial scenarios, we conducted experiments on a large-scale dataset, Steel.
38The production process of steel is exact, involving multiple stages from heating and rolling to drying and cutting 35 .Several machines come into contact with steel during shipment preparation, leading to varying defects.Thus, high-performance and high-accuracy defect detection for steel is confirmed in industrial production.As shown in Fig. 10.
39This dataset is sourced from the Kaggle website, and all images are standardized to a resolution of 1600 × 256 pixels.The training set consists of 12,568 images, and the test set contains 5,506 images.Our method uses 1/4 of the training set as labeled data, while the remaining part is used as unlabeled data for model training.We conducted experiments using different network models, and the specific results are shown in Table 10.
40The proposed method based on the improved DeepLabv3Plus achieves the highest accuracy in the mIoU and mPA evaluation metrics, improving by 2.99% and 6.53% compared to the original method, and by 19.48% and 24.67% compared to U-Net.Regarding inference time and FPS, our method only lags behind U-Net by 0.42 ms and 2.36 fps.The inference time and frame rate are 47% and 2.1 times that of the original DeepLabv3Plus model.It also outperforms other mainstream semantic segmentation network models.Considering all four evaluation metrics, the improved DeepLabv3Plus semantic segmentation models demonstrate more robust overall performance on the Steel dataset.Furthermore, this paper assesses and compares GPU memory usage across different algorithms to provide insights into their practical deployment.The experiment was conducted using GPU chips (GeForce RTX 3090) with 10,496 CUDA cores and 24GB of memory.The batch size was fixed at 16, and the number of workers was set to 8. The GPU memory usage for different algorithms is shown in the Table 11:
Ablation experiment
41In this paper, the model is improved according to the characteristics of different defects, and ablation experiments are conducted to prove the effectiveness of the improvement.As shown in Fig. 11, the defect detection effects under different improvement measures are presented, from which we can see that each step of improvement to the semi-supervised defect detection framework is effective, with the defect edge segmentation becoming more and more accurate, and even small defects being detected as the model is improved.
42The model improvements also need to consider the requirements of speed and lightweight.Table 12 lists the comparative results of the specific ablation experiments, where the baseline is the original enhanced doublebranch disturbance based on solid and weak images, and the segmentation model is DeepLabv3Plus+Resnet50.Based on this, the proposed TPCPS semi-supervised framework significantly increased the mIoU index by 11.41% compared to the baseline but inevitably led to a decrease in detection speed from 55.01 fps to 48.32 fps.
43To meet the high real-time requirements of industrial applications while maintaining detection accuracy as much as possible, this paper modified the original DeepLabv3Plus+Resnet50 network, reducing the model parameters by 22.34M and increasing the speed to 70.38 fps.To further improve the high-precision defect detection requirements, the authors added the LAM and SFF modules to the semi-supervised defect detection framework, which significantly increased the mIoU (4.95% increase after adding the LAM module and 4.75% increase after adding the SFF module), with a slight increase of 1.23M in model parameters.
44In resource-constrained environments, it is worthwhile to trade a slight speed reduction for a significant improvement in detection accuracy, and the addition of the LAM and SFF modules is necessary.Further research could investigate more efficient network architectures or model compression techniques to achieve even higher inference speeds while maintaining improved detection performance.
Conclusion
45This paper proposes a semi-supervised semantic segmentation method based on industrial scenarios.It increases the disturbance of feature space and carries out cross pseudo-supervision in parallel within the image-level.The method outputs the most accurate pixel-by-pixel features, realizes accurate segmentation of defect parts, and uses a small amount of labeled data to detect defects, saving high labor costs.Moreover, in the aspect of segmentation model design, the DeepLabv3Plus model, which currently has excellent semantic segmentation performance, has been selected to be modified.With the lightweight network MobileNetv2, the detection efficiency is improved to ensure the accuracy of semantic segmentation.To address the issues of missed and false detections, shallow fusion features were added after the backbone network to reduce detail loss and improve the accuracy of small target segmentation.Additionally, lightweight channel and www.nature.com/scientificreports/spatial attention mechanisms were incorporated after dilated convolution to enhance focus on pixels surrounding defects at two levels.This approach ensures more accurate defect edge segmentation and maintains robustness in complex and variable industrial scenarios.
46In addition, due to the presence of numerous defects and varying detection difficulties in industrial scenarios, this method employs a dynamic threshold strategy Initially, a low threshold model is used to fit the defects better, while a higher threshold in the later stages focuses on segmentation details to ensure final detection accuracy.Extensive experiments under various data settings demonstrate that this method significantly improves model performance and surpasses other mainstream methods in industrial scenarios.
47In terms of potential future research directions and broader impact considerations, the proposed semisupervised defect detection framework could be further enhanced by exploring more efficient network architectures, expanding to a wider range of defect types, and integrating with automated inspection systems.Beyond the specific applications presented, this framework has the potential to be applied in diverse industrial domains, thereby improving production efficiency and quality control.Moreover, such advancements could lead to broader social benefits, such as ensuring product safety and reducing environmental waste, while also considering ethical implications related to data privacy and algorithmic bias as the technology is integrated into larger automated inspection systems.
Fig. 1 .
48Fig. 1.Semi-supervised learning framework.
Fig. 2 .
49Fig. 2. Structure diagram of the semantic segmentation model.
Fig. 3 .
50Fig. 3. Schematic diagram of attention mechanism.
Fig. 4 .
51Fig. 4. Effects of adding lightweight attention modules.
Fig. 5 .
52Fig. 5. Structure of shallow feature fusion.
Fig. 6 .
53Fig. 6.Low contrast and background noise.
Fig. 7 .
54Fig. 7. Noodles dataset defect detection.
Fig. 9 .
55Fig. 9. Example of KolektorSDD dataset.
Fig. 10 .
56Fig. 10.Example of steel dataset.
Fig. 11 .
57Fig. 11.Defect detection effect under different improvements.(a) input image; (b) mask; (c) single-branch disturbance (substantial enhancement and weak enhancement disturbance) at the image-level; (d) Doublebranch disturbance at the image-level and feature-level; (e) Improve the network DeepLabv3Plus+Simplified MobileNetv2; (f) Pay more attention to the defective parts in channels and spaces and increase shallow feature fusion.
Table 1 .
58Original MobileNetv2 network structure.
Table 2 .
59Improved MobileNetv2 network structure.
Table 4 .
60DataSet description.
Table 5 .
61Training and testing environment.
62Vol.:(0123456789) Scientific Reports | (2024) 14:21874 | https://doi.org/10.1038/s41598-024-72579-6
Table 6 .
63Performance metrics of the proposed framework compared to SOTA methods.
Label folds Broken egg shell mIoU/% F1 score Pixel accuracy% mIoU/% F1 score Pixel accuracy%
64Vol.:(0123456789) Scientific Reports | (2024) 14:21874 | https://doi.org/10.1038/s41598-024-72579-6www.nature.com/scientificreports/Fig. 8.Comparison effect diagram with SOTA method.
Table 7 .
65Comparison results with the SOTA method.
66MethodmIoU/% 1/16(156) 1/8(312) 1/4(625) 1/2(1250)
Table 8 .
67Comparison results of different segmentation models.
Table 9 .
68Comparison results with the SOTA method in public datasets.
Table 10 .
69Comparison results of different segmentation models.
Table 11 .
70GPU memory usage and utilization.
Table 12 .
71Ablation experiments with different modules added. 1 Two-Branch Perturbation Cross Pseudo Supervision Model. 2 Lightweight Attention Module. 3Shallow Feature Fusion.
or module mIoU/% Parameter/M Speed/fps Base TPCPS 1 Our DeepLabv3+ LAM 2 SFF 3
72Vol.:(0123456789) Scientific Reports | (2024) 14:21874 | https://doi.org/10.1038/s41598-024-72579-6
참고문헌 35건
- U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
- Fast image segmentation using region merging with a k-Nearest Neighbor graph IEEE Conference on Cybernetics and Intelligent Systems · 2008 10.1109/iccis.2008.4670856
- A Survey on Anomaly Detection, Life Prediction and Maintenance Decision for Industrial Processes ACTA AUTOMATICA SINICA · Elsevier BV · 2014 10.3724/sp.j.1004.2013.00711
- Pyramid Scene Parsing Network 2017 10.1109/cvpr.2017.660
- Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1802.02611
- CBAM: Convolutional Block Attention Module Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01234-2_1
- Deep High-Resolution Representation Learning for Human Pose Estimation 2019 10.1109/cvpr.2019.00584
- SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2017 10.1109/tpami.2016.2644615
- Self-training with Noisy Student improves ImageNet classification arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1911.04252
- FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2001.07685
- Visual-Based Defect Detection and Classification Approaches for Industrial Applications—A SURVEY Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20051459
- ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks 2020 10.1109/cvpr42600.2020.01155
- TrustMAE: A Noise-Resilient Defect Classification Framework using Memory-Augmented Auto-Encoders with Trust Regions arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2012.14629
- Deep Unsupervised Anomaly Detection 2021 10.1109/wacv48630.2021.00368
- Semantic Segmentation with Generative Models: Semi-Supervised Learning and Strong Out-of-Domain Generalization arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2104.05833
- DLSE-Net: A robust weakly supervised network for fabric defect detection Displays · Elsevier BV · 2021 10.1016/j.displa.2021.102008
- ST++: Make Self-training Work Better for Semi-supervised Semantic Segmentation arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2106.05095
- Semi-Supervised Semantic Segmentation with Cross Pseudo Supervision arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2106.01226
- Semi-Supervised Semantic Segmentation via Adaptive Equalization Learning arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2110.05474
- Semi-Supervised Semantic Segmentation Using Unreliable Pseudo-Labels arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2203.03884
- FN-Net: A lightweight CNN-based architecture for fabric defect detection with adaptive threshold-based class determination Displays · Elsevier BV · 2022 10.1016/j.displa.2022.102241
- DSMSA-Net: Deep Spatial and Multi-scale Attention Network for Road Extraction in High Spatial Resolution Satellite Images Arabian Journal for Science and Engineering · Springer Science+Business Media · 2022 10.1007/s13369-022-07082-z
- A novel deep convolutional neural network algorithm for surface defect detection Journal of Computational Design and Engineering · Oxford University Press · 2022 10.1093/jcde/qwac071
- Clustering memory-guided anomaly detection model for large-scale screening of esophageal endoscopic images Journal of Computational Design and Engineering · Oxford University Press · 2022 10.1093/jcde/qwac073
- Revisiting Weak-to-Strong Consistency in Semi-Supervised Semantic Segmentation arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2208.09910
- Novel industrial surface-defect detection using deep nested convolutional network with attention and guidance modules Journal of Computational Design and Engineering · Oxford University Press · 2022 10.1093/jcde/qwac115
- Augmentation Matters: A Simple-yet-Effective Approach to Semi-supervised Semantic Segmentation arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2212.04976
- Semi-Supervised Semantic Segmentation via Gentle Teaching Assistant arXiv (Cornell University) · Cornell University · 2023 10.48550/arxiv.2301.07340
- A Survey of Surface Defect Detection Based on Deep Learning Proceedings of the 2020 5th International Conference on Modern Management and Education Technology (MMET 2020) · 2022 10.2991/978-2-494069-51-0_51
- Conflict-Based Cross-View Consistency for Semi-Supervised Semantic Segmentation arXiv (Cornell University) · Cornell University · 2023 10.48550/arxiv.2303.01276
- Hunting Sparsity: Density-Guided Contrastive Learning for Semi-Supervised Semantic Segmentation 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2023 10.1109/cvpr52729.2023.00304
- MFF-Net: A multitask feature fusion network in dual-frequency domains for detecting smoke from one single picture Displays · Elsevier BV · 2023 10.1016/j.displa.2023.102576
- Differentiable double clustering with edge-aware superpixel fitting for unsupervised image segmentation Displays · Elsevier BV · 2024 10.1016/j.displa.2024.102721
- WSS-YOLO: An improved industrial defect detection network for steel surface defects Measurement · Elsevier BV · 2024 10.1016/j.measurement.2024.115060
- Industrial defective chips detection using deep convolutional neural network with inverse feature matching mechanism Journal of Computational Design and Engineering · Oxford University Press · 2024 10.1093/jcde/qwae019