선정목록으로
SDD-Net: A Steel Surface Defect Detection Method Based on Contextual Enhancement and Multiscale Feature Fusion
간접 관련 필름·전자재료 · (14) 드라이 필름(포토레지스트) (11) 배리어 필름(15) 디스플레이 패널재료
기본 정보
- 저자
- DOI
- 10.1109/access.2024.3512185
- 저널
- IEEE Access
- 발행년도
- 2024
- 발행기관
- Institute of Electrical and Electronics Engineers
- 피인용수
- 2
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1109/access.2024.3512185
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W4405055948
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 필름·전자재료 · (14) 드라이 필름(포토레지스트)
- 부 분야
- (11) 배리어 필름, (15) 디스플레이 패널재료
- R&D 측면
- 분석·모델링
- 확신도
- 0.80
- 근거 용어
- surface defect detection, PCB, aluminium surface, deep learning, industrial inspection
- 판단 근거
- 본 논문은 강철, PCB, 알루미늄 표면의 결함을 탐지하는 딥러닝 알고리즘(SDD-Net)을 다룹니다. 이는 코오롱인더스트리의 직접적인 제품 연구는 아니나, PCB용 드라이 필름(14)이나 디스플레이/전자재료(11, 15) 제조 공정 중 품질 검사 자동화 및 불량 분석 기술로 응용 가능합니다.
- R&D 활용 포인트
- PCB 및 필름 제조 공정 내 실시간 표면 결함 검사(Visual Inspection) 시스템의 정확도 향상 및 자동화 공정 모델링에 활용 가능함.
- 평가 입력
- 본문 64,923자 중 30,032자 발췌
초록
Addressing the current industrial methods for surface defect detection, which suffer from issues such as low detection efficiency, elevated rates of false positives, and inadequate real-time capabilities, this paper proposes an high-precision industrial defect detection network. Firstly, this paper proposes a lightweight feature extraction network, which ensures real-time model detection under the premise of fully extracting defect features. Secondly, in order to solve the problem that tiny targets in industrial datasets have fuzzy texture and contain few features that are difficult to be detected, a Context Enhancement Module (CEM) is proposed, which effectively complements the contextual information of the small targets and performs multi-scale fusion to enhance the semantic information representation. Meanwhile, a Feature Enhancement Module (FEM) is designed at the end of the backbone network to optimise the feature information, effectively capture the global feature information and local feature information, and the Hybrid Attention Module (HAM) designed in this paper is introduced to extract the important information and weaken the irrelevant information in the feature map. Finally, a Dense cross-layer Feature Pyramid Network (DFPN) is proposed, which fully integrates the semantic and fine-grained features extracted from the backbone. Improve the detection of targets with significant scale changes, and adds a feature refinement module to suppress the conflicting information and reduce the semantic discrepancies before passing the learned multi-scale feature information into the prediction layer. The surface of the experimental results,the mAP@.5 was obtained at 94.3%, 98.6% and 98.4% on the steel, PCB and aluminium surface defect datasets.
본문 64,923자
본문 펼치기
Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.
_Digital Object Identifier 10.1109/ACCESS.2024.0429000_
# SDD-Net: A Steel Surface Defect Detection Method Based on Contextual Enhancement and Multiscale Feature Fusion
CHAO LIANG <sup>1</sup>, ZI-ZHENG WANG <sup>2</sup>, XIAO-LIN LIU <sup>3</sup>, PENG ZHANG <sup>3</sup>, ZHI-WEI TIAN <sup>4</sup>, RU-LIANG
QIAN <sup>4</sup>
1School of Safety Engineering, Heilongjiang University of Science and Technology, Harbin 150022, China
2Shaanxi University of Science & Technology, Xi’an 710021, China
3Chongqing University of Posts and Telecommunications, Chongqing 400065, China
4School of Mathematics and Statistics, Qinghai Minzu University, Qinghai 810007, China
Corresponding author: PENG ZHANG (e-mail: pcsb57@163.com).
ABSTRACT Addressing the current industrial methods for surface defect detection, which suffer from issues
such as low detection efficiency, elevated rates of false positives, and inadequate real-time capabilities,
this paper proposes an high-precision industrial defect detection network. Firstly, this paper proposes a
lightweight feature extraction network, which ensures real-time model detection under the premise of fully
extracting defect features. Secondly, in order to solve the problem that tiny targets in industrial datasets have
fuzzy texture and contain few features that are difficult to be detected, a Context Enhancement Module
(CEM) is proposed, which effectively complements the contextual information of the small targets and
performs multi-scale fusion to enhance the semantic information representation. Meanwhile, a Feature
Enhancement Module (FEM) is designed at the end of the backbone network to optimise the feature
information, effectively capture the global feature information and local feature information, and the Hybrid
Attention Module (HAM) designed in this paper is introduced to extract the important information and
weaken the irrelevant information in the feature map. Finally, a Dense cross-layer Feature Pyramid Network
(DFPN) is proposed, which fully integrates the semantic and fine-grained features extracted from the
backbone. Improve the detection of targets with significant scale changes, and adds a feature refinement
module to suppress the conflicting information and reduce the semantic discrepancies before passing the
learned multi-scale feature information into the prediction layer. The surface of the experimental results,the
mAP@.5 was obtained at 94.3%, 98.6% and 98.4% on the steel, PCB and aluminium surface defect datasets.
INDEX TERMS Industrial surface defect detection, Contextual information enhancement, Dense cross-layer
multiscale feature fusion, Feature refinement, HAM attention
I. INTRODUCTION
In the past, the utilization of industrial products has seen a
significant expansion across various sectors, including the
automotive, defense, and aerospace industries. As technological advancements and innovative breakthroughs continue,
it is anticipated that the implementation of these industrial
products will further broaden and become more ingrained in
these fields. With the wide application of industrial products,
surface defect detection [1] has become a very important research content, and product appearance quality inspection is a
key link to ensure product quality. Given the intricate and varied nature of defects on the surfaces of industrial products, the
detection process is challenged by a range of factors including
the varied forms of defects, diverse detection environments,
and varying hardware setups. These aspects demand sophisticated and advanced capabilities for effectively identifying
surface defects in industrial applications. Furthermore, the
manufacturing process can give rise to a multitude of defect
types, some of which share similar traits, complicating the
task of identifying defects in industry.
At present, deep learning has shown its great potential in
data feature extraction. These technologies are not only high
in accuracy, but also have strong adaptability and stability,
and have been widely used in many research and application
fields. First, two-stage detection algorithm, which identifies
candidate areas by generating suggestion boxes, such as Fast
R-CNN [2], Faster R-CNN [3] and Mask R-CNN [4]; Secondly, the one-stage detection algorithm provides end-to-end
solutions, such as YOLO [5] and SSD [6] series. The twostage detection method improves the detection accuracy by
optimizing the sub-networks of classification and location
respectively. In the field of industrial inspection, Faster RCNN is superior to the popular one-stage defect detection
model mainly due to its refined feature extraction and multistage inspection process. Faster R-CNN uses Regional Suggestion Network (RPN) to generate candidate regions, and
then extracts features through convolution network. Compared with the one-stage detection model, Fast R-CNN is
more complex in feature extraction, and it captures rich
spatial information through deep convolution network. With
the continuous progress of deep learning, a variety of target
detection frameworks have been tried to be applied to the
detection. However, due to the particularity of industrial data
sets, such as the defects in steel and PCB data sets are not
obvious enough, the similarity between different defects is
high, and the target scale of defects changes greatly, this task
is still full of challenges. In view of the various challenges
faced by industrial product detection, this paper is committed
to researching a detector with high detection accuracy and
strong flexibility.
In the industrial field, the detection of product surface
defects is often affected by image noise and occlusion factors,
which challenges the performance of the detection model.
In order to meet these challenges, the combination of Transformer and Convolutional Neural Network (CNN) to extract
image features has become an effective strategy. Transformer
architecture has been widely studied because of its advantages
in capturing global features of images. When it is used in
combination with CNN, it can make use of both CNN’s local
feature perception ability and Transformer’s global feature
capture ability.
Different from the previous ones, this paper uses the following enhancement and multi-scale feature fusion to design
a novel industrial surface defect detection network. Firstly,
in order to meet the needs of actual industrial production,
this paper designs a lightweight feature extraction network,
which ensures the real-time performance of model detection
under the premise of fully extracting defect features. At the
same time, a feature enhancement module (FEM) is designed
at the end of the backbone network to optimize the feature
information and effectively capture the global feature information and local feature information. Secondly, a new Hybrid
Attention Mechanism (HAM) is designed to enhance the object detection network to extract important information in the
feature graph and weaken the irrelevant features. Finally, this
paper proposes a dense cross-layer Feature Pyramid Network
(DFPN) to increase the global spatial location information
between adjacent feature layers, fully integrate shallow finegrained features and deep semantic features.
In view of the above problems faced by industrial inspection, this paper designs an end-to-end industrial surface defect
inspection method to improve the high-precision inspection
of industrial products in complex scenes. The contribution of
this paper can be summarized as follows:
1. A new feature extraction network is designed to improve
the original feature extraction network using partial convolution, point-by-point convolution and the HAM attention
module designed in this paper, which reduces the amount of
computation on the basis of ensuring its feature extraction
capability.
2. To expand the perceptual field and enhance the feature representation of multiscale instances to improve the
detection capability of small targets on the surface of industrial products, this paper designs a Contextual information
Enhancement Module (CEM) that fuses multiscale cavity
convolution to obtain rich contextual information, and performs multiscale fusion to enhance the semantic information
representation of shallow features.
3. This paper proposes a Feature Enhancement Module
(FEM) at the end of the backbone network to effectively capture global and local feature information. A new Lightweight
Multi-Headed Self-Attentive layer (LMHSA) is designed to
enable the network to obtain the location information of
surrounding defects by acquiring the relationship between
surface defects of industrial products under the global sensory
field, effectively capturing global feature information and
local feature information, and combining convolution operations to extract local feature information more effectively,
so that the network can achieve higher detection accuracy.
4. To empower the network to comprehensively capture the
textural and semantic attributes of the flawed areas and to pinpoint the defective objects with greater precision, this paper
proposes a new Hybrid Attention Module(HAM), which enhances the extraction of important information and weakens
irrelevant features.
5. Considering the significant variation in target size for
industrial surface inspection, this paper proposes a Dense
cross-layer Feature Pyramid Network (DFPN), which adopts
a multiscale feature weighting method to increase the global
spatial location information between adjacent feature layers,
fully fuses shallow fine-grained features with deep semantic
features, and adds a feature refinement module before passing
the learned multiscale feature information into the prediction
layer to suppress conflicting information to reduce semantic
discrepancies.
II. RELATED WORK
_A._ _TARGET DETECTION_
Detecting objects [7] in the field of computer vision is a
central challenge, with the primary goal of pinpointing all the
relevant subjects in an image and identifying their specific
characteristics and locations. As deep learning [8] has advanced swiftly, it has been supplanting conventional detection
methods with its own set of algorithms. One-stage detectors,
known for their swift inference capabilities, requiring only
a single pass through the neural network to determine all
potential bounding boxes, making them suitable for mobile
deployment, yet they tend to have a somewhat lower precision
compared to two-stage detectors; and two-stage detectors,
which, while slightly less precise, offer a more meticulous
2 VOLUME 11 2023
approach by first employing a CNN to extract key features
from the image, then generating a set of candidate regions that
might contain objects, followed by a classification and precise
localization of each candidate, resulting in high accuracy but
at the cost of slower detection speed. Numerous researchers
have tailored object detection models to meet practical industrial needs, offering enhancements from various angles to
improve feature representation and effectively leverage multiscale information.
For example, Li et al. [10] introduced a detection technique
powered by super-resolution and deep learning, employing
Swin Transformer architecture to enhance the identification
of diminutive targets. Li et al. [11] has put forth a visual
Transformer-based network designed for practical implementation in real-world industrial environments, adept at capturing both localized and comprehensive details. Cai and colleagues [12] crafted an efficient network architecture aimed
at facilitating model deployment within industrial settings.
Chen et al. [13] developed a compact single-image superresolution network that integrates multi-tiered features, enhancing feature extraction capabilities while also reducing
parameter count. Hu and associates [42] introduced a technique specifically for identifying defects on lithium battery
shell surfaces. Shang et al. [43] presented a transformerbased perceptual network designed to address the limitations
of CNNs in handling long-range dependencies for defect
detection tasks. Zhang and co-workers [45] suggested a hybrid model combining CNN and Transformer components to
bolster the precision of complex defect detection.
Although the above industrial inspection methods improve
the accuracy of industrial product inspection to a certain
extent, they cannot accurately and efficiently identify tiny
defects and significantly changed defect features. Accordingly, this study capitalizes on the strengths CNNs and Transformers to devise a seamless, thereby ensuring an efficient
identification process.
_B._ _MULTISCALE FEATURE FUSION_
Feature fusion technology aims to enhance the recognition
ability of the model by integrating feature data from different
sources or properties. The increase of network level leads to
the expansion of its perception range, which improves the
semantic understanding of image content, but this usually
comes at the expense of image resolution and detail clarity.
The detailed features may become blurred after continuous
convolution processing. In order to capture features with
strong semantic information, the traditional target detection
model [14] often only uses the feature map output by the last
layer of the network to classify and locate targets. However,
due to the high down-sampling rate of the last layer of feature
map, the information of small targets on this layer is reduced,
which further affects the detection effect of small targets.
Multi-scale feature fusion technology effectively solves this
problem, which is not limited to using a single-level feature map, but by combining features of multiple levels to
detect targets. HyperNet [15] integrates different levels of
features by introducing jump connection, which significantly
improves the detection performance of small targets. FPN
[16] fuses features of different levels through the top-down
path, which solves the interaction problem between deep and
shallow features to some extent, and then derives a variety of
variants of FPN, such as PANet [17], NAS-FPN [18], AutoFPN [19] and Bi-FPN [20]. For accurate defect detection, semantic information and detailed information including edge
and texture need to be taken into account at the same time to
realize accurate defect identification.
To accurately detect defective products, this paper designs
a new cross-layer dense connection (DFPN) network, and
adds a feature thinning module (FE) at the end of the multiscale feature fusion layer to suppress redundant information.
III. METHODOLOGY
The comprehensive structure of the model, depicted in Fig
. 1, is composed of three principal components: the foundational network responsible for feature extraction, the intermediate network tasked with feature integration, and the
terminal network designated for predictive analytics. First,
we use partial convolution, point-by-point convolution and
HAM attention (corresponding to part D in Methodology) to
design the DPC3 module to reduce the amount of network
computation while enabling the network to improve its focus
on defect location information, corresponding to part part A
in Methodology. Secondly, to fully use multiscale contextual
information to aid industrial surface defect detection effectively, we designed the contextual information enhancement
module CEM to enhance the model’s extraction of multiscale
information, corresponding to section part B in Methodology.
To effectively capture both global and local feature information, and to aggregate both aspects of feature information
for the potential of generating higher quality feature maps,
a new feature enhancement module, FEM, is designed at the
end of the backbone network, corresponding to section part C
in Methodology. Finally, we use a new multiscale weighting
strategy to to improve the detection of small targets, corresponding to section part E in Methodology.
In the real environment, especially in the complex industrial scene, the deployment of industrial surface defect detection system has obvious practicability, which can improve
the detection speed and accuracy of defect system, reduce
labor costs and provide continuous quality control. In order
to further improve the efficiency and response speed of the
system, TensorRT deep learning reasoning engine is used
to accelerate and optimize the model. By encapsulating the
optimized model into an efficient application program, realtime defect detection on the production line can be realized,
thus enhancing the automation and intelligence level of the
production process.
_A._ _LIGHTWEIGHT FEATURE EXTRACTION NETWORK_
The feature extraction network outlined in this manuscript,
depicted in Fig 2, systematically reduces the original input
feature maps by a factor of 2 with each progressive layer,
VOLUME 11 2023 3
FIGURE 1. The overall structure of the model includes three parts: backbone network, neck fusion network and detection network.
ensuring a comprehensive extraction of features indicative
of surface defects. Aiming to align with industrial requirements while achieving a harmonious balance between the
precision and velocity of detection, the design takes cues
from PConv [44] and MobileNet [23]. It incorporates the use
of Partial Convolution (PConv) and Point-Wise Convolution
(PWConv) [24] to fabricate a specialized feature extraction
module, termed DPC3. The architectural blueprint of this
module is illustrated in Fig 3. In DPBottleneck, 1×1 Conv
and 1×1 PWConv are in parallel, then summing the output
features of the two convolutions in the channel dimension
and placing residual structures to reuse the input features.
Finally, the DPC3 module is composed of the DPBottleneck
and the Hybrid Attention Module (HAM), where the Pyramid
Attention Module, HAM, is described in detail in part D, the
Context Enhancement Module, CEM, is introduced in part B,
and the Feature Enhancement Module, FEM, is introduced in
part C.
_B._ _CEM_
In the realm of industrial product surface defect detection,
augmenting contextual information is crucial for enhancing
the performance of these products. The backbone network
responsible for feature extraction might possess a restricted
receptive field, thereby impeding its capacity to seize longrange interdependencies. In addition, the traditional backbone
network tends to capture local features and may ignore global
or contextual information, which leads to the disadvantage
of the model in dealing with complex background defects in
industrial scenes.
Therefore, this paper proposes a Context Enhancement
Module (CEM). Expand the receptive field, capture the feature information from a longer distance, and enhance the
ability to extract the context information of industrial defects,
so as to better detect the surface defects of industrial products.
The overall structure shown in Fig 4. To expand the perceptual
field of the shallow C3 and C4 layers and enhance the multiscale feature representation, four parallel dilated convolutions
with void ratios of 1,3,5,7 are used to convolve the C3 layer
respectively, and the number of convolution kernels is chosen
to be C/4 to avoid introducing a large number of parameters,
i.e. The number of compressed channels is 1/4 of the input.
Four features f1, f2, f3, f4 with different scales of contextual
information are obtained. The four features with different
scales are then passed through the adaptive fusion module
to generate four branches corresponding to their respective
weights, the structure of which is shown in Fig 5. The top side
branch in Fig 5 causes the weights corresponding to the four
branches. Specifically, firstly, the four obtained feature maps
with different perceptual fields are stitched together, and the
number of channels becomes 4C; The 1×1 convolution is
used to downscale the stitched features so that the number of
channels will be C. Then the 3×3 convolution is used to map
the downscaled features to the four branches f1, f2, f3, f4,
and the weights corresponding to the different branches. The
following equation can express the corresponding weights:
where DConv3 _,_ C _/_ 4 denote a null convolution with a convolution kernel size of 3 _×_ 3 and several input channels (i.e., the
number of convolution kernels) of C/4, and Conv1 denote a
regular convolution of 1 _×_ 1 with an expanded channel count
of C.
Gfi = Conv3 (Conv1 (Concat (fi))) (i = 1 _,_ 2 _,_ 3 _,_ 4) (2)
wi = WF (S (Gfi)) (3)
where S denote the Softmax activation function, Gfi denote
the mapping matrix of the ith branch, and finally, the output
_fi_ = Conv1
�DConv3 _,_ C _/_ 4 ( Fi)� (i = 1 _,_ 2 _,_ 3 _,_ 4) (1)
4 VOLUME 11 2023
FIGURE 2. Lightweight Trunk Feature Extraction Network
feature Q by weighted feature fusion (WF).
Q =
4
_i_ =1
wifi (4)
the results from both branches are merged, and HAM is
deployed to refine the extraction of salient information from
the feature map while suppressing irrelevant aspects as identified by the target detection network, thereby enhancing its
detection prowess. The LMHSA module’s function can be
encapsulated by the subsequent formula:
_X_ = Conv1 (DWConv3 (Conv1(BN(F)))) _⊕_ F (5)
_X_ <sup>_′_</sup> = Attention ( _BN_ ( _X_ )) _⊕_ _X_ (6)
Where F denote input feature map, denote 1×1 convolution,
_DWConv_ 3 denote 3×3 depth-separable convolution, _⊕_ denote
element-by-element summation, BN denote batch normalization, and Attention denote self-attentiveness, which the
following equation can express:
By using adaptive fusion, the network can focus more on
crucial contextual information, improving the model’s effectiveness for detecting surface defects on industrial products
with little increase in computational effort.
_C._ _FEM_
Due to the image resolution size of 20 _×_ 20 at the end
of the backbone network, applying the Transformer encoder
on the low-resolution feature map can reduce the computational effort and improve the global modelling capability [25].
Therefore, we designed the Feature Enhancement Module
(FEM) concerning the Transformer encoder block, and the
overall structure is shown in Fig 6.
The FEM module mainly consists of a Lightweight Multiheaded Self Attention layer (LMHSA), a convolutional layer
and a Hybrid Attention Module (HAM) attention module,
which effectively captures global feature information and local feature information. Inside the LMHSA encoder, the number of network parameters is reduced using depth-separable
convolution. While the LMHSA encoder block excels at
capturing long-range dependencies and extracting features
across extensive distances, it may overlook finer local details and blur the lines between background and foreground
elements. On the other hand, convolutional operations are
adept at assimilating localized information. Therefore, this
study employs a combination of convolutional operations and
LMHSA blocks to simultaneously capture both local and
global feature information. The configuration of the LMHSA
block is depicted in Fig 7. In addition, a residual join is added
to the FEM module to prevent gradient extinction, and another
branch uses a 1×1 convolution and LMHSA block. Compared with dividing channels directly, this division allows all
input features to be transformed, improves feature reusability,
enhances correlation between defect targets through continuous learning, and improves detection accuracy. Ultimately,
Attention (Q _,_ K _,_ V) = softmax
- _<u>QK T</u>_
_dk_
V (7)
In this context, Q signifies the vector used for querying, K
denotes the key vector that is subjected to the query process,
and V refers to the data yielded as a consequence of the query.
_D._ _HAM ATTENTION MODULE_
Attention mechanisms are capable of prioritizing relevant features and downplaying irrelevant ones by allocating varying
degrees of importance across distinct regions of the feature
map. In this study, we introduce a Hybrid Attention Module (HAM) designed to integrate both channel and spatial
attention mechanisms, ensuring that defective features are
prominently highlighted, as illustrated in Fig . 8. The channel
attention component identifies and emphasizes critical channels within the feature map by acquiring global statistical
insights and enhancing the visibility of pertinent boundary
cues in industrial products. The network dynamically assigns
unique weights to each channel of the feature map through
learning. The methodology for computing channel attention
is delineated in the subsequent explanation:
X1 = _σ_ ( Conv1( Concat ( MaxPool (F) _,_ AvgPool (F)))) (8)
VOLUME 11 2023 5
FIGURE 3. Structure of the DPC3 with the HAM attention module.
X2 = F _⊗_ X1 (9)
Where, _σ_ denotes Sigmoid activation function, _⊗_ denotes
multiplication by bit, Concat denotes splicing operation, and
_Conv_ 1 denotes the 1×1 convolution.
To facilitate the network model’s capability to more effectively identify the target object within the intricate industrial
environment, this paper incorporates a spatial attention module during the feature extraction phase of the network. This
module captures spatial location details within the feature
map, enhances the local features, and improves the feature
representation capability to better predict the target objects at
different depths. The computational process of spatial attention is:
_X_ 3 = Conv3 (Conv3 (Conv1(F))) (10)
X4 = F _⊗_ X3 (11)
Finally, the channel attention and spatial attention are
spliced to obtain the output.
X = Conv1( Concat (X2 _,_ X4)) _⊕_ F (12)
_E._ _DNECK_
Neck networks are commonly employed to integrate multiscale features [26]. Yet, these features vary semantically
and possess inherent discrepancies that should not be overlooked. The straightforward combination of features at different scales can lead to an influx of both redundant and conflicting information, potentially diminishing the network’s multiscale representational capacity. Nonetheless, the presence
of numerous defect targets with substantial scale variations
within industrial datasets poses an added challenge to the
detection process.
To address the aforementioned issues and enhance the
detection of targets exhibiting substantial scale variations,
we introduces a Dense cross-layer Feature Pyramid Network
(DFPN). This network employs a technique for weighing
multi-scale features that amplifies the global spatial contextual information across adjacent feature layers. By leveraging
self-training parameters within the model, these weights are
6 VOLUME 11 2023
FIGURE 4. CEM module with features extracted from four branches at
different scales, followed by multiscale feature fusion.
determined and integrated with the Feature Pyramid Network
(FPN), culminating in the formation of the DFPN architecture, in Fig 9 below. As feature fusion is susceptible to feature fusion effects, additional feature refinement is required
to suppress the conflicting information after feature fusion.
Considering that the incorporation of shallow features using
L3 (160, 160) will have some impact on the deep semantic information, the L3 layer components are discarded to enter the
feature refinement module, i.e. The fused feature information
(L4,L5,L6) is transmitted to the feature refinement module to
suppress conflicting information and reduce semantic differences, as shown in Fig . 10. For instance, the representation of
L5 in the illustration can be encapsulated by the subsequent
mathematical formula:
_·_ w3 _,_ Upsample �P <sup>_′_</sup> <sup>�</sup>
_·_ w4�
L5 =
�P5 _·_ w1 _,_ P <sup>_′_</sup> _·_ w2 _,_ Downsample
w1 + w2 + w3 + w4 + _ϵ_
�P <sup>_′_</sup> <sup>�</sup>
(13)
Downsample denote downsampling; Upsample denote upsampling, [] denote the stitching operation of different feature
maps, _ϵ_ is a small positive number to prevent training instability, _wi_ (i=1,2,3,4) denote the weight coefficients that can
be learned.
_·_ w3 _′_ <sup>�</sup>
P5 <sup>_′_</sup> =
- Downsample (P4) _·_ w1 <sup>_′_</sup>
(14)
w1 _′_ + w2 _′_ + w3 <sup>_′_</sup> + _ϵ_
<u>1</u> <sup>_′_</sup> <sup>_,_</sup> <sup>P5</sup> <sup>_·_</sup> <sup>w</sup> <u>2</u> <sup>_′_</sup> <sup>_,_</sup> <sup>Upsample</sup> �P <sup>_′_</sup> <sup>�</sup>
P4 <sup>_′_</sup> = <sup>[Downsample</sup> <sup>(P3)</sup> <sup>_·_</sup> <sup>w</sup> <u>1</u> <sup>_′_</sup>
<u>1</u> <sup>_′_</sup> <sup>_,_</sup> <sup>P4</sup> <sup>_·_</sup> <sup>w</sup> <u>2</u> <sup>_′_</sup> <sup>_,_</sup> <sup>Upsample</sup> �P <sup>_′_</sup> <sup>�</sup>
_·_ w3 _′_ <sup>�</sup>
(15)
w1 _′_ + w2 _′_ + w3 <sup>_′_</sup> + _ϵ_
maps are scaled to keep their sizes the same, specifically by
taking an up-sampling operation on feature map F1 and a
maximum pooling operation on the F3 feature map to keep its
size the same as that of feature map F2 to obtain W1, W2, and
W3 finally. Secondly, W1, W2, and W3 are 3 _×_ 3 convolved
to learn more advanced features. The three feature maps are
stitched together. Finally, fine-grained features are extracted
by 1 _×_ 1 convolution and 3 _×_ 3 depth separable convolution,
and the number of channels is adjusted to get feature map X.,
which can be expressed by:
X1 = Conv3( Upsample(F1)) (17)
X2 = Conv3(F2) (18)
X3 = Conv3( MP(F3)) (19)
X = _PW_ Conv1 (DWConv3 (Conv1(Concat(X1 _,_ X2 _,_ X3))))
(20)
where F1, F2, and F3 denote the three feature maps outputted by the dense cross-layer pyramid network, _Conv_ 3 is
the convolution operation for 3 _×_ 3, _Conv_ 1 is the convolution
operation for 1 _×_ 1, _DWConv_ 3 representing the deep convolution operation of 3 and _PWConv_ 1 the point-by-point coupon
product of 1.
_F._ _LOSS FUNCTION_
The chosen loss function [27] is pivotal in shaping the performance of detection models, with the model’s predictions
being fine-tuned towards optimal accuracy. Commonly, this
function is an advanced rendition of the IoU [28] metric,
impacting the confidence, classification, and bounding box
regression losses in first-order detectors, where cross-entropy
is typically used. The CIoU [29], often used for localization,
overlooks the balance between easy and hard samples and
struggles with precision in small target detection. In contrast,
SIoU [30], which doesn’t rely on category information, offers
a more effective solution for challenging small target detection tasks by incorporating distance, angular, and IoU losses
into its formula.
L _SIoU_ = 1 _−_ _IoU_ _∪_ + <sup><u>∆+ Ω</u></sup> (21)
2
Where IoU refers to the measure of the area of overlap
between the estimated bounding box and the ground truth
bounding box, _△_ denote the distance loss, Ω denote the shape
loss, the distance loss _△_ can be expressed as:
_P_ 6 <sup>_′_</sup> = <sup><u>[ Downsample (</u></sup> <sup>_<u>P</u>_</sup> <sup><u>5)</u></sup> <sup>_<u>·</u>_</sup> <sup><u>w</u></sup> <u>1</u> <sup>_′_</sup> <sup>_<u>,</u>_</sup> <sup><u>P6</u></sup> <sup>_<u>·</u>_</sup> <sup><u>w2</u></sup> <sup>_′_</sup> <sup><u>]</u></sup> (16)
w1 <sup>_′_</sup> + w2 <sup>_′_</sup> + _ϵ_
�1 _−_ _e_ <sup>_−_</sup> <sup>(2</sup> <sup>_−_</sup> <sup>Λ)</sup> <sup>_ρt_</sup> <sup>�</sup> (22)
∆=
_t_ = _x,y_
The structure of the Feature Refinement (FR) is shown in
Fig . 10. F1, F2, and F3 are the three feature maps outputted
by the dense cross-layer pyramid network, and F1, F2, and F3
are used as inputs to the FR module. Firstly, these three feature
_∧_ represents the loss in angle between the estimated bounding box and the actual bounding box, which can be formulated
as:
VOLUME 11 2023 7
FIGURE 5. Adaptive fusion module to generate weights corresponding to the four branches f1, f2, f3 and f4.
the parameters included an image input dimension of 640 ×
640 pixels, a batch size set to 16, with 8 worker threads, and
a training regimen that spanned 300 epochs. Complemented
by a momentum parameter of 0.937.
2) Datasets
The first dataset employed is the NEU-DET [31], a collection of steel flaw imagery .This data set was published by
Northeastern University, available from the corresponding
references. This compilation has been augmented to bolster
the model’s capacity to generalize, yielding a total of 3,000
images. These images encompass six distinct defect categories: cracks, inclusions, patches, surface pits, rolled scales,
and scratches, as illustrated in the subsequent Fig . 11. All
data sets in this paper are divided into 8: 1: 1 training set,
verification set and test set.
FIGURE 6. FEM module with one branch passing through a convolutional
layer and LMHSA multi-headed self-attentive layer and the other branch
passing through a convolutional layer.
Λ = 1 _−_ 2 sin <sup>2 �</sup>
arcsin( _x_ ) _−_ <sup>_<u>π</u>_</sup>
4
(23)
The second dataset is PCB [32], which is a PCB dataset
published by Beijing University Intelligent Robot Open Laboratory, available from the corresponding references, which
contains 6 types of defects, namely, hole-missing, rat bite,
open circuit, short circuit, burr and residual copper, with a
total of 1780 pictures, as shown in Fig . 12.
The third dataset is aluminum surface defect dataset [33],
available from the corresponding references, which contains
1650 defect pictures and has four defect categories: ZhenKong, Ca-Shang, Zang-Wu and Zhe-Zhou, as shown in Fig
. 13.
3) Assessment indicators
In this paper, the evaluation metrics for the performance of the
model are precision (P) recall (R), mAP@.5, F1, FPS, where
mAP@.5 denotes the mAP of the IOU threshold on 0.5. FPS
indicates the number of frames processed by the model per
second.
Accuracy P indicates the proportion of detection frames
with correct prediction in all detection frames. The recall R
indicates the proportion of the detection frames with correct
prediction in all sample frames in the detection results, and
The shape loss Ω can be expressed by the following equation:
�1 _−_ _e_ <sup>_−wt_</sup> <sup>�</sup> <sup>_θ_</sup> (24)
Ω=
_t_ = _w,h_
The SIoU approach incorporates an angular loss component into the regression process and reformulates the loss
function.
IV. EXPERIMENTS
_A._ _EXPERIMENTAL SETTINGS_
1) Experimental parameters
The operating platform utilized was Windows 11, paired with
an NVIDIA RTX 3080 GPU for processing power. The development environment was established with Python 3.9 and Pytorch version 1.10.1. For the hyperparameter configuration,
8 VOLUME 11 2023
FIGURE 7. LMHSA module, consisting of a multi-headed attention layer and a convolutional layer.
the calculation formulas of precision and recall rate are as
follows:
_<u>TP</u>_
P = (25)
_TP_ + _FP_
_<u>TP</u>_
R = (26)
_TP_ + _FN_
In this context, TP (True Positive) indicates an instance
where the test sample is accurately identified as positive. Conversely, an FP (False Positive) represents a scenario where the
test sample is mistakenly labeled as positive. Additionally, an
FN (False Negative) corresponds to a case where the test sample, despite being actual negative, is erroneously classified as
such.
In this paper, the evaluation index F1 combining the area
surrounded by P and R curves is used to measure the performance of the model. The larger the area, the better the
performance of the model. The formula for calculating the
F1 value is as follows:
_F_ 1 = 2 _×_ <sup>_<u>P × R</u>_</sup> (27)
_P_ + _R_
The mainstream evaluation index of target detection model
is mean Average Precision (mAP), which reflects the overall
detection accuracy of the model. The calculation formula of
mAP value is as follows:
In practical industrial applications, detection speed is also
an important index in industrial detection. We use FPS (the
number of images detected by the model per second) to
evaluate the reasoning speed of the model.
_B._ _STEEL DATASET ABLATION EXPERIMENT_
1) Trunk Network Ablation Laboratory
To substantiate the model’s efficacy, Table 1 presents an
ablation study examining the distinct modules of the proposed
backbone network.
TABLE 1. Effect of different modules on model detection
Model R(%) mAP@.5(%) F1(%) Params(M) FPS
YOLOv5s [34] 82.6 87.5 83.81 7.026 52
+DPC3 84.5 88.5 85.15 6.701 60
+CEM 84.2 90.1 85.75 7.232 51
+FEM 85.7 91.5 86.26 7.274 50
+CEM+FEM 86.1 91.7 87.35 7.568 51
+DPC3+CEM+FEM 86.4 92.3 87.98 7.456 52
The empirical evidence from Table 1 suggests that the
incorporation of the DPC3 module enhances the precision of
flaw identification and simultaneously leads to a decrease in
the network’s parameter count. This is achieved through the
utilization of partial convolution, point-wise convolution, and
the HAM (Hybrid Attention Module). Specifically, there is a
- 1
<u>0</u> <sup>_p_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_dr_</sup>
(28)
_N_
mAP =
- _N_
_<u>n</u>_ <u>=1</u>
VOLUME 11 2023 9
FIGURE 8. HAM attention module.
FIGURE 9. DFPN, using cross-layer connectivity and same-layer hopping to fuse more characteristic information.
noted 1.9% enhancement in Recall (R), a 1.0% improvement
in mAP, and a reduction in parameters, all in comparison to
the initial YOLOv5s architecture. With the addition of the
CEM module and FEM module, R improves by 1.6% and
3.1%. Map improves by 2.6% and 4.0%, due to the proposed
CEM module enhancing the feature representation of multiscale instances while expanding the perceptual field to obtain
rich contextual information. By integrating the CEM and
FEM architectures within the DPC3 framework, the model’s
deductive velocity experiences a modest decrement relative to
the preceding methodology. Nonetheless, it suffices to fulfill
the demands of real-world industrial scrutiny, with a 3.8%
increase in R, 4.8% increase in mAP and 4.17% increase in
F1.
2) Comparison of different neck networks
In this segment, the comparative analysis is focused on the
influence exerted by DFPN feature fusion networks in the
context, juxtaposed with other networks such as PANet,
BiFPN, and RepPAN. Table 2 elucidates the effects that
these varying feature fusion strategies have on the efficacy
of the detection models. From the experimental data in Table
TABLE 2. Effect of different Neck networks on model detection accuracy
Neck R(%) mAP@.5(%) F1(%) Params(M) FPS
PANet 82.6 87.5 83.81 7.026 52
BiFPN 83.1 87.9 83.95 8.093 49
RepPAN [35] 83.2 88.4 84.15 7.282 53
DFPN 83.8 89.2 84.46 7.342 50
2, it can be observed that DFPN outperforms the PANet,
BiFPN, and RepPAN networks in terms of detection accuracy.
Compared to the PANet, BiFPN and RepPAN feature fusion
networks, DFPN improves by 1.2%, 0.7% and 0.6% on R,
1.7%, 1.3% and 0.8%, and 0.65%, 0.51%, and 0.31% on
10 VOLUME 11 2023
FIGURE 10. The feature refinement module contains three parallel paths.
the network’s architecture. Table 3 illustrates how varying
attention modules. Furthermore, Fig . 14 presents a visual
comparison of the heat maps generated by the HAM attention
module and the standard YOLOv5s output at the corresponding layer. This comparison reveals that the integration of the
HAM attention module results in a heightened focus on areas
with defects.
TABLE 3. Influence of various attention on detection performance
of network models.
Model R(%) mAP@.5(%) F1(%) Params(M) FPS
FIGURE 11. Image visualisation of a steel dataset with six defect
categories.
FIGURE 12. Visualisation of images of 6 defect types on PCBs.
F1, respectively. The paper employs a method of multi-scale
feature weighting to enhance the global spatial contextual
information across adjacent feature layers. It adds a feature
refinement module to suppress conflicting information and
reduce semantic differences before passing the learned multiscale feature information into the prediction layer.
3) Comparison of different attention modules
This segment conducts a comparative analysis between the
HAM introduced in this study and the existing modules,
namely the Efficient Channel Attention (ECA) and Channel
Attention (CA), all integrated at an equivalent point within
YOLOv5s 82.6 87.5 83.81 7.026 52
+ECA [21] 84.4 88.9 84.79 7.029 52
+CA [22] 84.1 89.2 84.64 7.153 50
+HAM 86.2 89.7 85.35 7.345 49
The empirical data presented in Table 3 indicates that
the HAM attention module outperforms both the ECA and
CA attention modules, with respective improvements of 1.8%
and 2.1% in Recall (R), 0.8% and 0.5% in mAP, and 0.56%
and 0.71% in F1 score. Upon scrutiny of the experimental
outcomes, it is deduced that the HAM attention module offers
distinct benefits in the detection of defects.
4) The ablation experiment of the overall network structure
To substantiate the enhancements made to the network
through individual modules, comprehensive ablation studies
have been conducted on each module. These studies evaluate
the impact, with the findings detailed in Table 4.
TABLE 4. Effect of different attention modules on network model
detection results
DPC3 CEM FEM DFPN mAP@.5(%) F1(%) FPS
_∨_ _∨_ 89.8 84.24 54
_∨_ _∨_ 90.2 86.75 50
_∨_ _∨_ _∨_ 92.3 87.98 53
_∨_ _∨_ 90.4 86.79 48
_∨_ _∨_ _∨_ 93.8 87.46 49
_∨_ _∨_ _∨_ 92.6 88.71 47
_∨_ _∨_ _∨_ _∨_ 94.3 89.62 48
Analysis of Table 4’s ablation study confirms the paper’s
algorithm outperforms the baseline in Recall and mAP, with
VOLUME 11 2023 11
FIGURE 13. Examples of different types of defects on aluminium surfaces.
FIGURE 14. Thermogram of steel surface defects. The upper half is a plot
of the characteristics of the HAM attention output at layers C3, C4 and C5
in this paper, and the lower half is a plot of the features of the output of
different C3, C4 and C5 layers of YOLOv5s.
respective increases of 5.9% and 6.8%. The DFPN network’s
integration of multi-layer features and enhanced spatial context notably boosts detection accuracy. The FEM module’s
recognition of global defect patterns further refines precision.
Moreover, the CEM module enhances R and mAP by offering
contextual depth, particularly for minor industrial surface
defects.
_C._ _COMPARATIVE EXPERIMENTS ON THE STEEL DATASET_
In this section, we compare the comparative experiments on
the steel data set, and all the experiments are under the same
superparameter condition, as shown in Fig . 15. We conducted
FIGURE 15. Comparison of mAP and FPS values for different detectors on
steel datasets.
experiments to evaluate the model’s detection precision, velocity, and complexity, and compared its performance against
nine other SOTA detectors, as detailed in Table 5. The
results substantiate the model’s efficacy. In comparison to the
subsequent nine models listed in Table 5, our model achieves
an increase in mAP of 12.8%, 8.0%, 6.8%, 3.9%, 8.0%, 4.6%,
3.0%, 12.1%, and 1.6%, and an enhancement in F1 score of
8.39% and 5.5% respectively.
TABLE 5. Comparison of the performance of different detectors on the
steel dataset
Model Recall(%) mAP@.5(%) F1(%) Params(M) FPS
YOLOv3s [36] 82.4 81.5 81.23 9.325 47
YOLOv4s [37] 83.4 86.3 84.15 9.142 49
YOLOv5s 82.6 87.5 83.81 7.026 52
YOLOX [38] 85.6 90.4 87.2 7.535 53
YOLOv7s [39] 84.1 86.3 83.04 9.135 57
YOLOv8s [40] 86.6 89.7 87.56 12.04 45
PP-YOLOE [41] 86.8 91.3 88.64 8.365 50
SSD 81.9 82.2 80.94 7.352 51
Faster RCNN 88.5 92.7 89.24 54.95 36
OUR 88.7 94.3 89.62 9.012 54
_D._ _VISUALISATION STUDY OF STEEL DATASETS_
In this section, the three detectors with the highest detection
accuracy and the YOLOv5s detector are selected for visualisation on the steel dataset, including the one-stage detectors
YOLOX, OUR and the two-stage detector Faster RCNN,
as well as the baseline model YOLOv5s. Fig . 16 below
shows, in order, the YOLOv5s, YOLOX, Faster RCNN and
OUR detectors on the steel dataset. The visual data indicates
that YOLOv5s experiences difficulties in detecting scratches
that exhibit considerable shape variability. In contrast, our
approach demonstrates superior performance in recognizing
images with cracks and rolling oxides, achieving the highest confidence levels when compared to detectors such as
YOLOX and Faster RCNN. Fig 17 below shows the visualization of the training results of OUR method on the steel data
set, (a) visualization of confusion matrix, (b) visualization of
different types of P-R curves, and (c) loss training curves. As
can be seen from the Fig, our model accurately predicts different types of defects, reflecting the overall accuracy of the
model, and further verifying the model’s ability to perceive
different defect characteristics of steel.
12 VOLUME 11 2023
FIGURE 16. Comparative graphical representation of various image
detection algorithms applied to a dataset of steel images, including (a)
the YOLOv5s model, (b) the YOLOX model, (c) the Faster R-CNN approach,
and (d) OUR
FIGURE 17. Visualization of training results of OUR method on steel
datasets. (a) visualization of confusion matrix, (b) visualization of
different types of P-R curves, and (c) loss training curves.
_E._ _COMPARATIVE EXPERIMENTS ON THE PCB DATASET_
In this subsection, the generalisation capability of our proposed model is demonstrated by training it on the PCB dataset
and comparing it with other detectors. Upon examining the
mAP scores depicted in Fig . 18, it is evident that our model
demonstrates superior detection precision on the PCB dataset.
Despite this, our model’s FPS rate is marginally lower in comparison to other one-stage detection systems. Nonetheless,
there is a significant enhancement in the detection accuracy
achieved by our model. The experimental data presented in
Table 6 illustrates the model introduced in this publication’s
strong generalization performance across comparative evaluations on the PCB dataset. When juxtaposed with other detectors including YOLOv3s, YOLOv4s, YOLOv5s, YOLOX,
YOLOv7s, YOLOv8s, PP-YOLOE, and Faster RCNN, our
model has shown a marked improvement in mAP scores, with
increases of 1.5%, 1.3%, 1.0%, 0.4%, 1.8%, 1.1%, 0.2%, and
0.2% respectively.
_F._ _ABLATION EXPERIMENTS ON THE PCB DATASET_
Upon reviewing Table 7, it is apparent that the DPC3 module,
as opposed to the baseline model, achieves a reduction in the
FIGURE 18. Comparison of mAP and FPS values of different detectors on
PCB dataset.
TABLE 6. Comparison of the performance of different detectors on the
PCB dataset
Model Recall(%) mAP@.5(%) F1(%) Params(M) FPS
YOLOv3s 96.4 97.1 96.55 8.454 45
YOLOv4s 95.3 97.3 96.59 9.025 50
YOLOv5s 95.6 97.6 96.61 7.026 53
YOLOX 95.9 98.2 96.87 7.535 54
YOLOv7s 94.8 96.8 96.1 9.148 58
YOLOv8s 95.6 97.5 96.64 11.81 44
PP-YOLOE 96.2 98.4 97.37 8.376 50
Faster RCNN 97.5 98.4 97.85 55.25 35
OUR 97.1 98.6 97.58 9.012 56
number of parameters without compromising the detection
accuracy. A comparison between the third and first rows
reveals that the Recall (R) has increased by 1.5% and the mean
Average Precision (mAP) by 0.8%. This enhancement is attributed to the FEM’s capability to effectively integrate both
global and local feature information. Similarly, comparing the
fourth row with the first row shows an improvement in R by
1.9% and mAP by 0.5%. This is due to the DFPN’s ability
to proficiently merge shallow fine-grained features with deep
semantic features.
TABLE 7. Ablation experiments
DPC3 CEM FEM DFPN mAP@.5(%) F1(%) FPS
97.6 96.61 53
_∨_ _∨_ 98.2 96.82 54
_∨_ _∨_ 98.4 96.93 50
_∨_ _∨_ 98.1 97.36 48
_∨_ _∨_ _∨_ 98.5 96.67 53
_∨_ _∨_ _∨_ _∨_ 98.6 97.58 56
_G._ _VISUALISATION STUDY OF PCB DATASETS_
Figure 19 illustrates the comparative detection outcomes
of YOLOv5s, YOLOX, Faster RCNN, and our proprietary
detector on the PCB dataset. The visualization indicates that
YOLOv5s, YOLOX, and Faster RCNN exhibit a noticeable
rate of missed detections for minor targets, such as mouse
VOLUME 11 2023 13
bites and short circuits, which consequently diminishes the
overall detection precision. Conversely, our approach stands
out by reliably pinpointing all intricate small targets with the
utmost confidence. Fig . 20 below shows the visualization
of the training results of OUR method on PCB data sets,
(a) visualization of confusion matrix, (b) visualization of
different types of P-R curves, and (c) loss training curves.
As can be seen from the Fig, with the passage of time, the
average accuracy mAP of all categories has reached 98.6, and
our model has strong perception ability for different types of
PCB defects.
FIGURE 19. The following graphical illustrations depict the comparative
performance of four distinct detection algorithms when applied to the
PCB dataset: (a) YOLOv5s, (b) YOLOX, (c) Faster R-CNN, and (d) OUR
FIGURE 20. Visualization of training results of our method on PCB
datasets. (a) visualization of confusion matrix, (b) visualization of
different types of P-R curves, and (c) loss training curves.
_H._ _COMPARATIVE EXPERIMENTS ON THE ALUMINIUM_
_SURFACE DEFECTS DATASET_
Table 8 highlight that our approach achieves the highest mAP
scores among the compared mainstream detectors. Additionally, our method’s detection velocity is marginally slower
than that of the YOLOv7s. When contrasted with frequently
utilized detectors in industrial settings such as YOLOv5s,
YOLOX, and PP-YOLOE, our method shows a 1.6%, 1.0%,
and 0.7% increase in recall (R), and a 1.2%, 1.0%, and 0.9%
improvement in mAP, respectively.
TABLE 8. Comparison of different detectors on the aluminium surface
defect dataset
Model Recall(%) mAP@.5(%) F1(%) Params(M) FPS
YOLOv3s 95.5 96.4 95.34 8.454 45
YOLOv4s 96.3 96.8 96.34 9.025 51
YOLOv5s 96.7 97.2 96.67 7.026 52
YOLOX 97.3 97.4 97.85 7.535 54
YOLOv7s 95.8 95.4 95.43 9.148 58
YOLOv8s 96.7 96.5 96.59 11.81 44
PP-YOLOE 97.6 97.5 97.86 8.376 50
Faster RCNN 98.1 97.6 98.04 55.25 36
OUR 98.3 98.4 98.25 9.012 54
_I._ _VISUALISATION STUDY OF ALUMINIUM SURFACE_
_DEFECTS DATASET_
Fig . 21 below presents the visual detection outcomes of
various models. As can be seen from the Fig, YOLOv5s
and YOLOX have false detection rates when detecting targets with huge scale changes, thus reducing the detection
accuracy. Our method can accurately identify all targets with
significant scale changes, which fully shows that our method
can accurately detect targets with dramatic scale changes. Fig
. 22 below shows the visualization of the training results of
OUR method on AL surface data set, (a) visualization of
confusion matrix, (b) visualization of different types of PR curves, and (c) loss training curves. As can be seen from
the Fig, our model can almost accurately predict the obtained
categories and correctly perceive different defect features of
AL surface data set.
_J._ _COMPARISON WITH MAINSTREAM MODELS_
Table 9 below delineates a comparative evaluation of the
model introduced in this paper against several prominent
models: MobileViTV3 [46], EdgeViT [47], NextVit [48],
and EfficientViT [49], across three distinct datasets. This is
because this paper designs a lightweight feature extraction
network by using partial convolution and point-by-point convolution to reduce the parameters of the model; At the same
time, a feature enhancement module is designed at the end of
the backbone network to optimize feature information, capture global feature information and local feature information
efficiently, and improve the accuracy of industrial detection.
In addition, this paper proposes a dense cross-layer feature
pyramid network, which increases the global spatial position
14 VOLUME 11 2023
FIGURE 21. Detection results of different detectors on the aluminium
surface defect dataset, (a) YOLOv5s, (b) YOLOX, (C) Faster RCNN, (d) OUR.
FIGURE 22. Visualization of training results of OUR method on AL surface
dataset. (a) visualization of confusion matrix, (b) visualization of different
types of P-R curves, and (c) loss training curves.
information between adjacent feature layers, captures the detailed information that is more sensitive to small targets, and
suppresses conflict information. The results indicate that our
model achieves a commendable equilibrium between detection speed and accuracy across all three datasets. The model’s
suitability for industrial inspection is further underscored by
its extensive testing and validation on these datasets, showcasing its robust generalization capabilities.
V. CONCLUSION
To substantiate the efficacy of our proposed model, we conducted tests on the NEU-DET steel, PCB, and aluminium surface defect datasets. Initially, we engineered a novel feature
extraction network that integrates partial convolution, pointby-point convolution, and HAM attention mechanisms to curtail computational overhead. Subsequently, we introduced a
context enhancement module within the backbone network to
adeptly augment the contextual information of minor targets.
Towards the backbone’s conclusion, a feature enhancement
module was crafted to refine feature data, adeptly seizing
both global and local feature cues. Additionally, an attention
module was incorporated to bolster the extraction of salient
features within the feature map while diminishing the prominence of extraneous features in the target detection process.
Ultimately, we proposed a dense cross-layer feature pyramid
network, employing a multiscale feature weighting strategy
to amplify the spatial correlation between adjacent feature
strata, thereby capturing more nuanced details for small targets. Furthermore, a feature refinement module was appended
to mitigate conflicting signals.
Although the proposed method improves the detection performance in the complex background and multi-scale defect
field of industrial surface defect detection, the model is not
systematically studied and discussed for occlusion defects. In
the future, we are committed to systematic research on occlusion defect detection to improve the high-precision detection
of defects in multiple industrial scenarios.
REFERENCES
[1] Jin, Q. & Chen, L. A survey of surface defect detection of indus
trial products based on a small number of labeled data. _ArXiv_ _Preprint_
_ArXiv:2203.05733_ . (2022)
[2] Girshick, R. Fast r-cnn. _Proceedings_ _Of_ _The_ _IEEE_ _International_ _Confer-_
_ence On Computer Vision_ . pp. 1440-1448 (2015)
[3] Ren, S., He, K., Girshick, R. & Sun, J. Faster r-cnn: Towards real-time
object detection with region proposal networks. _Advances In Neural Infor-_
_mation Processing Systems_ . 28 (2015)
[4] He, K., Gkioxari, G., Dollár, P. & Girshick, R. Mask r-cnn. _Proceedings Of_
_The_ _IEEE_ _International_ _Conference_ _On_ _Computer_ _Vision_ . pp. 2961-2969
(2017)
[5] Jiang, P., Ergu, D., Liu, F., Cai, Y. & Ma, B. A Review of Yolo algorithm
developments. _Procedia Computer Science_ . 199 pp. 1066-1073 (2022)
[6] Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S., Fu, C. & Berg,
A. Ssd: Single shot multibox detector. _Computer Vision–ECCV 2016: 14th_
_European Conference, Amsterdam, The Netherlands, October 11–14, 2016,_
_Proceedings, Part I 14_ . pp. 21-37 (2016)
[7] Gu, J., Wang, Z., Kuen, J., Ma, L., Shahroudy, A., Shuai, B., Liu, T., Wang,
X., Wang, G., Cai, J. & Others Recent advances in convolutional neural
networks. _Pattern Recognition_ . 77 pp. 354-377 (2018)
[8] LeCun, Y., Bengio, Y. & Hinton, G. Deep learning. _Nature_ . 521, 436-444
(2015)
[9] Shao, L., Zhang, E., Duan, J. & Ma, Q. Enriched multi-scale cascade pyra
mid features and guided context attention network for industrial surface
defect detection. _Engineering_ _Applications_ _Of_ _Artificial_ _Intelligence_ . 123
pp. 106369 (2023)
[10] Li, R. & Shen, Y. YOLOSR-IST: A deep learning method for small target
detection in infrared remote sensing images based on super-resolution and
YOLO. _Signal Processing_ . 208 pp. 108962 (2023)
[11] Li, J., Xia, X., Li, W., Li, H., Wang, X., Xiao, X., Wang, R., Zheng, M. &
Pan, X. Next-vit: Next generation vision transformer for efficient deployment in realistic industrial scenarios. _ArXiv_ _Preprint_ _ArXiv:2207.05501_ .
(2022)
[12] Cai, Z. & Shen, Q. FalconNet: Factorization for the Light-weight Con
vNets. _ArXiv Preprint ArXiv:2306.06365_ . (2023)
[13] Chen, Y., Xia, R., Yang, K. & Zou, K. MFFN: Image super-resolution via
multi-level features fusion network. _The Visual Computer_ . pp. 1-16 (2023)
[14] Zou, Z., Chen, K., Shi, Z., Guo, Y. & Ye, J. Object detection in 20 years:
A survey. _Proceedings Of The IEEE_ . (2023)
[15] Kong, T., Yao, A., Chen, Y. & Sun, F. Hypernet: Towards accurate region
proposal generation and joint object detection. _Proceedings Of The IEEE_
_Conference_ _On_ _Computer_ _Vision_ _And_ _Pattern_ _Recognition_ . pp. 845-853
(2016)
[16] Lin, T., Dollár, P., Girshick, R., He, K., Hariharan, B. & Belongie, S.
Feature pyramid networks for object detection. _Proceedings Of The IEEE_
_Conference On Computer Vision And Pattern Recognition_ . pp. 2117-2125
(2017)
[17] Liu, S., Qi, L., Qin, H., Shi, J. & Jia, J. Path aggregation network for in
stance segmentation. _Proceedings Of The IEEE Conference On Computer_
_Vision And Pattern Recognition_ . pp. 8759-8768 (2018)
VOLUME 11 2023 15
TABLE 9. Comparison of the model in this paper with mainstream detectors
<u>Datastes</u> <u>Model</u> <u>R(%)</u> <u>mAP@.5(%)</u> <u>F1(%)</u> <u>Params(M)</u> <u>FPS</u>
NEU-DET
PCB
Aluminium
MobileViTV3 90.4% 93.2% 90.35% 5.24 60
EdgeViT 91.5% 93.5% 91.37% 11.26 45
NextVit 89.4% 94.1% 89.37% 31.34 40
EfficientViT 88.7% 93.6% 88.85% 9.10 49
<u>OUR</u> <u>88.7%</u> <u>94.3</u> <u>%</u> <u>89.62</u> <u>%</u> <u>9.012</u> <u>54</u>
MobileViTV3 96.5% 97.1% 96.57% 5.24 60
EdgeViT 97.7% 98.6% 97.56% 11.26 45
NextVit 96.7% 97.4% 96.94% 31.34 40
EfficientViT 97.2% 96.8% 97.23% 9.10 49
<u>OUR</u> <u>97.1%</u> <u>98.6%</u> <u>97.58</u> <u>%</u> <u>9.012</u> <u>54</u>
MobileViTV3 97.8% 97.9% 97.67% 5.24 60
EdgeViT 97.9% 98.2% 97.84% 11.26 45
NextVit 98.2% 98.4% 98.21% 31.34 40
EfficientViT 97.5% 97.6% 97.46% 9.10 49
<u>OUR</u> <u>98.3</u> <u>%</u> <u>98.4</u> <u>%</u> <u>98.25</u> <u>%</u> <u>9.012</u> <u>54</u>
[18] Ghiasi, G., Lin, T. & Le, Q. Nas-fpn: Learning scalable feature pyramid ar
chitecture for object detection. _Proceedings Of The IEEE/CVF Conference_
_On Computer Vision And Pattern Recognition_ . pp. 7036-7045 (2019)
[19] Xu, H., Yao, L., Zhang, W., Liang, X. & Li, Z. Auto-fpn: Automatic
network architecture adaptation for object detection beyond classification.
_Proceedings_ _Of_ _The_ _IEEE/CVF_ _International_ _Conference_ _On_ _Computer_
_Vision_ . pp. 6649-6658 (2019)
[20] Tan, M., Pang, R. & Le, Q. Efficientdet: Scalable and efficient object
detection. _Proceedings Of The IEEE/CVF Conference On Computer Vision_
_And Pattern Recognition_ . pp. 10781-10790 (2020)
[21] Wang, Q., Wu, B., Zhu, P., Li, P., Zuo, W. & Hu, Q. ECA-Net: Efficient
channel attention for deep convolutional neural networks. _Proceedings Of_
_The IEEE/CVF Conference On Computer Vision And Pattern Recognition_ .
pp. 11534-11
[22] Hou, Q., Zhou, D. & Feng, J. Coordinate attention for efficient mobile
network design. _Proceedings Of The IEEE/CVF Conference On Computer_
_Vision And Pattern Recognition_ . pp. 13713-13722 (2021) 542 (2020)
[23] Koonce, B. & Koonce, B. MobileNetV3. _Convolutional Neural Networks_
_With Swift For Tensorflow: Image Recognition And Dataset Categorization_ .
pp. 125-144 (2021)
[24] Hua, B., Tran, M. & Yeung, S. Pointwise convolutional neural networks.
_Proceedings_ _Of_ _The_ _IEEE_ _Conference_ _On_ _Computer_ _Vision_ _And_ _Pattern_
_Recognition_ . pp. 984-993 (2018)
[25] Han, K., Xiao, A., Wu, E., Guo, J., Xu, C. & Wang, Y. Transformer in
transformer. _Advances_ _In_ _Neural_ _Information_ _Processing_ _Systems_ . 34 pp.
15908-15919 (2021)
[26] Liu, Z., Gu, X., Chen, J., Wang, D., Chen, Y. & Wang, L. Automatic
recognition of pavement cracks from combined GPR B-scan and C-scan
images using multiscale feature fusion deep neural networks. _Automation_
_In Construction_ . 146 pp. 104698 (2023)
[27] Liu, G., Han, J. & Rong, W. Feedback-driven loss function for small object
detection. _Image And Vision Computing_ . 111 pp. 104197 (2021)
[28] Zhou, D., Fang, J., Song, X., Guan, C., Yin, J., Dai, Y. & Yang, R. Iou loss
for 2d/3d object detection. _2019_ _International_ _Conference_ _On_ _3D_ _Vision_
_(3DV)_ . pp. 85-94 (2019)
[29] Zheng, Z., Wang, P., Ren, D., Liu, W., Ye, R., Hu, Q. & Zuo, W. Enhancing
geometric factors in model learning and inference for object detection and
instance segmentation. _IEEE Transactions On Cybernetics_ . 52, 8574-8586
(2021)
[30] Gevorgyan, Z. SIoU loss: More powerful learning for bounding box regres
sion. _ArXiv Preprint ArXiv:2205.12740_ . (2022)
[31] Northeast University. http://faculty.neu.edu.cn/songkechen/zhCN/zhym/263269/list/index.html.
[32] Beijing University, P., PKU-Market-PCB. https://robotics.pkusz.edu.cn/
resources/dataset.
[33] Baidu, 2021. Aluminum defect dataset.https://aistudio.baidu.com/aistudio/
projectdetail/3529511
[34] ultralytics, 2020. YOLOv5. Available:
https://github.com/ultralytics/yolov5.
[35] Li, C., Li, L., Jiang, H., Weng, K., Geng, Y., Li, L., Ke, Z., Li, Q., Cheng,
M., Nie, W. & Others YOLOv6: A single-stage object detection framework
for industrial applications. _ArXiv Preprint ArXiv:2209.02976_ . (2022)
[36] Redmon, J. & Farhadi, A. Yolov3: An incremental improvement. _ArXiv_
_Preprint ArXiv:1804.02767_ . (2018)
[37] Bochkovskiy, A., Wang, C. & Liao, H. Yolov4: Optimal speed and accuracy
of object detection. _ArXiv Preprint ArXiv:2004.10934_ . (2020)
[38] Ge, Z., Liu, S., Wang, F., Li, Z. & Sun, J. Yolox: Exceeding yolo series in
2021. _ArXiv Preprint ArXiv:2107.08430_ . (2021)
[39] Wang, C., Bochkovskiy, A. & Liao, H. YOLOv7: Trainable bag-of-freebies
sets new state-of-the-art for real-time object detectors. _Proceedings Of The_
_IEEE/CVF Conference On Computer Vision And Pattern Recognition_ . pp.
7464-7475 (2023)
[40] Reis, D., Kupec, J., Hong, J. & Daoudi, A. Real-Time Flying Object
Detection with YOLOv8. _ArXiv Preprint ArXiv:2305.09972_ . (2023)
[41] Xu, S., Wang, X., Lv, W., Chang, Q., Cui, C., Deng, K., Wang, G., Dang,
Q., Wei, S., Du, Y. & Others PP-YOLOE: An evolved version of YOLO.
_ArXiv Preprint ArXiv:2203.16250_ . (2022)
[42] Hu, H. & Zhu, Z. Sim-YOLOv5s: A method for detecting defects on the
end face of lithium battery steel shells. _Advanced Engineering Informatics_ .
55 pp. 101824 (2023)
[43] Shang, H., Sun, C., Liu, J., Chen, X. & Yan, R. Defect-aware transformer
network for intelligent visual surface defect detection. _Advanced Engineer-_
_ing Informatics_ . 55 pp. 101882 (2023)
[44] Chen, J., Kao, S., He, H., Zhuo, W., Wen, S., Lee, C. & Chan, S. Run, Don’t
Walk: Chasing Higher FLOPS for Faster Neural Networks. _Proceedings Of_
_The IEEE/CVF Conference On Computer Vision And Pattern Recognition_ .
pp. 12021-12031 (2023)
[45] Zhang, Z., Zhou, M., Wan, H., Li, M., Li, G. & Han, D. IDD-Net: Industrial
defect detection method based on Deep-Learning. _Engineering_ _Applica-_
_tions Of Artificial Intelligence_ . 123 pp. 106390 (2023)
[46] Wadekar, S. & Chaurasia, A. Mobilevitv3: Mobile-friendly vision trans
former with simple and effective fusion of local, global and input features.
_ArXiv Preprint ArXiv:2209.15159_ . (2022)
[47] Chen, Z., Zhong, F., Luo, Q., Zhang, X. & Zheng, Y. EdgeViT: Efficient Vi
sual Modeling for Edge Computing. _International Conference On Wireless_
_Algorithms, Systems, And Applications_ . pp. 393-405 (2022)
[48] Li, J., Xia, X., Li, W., Li, H., Wang, X., Xiao, X., Wang, R., Zheng, M. &
Pan, X. Next-vit: Next generation vision transformer for efficient deployment in realistic industrial scenarios. _ArXiv_ _Preprint_ _ArXiv:2207.05501_ .
(2022)
[49] Cai, H., Gan, C. & Han, S. Efficientvit: Enhanced linear attention
for high-resolution low-computation visual recognition. _ArXiv_ _Preprint_
_ArXiv:2205.14756_ . (2022)
16 VOLUME 11 2023
CHAO LIANG is currently pursuing a bachelor’s
degree with the School of Mathematics and Statistics, Qinghai Minzu University, Xining, China. His
research interests include machine learning and
data mining.
ZI-ZHENG WANG is currently pursuing his Bachelor’s degree at Ulster College, Shaanxi University of Science and Technology, Xi’an, China. His
research interest is to study robot design and mechanical engineering.
XIAO-LIN LIU XIAO-LIN LIU is currently pursuing the bachelor’s degree with the School of
Modern Posts, Chongqing, China
PENG ZHANG a full-time faculty member of
Modern Postal College of Chongqing University
of Posts and Telecommunications.
ZHI-WEI TIAN is currently pursuing a bachelor’s
degree with the School of Mathematics and Statistics, Qinghai Minzu University, Xining, China. His
research interests include machine learning and
data mining.
RU-LIANG QIAN is currently pursuing a bachelor’s degree with the School of Mathematics
and Statistics, Qinghai Minzu University, Xining, China. His research interests include machine
learning and data mining.
VOLUME 11 2023 17
섹션 본문
섹션 본문이 없습니다.
참고문헌 33건
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2577031
- Fast R-CNN 2015 10.1109/iccv.2015.169
- Feature Pyramid Networks for Object Detection 2017 10.1109/cvpr.2017.106
- Pointwise Convolutional Neural Networks 2018 10.1109/cvpr.2018.00109
- Recent advances in convolutional neural networks Pattern Recognition · Elsevier BV · 2017 10.1016/j.patcog.2017.10.013
- HyperNet: Towards Accurate Region Proposal Generation and Joint Object Detection 2016 10.1109/cvpr.2016.98
- Mask R-CNN 2017 10.1109/iccv.2017.322
- Path Aggregation Network for Instance Segmentation 2018 10.1109/cvpr.2018.00913
- NAS-FPN: Learning Scalable Feature Pyramid Architecture for Object Detection 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00720
- IoU Loss for 2D/3D Object Detection 2021 International Conference on 3D Vision (3DV) · 2019 10.1109/3dv.2019.00019
- Auto-FPN: Automatic Network Architecture Adaptation for Object Detection Beyond Classification 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2019 10.1109/iccv.2019.00675
- YOLOv4: Optimal Speed and Accuracy of Object Detection arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2004.10934
- ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks 2020 10.1109/cvpr42600.2020.01155
- EfficientDet: Scalable and Efficient Object Detection 2020 10.1109/cvpr42600.2020.01079
- Feedback-driven loss function for small object detection Image and Vision Computing · Elsevier BV · 2021 10.1016/j.imavis.2021.104197
- Coordinate Attention for Efficient Mobile Network Design 2021 10.1109/cvpr46437.2021.01350
- Enhancing Geometric Factors in Model Learning and Inference for Object Detection and Instance Segmentation IEEE Transactions on Cybernetics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tcyb.2021.3095305
- A Review of Yolo Algorithm Developments Procedia Computer Science · Elsevier BV · 2022 10.1016/j.procs.2022.01.135
- MobileNetV3 Apress eBooks · 2021 10.1007/978-1-4842-6168-2_11
- SIoU Loss: More Powerful Learning for Bounding Box Regression arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2205.12740
- YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2209.02976
- Sim-YOLOv5s: A method for detecting defects on the end face of lithium battery steel shells Advanced Engineering Informatics · Elsevier BV · 2022 10.1016/j.aei.2022.101824
- Automatic recognition of pavement cracks from combined GPR B-scan and C-scan images using multiscale feature fusion deep neural networks Automation in Construction · Elsevier BV · 2022 10.1016/j.autcon.2022.104698
- EdgeViT: Efficient Visual Modeling for Edge Computing Lecture notes in computer science · Springer Science+Business Media · 2022 10.1007/978-3-031-19211-1_33
- Defect-aware transformer network for intelligent visual surface defect detection Advanced Engineering Informatics · Elsevier BV · 2023 10.1016/j.aei.2023.101882
- YOLOSR-IST: A deep learning method for small target detection in infrared remote sensing images based on super-resolution and YOLO Signal Processing · Elsevier BV · 2023 10.1016/j.sigpro.2023.108962
- Object Detection in 20 Years: A Survey Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 2023 10.1109/jproc.2023.3238524
- MFFN: image super-resolution via multi-level features fusion network The Visual Computer · Springer Science+Business Media · 2023 10.1007/s00371-023-02795-0
- IDD-Net: Industrial defect detection method based on Deep-Learning Engineering Applications of Artificial Intelligence · Elsevier BV · 2023 10.1016/j.engappai.2023.106390
- Enriched multi-scale cascade pyramid features and guided context attention network for industrial surface defect detection Engineering Applications of Artificial Intelligence · Elsevier BV · 2023 10.1016/j.engappai.2023.106369
- Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks 2023 10.1109/cvpr52729.2023.01157
- YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors 2023 10.1109/cvpr52729.2023.00721
- FalconNet: Factorization for the Light-Weight ConvNets Lecture notes in computer science · Springer Science+Business Media · 2023 10.1007/978-981-99-8079-6_29