선정목록으로
A fast surface‐defect detection method based on Dense‐YOLO network
간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)
기본 정보
- 저자
- DOI
- 10.1049/cit2.12407
- 저널
- CAAI Transactions on Intelligence Technology
- 발행년도
- 2025
- 발행기관
- Institution of Engineering and Technology
- 피인용수
- 1
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1049/cit2.12407
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W4406724903
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 수소연료전지 · (7) MEA(막전극접합체)
- 부 분야
- (6) PEM(고분자전해질막)
- R&D 측면
- 물성·성능 평가
- 확신도
- 0.80
- 근거 용어
- surface defect detection, lithium battery, Dense-YOLO, machine vision
- 판단 근거
- 이 논문은 리튬 배터리 표면의 결함(스크래치, 덴트 등)을 딥러닝(Dense-YOLO)으로 검출하는 기술을 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지(PEMFC) 관련 소재 및 배터리 응용 분야의 품질 관리 공정에 간접적으로 적용 가능한 기술입니다.
- R&D 활용 포인트
- 연료전지용 막(Membrane)이나 MEA 제조 공정 중 발생할 수 있는 미세한 표면 결함을 실시간으로 검출하는 자동화 검사 시스템 구축에 활용 가능합니다.
- 평가 입력
- 본문 63,970자 중 30,032자 발췌
초록
Abstract Efficient detection of surface defects is primary for ensuring product quality during manufacturing processes. To enhance the performance of deep learning‐based methods in practical applications, the authors propose Dense‐YOLO, a fast surface defect detection network that combines the strengths of DenseNet and you only look once version 3 (YOLOv3). The authors design a lightweight backbone network with improved densely connected blocks, optimising the utilisation of shallow features while maintaining high detection speeds. Additionally, the authors refine the feature pyramid network of YOLOv3 to increase the recall of tiny defects and overall positioning accuracy. Furthermore, an online multi‐angle template matching technique is introduced based on normalised cross‐correlation to precisely locate the detection area. This refined template matching method not only accelerates detection speed but also mitigates the influence of the background. To validate the effectiveness of our enhancements, the authors conduct comparative experiments across two private datasets and one public dataset. Results show that Dense‐YOLO outperforms existing methods, such as faster R‐CNN, YOLOv3, YOLOv5s, YOLOv7, and SSD, in terms of mean average precision (mAP) and detection speed. Moreover, Dense‐YOLO outperforms networks inherited from VGG and ResNet, including improved faster R‐CNN, FCOS, M2Det‐320 and FRCN, in mAP.
본문 63,970자
본문 펼치기
DOI: [10.1049/cit2.12407](https://doi.org/10.1049/cit2.12407)
O R I G I N A L R E S E A R C H
## - - -
# A fast surface‐defect detection method based on Dense‐YOLO network
Fengqiang Gao <sup>1,2</sup> | Qingyuan Zhu <sup>2</sup> | Guifang Shao <sup>2</sup> | Yukang Su <sup>3</sup> |
Jianbo Yang <sup>2</sup> | Xinyue Yu <sup>2</sup>
1School of Mechanical and Electrical Engineering &
Automation, Tan Kah Kee College, Xiamen
University, Xiamen, Fujian, China
2Pen‐Tung Sah Institute of Micro‐Nano Science and
Technology, Xiamen University, Xiamen, Fujian,
China
3Graduate School of Comprehensive Human
Sciences, University of Tsukuba, Tsukuba, Ibaraki,
Japan
Correspondence
Guifang Shao.
Email: [gfshao@xmu.edu.cn](mailto:gfshao@xmu.edu.cn)
Funding information
Program for Young Excellent Talents in the
University of Fujian Province, Grant/Award
Number: 201847; The National Key Research and
Development Program of China, Grant/Award
Number: 2022YFB3206605; Natural Science
Foundation of Xiamen Municipality, Grant/Award
Number: 3502Z20227189
1 | INTRODUCTION
Abstract
Efficient detection of surface defects is primary for ensuring product quality during
manufacturing processes. To enhance the performance of deep learning‐based methods
in practical applications, the authors propose Dense‐YOLO, a fast surface defect
detection network that combines the strengths of DenseNet and you only look once
version 3 (YOLOv3). The authors design a lightweight backbone network with
improved densely connected blocks, optimising the utilisation of shallow features while
maintaining high detection speeds. Additionally, the authors refine the feature pyramid
network of YOLOv3 to increase the recall of tiny defects and overall positioning accuracy. Furthermore, an online multi‐angle template matching technique is introduced
based on normalised cross‐correlation to precisely locate the detection area. This
refined template matching method not only accelerates detection speed but also mitigates the influence of the background. To validate the effectiveness of our enhancements, the authors conduct comparative experiments across two private datasets and
one public dataset. Results show that Dense‐YOLO outperforms existing methods,
such as faster R‐CNN, YOLOv3, YOLOv5s, YOLOv7, and SSD, in terms of mean
average precision (mAP) and detection speed. Moreover, Dense‐YOLO outperforms
networks inherited from VGG and ResNet, including improved faster R‐CNN, FCOS,
M2Det‐320 and FRCN, in mAP.
K E Y W O R D S
deep learning, Dense‐YOLO, object detection, surface defects, template matching
backgrounds, along with high demands for detection speed
and accuracy.
In industrial production, surface defects can occur in various
products due to intricate manufacturing processes and
environmental factors, such as cracks on mobile phone
screens or the presence of foreign matter in bottles [1].
Consequently, surface defect detection plays a crucial role in
industrial production, and it profoundly influences product
quality control. However, existing surface defect detection
methods encounter numerous challenges. These include wide
variations in defect size, low contrast between defects and
In the past, manualdetectionmethods were widelyemployed
due to their cost effectiveness. However, they suffered from
limitations such as poor detection accuracy and lowefficiency. In
contrast, traditional machine vision offers significant advantages
in speed, accuracy, and repeatability, making it widely utilised for
quantitative and qualitative measurement in structured scenes.
Traditional machine vision‐based defect detection methods
fall into two categories: those based on structural image features and those combining statistical image features with
[This is an open access article under the terms of the Creative Commons Attribution‐NonCommercial‐NoDerivs License, which permits use and distribution in any medium, provided the](http://creativecommons.org/licenses/by-nc-nd/4.0/)
original work is properly cited, the use is non‐commercial and no modifications or adaptations are made.
© 2025 The Author(s). _CAAI Transactions on Intelligence Technology_ published by John Wiley & Sons Ltd on behalf of The Institution of Engineering and Technology and Chongqing
University of Technology.
#### -
machine learning algorithms. Structural image feature‐based
methods detect defects primarily through edge, texture, and
frequency spectrum information. Classical algorithms used for
feature extraction include histogram properties analysis [2],
local binary patterns [3], mathematical morphology operations
[4], spatial domain filtering [5], and joint spatial‐frequency
analysis [6]. Although these methods can address various defects based on image structural features, many are sensitive to
noise and dependent on parameters, limiting their applicability
to multiple classification tasks.
To overcome these limitations, methods combining statistical image features with machine learning algorithms have
been proposed. For example, numerous researchers have
employed support vector machines (SVM) for the extraction of
statistical features and the classification of defects [7, 8].
Nevertheless, these approaches still face challenges in detecting
and locating multiple defects within the same image.
The advent of deep learning technology offers a promising
solution to the challenges mentioned above. Recent research
has shifted focus towards developing robust detection techniques based on deep learning to tackle complex surface defect
detection problems [9, 10]. Masci et al. introduced a max‐
pooling convolutional neural network (CNN) for steel defect
classification [11]. This network outperforms the SVM
classifier; however, it has limited flexibility due to a fixed size
requirement for input images. To address the trade‐offs between real‐time processing and high precision in steel defect
detection, other networks such as faster region‐based CNN
(faster R‐CNN), you only look once (YOLO), and single shot
multi‐box detector (SSD) have been proposed.
As previously mentioned, surface defect detection using
deep learning has aroused significant attention and has proven
successful in certain scenarios. However, the actual defect data
presents considerable complexity, exhibiting various characteristics such as diverse defect categories and patterns, low contrast
between defects and the background, a wide range of defect
sizes, environmental disturbances, and image background
interference, as illustrated in Figure 1. Moreover, applying these
methods in industrial settings demands high detection speed and
performance. Additionally, the popular backbone networks in
surface defect detection algorithms are predominantly derived
from VGG [12] and ResNet [13]. These challenges impede the
practical implementation of deep learning‐based surface defect
detection methods. Consequently, there is a critical need to
develop a novel approach for surface defect detection.
In this paper, we propose Dense‐YOLO, a network to
address the challenges inherent in surface defect detection,
including the wide variation in defect sizes, low contrast
F I G U R E 1 Various challenges in defect detection on lithium battery surface images.
between defects and backgrounds, and the need for high
detection speed and accuracy. Inspired by the strengths of
DenseNet [14] and you only look once version 3 (YOLOv3)
[15], our proposed network offers several contributions:
1) We present a lightweight backbone network with densely
connected blocks, leveraging shallow features to enhance
both detection accuracy and speed.
2) To address the accuracy of positioning large‐scale varying
defects, we propose an enhanced feature pyramid network
(FPN) incorporating a downsampling operation for
improving overall positioning accuracy.
3) We introduce the normalised cross‐correlation (NCC) for
online multi‐angle template matching, facilitating rapid
detection area localisation.
The subsequent sections of this paper are organised as
follows: Section 2 provides detailed descriptions of the proposed method and the enhancements. In Section 3, we present
the results of comparative experiments conducted on various
datasets and discuss our findings. Finally, we offer concluding
remarks in Section 4.
2 | RELATED WORKS
Yi L. et al. proposed a 15‐layer end‐to‐end CNN to classify
steel strip surface defects [16]. However, this method could
only classify defects and did not accurately locate them.
Subsequently, S. Ren et al. addressed this limitation by proposing faster R‐CNN for target detection in natural scenes
[17]. Y. Cha et al. further applied faster R‐CNN to detect
various surface defects, including concrete cracks, advanced
steel corrosion, steel intermediate corrosion, bolt corrosion,
and steel delamination [18]. Despite its effectiveness, faster R‐
CNN still could not meet the real‐time processing requirements for high‐resolution images. To improve detection
speed, YOLO [19] and SSD [20] networks were introduced.
Although these networks offer faster processing, their
detection accuracy may not match that of faster R‐CNN.
Therefore, there is a trade‐off between speed and accuracy
when choosing a detection method for steel strip surface
defects.
Furthermore, YOLOv3 [21], YOLOv4 [22] and YOLOv5
[23] are designed to enhance the performance of the YOLO
series network in detecting small targets. Additionally, a
cascaded network comprising SSD and YOLO is introduced
for defect detection in fasteners along high‐speed rail [24]. In
the literature [24], an improved SSD with a novel prediction
layer is initially employed to identify cantilever joints. Subsequently, defect detection on fasteners of the cantilever joints is
carried out using the simplified YOLO network. Moreover,
experimental results demonstrate that this network can achieve
a reasonable detection rate in complex environments. To
enhance the performance of surface defect detection on steel
strips, a classification priority YOLOv3‐dense network is
proposed [25].
These networks represent significant advancements in the
field of steel strip surface defect detection. However, several
challenges remain, including effectively integrating deep and
shallow features, enhancing detection speed and accuracy for
low‐contrast defects, addressing the detection of both tiny and
large‐size defects simultaneously, and mitigating background
and noise interference. This paper aims to delve into these
challenges and propose potential solutions.
3 | METHOD
The workflow of the Dense‐YOLO network is depicted in
Figure 2, including three main stages: dataset construction,
training, and testing.
During the dataset construction stage, we developed an
online multi‐angle template matching method to localise the
detection area within images obtained from the actual production line. The YOLO mark tool [26] was employed to
annotate the types and extents of different defects in the images. Additionally, rotation and cropping operations were
applied to augment the dataset.
In the training phase, a new network structure was
designed by integrating the strengths of DenseNet and
YOLOv3, with improvements made to FPN to enhance the
detection of tiny defects. Subsequently, parameters such as
learning rate, learning rate adjustment strategies, network
weights, anchor sizes, and allocation mechanisms were initialised, and the proposed Dense‐YOLO model was trained.
During the testing stage, the trained network was utilised to
detect defects in various images. The non‐maximum suppression method was employed to remove redundant portions of
the predicted boundary boxes identified as defect areas, and
the type and location of defects were subsequently output.
3.1 | An online multi‐angle template
matching based on normalised cross‐
correlation
In engineering applications, it is a common practice to mitigate
redundant detection and background interference by accurately
locating and segmenting the detection area. In the case of the
lithium battery surface defect datasets utilised in this paper,
images captured from the production line often contain significant background clutter, with the actual lithium battery area (the
region of interest, ROI) occupying less than 20% of the total
image area (as illustrated in the sample image under the template
matching section of the data construction part in Figure 2).
To address this issue, it is crucial to perform ROI extraction
to eliminate background influence and enhance computational
efficiency. By isolating the ROI, the algorithm can focus solelyon
analysing the relevant portion of the image, thereby improving
detection accuracy and reducing processing time.
The traditional NCC‐based template matching method [27]
is commonly used for ROI extraction. This method utilises the
grayscale similarity between the template image and the target
F I G U R E 2 The overall workflow of the Dense‐YOLO network.
image to identify the optimal match position. The process
involves the following formulae (1)–(3):
P
_s_ ð _x; y_ Þ ¼
~~qf~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~
<u>Pð</u> _i;j_ Þ2 _T_ <sup>_t_</sup> <sup>ʹ</sup> <sup>ð</sup> <sup>_i; j_</sup> <sup>Þ2</sup> <sup>⋅</sup> <sup><u>P</u></sup> ð _i;j_ Þ2 _T_ <sup>_f_</sup> <sup>ʹð</sup> <sup>_x_</sup> <sup>þ</sup> <sup>_i; y_</sup> <sup>þ</sup> <sup>_j_</sup> <sup>Þ2</sup> ð1Þ
ð _<u>i;j</u>_ Þ2 _<u>T</u>_ <sup>ð</sup> <sup>_t_</sup> <sup>ʹð</sup> <sup>_i; j_</sup> <sup>Þ ⋅</sup> <sup>_f_</sup> <sup>ʹð</sup> <sup>_x_</sup> <sup>þ</sup> <sup>_i; y_</sup> <sup>þ</sup> <sup>_j_</sup> <sup>ÞÞ</sup>
~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~
<u>P</u>
f i f i f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i f i f i f i f i f i f i f i f i f i f i f i f i f i f i f i f i f i f i f i
ð _i;j_ Þ2 _T_ <sup>_t_</sup> <sup>ʹ</sup> <sup>ð</sup> <sup>_i; j_</sup> <sup>Þ2</sup> <sup>⋅</sup> <sup><u>P</u></sup>
<u>1</u>
_t_ <sup>ʹ</sup> ð _i; j_ Þ ¼ _t_ ð _i; j_ Þ −
_<u>n</u>_ ⋅ _<u>m</u>_
X
_t_ ð _x; y_ Þ ð2Þ
ð _x;y_ Þ2 _T_
_f_ ð _x_ þ _i; y_ þ _j_ Þ
ð3Þ
<u>1</u>
_f_ <sup>ʹ</sup> ð _x_ þ _i; y_ þ _j_ Þ ¼ _f_ ð _x_ þ _i; y_ þ _j_ Þ −
_<u>n</u>_ ⋅ _<u>m</u>_
X
ð _i;j_ Þ2 _T_
pyramid, which requires significant memory allocation for
loading templates. For instance, if the rotation step is set at 1°
and there are 3 pyramid layers, it entails generating 1080
templates. Because conventional multi‐angle template matching methods rely on a great number of offline templates to
identify detection areas, we propose an online multi‐angle
template matching method based on NCC to locate these
areas efficiently. This method eliminates the need for offline
template creation, thereby ensuring robustness while reducing
memory requirements. Initially, the positions of the four
vertices for the rotated ROI are determined. Subsequently, a
horizontal ROI image is generated using an affine transformation. Finally, this horizontal ROI is matched with the
originally defined template. Notably, our proposed method
enables matching at any angle without the necessity for pre‐
generated offline templates.
The main steps of the proposed method based on image
pyramid technology are summarised as follows:
1) Input the target image and construct the template. Initialise parameters including the number of layers in the
image pyramids, initial and final angles, rotational and
transitional step lengths, matching success threshold, and
others.
2) Construct the image pyramids for both the target image
and the template, downsampling them accordingly.
3) Iterate through the top‐level image pyramid, adjusting the
target image area with specific transition and rotation steps.
Transform this area into a horizontal image and match it
with the template using NCC. Identify the rough position
and rotation angle with the highest similarity.
4) Move to the next level of the image pyramid. Based on the
matching position and rotation angle obtained from the
where _s_ ð _x; y_ Þ denotes the similarity between the template image
t and the target image f at point (x, y), and its value ranges
from −1 to 1. The larger the value, the higher the similarity;
_t_ ð _i; j_ Þ represents the grey value of point ð _i; j_ Þ in the template
P
image, _<u>n</u>_ ⋅1 _<u>m</u>_ ð _x;y_ Þ2 _T_ <sup>_t_</sup> <sup>ð</sup> <sup>_x; y_</sup> <sup>Þ</sup> <sup>denotes</sup> <sup>the</sup> <sup>average</sup> <sup>grey</sup> <sup>value</sup> <sup>of</sup>
P
image, _<u>n</u>_ ⋅1 _<u>m</u>_ ð _x;y_ Þ2 _T_ <sup>_t_</sup> <sup>ð</sup> <sup>_x; y_</sup> <sup>Þ</sup> <sup>denotes</sup> <sup>the</sup> <sup>average</sup> <sup>grey</sup> <sup>value</sup> <sup>of</sup>
the template image; _f_ ð _x_ þ _i; y_ þ _j_ Þ is the grey value of point
P
ð _x_ þ _i; y_ þ _j_ Þ in the target image, _<u>n</u>_ ⋅1 _<u>m</u>_ ð _x;y_ Þ2 _T_ <sup>_f_</sup> <sup>ð</sup> <sup>_x_</sup> <sup>þ</sup>
P
ð _x_ þ _i; y_ þ _j_ Þ in the target image, _<u>n</u>_ ⋅1 _<u>m</u>_ ð _x;y_ Þ2 _T_ <sup>_f_</sup> <sup>ð</sup> <sup>_x_</sup> <sup>þ</sup>
_i; y_ þ _j_ Þ denotes the mean grey value of the interest region in
the target image.
Although the traditional NCC‐based template matching
method can overcome linear lighting interference, it is notably
time consuming. Hence, we employ image pyramid technology
to streamline computation and enhance matching speed.
However, the traditional NCC‐based template matching
method fails to accurately locate targets with rotation. Typically, the multi‐angle template matching approach is employed
to generate rotation templates for each layer of the image
upper level, conduct step‐by‐step matching within a specific transition and rotation step among smaller
neighbourhoods.
5) Repeat the matching process described in step (4) until the
original image matching is completed. Obtain the final
matching position and rotating angle.
3.2 | Dense‐YOLO network
Current surface defect detection algorithms often rely on
backbone networks and principles from target detection in
natural scenes, such as VGG and ResNet. However, these algorithms encounter challenges due to the complexity of the
backbone network, leading to excessive computational requirements. Moreover, training high‐resolution defect images
directly with a complex backbone network is impractical.
Typically, scaling or segmenting the original high‐resolution
image is necessary before training. However, excessive scaling
can result in significant loss of defect information, whereas
image segmentation increases training difficulty and overall
detection time. Additionally, traditional networks often
underutilise features in shallow layers, making it easy to miss
the detection of tiny defects.
To address these issues and enhance the performance and
practical application of surface defect detection algorithms, we
propose the Dense‐YOLO network by combining the
strengths of DenseNet and YOLOv3. The network's structure
is illustrated in Figure 3.
F I G U R E 3 The structure of the Dense‐YOLO network.
In this network, we leverage the dense connection module
to enhance the utilisation of shallow features and foster better
fusion between deep and shallow features. Integrating the
dense connection module not only optimises the network
width but also accelerates the detection speed. Furthermore,
we enhance the FPN by integrating feature information from
preceding resolution layers. This enhancement enables the
detection of tiny defects and enhances overall positional
accuracy.
3.2.1 | Backbone network
To fulfil the detection needs of multiple targets and enhance
the utilisation of shallow features along with the fusion rate of
deep and shallow features, we designed a backbone network
comprising four densely connected stages. As depicted in
Figure 4, each densely connected stage comprises a 1 - 1
convolutional layer, a max‐pooling layer, and densely connected blocks. It is recognised that a greater number of
network layers and larger receptive fields aid in extracting the
pertinent characteristics of large targets. Thus, we incrementally augment the number of densely connected blocks corresponding to stages 2 through 5 from one to four.
Furthermore, inspired by DenseNet, we design four
densely connected blocks to substitute the bypass connection
found in ResNet [13]. This approach mitigates the network
degradation issue associated with deep networks and enhances
the feature reuse rate. In our design, we reduce the density of
F I G U R E 4 The backbone network of Dense‐YOLO.
F I G U R E 5 The densely connected block in the Dense‐YOLO network.
connection from one layer to all subsequent layers in DenseNet. Instead, we overlay the input characteristics of each
block onto the output. This not only simplifies the network
structure but also helps propagate shallow features, as illustrated in Figure 5.
Each densely connected block comprises an input layer, a
1 - 1 convolution layer, a 3 - 3 convolution layer, and an
output layer. Initially, the number of input feature channels is
reduced to 64 using the 1 � 1 convolution layer. Subsequently,
the 3 � 3 convolution layer is employed to learn new features,
which are then overlaid onto the input features. It is worth
noting that utilising a 1 - 1 convolution layer helps decrease
network width, thereby maintaining a lightweight structure as
the number of densely connected blocks increases. Additionally, we employ max‐pooling with a stride size of 2 and a filter
size of 2 - 2 as the downsampling method to enhance the
discrimination between defects and background, thus reducing
network computation.
3.2.2 | Improved feature pyramid network
The FPN structure employed in YOLOv3 enables the fusion of
feature maps with smaller resolutions, offering richer semantic
features. However, the method used for smaller resolution
feature maps involves reducing the channel number via 1 - 1
convolution and subsequently expanding the feature map size
through up‐sampling, as depicted in Figure 6a. This approach
may lead to the loss of certain structural features, impacting
small target detection and accurate positioning [28]. To address
this limitation, we enhanced the FPN structure utilised in
YOLOv3 by incorporating feature fusion of larger resolution
feature maps, as shown in the dashed box in Figure 6b. Here, to
preserve the structural features of the larger resolution feature
map, we employ channel reorganisation for downsampling the
feature map, followed by reducing the number of channels using
a 1 � 1 convolution. The resulting output is then added to the
original feature fusion block.
F I G U R E 6 Comparison of feature fusion in FPN between YOLOv3 and Dense‐YOLO: (a) feature fusion of FPN in YOLOv3 and (b) feature fusion of
FPN in Dense‐YOLO.
4 | EXPERIMENTS
4.1 | Dataset
We conducted comparative experiments on two proprietary
datasets and one public dataset to validate the efficacy of the
improvements proposed in this paper. The public dataset used
is the NEU‐DET [29], an open‐source steel surface defect
dataset. This dataset encompasses six types of defects: cracks
(Cr), inclusions (In), plaques (Pa), pitted surfaces (Ps), rolling
(Rs), and scratches (Sc). Each defect category comprises 300
images, totalling 1800 images. The respective numbers of defects are 689, 981, 875, 430, 608, and 525, respectively. Defect
sizes vary from 11 - 24 pixels to 200 - 200 pixels. Notably,
the dataset presents significant challenges due to notable intra‐
class variations, background fragment interference, and similarities between classes, making the detection of NEU‐DET
defect images a particularly difficult task.
The two proprietary datasets provided are the lithium
battery surface scratches dataset and the lithium battery surface
dents and pits dataset, generously shared by Huizhou Gaoshi
Technology Co., Ltd. The lithium battery surface dents and
pits dataset comprises 370 images, containing a total of 500
dents and 251 pits. Detecting defects in this dataset poses
significant challenges, primarily due to the low contrast between defects and the background, as well as the minuscule
size of the defects. For example, some slight dents measure
within a mere 10 pixels, rendering them difficult to discern
with the naked eye. Additionally, all pits are smaller than
32 � 32 pixels, with many concentrated in dimensions ranging
from 10 - 10 to 15 - 15 pixels, as shown in Figure 7a.
In essence, despite their small individual sizes, pits
constitute only approximately 0.03% of the total defect area.
Additionally, around half of the dents measure smaller than
32 - 32 pixels. The lithium battery surface scratches dataset
comprises 150 images containing 358 scratches. The dimensions of these scratches range from 9 - 23 pixels to
597 - 710 pixels, as depicted in Figure 7b. Notably, approximately 61.73% of the defects exhibit an aspect ratio smaller
than 1, indicating a significant variability in defect sizes.
Furthermore, the aspect ratio of defects spans from 0.25 to 8,
highlighting substantial diversity in the size of scratch defects.
The presence of dust particles and the low contrast between
defects and the background further compound the difficulty of
detection. These factors collectively underscore the multifaceted challenges involved in accurately detecting defects within
the lithium battery surface scratches dataset.
4.2 | Environment setting and parameter
initialisation
We implemented the proposed Dense‐YOLO using the
AlexeyAB‐Darknet framework. Additionally, we used the
TensorFlow framework to implement the comparative networks: faster R‐CNN and SSD. Dense‐YOLO requires the
adjustment of some fundamental parameters when training on
different datasets, such as image resolution, training iterations,
and anchor settings. The initialisation of these parameters used
in training on three datasets is detailed in Table 1.
The parameter ‘burn_in’ denotes the number of training
steps during which the learning rate gradually increases from
0 to its initial value exponentially. Setting this parameter
effectively alleviates instability during the initial phases of
network training. To fine‐tune the learning rate, we employ a
multi‐stage decay strategy, wherein the learning rate decreases
by a factor of 10 at 80% and 90% of the total training steps.
Furthermore, the optimisation of the loss function utilises a
momentum gradient descent method with an exponentially
weighted average coefficient of 0.9. Additionally, an L2 regularisation coefficient of 0.0005 is applied to prevent overfitting
and enhance model generation.
In this paper, we employ the k‐means algorithm to cluster
anchors that align with the defect size distribution present in
the dataset. Across all datasets, we maintain a uniform
number of anchors, set as 9. However, the size and allocation
mechanism vary. Table 2 presents a breakdown of anchor
sizes and allocations across different datasets. Scales 1–3 are
tasked with detecting large, medium, and small defects,
respectively. The size and quantity of anchors allocated to
each scale are determined based on the distinctive features of
the dataset.
4.3 | Network complexity analysis
To address the challenge of network detection speed, several
improvements have been integrated into our proposed Dense‐
F I G U R E 7 The size and number distribution of various defects on the surface of lithium batteries with (a) dents and pits and (b) scratches.
T A B L E 1 Initialisation of parameters used in Dense‐YOLO training on different datasets.
Data set Resolution Batch Subdivision Initial learning rate Burn_in Training steps
Lithium battery surface scratches 1248 - 1024 32 8 0.001 400 8000
Lithium battery surface dents and pits 1024 - 712 32 8 0.001 400 3500
NEU‐DET 224 - 224 64 4 0.001 400 7500
T A B L E 2 The size and allocation mechanism of anchors in different datasets.
Data set Number Size Scale 1 Scale 2 Scale 3
Lithium battery
surface scratches
Lithium battery
surface dents and pits
9 (27,264), (32,29), (33,71), (59,46), (82,105),
(130,181), (233,91), (245,243), (386,402)
9 (13,15), (18,49), (23,21), (28,32), (33,75), (35,24),
(43,32), (74,36), (128,147)
(130,181), (233,91),
(245,243), (386,402)
(128,147) (74,36) (13,15),(18,49), (23,21), (28,32),
(33,75), (35,24), (43,32)
(59,46),
(82,105)
(27,264), (32,29), (33,71)
NEU‐DET 9 (20,41), (25,82), (34,208), (176,52), (51,40),
(58,76), (77,154), (120,89), (172,213)
(77,154), (120,89),
(172,213)
(176,52),
(51,40),
(58,76)
(20,41), (25,82), (34,208)
T A B L E 3 The network complexity of YOLOv3 and Dense‐YOLO on different datasets.
Data set Resolution Network Total bflops
Lithium battery surface scratches 1248*1024 YOLOv3 483.053
Dense‐YOLO 52.661
Lithium battery surface dents and pits 1024*712 YOLOv3 272.653
Dense‐YOLO 29.776
NEU‐DET 224*224 YOLOv3 18.977
Dense‐YOLO 2.073
Abbreviation: YOLOv3, You Only Look Once version 3.
YOLO framework. These include the strategic selection layers
based on receptive field theory for designing lightweight networks, the utilisation of an affine transformation matrix in
online angle‐free matching to reduce memory requirements,
and the implementation of a pyramid image structure to
streamline time consumption.
To evaluate the effectiveness of these improvements, we
conducted experiments using images from three datasets with
varying resolutions and performed detection speed tests on the
GTX GeForce 1080 GPU. The experimental results show that
for images sized at 1248 - 1024, Dense‐YOLO achieves a
detection speed of 50 frames per second, thereby facilitating
practical application and wider adoption. Table 3 shows the
network complexities of YOLOv3 and Dense‐YOLO on
different datasets. The parameter ‘total bflops’ represents the
number of billion floating‐poin operations per second required
by the convolutional layer. It is evident that Dense‐YOLO
necessitates less computation across various datasets, with
YOLOv3 demanding nine times more bflops than Dense‐
YOLO.
4.4 | Ablation experiments
We conducted various comparative experiments aimed at
validating the efficacy of dense connections, improved FPN,
and maximum pooling downsampling introduced in Dense‐
YOLO. Table 4 presents the distinctions among the three
networks utilised for comparison with Dense‐YOLO.
4.4.1 | The overall comparison
Table 5 displays the detection outcomes of four networks
across three datasets, revealing that Dense‐YOLO achieves the
highest mean average precision (mAP) and F1 scores on all
three datasets. These results substantiate the effectiveness of
the densely connected block, improved FPN, and max‐pooling
introduced in Dense‐YOLO. Notably, the use of max‐pooling
in the downsampling layer not only reduces network parameters but also improves and preserves image texture information, aiding in the detection of low‐contrast defects. As
observed in Table 5, the mAP of Dense‐YOLO increased by
T A B L E 4 Definition of different networks used for ablation experiments.
3%, 5.5%, and 0.7% across the three datasets compared to
Dense‐YOLO_3, which does not utilise maximum pooling.
From Table 5, we observe that the mAP of Dense‐YOLO
has increased by 1.6%, 4.1%, and 0.9% across the three
datasets compared to Dense‐YOLO_1. This enhancement can
be attributed to the densely connected blocks' ability to
improve the utilisation of shallow structural feature information, thereby aiding in the detection of minute and low‐
contrast defects. As mentioned above, the defects present in
the lithium battery surface scratch dataset and the lithium
battery surface dents and pits dataset exhibit low contrast and
subtlety. Consequently, the mAP sees a significant improvement due to Dense‐YOLO's capability to handle such challenging defect characteristics. In NEU‐DET, defects exhibit a
higher level of contrast against the background, and the
occurrence of slight defects is lower. Consequently, the effectiveness of dense connections on this dataset is not as pronounced as observed in the first two datasets.
Compared to Dense‐YOLO_2, Dense‐YOLO demonstrates an increase in mAP across the three datasets by 3.9%,
4.9%, and 1.7%, respectively. In fact, there is a significant
Network Densely connected block Improved FPN Downsampling using convolution
Dense‐YOLO_1 ✓
Dense‐YOLO_2 ✓
Dense‐YOLO_3 ✓ ✓ ✓
Dense‐YOLO ✓ ✓
_Note_ : Dense‐YOLO_1 lacks a densely connected block but incorporates the improved FPN and max‐pooling downsampling. Similarly, Dense‐YOLO_2 includes a densely connected
block and maximum pooling downsampling but lacks the improved FPN. On the other hand, Dense‐YOLO_3 employs convolution instead of max‐pooling for downsampling and
incorporates both a densely connected block and an improved FPN. Evaluation metrics include mAP on VOC2012, precision, recall, F1 score, and detection time. The NMS threshold is
set to 0.3, and the graphics card used is Nvidia GTX GeForce 1080.
Abbreviations: FPN, feature pyramid network; mAP, mean average precision; NMS, non‐maximum suppression.
T A B L E 5 The detection results of four networks on three datasets.
Data set Network mAP Precision (%) Recall (%) F1 score
Lithium battery surface scratches Dense‐YOLO_1 0.814 90.98 81.76 0.861
Dense‐YOLO_2 0.791 84.03 81.76 0.829
Dense‐YOLO_3 0.800 92.97 80.41 0.862
Dense‐YOLO 0.830 88.11 85.14 0.866
Lithium battery surface dents and pits Dense‐YOLO_1 0.881 86.96 83.95 0.854
Dense‐YOLO_2 0.873 87.59 81.98 0.847
Dense‐YOLO_3 0.867 83.08 81.23 0.821
Dense‐YOLO 0.922 87.65 89.38 0.885
NEU‐DET Dense‐YOLO_1 0.811 69.95 87.29 0.777
Dense‐YOLO_2 0.803 66.58 86.71 0.753
Dense‐YOLO_3 0.813 70.67 85.82 0.775
Dense‐YOLO 0.820 70.01 87.53 0.778
_Note_ : The bold values represent the optimal values of Dense‐YOLO, our proposed network, when compared with other networks in the corresponding metrics. These values are bolded
to draw the readers’ attention, enabling them to quickly identify the superior performance of Dense‐YOLO.
variation in scale and aspect ratio observed in the lithium battery
surface scratches dataset, ranging from the tiniest defect
measuring 9 � 23 pixels to the largest one measuring 597 � 710
pixels. Additionally, most dents and pits are smaller than 96 � 96
pixels, with all pits being less than 32 � 32 pixels in size. Thus,
this improvement can be attributed to the enhancements we
have made to FPN in the fusion of higher‐resolution feature
maps at each prediction scale. These feature maps offer richer
structural features from shallow layers, thereby not only preserving FPN's original characteristics but also enhancing its
ability to detect small targets and improve localisation accuracy.
In summary, Dense‐YOLO excels in detecting defects
within the lithium battery surface scratches dataset and the
lithium battery surface dents and pits dataset due to its ability
to effectively handle the diverse scale and aspect ratio characteristics present in these datasets.
4.4.2 | Efficiency of densely connected block
Furthermore, a comparison between Dense‐YOLO_1 and
Dense‐YOLO is conducted on a dataset comprising dents and
pits present on the surface of lithium batteries. Table 6 presents the detection results for each defect category obtained by
two networks. It is evident from the table that Dense‐YOLO
achieves higher average precision (AP) values for both dents
and pits, with an increase of 5.7% and 2.5%, respectively,
compared to Dense‐YOLO_1. Additionally, the recall rates for
dents and pits also demonstrate improvement, with an increase
of 6.08% and 2.63%, respectively.
The notable enhancement in detecting dent defects can be
attributed primarily to the incorporation of dense connections.
Dense connections ensure the accurate detection of low‐
contrast defects by enhancing the features extracted from
shallow layers, thereby reducing missed detection.
Figure 8 illustratesacomparativeanalysisofthe performance
of Dense‐YOLO and Dense‐YOLO_1 across three datasets,
aiming to corroborate the efficacy of slight scratches detection.
Evidently, Dense‐YOLO successfully identifies slight scratches
and dents on the surface of lithium batteries, as well as slight
inclusions within the NEU‐DET dataset. In contrast, Dense‐
YOLO_1 fails to detect these imperfections. This observation
T A B L E 6 Test results of Dense‐YOLO and Dense‐YOLO_1 on the
dents and pits dataset.
Network Type AP Precision (%) Recall (%) F1‐score
Dense‐YOLO_1 Dents 0.788 84.44 80.85 0.826
Pits 0.974 97.37 97.37 0.974
Dense‐YOLO Dents 0.845 85.63 86.93 0.863
Pits 0.999 96.20 100.00 0.981
_Note_ : The bold values represent the optimal values of Dense‐YOLO, our proposed
network, when compared with other networks in the corresponding metrics. These
values are bolded to draw the readers’ attention, enabling them to quickly identify the
superior performance of Dense‐YOLO.
underscores the superior capability of Dense‐YOLO in effectively detecting subtle defects, highlighting its potential for
robust defect detection on various datasets.
4.4.3 | Performance of the improved feature
pyramid network
To demonstrate the efficacy of the FPN in enhancing the
network's capacity to detect objects of varying sizes, Figure 9
shows the AP of each defect detected by Dense‐YOLO and
Dense‐YOLO_2 on three datasets. Although the increase in
mAP for NEU‐DET is modest at 1.7%, attributed to the
limited presence of tiny defects, a significant enhancement is
observed in the average AP for detects exhibiting smaller sizes
and wider ranges. For instance, the AP for the rolled‐in scale
defect rises by 4.9%.
Notably, the most substantial improvements are observed
in dents, rolled‐in scale, and scratches (lithium batteries), with
increases of 8.6%, 4.9%, and 3.9%, respectively. This notable
enhancement can be attributed to the diminutive size and
extensive scale variation characteristics of these defect types.
For example, the proportion of dents with widths or heights
smaller than 32 pixels and 64 pixels is considerable, with the
former reaching 77% and the latter at 96%. Regarding the
rolled‐in scale, its proportion with widths or heights smaller
than 64 pixels is 68.5%. Moreover, there is a significant variation in scale and aspect ratio observed in dent defects, ranging
from the tiniest defect measuring 10 � 17 pixels to the largest
one measuring 158 - 160 pixels.
Figure 10 depicts the disparity in detecting certain minuscule defects between Dense‐YOLO and Dense‐YOLO_2, with
the defects magnified 400 times to accentuate their shapes. As
illustrated in Figures 10a and 10c, Dense‐YOLO, equipped
with enhanced FPN, successfully identifies tiny scratches
(12 - 13 pixels) and pits (15 - 17 pixels), whereas Dense‐
YOLO_2 fails to detect them.
To assess the impact of the improved FPN on positioning
accuracy, we calculated the mAP of Dense‐YOLO and Dense‐
YOLO_2 across three datasets at varying intersection over
union (IoU) thresholds. This threshold dictates the level of
overlap between the predicted bounding box and the actual
bounding box. Figure 11a illustrates the mAP of Dense‐YOLO
and Dense‐YOLO_2 on three datasets at different IoU
thresholds. Notably, Dense‐YOLO consistently outperforms
Dense‐YOLO_2 in terms of mAP, except at an IoU threshold
of 0.6 in Figure 11b. This observation suggests that Dense‐
YOLO exhibits superior accuracy in positioning objects,
corroborating the efficacy of its enhanced FPN.
The maximum differences in mAP across the three datasets are 0.111, 0.058, and 0.021, respectively. The defect size
distribution in NEU‐DET is relatively normal; thus, except for
the IoU thresholds of 0.7 and 0.8, the mAP difference remains
around 0.01–0.02, as depicted in Figure 11c. It is a challenge to
achieve higher accuracy in localising dents and pits defects due
to their smaller size, typically below 96 - 96 pixels. After the
F I G U R E 8 Detection results of slight defects by using Dense‐YOLO and Dense‐YOLO_1.
F I G U R E 9 The average precision (AP) of Dense‐YOLO and Dense‐YOLO_2 on different defects.
threshold surpasses 0.4, the difference in mAP becomes relatively small (see Figure 11b).
Figure 12 illustrates the positioning accuracy of Dense‐
YOLO and Dense‐YOLO_2 concerning scratches, dents,
and patches. It confirms the superior positioning accuracy of
Dense‐YOLO, thus validating the effectiveness of FPN
enhancement.
4.4.4 | Effectiveness of the max‐pooling
downsampling
Figure 13 presents the AP of various defect types by Dense‐
YOLO and Dense‐YOLO_3. Observing Figure 13, we note
significant improvements in the detection of dents, cracks and
two types of scratches (from both the lithium battery dataset
F I G U R E 1 0 Comparison of Dense‐YOLO and Dense‐YOLO_2 on small scratches and pits.
F I G U R E 1 1 The mean average precision (mAP) of Dense‐YOLO and Dense‐YOLO_2 under various IoU thresholds over (a) lithium battery surface
scratches dataset, (b) lithium battery surface dents and pits dataset, and (c) the NEU‐DET dataset. IoU, intersection over union.
and NEU‐DET), ranking among the top four enhancements
with increases of 11%, 3.2%, and 3%, respectively.
We attribute these improvements to the shallow contrast
exhibited by all four defect types. Leveraging maximum
pooling has effectively enhanced the texture information
within the images, resulting in a substantial enhancement in
overall detection quality.
However, Dense‐YOLO exhibits a lower AP compared to
Dense‐YOLO_3 for patches and rolled‐in scale defects. This is
attributed to the inter‐class similarity between these two types
of defects, where the max‐pooling operation introduces
interference in classification.
Figure 14 illustrates the variance in detecting four low‐
contrast defects between Dense‐YOLO and Dense‐YOLO_3.
F I G U R E 1 2 Comparison of positioning accuracy between Dense‐YOLO and Dense‐YOLO_2.
F I G U R E 1 3 Comparison between Dense‐YOLO and Dense‐YOLO_3 for detecting low‐contrast defects.
It is evidentthat Dense‐YOLOoutperforms Dense‐YOLO_3 in
detecting such defects, with Dense‐YOLO_3 missing numerous
instances.
4.5 | Compared with other networks
In this section, we conducted comparative experiments using
faster R‐CNN, SSD, YOLOv3, YOLOv5s and YOLOv7 to
demonstrate the detection performance and speed advantages
of Dense‐YOLO. Faster R‐CNN and SSD utilise the official
source code of TensorFlow, whereas YOLOv3 utilised the
source code from the AlexeyAB‐Darknet framework.
YOLOv5s and YOLOv7 employed the source code from the
PyTorch framework.
Table 7 presents the detection results of six networks on
three datasets. It is evident that YOLOv5s and Dense‐YOLO
exhibit the fastest detection speeds, whereas faster R‐CNN
requires the most time to detect defects. Additionally, Dense‐
YOLO achieves the highest mAP on all three datasets
compared to the other five networks.
Specifically, on the dataset of lithium battery surface
scratches, Dense‐YOLO achieves an mAP increase of approximately 10% compared to YOLOv3. On the dataset of lithium
battery surface dents and pits, Dense‐YOLO surpasses faster R‐
CNN by 17.8% in mAP. On the NEU‐DET dataset, Dense‐
YOLO outperforms YOLOv7 by 12.3% in terms of mAP.
Faster R‐CNN exhibits superior detection accuracy
compared to SSD, YOLOv3, YOLOv5s, and YOLOv7 for objects with diverse size ranges, but it requires more computational
F I G U R E 1 4 Comparison between Dense‐YOLO and Dense‐YOLO_3 for detecting low‐contrast defects.
T A B L E 7 The detection results of Dense‐YOLO and other networks on three datasets.
Data set Network Backbone mAP Precision (%) Recall (%) F1 score Time (ms)
Lithium battery surface scratches Faster R‐CNN Resnet101 0.829 86.90 85.14 0.860 200
SSD Mobilenet‐v2 0.752 61.34 80.41 0.696 40
YOLOv3 Darknet53 0.730 86.26 76.35 0.810 84
YOLOv5s CSP‐Darknet53 0.790 74.9 79.1 0.769 11
YOLOv7 CSP‐Darknet53 0.716 75.0 66.9 0.701 45.8
Dense‐YOLO LightDense 0.830 88.11 85.14 0.866 30
Lithium battery surface dents and pits Faster R‐CNN Resnet101 0.744 87.58 67.90 0.765 164
SSD Mobilenet‐v2 0.812 51.90 84.20 0.642 26
YOLOv3 Darknet53 0.867 90.57 82.96 0.866 50
YOLOv5s CSP‐Darknet53 0.849 88.6 79.5 0.838 8
YOLOv7 CSP‐Darknet53 0.852 80.5 84.6 0.825 26.5
Dense‐YOLO LightDense 0.922 87.65 89.38 0.885 18
NEU‐DET Faster R‐CNN Resnet101 0.816 80.28 84.28 0.822 111
SSD Mobilenet‐v2 0.785 66.64 82.89 0.739 10
YOLOv3 Darknet53 0.768 65.77 84.11 0.738 11
YOLOv5s CSP‐Darknet53 0.700 70.5 71.8 0.711 2
YOLOv7 CSP‐Darknet53 0.702 71.9 64.6 0.681 4
Dense‐YOLO LightDense 0.820 70.01 87.53 0.778 4
_Note_ : The bold values represent the optimal values of Dense‐YOLO, our proposed network, when compared with other networks in the corresponding metrics. These values are bolded
to draw the readers’ attention, enabling them to quickly identify the superior performance of Dense‐YOLO. For the Time (ms), Dense‐YOLO is not the best - performing but the
second - best. We chose to bold this value as well to still highlight its relatively good performance within the comparison context.
time. However, fasterR‐CNN's performancesuffersindetecting
tiny targets due to the absence of an FPN, particularly compared
with its performance with medium‐to‐large targets.
SSD and YOLO‐based networks, leveraging a multi‐layer
prediction mechanism, demonstrate enhanced performance
in detecting objects across various scales, including exceedingly
tiny objects. Although SSD lags behind YOLOv3, YOLOv5s,
and YOLOv7 in detecting tiny objects, it outperforms them in
detecting larger objects.
Dense‐YOLO is specifically designed to excel in detecting
defects characterised by small size, low contrast, and wide‐scale
variations. Consequently, it exhibits the most substantial
improvement in mAP when applied to datasets such as the
lithium battery surface scratch dataset, which features defects
with wide‐scale ranges, small sizes, and low contrast.
In contrast, the lithium battery surface dents and pits
dataset primarily comprises defects with tiny scales and low
contrast. Consequently, the enhanced precision of Dense‐
YOLO over faster R‐CNN and SSD is most pronounced
when applied to this dataset. This underscores Dense‐YOLO's
efficacy in detecting defects with challenging characteristics,
further solidifying its superiority over other detection
frameworks.
The NEU‐DET dataset presents a set of complex characteristics. Although its size distribution is relatively uniform
compared to the first two datasets, it poses challenges for
detection due to factors such as inter‐class similarity, intra‐class
differences, low contrast, and interference from dirt. Consequently, Dense‐YOLO's improvement in mAP on this dataset
is not as pronounced as with other networks when compared
to the first two datasets.
Although Dense‐YOLO achieves equivalent mAP to faster
R‐CNN on both the lithium battery surface scratches and
NEU‐DET datasets, its detection speed is several to tens of
times faster than that of faster R‐CNN. This emphasises
Dense‐YOLO's efficiency in defect detection tasks, especially
when compared to slower counterparts such as faster R‐CNN.
In summary, Dense‐YOLO demonstrates significant advantages over YOLOv3, SSD, and YOLOv7 in both detection
effectiveness and speed. Although it performs better than
YOLOv5s in detection precision, it requires more processing
time. Nonetheless, its overall performance makes it a
compelling choice for defect detection tasks.
To further assess the ability of Dense‐YOLO, we calculated
the AP of each type of defect detected by different networks, as
illustrated in Figure 15. From Figure 15, it is evident that
YOLOv7 achieves the lowest AP specifically on lithium battery
scratches. Faster R‐CNN obtains the lowest AP on tiny dents
and pits. YOLOv5s and YOLOv7 exhibit slightly higher precision on patch defects and scratch defects (NEU‐DET)
F I G U R E 1 5 Average precision (AP) of different defects detected by
Dense‐YOLO and other classical networks.
compared to Dense‐YOLO, primarily due to the larger sizes of
these defects. However, they yield the lowest AP on crazing
and rolled‐in scale defects due to the wide variation and irregularity of these defects. Additionally, for the six types of
defects in NEU‐DET, faster R‐CNN demonstrates higher AP
compared to SSD and YOLOv3, with surpassing Dense‐
YOLO's performance.
Figure 16–20 illustrate the precision‐recall (P‐R) curve
calculated by the six networks on each defect. These curves
provide a visual representation of the trade‐off between precision and recall for each method across different defects. By
examining these curves, one can gain insights into the performance of each network in terms of misdetection and missed
detection for specific defects.
As depicted in Figure 16, YOLOv7 and YOLOv3 exhibit
the lowest recall rates for detecting scratches on the surface of
the lithium battery, indicating a significant number of missed
inspections. Moreover, YOLOv3 shows a rapid decrease in
precision, particularly at the beginning of the curve, suggesting
a high rate of false detections. This is attributed to the various
size distributions of scratches. In contrast, Dense‐YOLO and
faster R‐CNN demonstrate superior performance and exhibit
similar results. Figure 21b provides specific insights into the
scratches missed by YOLOv3, further highlighting its limitations in accurately detecting these defects.
As depicted in Figure 17, YOLOv7 exhibits the lowest
recall rate for dents, whereas faster R‐CNN achieves the lowest
recall rate for both dents and pits, although its precision surpasses that of SSD. This is attributed to the minute size of
dents and pits. Dense‐YOLO demonstrates higher precision
and recall rates compared to the other networks. Figure 21d
illustrates the missing detection of dents and pits by faster
R‐CNN.
From Figure 18 to Figure 20, it is apparent that the curve
distribution of Dense‐YOLO and faster R‐CNN for each
defect in NEU‐DET is superior to that of SSD, YOLOv3,
YOLOv5s, and YOLOv7, although they share similarities.
Figure 21h displays false detections of crazing defects by SSD.
F I G U R E 1 6 The P‐R curve of scratches on the surface of the lithium
battery.
F I G U R E 1 7 The P‐R curve of dents and pits on the surface of the lithium battery.
F I G U R E 1 8 The P‐R curve of crazing and inclusion on the NEU‐DET dataset.
F I G U R E 1 9 The P‐R curve of patches and pitted surfaces on the NEU‐DET dataset.
To further validate the effectiveness of the proposed
Dense‐YOLO method, we compared it with several recently
utilised methods inherited from VGG and ResNet, including
FRCN [30], improved faster R‐CNN [31], FCOS, and M2Det‐
320 [32], on the NEU‐DET dataset. Table 8 illustrates the
precision for six types of defects and the mAP. It can be
observed that Dense‐YOLO achieves a higher mAP compared
to the other methods, but it performs worse than improved
faster R‐CNN on the In defect. For the Sc defect, both FRCN
and improved faster R‐CNN outperform Dense‐YOLO.
F I G U R E 2 0 The P‐R curve of the rolled‐in scale and scratches on the NEU‐DET dataset.
F I G U R E 2 1 Comparison of Dense‐YOLO and other classical networks in defect detection.
T A B L E 8 Detection results on the NEU‐DET dataset with ResNet‐based and VGG‐based methods.
Methods Network Rs (%) Pa (%) Cr (%) Ps (%) In (%) Sc (%) mAP (%)
FRCN [30] VGG16 68.8 84.9 42.9 79.1 67.9 89.9 72.3
Improved faster R‐CNN [31] ResNet‐50 64.9 79.2 50.1 87.4 79.1 90.5 75.2
FCOS [32] ResNet‐50 63.3 86.5 44.1 79.8 76.1 78.2 71.3
M2Det‐320 [32] VGG16 48.4 81.7 28.5 72.0 64.9 70.8 61.1
Dense‐YOLO LightDense 77.1 87.1 74.7 87.7 77.4 88.3 82.0
5 | CONCLUSIONS
In the realm of industrial production, detecting various defects
poses significant challenges, including issues such as low
contrast between defects and background, a wide range of
defect sizes, and the necessity for high‐speed detection. This
paper introduces a rapid surface‐defect detection algorithm
based on the innovative Dense‐YOLO network, which integrates DenseNet and YOLOv3 architectures. The proposed
Dense‐YOLO enhances feature extraction for defects of
different scales through its improved backbone network.
The integration of densely connected blocks enables the
identification of subtle defects and those with low contrast.
Additionally, the FPN is adapted to enhance the overall precision in positioning minute defects. To further accelerate
detection speed and mitigate background interference, an online multi‐angle template matching technique based on NCC is
employed to pinpoint the detection areas. Leveraging image
pyramid technology contributes to expediting the template
matching process.
To assess the effectiveness of our proposed method, we
utilise the publicly available NEU‐DET dataset along with private datasets provided by the Huizhou Gaoshi Technology
cooperative company. Furthermore, we conduct comparative
experiments with well‐established methods including faster R‐
CNN, SSD, YOLOv3, YOLOv5s, and YOLOv7. These experiments aim to display the superior performance of our proposed
method in terms of defect detection accuracy and speed.
Dense‐YOLO shows relatively inferior location precision
for larger‐scale defects compared to faster R‐CNN. Our future
research will focus on assessing the effectiveness of the proposed method for detecting defects with a wider variety of
types and more intricate relationships. Additionally, we aim to
enhance the location precision despite the influence of various
noises that share similar features, thereby improving overall
detection performance.
Dense‐YOLO has relatively lower location precision for
larger‐scale defects compared to faster R‐CNN. Future research
will focus on evaluating the proposed method's effectiveness in
detecting defects of more diverse types and with more complex
relationships. In addition, we aim to improve location precision
despite the influence of various noises with similar features, thus
enhancing overall detection performance.
ACKNOWLEDGEMENT
The National Key Research and Development Program of
China, Grant Number:2022YFB3206605; The Natural Science
Foundation of Xiamen, Grant Number: 3502Z20227189; The
Program for Young Excellent Talents in the University of
Fujian Province, Grant Number: 201847.
CONFLICT OF INTEREST STATEMENT
The authors declare no conflicts of interest.
DATA AVAILABILITY STATEMENT
The data that support the findings of this study are available on
request from the corresponding author. The data are not
publicly available due to privacy or ethical restrictions.
ORCID
_Guifang_ _Shao_ [https://orcid.org/0000-0001-6189-2207](https://orcid.org/0000-0001-6189-2207)
REFERENCES
1. Alipour, M., Harris, D.K.: Increasing the robustness of material‐specific
deep learning models for crack detection across different materials. Eng.
Struct. 206, 110157 (2020). [https://doi.org/10.1016/j.engstruct.2019.](https://doi.org/10.1016/j.engstruct.2019.110157)
[110157](https://doi.org/10.1016/j.engstruct.2019.110157)
2. Ng, H.: Automatic thresholding for defect detection. Pattern Recogn.
Lett. 27(14), 1644–1649 (2006). [https://doi.org/10.1016/j.patrec.2006.](https://doi.org/10.1016/j.patrec.2006.03.009)
[03.009](https://doi.org/10.1016/j.patrec.2006.03.009)
3. Song, K.C., Yan, Y.H.: A noise robust method based on completed local
binary patterns for hot‐rolled. Appl. Surf. Sci. 285, 858–864 (2013).
[https://doi.org/10.1016/j.apsusc.2013.09.002](https://doi.org/10.1016/j.apsusc.2013.09.002)
4. Tsai, D.M., Molina, D.E.R.: Morphology‐based defect detection in
machined surfaces with circular tool‐mark patterns. Measurement 134,
209–217 (2019). [https://doi.org/10.1016/j.measurement.2018.10.079](https://doi.org/10.1016/j.measurement.2018.10.079)
5. Mordia, R., Verma, A.K.: Visual techniques for defects detection in steel
products: a comparative study. Eng. Fail. Anal. 134, 106047 (2022).
[https://doi.org/10.1016/j.engfailanal.2022.106047](https://doi.org/10.1016/j.engfailanal.2022.106047)
6. Tsai, D., Lin, C., Huang, K.: Defect detection in coloured texture surfaces
[using Gabor filters. Imag. Sci. J. 53(1), 27–37 (2005). https://doi.org/10.](https://doi.org/10.1179/136821905x26935)
[1179/136821905x26935](https://doi.org/10.1179/136821905x26935)
7. Chu, M.X., et al.: Steel surface defects recognition based on multi‐type
statistical features and enhanced twin support vector machine. Chemometr. Intell. Lab. Syst. 71, 140–150 (2017). [https://doi.org/10.1016/j.](https://doi.org/10.1016/j.chemolab.2017.10.020)
[chemolab.2017.10.020](https://doi.org/10.1016/j.chemolab.2017.10.020)
8. Ye, X.Y., Xu, S.L.: Study on surface defect classification of hot‐rolled
strip based on PSO‐SVM. Lect. Notes Electr. Eng. 885, 1846–1855
(2022). [https://doi.org/10.1007/978‐981‐19‐1309‐9_176](https://doi.org/10.1007/978-981-19-1309-9_176)
9. Tajbakhsh, N., Suzuki, K.: Comparing two classes of end‐to‐end
machine‐learning models in lung nodule detection and classification:
MTANNs vs. CNNs. Pattern Recogn. 63, 476–486 (2017). [https://doi.](https://doi.org/10.1016/j.patcog.2016.09.029)
[org/10.1016/j.patcog.2016.09.029](https://doi.org/10.1016/j.patcog.2016.09.029)
10. Sun, Z.Z., et al.: BiFA‐YOLO: a novel YOLO‐based method for
arbitrary‐oriented ship detection in high‐resolution SAR images. Rem.
Sens. 13(21), 4209 (2021). [https://doi.org/10.3390/rs13214209](https://doi.org/10.3390/rs13214209)
11. Masci, J., et al.: Steel defect classification with max‐pooling convolutional
neural networks. In: International Joint Conference on Neural Networks,
Brisbane, QLD, Australia,10–15 June 2012, vol. 20, pp. 1–6. IEEE,
Piscataway, NJ, USA (2012). [https://doi.org/10.1109/ijcnn.2012.](https://doi.org/10.1109/ijcnn.2012.6252468)
[6252468](https://doi.org/10.1109/ijcnn.2012.6252468)
12. Luo, C., et al.: Autonomous detection of damage to multiple steel surfaces from 360 degrees panoramas using deep neural networks. Comput.
Aided Civ. Infrastruct. Eng., 1–15 (2021).
13. He, K., et al.: Deep residual learning for image recognition. In: 2016
IEEE Conference on Computer Vision and Pattern Recognition, Seattle,
WA R, pp. 770–778 (2016)
14. Huang, G., et al.: Densely connected convolutional networks. In: IEEE
Conference on Computer Vision and Pattern Recognition, pp. 2261–
2269 (2017).
15. Li, Z.L., et al.: Lightweight ship detection methods based on YOLOv3
and DenseNet. Math. Probl Eng. 4813183 (2020). [https://doi.org/10.](https://doi.org/10.1155/2020/4813183)
[1155/2020/4813183](https://doi.org/10.1155/2020/4813183)
16. Yi, L., Li, G., Jiang, M.: An end‐to‐end steel strip surface defects
recognition system based on convolutional neural networks. Steel Res.
Int. 88(2), 176–187 (2016). [https://doi.org/10.1002/srin.201600068](https://doi.org/10.1002/srin.201600068)
17. Ren, S.Q., et al.: Faster r‐cnn:towards real‐time object detection with
region proposal networks. IEEE Trans. Pattern Anal. Mach. Intell. 39(6),
1137–1149 (2017). [https://doi.org/10.1109/tpami.2016.2577031](https://doi.org/10.1109/tpami.2016.2577031)
18. Cha, Y.J., et al.: Autonomous structural visual inspection using region‐
based deep learning for detecting multiple damage types. Comput.
Aided Civ. Infrastruct. Eng. 33(9), 731–747 (2018). [https://doi.org/10.](https://doi.org/10.1111/mice.12334)
[1111/mice.12334](https://doi.org/10.1111/mice.12334)
19. Redmon, J., et al.: You only look once: unified, real‐time object detection.
In: Proceedings of IEEE Conference on Computer Vision and Pattern
Recognition, Seattle, WA, pp. 779–788 (2016).
20. Liu, W., et al.: SSD: single shot multiBox detector. In: European Conference on Computer Vision, Amsterdam, The Netherlands, vol. 9905,
pp. 21–37 (2016). [https://doi.org/10.1007/978‐3‐319‐46448‐0_2](https://doi.org/10.1007/978-3-319-46448-0_2)
21. Chen, S.H., Tsai, C.C.: SMD LED chips defect detection using a
YOLOv3‐dense model. Adv. Eng. Inf. 47, 101255 (2021). [https://doi.](https://doi.org/10.1016/j.aei.2021.101255)
[org/10.1016/j.aei.2021.101255](https://doi.org/10.1016/j.aei.2021.101255)
22. Ma, X.J., et al.: Light‐YOLOv4: an edge‐device oriented target detection
method for remote sensing images. IEEE J. Sel. Top. Appl. Earth Obs.
Rem. Sens. 14, 10808–10820 (2021). [https://doi.org/10.1109/jstars.](https://doi.org/10.1109/jstars.2021.3120009)
[2021.3120009](https://doi.org/10.1109/jstars.2021.3120009)
23. Guo, Z.X., et al.: MSFT‐YOLO: improved YOLOv5 based on transformer for detecting defects of steel surface. Sensors 22(9), 3467 (2022).
[https://doi.org/10.3390/s22093467](https://doi.org/10.3390/s22093467)
24. Chen, J., et al.: Automatic defect detection of fasteners on the catenary
support device using deep convolutional neural network. IEEE Trans.
Instrum. Meas. 68(2), 257–269 (2018). [https://doi.org/10.1109/tim.](https://doi.org/10.1109/tim.2017.2775345)
[2017.2775345](https://doi.org/10.1109/tim.2017.2775345)
25. Zhang, J.Q., et al.: Surface defect detection of steel strips based on
classification priority YOLOv3‐dense network. Ironmak. Steelmak. 48(5),
1–12 (2020). [https://doi.org/10.1080/03019233.2020.1816806](https://doi.org/10.1080/03019233.2020.1816806)
26. Bochkovskiy, A.: GUI for Marking Bounded Boxes of Objects in Images
for Training Neural Network YOLOv3 and V2. [https://github.com/](https://github.com/AlexeyAB/Yolo_mark)
[AlexeyAB/YOLO_mark](https://github.com/AlexeyAB/Yolo_mark)
27. Roche, A., et al.: The correlation ratio as a new similarity measure for
multimodal image registration. In: Proceedings of the First International
Conference on Medical Image Computing and Computer‐Assisted
Intervention (MICCA’98), Lecture Notes in Computer Science, Cambridge,USA, pp. 1115–1124 (1998).
28. Lin, T.Y., et al.: Feature pyramid networks for object detection. In: IEEE
Conference on Computer Vision and Pattern Recognition, Honolulu, HI,
pp. 936–944. (2017).
29. Dong, H.W., et al.: PGA‐Net: pyramid feature fusion and global context
attention network for automated surface defect detection. IEEE Trans.
[Ind. Inf. 16(12), 7448–7458 (2020). https://doi.org/10.1109/tii.2019.](https://doi.org/10.1109/tii.2019.2958826)
[2958826](https://doi.org/10.1109/tii.2019.2958826)
30. He, Y., et al.: An end‐to‐end steel surface defect detection approach via
fusing multiple hierarchical features. IEEE Trans. Instrum. Meas. 69(4),
[1494–1504 (2020). https://doi.org/10.1109/tim.2019.2915404](https://doi.org/10.1109/tim.2019.2915404)
31. Zhao, W., et al.: A new steel defect detection algorithm based on deep
learning. Comput. Intell. Neurosci. 2021, 1–13 (2021). [https://doi.org/](https://doi.org/10.1155/2021/5592878)
[10.1155/2021/5592878](https://doi.org/10.1155/2021/5592878)
32. Wang, W.Y., et al.: A real‐time steel surface defect detection approach
with high accuracy. IEEE Trans. Instrum. Meas. 71, 1–10 (2022).
[https://doi.org/10.1109/tim.2021.3127648](https://doi.org/10.1109/tim.2021.3127648)
How to cite this article: Gao, F., et al.: A fast surface‐
defect detection method based on Dense‐
YOLO network. CAAI Trans. Intell. Technol. 10(2),
415–433 (2025). [https://doi.org/10.1049/cit2.12407](https://doi.org/10.1049/cit2.12407)
섹션 본문
섹션 본문이 없습니다.
참고문헌 30건
- The correlation ratio as a new similarity measure for multimodal image registration Lecture notes in computer science · Springer Science+Business Media · 1998 10.1007/bfb0056301
- Steel defect classification with Max-Pooling Convolutional Neural Networks 2022 International Joint Conference on Neural Networks (IJCNN) · 2012 10.1109/ijcnn.2012.6252468
- Automatic thresholding for defect detection Pattern Recognition Letters · Elsevier BV · 2006 10.1016/j.patrec.2006.03.009
- A noise robust method based on completed local binary patterns for hot-rolled steel strip surface defects Applied Surface Science · Elsevier BV · 2013 10.1016/j.apsusc.2013.09.002
- Defect detection in coloured texture surfaces using Gabor filters The Imaging Science Journal · Taylor & Francis · 2005 10.1179/136821905x26935
- Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
- An End‐to‐End Steel Strip Surface Defects Recognition System Based on Convolutional Neural Networks steel research international · Wiley · 2016 10.1002/srin.201600068
- Comparing two classes of end-to-end machine-learning models in lung nodule detection and classification: MTANNs vs. CNNs Pattern Recognition · Elsevier BV · 2016 10.1016/j.patcog.2016.09.029
- Feature Pyramid Networks for Object Detection 2017 10.1109/cvpr.2017.106
- Steel surface defects recognition based on multi-type statistical features and enhanced twin support vector machine Chemometrics and Intelligent Laboratory Systems · Elsevier BV · 2017 10.1016/j.chemolab.2017.10.020
- Autonomous Structural Visual Inspection Using Region‐Based Deep Learning for Detecting Multiple Damage Types Computer-Aided Civil and Infrastructure Engineering · Wiley · 2017 10.1111/mice.12334
- Automatic Defect Detection of Fasteners on the Catenary Support Device Using Deep Convolutional Neural Network IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2017 10.1109/tim.2017.2775345
- Morphology-based defect detection in machined surfaces with circular tool-mark patterns Measurement · Elsevier BV · 2018 10.1016/j.measurement.2018.10.079
- An End-to-End Steel Surface Defect Detection Approach via Fusing Multiple Hierarchical Features IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2019 10.1109/tim.2019.2915404
- You Only Look Once: Unified, Real-Time Object Detection 2016 10.1109/cvpr.2016.91
- Densely Connected Convolutional Networks 2017 10.1109/cvpr.2017.243
- PGA-Net: Pyramid Feature Fusion and Global Context Attention Network for Automated Surface Defect Detection IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2958826
- Increasing the robustness of material-specific deep learning models for crack detection across different materials Engineering Structures · Elsevier BV · 2020 10.1016/j.engstruct.2019.110157
- Lightweight Ship Detection Methods Based on YOLOv3 and DenseNet Mathematical Problems in Engineering · Hindawi Publishing Corporation · 2020 10.1155/2020/4813183
- Surface defect detection of steel strips based on classification priority YOLOv3-dense network Ironmaking & Steelmaking Processes Products and Applications · Taylor & Francis · 2020 10.1080/03019233.2020.1816806
- SSD: Single Shot MultiBox Detector Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_2
- SMD LED chips defect detection using a YOLOv3-dense model Advanced Engineering Informatics · Elsevier BV · 2021 10.1016/j.aei.2021.101255
- A New Steel Defect Detection Algorithm Based on Deep Learning Computational Intelligence and Neuroscience · Hindawi Publishing Corporation · 2021 10.1155/2021/5592878
- Light-YOLOv4: An Edge-Device Oriented Target Detection Method for Remote Sensing Images IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing · Institute of Electrical and Electronics Engineers · 2021 10.1109/jstars.2021.3120009
- BiFA-YOLO: A Novel YOLO-Based Method for Arbitrary-Oriented Ship Detection in High-Resolution SAR Images Remote Sensing · Multidisciplinary Digital Publishing Institute · 2021 10.3390/rs13214209
- A Real-Time Steel Surface Defect Detection Approach With High Accuracy IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3127648
- Visual techniques for defects detection in steel products: A comparative study Engineering Failure Analysis · Elsevier BV · 2022 10.1016/j.engfailanal.2022.106047
- MSFT-YOLO: Improved YOLOv5 Based on Transformer for Detecting Defects of Steel Surface Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22093467
- Study on Surface Defect Classification of Hot-Rolled Strip Based on PSO-SVM Lecture notes in electrical engineering · Springer Science+Business Media · 2022 10.1007/978-981-19-1309-9_176
- 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