선정목록으로
EU‐Net: A novel semantic segmentation architecture for surface defect detection of mobile phone screens
간접 관련 필름·전자재료 · (15) 디스플레이 패널재료 (16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.1049/ipr2.12509
- 저널
- IET Image Processing
- 발행년도
- 2022
- 발행기관
- Institution of Engineering and Technology
- 피인용수
- 13
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1049/ipr2.12509
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W4225154090
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 필름·전자재료 · (15) 디스플레이 패널재료
- 부 분야
- (16) CPI(투명 폴리이미드)
- R&D 측면
- 분석·모델링
- 확신도
- 0.80
- 근거 용어
- surface defect detection, mobile phone screens, semantic segmentation, EU-Net, industrial production
- 판단 근거
- 이 논문은 모바일 기기 화면의 표면 결함을 검출하기 위한 딥러닝 기반 세그멘테이션 알고리즘(EU-Net)을 다룹니다. 이는 코오롱인더스트리의 디스플레이 관련 소재(15, 16) 제조 공정 중 품질 검사 자동화 및 분석 기술에 응용될 수 있습니다.
- R&D 활용 포인트
- 디스플레이용 필름(CPI, 보호필름 등) 제조 공정에서 실시간 표면 결함(스크래치, 이물 등)을 검출하는 AI 비전 검사 시스템의 알고리즘 고도화에 활용 가능합니다.
- 평가 입력
- 본문 38,935자 중 30,032자 발췌
초록
Abstract Manual or conventional image processing algorithms are commonly used to detect surface problems on mobile phone screens. However, inefficiency and inflexibility are disadvantages. Although the semantic segmentation method has high adaptability and accuracy, it also has a low defect detection efficiency due to its excessive parameters. In order to increase defect detection efficiency, a novel efficient encoder–decoder architecture termed MB encoder–decoder architecture based on MBConv blocks, and that it reduces the number of parameters used in semantic segmentation methods i presented. In addition, by applying the MB encoder–decoder design to the U‐Net, the efficient U‐Net (EU‐Net) is proposed. It confirms the MB encoder–decoder architecture's superiority. Then, EU‐Net to mobile phone surface defect detection in real industrial scenarios. Experimental results on a dataset show the superiority of the proposed algorithm and it can meet the real‐time requirement of industrial production.
본문 38,935자
본문 펼치기
DOI: 10.1049/ipr2.12509
ORIGINAL RESEARCH
# EU-Net: A novel semantic segmentation architecture for surface defect detection of mobile phone screens
Jiawei Pan <sup>1</sup> Deyu Zeng <sup>1</sup> Qi Tan <sup>1</sup> Zongze Wu <sup>1,2,3</sup> Zhigang Ren <sup>1,2,3</sup>
1School of Automation, Guangdong University of
Technology, Guangzhou, China
2Guangdong-HongKong-Macao Joint Laboratory
for Smart Discrete Manufacturing, Guangzhou,
China
3Key Laboratory of Intelligent Detection and The
Internet of Things in Manufacturing, Ministry of
Education, Guangzhou, China
Correspondence
Zongze Wu, School of Automation, Guangdong
University of Technology, Guangzhou 510006,
China.
[Email: zzwu@gdut.edu.cn](mailto:zzwu@gdut.edu.cn)
Funding information
Grants of National Key R&D Program of China,
Grant/Award Number: 2020AAA0108304;
Guang-dong Basic and Applied Basic Research
Foundation, Grant/Award Number:
2019A1515011606; National Natural Science
Foundation of China, Grant/Award Numbers:
62073088, U1911401; Key-Area Research and
Development Program of Guangdong Province,
Grant/Award Number: 2021B0101200005
1 INTRODUCTION
Abstract
Manual or conventional image processing algorithms are commonly used to detect surface
problems on mobile phone screens. However, inefficiency and inflexibility are disadvantages. Although the semantic segmentation method has high adaptability and accuracy,
it also has a low defect detection efficiency due to its excessive parameters. In order to
increase defect detection efficiency, a novel efficient encoder–decoder architecture termed
MB encoder–decoder architecture based on MBConv blocks, and that it reduces the number of parameters used in semantic segmentation methods i presented. In addition, by
applying the MB encoder–decoder design to the U-Net, the efficient U-Net (EU-Net) is
proposed. It confirms the MB encoder–decoder architecture’s superiority. Then, EU-Net
to mobile phone surface defect detection in real industrial scenarios. Experimental results
on a dataset show the superiority of the proposed algorithm and it can meet the real-time
requirement of industrial production.
Therefore, deep learning-based detection methods are widely
used in various industrial scenarios.
Surface defect detection of mobile phone screens is necessary for production, mainly done by manual or conventional
image processing algorithms. Both methods have some drawbacks and do not work perfectly. Manual detection is inefficient,
and detection based on conventional image processing algorithms is inaccurate and inflexible. Therefore, a new approach
should be introduced to deal with surface defect detection [1].
With the development of deep learning in recent years, deep
learning models represented by CNN (convolutional neural networks) [2] have been successfully applied in many computer
vision fields, such as face recognition and scene text detection.
Deep learning algorithms have many advantages over conventional image processing algorithms, such as they do not require
complex features to be designed manually and are more robust.
Deep learning-based surface defect detection algorithms can
carry out many tasks, such as classification, object detection,
and semantic segmentation. Deep learning-based classification
algorithms, such as VGG (very deep convolutional networks)
[3], can distinguish whether a product contains a defect or not
but cannot locate defects. Deep learning-based object detection algorithms, such as Faster R-CNN [4], can obtain the exact
location and class information of defects. However, it cannot
discover the geometric properties of the defects. Subsequently,
the emergence of semantic segmentation algorithms based on
deep learning, such as FCNs (fully convolutional networks) [5],
solves the above problems. Semantic segmentation algorithms
can finely segment the defect region and obtain the location,
class, and related geometric properties of defects.
[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.
© 2022 The Authors. _IET Image Processing_ published by John Wiley & Sons Ltd on behalf of The Institution of Engineering and Technology.
2568 il li lib /i i _IET I_ _P_ 2022 16 2568 2576
Over the years, more and more deep learning algorithms have
been proposed to solve the semantic segmentation problem,
such as U-Net [6], Enet [7], SegNet [8], Deeplab [9], DenseASPP [10], and some other algorithms [11–12]. However, the
difficulty in obtaining industrial data makes it hard to apply
semantic segmentation in surface defect detection. Unlike most
deep learning algorithms that rely on a mass of data to obtain
good results, U-Net is a unique network model for biomedical
image segmentation. It only needs 30 images for network training to get high performance. However, due to the inefficiency of
the encoder of U-Net, it does not meet the needs of industrial
sites in real time. Mobile-Unet [13] replaced the encoder of UNet with a lightweight mobilenet [14] network, which improved
efficiency at the cost of reduced accuracy. U-Net++ [15], R2UNet [16], Attention U-Net [17], and R2AU-Net [18] introduces
many complex operations in U-Net to improve the accuracy,
but this also reduces the efficiency of U-Net. In addition,
other semantic segmentation algorithms also have the problem
of inefficiency.
In summary, the performance of current semantic segmentation algorithms is unsatisfactory. It cannot combine the
advantages of efficiency and accuracy simultaneously. Meanwhile, an efficient semantic segmentation algorithm is also
urgently needed in surface defect detection of mobile phone
screens. To address the shortcomings of the above work, we
adopt the MBConv block as the primary building block of
the encoder and decoder of the semantic segmentation model
and propose a new encoder–decoder architecture called MB
encoder–decoder architecture, as shown in Figure 2. The
MBConv block was first proposed in MobileNet [14], which
has the advantage of having fewer parameters but similar
accuracy compared to standard convolution (as described in
Section 3.1). MobileNet [14] and EfficientNet [19] demonstrate
the superiority of the MBConv block. MB encoder–decoder
architecture consists mainly of MBConv blocks, which dramatically enhances the efficiency of the architecture. It is worth
noting that the MBConv block types in the corresponding
positions in this encoder and decoder of this architecture
should be kept the same as possible, which is for better compatibility between encoder and decoder. In addition, we use
deconvolution instead of upsampling to recover the size of the
feature map. It is because deconvolution can recover the information of the feature map more accurately by learning, while
upsampling has no learning capability. Therefore, the architecture can significantly improve the efficiency of the semantic
segmentation model.
In addition, we also apply MB encoder–decoder architecture
to U-Net and propose a novel EU-Net model. The MBConv
block was used to build the encoder for U-Net, which significantly improved its efficiency. However, its accuracy decreases
because the new encoder is not compatible with the original
decoder (As shown in the ablation study in Table 2). To improve
the accuracy and efficiency, we also designed a new decoder with
the MBConv block to make it more compatible with the new
encoder (i.e. EU-Net). In addition, EU-Net removes the cropping operation in U-Net, which would lose the information in
the feature map. As a result, the efficiency of EU-Net has been
significantly increased, while accuracy has also been improved.
According to the ablation study in Table 2, the computational
complexity of EU-Net is 170 times lower than that of U-Net,
with less than half the number of parameters, while the mIoU is
also improved.
Finally, EU-Net is applied to detect surface defects on mobile
phone screens in industrial production, meeting the demand for
real-time industrial production. The main contributions of this
paper are summarised as follows:
- A novel efficient encoder–decoder architecture based on the
MBConv block, called MB encoder–decoder architecture, is
proposed to improve the efficiency of semantic segmentation
models.
- The MB encoder–decoder architecture is applied to U-Net
and proposes EU-Net, which combines the advantages of
efficiency and accuracy.
- The EU-Net network was first proposed to implement the
surface defect detection of mobile phone screens.
- Experiments validate our method performs better than other
state-of-art methods.
The remainder of this paper is structured as follows. Section 2
introduces the current work related to the surface defect detection of mobile phone screens. Section 3 describes MB encoder–
decoder architecture and EU-Net. Experimental results are
given in Section 4. Finally, Section 5 gives the conclusion and
discusses the future work.
2 RELATED WORK
Over the years, little works have applied deep learning to surface
defect detection of mobile phone screens. As a result, manual
inspection and conventional image processing algorithms are
still used for surface defect detection of mobile phone screens
in industrial production. Its inefficiency and inaccuracy greatly
restrict the development of related industries.
A PCA-based face recognition model is applied to surface
defect detection of mobile phone screens, which treats different defects as different faces, and then classifies the defects
using the PCA-based face recognition model [20]. An improved
Faster R-CNN model is used to detect the surface defects
of mobile phones [21]. It uses feature pyramid network and
ResNet 101 as feature extraction networks to obtain more small
defect features. It replaces the ROI pooling layer with the ROI
Align layer to reduce the quantisation bias in the pooling process.
The applications of deep learning techniques on surface
defect detection of mobile phone screens discussed above
belong to classification and object detection. They are unable
to locate defects at the pixel level. However, there has been little work applying semantic segmentation techniques to detect
surface defects in mobile phone screens. Therefore, a new
semantic segmentation network, EU-Net, is proposed in this
paper and applied to surface defect detection of mobile
phone screens.
It is an expansion convolution when the number of output
channels is greater than the number of input channels. When
the size of the convolution kernel is 1 × 1, it is a pointwise convolution.
The formula for depthwise convolution is shown in Equation
(2), wherê _K_ is the depthwise convolutional kernel of size _DK_ ×
_DK_ × _M_, where the _m_ th filter in̂ _K_ is applied to the _m_ th channel
in _X_ to produce the _m_ th channel of the filtered output feature
map̂ _Y_ :
_Yk_, _l_, _m_ =
∑
_i_, _j_
_K i_, _j_, _m_ ⋅ _Xk_ + _i_ −1, _l_ + _j_ −1, _m_ . (2)
FIGURE 1 MBconv block
3 THE PROPOSED ARCHITECTURE
MB encoder–decoder architecture and EU-Net proposed in this
section are based on the MBConv block. This section first introduces the MBConv block and then describes MB encoder–
decoder architecture and EU-Net.
3.1 MBConv block
The structure of the MBConv block [14] is shown in Figure 1.
It serves the same purpose as standard convolution to extract
feature information from the input image. It has an expansion
convolutional layer that maps the feature map from low to high
dimensions, solving the drawback of losing too much feature
information after the low-dimensional information is activated
by the ReLU activation function. With the same effect, depthwise separable convolution (deepwise convolution and pointwise convolution) layers can replace the standard convolutional
layer with fewer parameters. It makes it more suitable for deeper
deep learning models.
Both expansion convolution and pointwise convolution are
special cases of standard convolution (as described in Equation (1)). The standard convolutional operation takes a _DX_ ×
_DX_ × _M_ input feature map _X_ and applies a convolutional kernel _K_ of size _DK_ × _DK_ × _M_ × _N_ to produce a _DY_ × _DY_ ×
_N_ feature map _Y_, where _DX_ is the spatial width and height of
a square input feature map, _M_ is the number of input channels
(input depth), _DY_ is the spatial width and height of a square
output feature map, _N_ is the number of output channels (output depth), and _DK_ is the spatial dimension of the convolutional
kernel assumed to be square. The formula of standard convolution is shown in Equation (1):
Depthwise separable convolution (depthwish convolution
and pointwise convolution) cost:
_DK_ ⋅ _DK_ ⋅ _M_ ⋅ _DX_ ⋅ _DX_ + _M_ ⋅ _N_ ⋅ _DX_ ⋅ _DX_ . (3)
While standard convolution (as described in Equation (1))
have the computational cost of:
_DK_ ⋅ _DK_ ⋅ _M_ ⋅ _N_ ⋅ _DX_ ⋅ _DX_ . (4)
Clearly, depthwise separable convolution is computationally
less costly than standard convolution:
_<u>DK</u>_ ⋅ _<u>DK</u>_ ⋅ _<u>M</u>_ ⋅ _<u>DX</u>_ ⋅ _<u>DX</u>_ + _<u>M</u>_ ⋅ _<u>N</u>_ ⋅ _<u>DX</u>_ ⋅ _<u>DX</u>_
_DK_ ⋅ _DK_ ⋅ _M_ ⋅ _N_ ⋅ _DX_ ⋅ _DX_
(5)
_N_ <sup><u>1</u></sup> <sup>+</sup> _D_ <sup><u>12</u></sup>
= _N_ <sup><u>1</u></sup>
_D_ <sup>2</sup>
_K_
.
_K_
_Yk_, _l_, _n_ =
∑
_i_, _j_, _m_
_Ki_, _j_, _m_, _n_ ⋅ _Xk_ + _i_ −1, _l_ + _j_ −1, _m_ . (1)
The _squeeze_ _and_ _excitation_ layer [22] is a lightweight attention
mechanism. It allows the model to align feature information,
selectively amplify valuable feature channels and suppress useless channels from global information. Finally, the _SKIP_ connection operation is performed between output and input to
prevent gradient explosion and disappearance caused by the
increasing network layers.
3.2 The proposed MB encoder–decoder
architecture
Based on the MBConv block, this paper proposes a new semantic segmentation architecture for encoder–decoder called MB
encoder–decoder architecture, as shown in Figure 2. Its main
building block is the MBConv block, which makes the semantic
segmentation model much more efficient, as described in Equation (5).
As shown in Figure 2, the red cube represents the standard convolution (as described in Equation (1)), the blue
cube represents the MBConv block (as described in Section 3.1), and the green cube represents the deconvolution.
The size of the cube represents the size of the output
feature map.
FIGURE 2 MB encoder–decoder architecture
The role of the encoder is to extract the feature information of the input image. However, the resolution of the input
image is significantly reduced after the encoder. The feature
map output from the MBConv block named ‘e’ in MB encoder–
decoder architecture, for example, contains rich semantic information. Nevertheless, it is not conducive to localisation because
its resolution is too small, resulting in weak spatial location
information. Therefore, the decoder is needed to map the lowresolution feature information to the feature information of the
same size as the resolution of the input image for pixel-level segmentation.
It is worth noting that the MBConv block types in the corresponding positions in the encoder and decoder in MB encoder–
decoder architecture should be kept the same as much as possible. It is for better compatibility between encoder and decoder.
As shown in Figure 2, the MBConv block named ‘a’ in the
encoder, and the MBConv block named ‘a’ in the decoder
belongs to the same type.
In addition, we use deconvolution instead of upsampling to
recover the size of the feature map because deconvolution can
recover the information of the feature map more accurately by
learning, while upsampling has no learning ability. Deconvolution is a special case of standard convolution (as described in
Equation (1)), with the difference that deconvolution expands
the size of the input image rather than shrinking it. They both
can learn to extract feature information. Thus, deconvolution
learns how to recover the size of the image better, while upsampling fills the gaps with the same values to enlarge the image.
Therefore, deconvolution works better than upsampling.
3.3 The proposed EU-Net network
To verify the effectiveness of the proposed new encoder–
decoder architecture, we apply the encoder–decoder architecture to U-Net and propose EU-Net. Section 3.3.1 first briefly
introduces the U-Net network and then gives a detailed description of EU-Net in Section 3.3.2.
3.3.1 U-Net
U-Net is a semantic segmentation architecture dedicated to
biomedical image segmentation, characterised by obtaining
The green rectangle denote Up-Conv2D, k2 × 2 operation,
meaning a deconvolution operation with a convolutional kernel
size of 2 × 2.
FIGURE 3 U-Net architecture. The different coloured rectangles and
arrows denote different operations, as shown at the bottom of the figure. The
different lengths of rectangles denote different sizes of input feature maps
favourable results without a huge dataset. Its architecture is
shown in Figure 3.
As shown in Figure 3, the different coloured rectangles and
arrows denote different operations. The blue rectangle denotes
Conv2D, k3 × 3, ReLU operation, meaning a 2D standard convolution operation with a convolutional kernel size of 3 × 3,
followed by the ReLU activation function.
The activation function is usually nonlinear, and it serves to
allow the model to learn more complex types of data. The formulas of ReLU are shown in Equation (6):
ReLU( _x_ ) = max(0, _x_ ) . (6)
The red rectangle denotes max pooling, k2 × 2 operation,
meaning a maximum pooling operation with a filter size of 2
× 2. The purpose of maximum pooling is to preserve the main
features while reducing parameters and maintaining invariants
such as rotations, translations, and scale.
Suppose the set of input feature mappings is X ∈ _R_ <sup>_W_</sup> <sup>×</sup> <sup>_H_</sup> <sup>×</sup> <sup>_D_</sup>,
where W, H, D are the spatial width, height and depth of
an input feature map. For each of them, the feature mapping
_X_ <sup>_d_</sup> is divided into many regions _Rw_ <sup>_d_</sup>, _h_ <sup>,</sup> <sup>1</sup> <sup>≤</sup> <sup>w</sup> <sup>≤</sup> <sup>_W_</sup> <sup>′,</sup> <sup>1</sup> <sup>≤</sup> <sup>h</sup>
≤ _H_ <sup>′</sup>, and the maximum pooling for each region is shown
in (7):
_Yw_ <sup>_d_</sup>
_i_ ∈ _R_ <sup>_d_</sup>
_w_ <sup>_d_</sup>, _h_ <sup>=</sup> <sup>max</sup>
_xi_ . (7)
_w_, _h_
FIGURE 4 EU-Net architecture (with 224×224 resolution image input as an example). Each square or cube represents an input image, feature map, or output
prediction mask. The size of the input image, feature map, or output prediction mask is marked inside or above a square or cube. Different coloured arrows
representing different operations are marked in the lower right corner, and ×2, ×3, and ×4 on the arrows indicate the number of repeated operations
3.3.2 EU-Net
MB encoder–decoder architecture is applied to U-Net to save
memory and improve efficiency. The resulting EU-Net architecture is obtained as shown in Figure 4. As shown in Figure 4, the
main component module of EU-Net is the MBConv block. The
depthwise separable convolution in the MBConv block is computationally less costly than the standard convolution, as shown
in Equation (5) (as described in Section 3.3.1, the main component module of U-Net is standard convolution). It greatly
enhances the efficiency of EU-Net.
It is worth noting that the MBConv block used by the
decoder of EU-Net is kept the same as the one at the corresponding position of the encoder, which is to be more compatible with the encoder (as described in Section 3.2). However, the 5 × 5 sizes convolutional kernel of the MBConv block
is replaced by a 3 × 3 size convolutional kernel to reduce the
parameters and the computational cost. In addition, compared
with the decoder of U-Net in Figure 3, the decoder of the
EU-Net does not use two convolution layers but only one,
which results in a significant reduction in the parameters and
the computational cost of EU-Net while improving efficiency.
Finally, the cropping operation in U-Net is removed because
it will lose some feature information in the feature map. The
ablation study in Section 4.4 demonstrates the superiority of
this design.
In Figure 4, the blue dashed box on the left is the encoder,
and the green dashed box on the right is the decoder. Conv2D,
k3 × 3 denotes the standard convolutional layer with a convolutional kernel size of 3 × 3 (as described in Equation (1)). _BN_
is a batch normalisation operation that prevents gradient explosion and disappearance. _Swish_ means using the Swish function as
the activation function. EU-Net uses the Swish function instead
of the ReLU function as the activation function. The Swish
activation function has upper and lower bound-free, smooth
and non-monotonic properties. Therefore, the Swish activation
function is more effective for deeper deep learning architecture
than the ReLU activation function. The Swish activation function is shown in Equation (8). In EU-Net, ? is set to 1. _Mbconv1,_
_k3_ × _3_ denotes the Mbconv block layer with an expansion factor of 1 and a convolutional kernel size of 3 × 3 (as described in
Section 3.1). The expansion factor indicates how many output
channels are compared to the number of input channels in the
expansion convolution. Similarly, _Mbconv6,_ _k3_ × _3_ denotes the
Mbconv block layer with an expansion factor of 6 and a convolutional kernel size of 3 × 3. In addition, the feature map output
from the left encoder is copied and concatenated with the corresponding feature map from the right decoder to form a new
multi-channel feature map for recovering the lost feature information.
_f_ ( _x_ ) = _x_ ⋅?(? _x_ ), (8)
FIGURE 5 Some samples and labels from our dataset
<u>1</u>
?( _x_ ) = 1 + _e_ <sup>−</sup> <sup>_x_</sup> <sup>.</sup> (9)
In this paper, the sigmoid function is used as the activation
function of the output. The sigmoid function is shown in Equation (9). The binary cross entropy function is used as the loss
function in training. The formula of the binary cross entropy
function is shown in Equation (10), wherê _y_ and _y_ denote the
predictions (output of EU-Net) and label (ground truth) respectively, _N_ is the size of each output mask.
FIGURE 6 Defect and dust example diagram
bubbles can affect the appearance and use-value of the phone
screen. These defects are usually only a few dozen to a few hundred pixels in size, which is very small compared to the original
image of 5120 × 5120 sizes, so they are challenging to see with
the naked eye and detect. The red box in diagram ‘a’ in Figure 6
is a local zoomed-in view of the start of the arrow to show the
defects better. However, despite being very small, these defects
have the disadvantage that there is only a slight difference in
contrast compared to the background. It makes observation and
detection very difficult. The brightness of diagram ‘a’ in Figure 6
was adjusted to show the defects better, as shown in diagram
‘b’ in Figure 6 (for display purposes only, it is not necessary to
adjust the brightness of the dataset when training or testing). In
addition, there is interference from dust. Dust is not a defect,
but its presence can interfere with detecting defects.
4.2 Dataset preprocessing
Our dataset is divided into three subsets. 80% of the dataset is
the training set, 10% is the validation set, and 10% is the test
set. We followed the Monte Carlo cross-validation method and
performed three arbitrary divisions of the dataset. The results of
the three divisions are trained and inferred separately, and then
the average of the three results is taken as the final result.
Due to hardware performance limitations, images of 5120 ×
5120 size cannot be used directly in the training of the algorithm. This dataset needs to be preprocessed. First, each 5120 ×
5120 size image is cropped into 224 × 224 size blocks (of course,
this can be sliced into blocks of other resolutions, depending on
your hardware performance). The cropping operation does not
lose information about the data, but it significantly speeds up
the training process. Then, each cropped block is rotated and
flipped to expand the training set.
Since many blocks do not contain defects and fewer blocks
that do, all blocks that contain defects are retained in the preprocessed training set, while only a tiny fraction of blocks without defects are retained. It prevents the training process from
being dominated by blocks that do not contain defects resulting
in the algorithm failing to detect defects.
During the inference process, each test set sample is
sliced into blocks of 224 × 224 resolution due to hardware
_L_ (̂ _y_, _y_ ) = − <sup><u>1</u></sup>
_N_
∑ _N_
[ _yi_ ⋅ ln(̂ _yi_ ) + (1 − _yi_ ) ⋅ ln(1 −̂ _yi_ )] . (10)
_i_ =1
4 EXPERIMENT
4.1 Dataset description
Our dataset is collected from industrial sites that produce
mobile phone screens. Figure 5 shows some samples and labels
from the dataset. It is a dataset of mobile phone screens, where
each sample has a resolution of 5120 × 5210 in size. Each column represents a different sample and label, where the sample is at the top and the label is at the bottom. Each label
marks information about the location of defects on the surface of the phone screen, where the white part is the location
of the pixel corresponding to the defect area, and the black part
is the location of the pixel in the background (non-defective)
area.
There are two types of defects in the dataset, scratches, and
bubbles, as shown in diagram ‘a’ in Figure 6. Scratches and
TABLE 1 Comparison of results on FLOPs, Params and mIoU of
different algorithms
Params
(M)
mIoU
(%)
Algorithm
FLOPs
(GMac)
FCN32s 19.56 18.64 67.2
FCN16s 19.56 18.64 69.2
FCN8s 19.56 18.64 69.6
U-Net 30.71 17.27 69.3
Enet 0.40 0.35 63.2
SegNet 30.70 29.44 51.8
Deeplabv3 with mobilenet encoder 4.35 5.11 59.7
Deeplabv3 with resnet50 encoder 31.38 39.63 70.1
DenseASPP 2.05 2.47 65.9
U-Net++ 105.77 36.63 69.4
Attention U-Net 51.02 34.88 69.6
Mobile-Unet 1.19 5.96 58.2
EU-Net (the proposed algorithm) 0.18 7.82 70.2
performance limitations (of course, this can be sliced into
blocks of other resolutions, depending on your hardware performance). After each 224 × 224 size block is inferred separately, all
inference results are reassembled into a 5120 × 5120 size image.
4.3 Experimental results
This paper uses FLOPs, mIoU, and Params as evaluation metrics. The comparative experimental results are shown in Table 1.
mIoU stands for average intersection over union, a performance metric commonly used to measure the accuracy in the
semantic segmentation domain. A higher mIoU represents a
more robust generalisation of the algorithm and a more accurate prediction of defects.
FLOPs refer to floating-point operations. It reflects the computational efficiency and time complexity of the algorithm. In
our experiments, we compare the FLOPs of different algorithms by computing an image of size 224 × 224. Lower FLOPs
mean that the algorithm has higher computational efficiency
and lower time complexity.
Params indicate the number of parameters included in the
algorithm, which reflects the size of the memory occupied
by the algorithm. The smaller the parameters, the less memory the algorithm takes up and the easier it is to deploy to
mobile devices, such as mobile phones, cars, or other embedded devices.
From Table 1, it is clear that EU-Net has the highest mIoU
than other semantic segmentation algorithms while having the
lowest FLOPs and lower Params. U-Net++ adds more complex operations between the encoder and decoder of U-Net
instead of simply cropping, copying and concatenation operations, which slightly improves its mIoU. However, its FLOPs
and Params become very large, not conducive to real-time
and low memory requirements. Attention U-Net introduces the
FIGURE 7 FLOPs vs. mIoU
attention mechanism in U-Net, which also improves mIoU, but
its FLOPs and Params become more extensive at the same time.
Mobile-Unet replaces the encoder of U-Net with mobilenet, a
lightweight network with lower FLOPs and fewer Params, making it more real-time and less memory-intensive. However, the
cost is a reduction in mIoU. As shown in Table 1, the EU-Net
proposed in this paper has not only a higher mIoU than U-Net
but also the FLOPs and Params are significantly reduced, which
dramatically improves the real-time performance and reduces
the memory requirement.
Other segmentation algorithms have different performances,
among which Enet, a lightweight network, has the smallest
Params and tiny FLOPs. However, its mIoU is not satisfactory. Deeplabv3 with mobilenet Encoder uses mobilenet as its
encoder like Mobile-Unet, and its performance is similar to that
of Mobile-Unet. The Deeplabv3 with resnet50 Encoder uses
the resnet50 network as its encoder, and its mIoU is improved
at the cost of significantly increased FLOPs and Params due to
the inefficiency of resnet50. Among the FCNs family, FCN32s
has the worst performance because it directly up-samples the
output of the encoder by a factor of 32 to get the final results,
resulting in a crude result.
In contrast, FCN16s and FCN8s first perform a deconvolution operation on the output of the encoder. Then, it fuses them
with the results of the corresponding Pooling layer. Finally, it
does the upsampling operation of the corresponding multiples
to get the final results, which improves their accuracy. In addition, the performance of SegNet and DenseASPP is not satisfactory. R2U-Net, R2AU-Net, and Deeplabv3++ have also
experimented on our dataset, but unfortunately, they could not
converge on our dataset.
SegNet and U-Net-based algorithms (e.g. U-Net++) are
typical semantic segmentation algorithms based on encoder–
decoder architecture. As shown in Figures 7 and 8, EU-Net
(the red dot) with MB encoder–decoder architecture has better performance than other algorithms (blue dots) with standard encoder–decoder architecture. mIoU of EU-Net is better than other algorithms, even with the lowest FLOPs and
very low Parmas. As shown from Figure 7, Attention U-Net,
FIGURE 8 Params vs. mIoU
U-Net++ increases mIoU over U-Net at the cost of increasing FLOPs, which is not conducive to real-time performance.
On the other hand, Mobile-Unet reduces FLOPs compared to
U-Net at the cost of lower mIoU to ensure real-time performance. In Figure 8, Attention U-Net and U-Net++ improve
mIoU over U-Net and also increase params, making the algorithm take up more memory. On the contrary, Mobile-Unet has
fewer params and takes up less memory than UNet, but the
mIoU is significantly reduced.
Some inference results of EU-Net are shown in Figure 9. In
Figure 9, each column is a different input image, label (ground
truth) and prediction result, where the input image is shown at
the top, the label is shown in the middle, and the prediction
results of EU-Net are shown at the bottom. As seen in Figure 9,
the prediction results of the proposed algorithm are very close
to the label. Although mIoU is not very high, this is because, in
most cases, the algorithms are more accurate in their predictions
than ground truth. Ground truth is manually labelled, and it is
impossible to label every pixel of a defect faultlessly.
4.4 Ablation study
As can be seen from Table 2, redesigning only the U-Net
encoder resulted in an improvement in FLOPs and Params, but
a decrease in mIoU. It is because the new encoder is not compatible with the original decoder. So we also designed a new
decoder for U-Net to make them more compatible (i.e. EUNet). As a result, mIoU is improved, while FLOPs and Params
are enhanced. According to the experimental results in Table 2,
the computational complexity of EU-Net is 170 times lower
than that of U-Net, and the parameters of EU-Net are less
than half of those of U-Net, while the accuracy of EU-Net has
been improved.
5 CONCLUSION
MB encoder–decoder architecture is proposed to improve the
efficiency of the semantic segmentation model. In addition, MB
FIGURE 9 The inference results of the proposed algorithm (above is the
input image, in the middle is the label (ground truth), and below is the
prediction result of the proposed algorithm)
TABLE 2 Ablation study
FLOPs (GMac) Params (M) mIoU (%)
Baseline (U-Net) 30.71 17.27 69.3
Redesigned encoder only 7.20 14.12 67.6
Redesigned encoder and
decoder (EU-Net) 0.18 7.82 70.2
encoder–decoder architecture was applied to U-Net to propose
EU-Net. The computational complexity of EU-Net is 170 times
lower than that of U-Net, with less than half the number of
parameters, while the mIoU is also improved. Then, EU-Net
was applied for the first time to detect surface defects on mobile
phone screens in industrial production, meeting the real-time
requirements of the industry. Finally, the EU-Net of this paper
is found to outperform other state-of-arts methods. We are confident that this approach can be extended to various application
scenarios. In the future, we will make more significant efforts
to detect surface defects on mobile phone screens and improve
the accuracy and efficiency of detection.
ACKNOWLEDGMENTS
This work was supported in part by the Grants of National
Key R&D Program of China (2020AAA0108304), National
Natural Science Foundation of China(62073088, U1911401),
Guang-dong Basic and Applied Basic Research Foundation
(2019A1515011606) and Key-Area Research and Development
Program of Guangdong Province (2021B0101200005).
CONFLICT OF INTEREST
The authors declare that they have no know competing financial
interests or personal relationships that could have appeared to
influence the work reported in this paper.
DATA AVAILABILITY STATEMENT
Research data are not shared.
ORCID
_JiaweiPan_ [https://orcid.org/0000-0002-4155-3010](https://orcid.org/0000-0002-4155-3010)
_Deyu Zeng_ [https://orcid.org/0000-0002-6656-8024](https://orcid.org/0000-0002-6656-8024)
_QiTan_ [https://orcid.org/0000-0002-3287-5616](https://orcid.org/0000-0002-3287-5616)
_ZongzeWu_ [https://orcid.org/0000-0002-0597-1426](https://orcid.org/0000-0002-0597-1426)
_Zhigang Ren_ [https://orcid.org/0000-0002-0913-0130](https://orcid.org/0000-0002-0913-0130)
REFERENCES
1. Qi, S., Yang, J., Zhong, Z.: A review on industrial surface defect detection based on deep learning technology. In: International Conference on
Machine Learning and Machine Intelligence (MLMI), pp. 24–30. ACM
Press, new York (2020)
2. LeCun, Y., Boser, B., Denker, J.S., et al.: Backpropagation applied to handwritten zip code recognition. Neur. Comput. 1(4), 541–551 (1989)
3. Simonyan, K., Zisserman, A.: Very deep convolutional networks for image
recognition. arXiv:1409.1556 (2014)
4. Ren, S.Q., He, et al.: Faster R-CNN: towards real-time object detection
with region proposal networks. IEEE Trans. Pattern Anal. 39(6), 1137–
1149 (2017)
5. Shelhamer, E., Long, J., Darrell, T.: Fully convolutional networks for
semantic segmentation. IEEE Trans. Pattern Anal. 39(4), 640–651
(2016)
6. Ronneberger, O., Fischer, P., Brox, T.: U-Net: convolutional networks for
biomedical image segmentation. In: International Conference on Medical Image Computing and Computer-Assisted Intervention (MICCAI),
pp. 234–241. Springer, Cham (2016)
7. Paszke, A., Chaurasia, A., Kim, S., et al.: ENet: a deep neural network architecture for real-time semantic segmentation. arXiv:1606.02147
(2016)
8. Badrinarayanan, V., Kendall, A., Cipolla, R.: SegNet: A deep convolutional
encoder–decoder architecture for image segmentation. IEEE Trans. Pattern Anal. 39(12), 2481–2495 (2017)
9. Chen, L.C., Papandreou, G., Schroff, F., et al.: Rethinking atrous convolution for semantic image segmentation. arXiv:1706.05587 (2017)
10. Yang, M., Yu, K., Zhang, C., et al.: Denseaspp for semantic segmentation
in street scenes. In: IEEE Conf. on Computer Vision and Pattern Recognition(CVPR), pp. 3684–3692. IEEE, Piscataway, NJ (2018)
11. Huang, L., He, M., Tan, C., et al.: Jointly network image processing: multitask image semantic segmentation of indoor scene based on CNN. IET
Image Process. 14(15), 3689–3697 (2020)
12. Yang, W., Zhang, J., Chen, Z., et al.: An efficient semantic segmentation
method based on transfer learning from object detection. IET Image Process. 15(1), 57–64 (2021)
13. Jing, J., Wang, Z., Rätsch, M., et al.: Mobile-UNet: an efficient convolutional neural network for fabric defect detection. IEEE Trans. Text. Res. J.
92(1-2), 30-42 (2020)
14. Howard, A., Sandler, M., Chu, G., et al.: Searching for MobileNetV3. In:
IEEE International Conference on Computer Vision (ICCV), pp. 1314–
1324. IEEE, Piscataway, NJ (2019)
15. Zhou, Z., Siddiquee, M.M.R., Tajbakhsh, N., et al.: UNet++: Redesigning skip connections to exploit multiscale features in image segmentation.
IEEE Trans. Med. Imaging 39(6), 1856–1867 (2019)
16. Alom, M.Z., Yakopcic, C., Taha, T.M., et al.: Nuclei segmentation with
recurrent residual convolutional neural networks based U-Net (R2U-Net).
In: IEEE Conference on National Aerospace and Electronics Conference(NAECON), pp. 228–233. IEEE, Piscataway, NJ (2018)
17. Oktay, O., Schlemper, J., Folgoc, L.L., et al.: Attention Learning where to
look for the pancreas. arXiv:1804.03999 (2018)
18. Zuo, Q., Chen, S., Wang, Z.: R2AU-Net: attention recurrent residual convolutional neural network for multimodal medical image segmentation.
[Secur. Commun. Netw. 2021 (2021). doi: https://doi.org/10.1155/2021/](https://doi.org/10.1155/2021/6625688)
[6625688](https://doi.org/10.1155/2021/6625688)
19. Tan, M., Le, Q.: Efficientnet: Rethinking model scaling for convolutional
neural networks. International Conference on Machine Learning (ICML),
pp. 6105–6114. ICML, Bellevue, WA (2019)
20. Li, D., Liang, L.Q., Zhang, W.J.: Defect inspection and extraction of the
mobile phone cover glass based on the principal components analysis. Int.
J. Adv. Manuf. Tech. 73(9), 1605–1614 (2014)
21. Wang, T., Zhang, C., Ding, R., et al.: Mobile phone surface defect detection based on improved faster R-CNN. In: International Conference
on Pattern Recognition (ICPR), pp. 9371–9377. IEEE, Piscataway, NJ
(2021)
22. Hu, J., Shen, L., Sun, G.: Squeeze-and-excitation networks. In: IEEE Conf.
on Computer Vision and Pattern Recognition (CVPR), pp. 7132–7141.
IEEE, Piscataway, NJ (2018)
How to cite this article: Pan, J., Zeng, D., Tan, Q., Wu,
Z., Ren, Z.: EU-Net: A novel semantic segmentation
architecture for surface defect detection of mobile
phone screens. IET Image Process. 16, 2568–2576
[(2022). https://doi.org/10.1049/ipr2.12509](https://doi.org/10.1049/ipr2.12509)
섹션 본문
섹션 본문이 없습니다.
참고문헌 18건
- U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
- Defect inspection and extraction of the mobile phone cover glass based on the principal components analysis The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2014 10.1007/s00170-014-5871-y
- Backpropagation Applied to Handwritten Zip Code Recognition Neural Computation · The MIT Press · 1989 10.1162/neco.1989.1.4.541
- Fully Convolutional Networks for Semantic Segmentation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2572683
- Squeeze-and-Excitation Networks 2018 10.1109/cvpr.2018.00745
- DenseASPP for Semantic Segmentation in Street Scenes 2018 10.1109/cvpr.2018.00388
- Nuclei Segmentation with Recurrent Residual Convolutional Neural Networks based U-Net (R2U-Net) 2018 10.1109/naecon.2018.8556686
- SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2017 10.1109/tpami.2016.2644615
- Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01234-2_49
- Searching for MobileNetV3 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2019 10.1109/iccv.2019.00140
- UNet++: Redesigning Skip Connections to Exploit Multiscale Features in Image Segmentation IEEE Transactions on Medical Imaging · Institute of Electrical and Electronics Engineers · 2019 10.1109/tmi.2019.2959609
- Mobile-Unet: An efficient convolutional neural network for fabric defect detection Textile Research Journal · SAGE Publishing · 2020 10.1177/0040517520928604
- Retracted: Jointly network image processing: multi‐task image semantic segmentation of indoor scene based on CNN IET Image Processing · Institution of Engineering and Technology · 2020 10.1049/iet-ipr.2020.0088
- An efficient semantic segmentation method based on transfer learning from object detection IET Image Processing · Institution of Engineering and Technology · 2020 10.1049/ipr2.12005
- A Review on Industrial Surface Defect Detection Based on Deep Learning Technology 2020 10.1145/3426826.3426832
- Mobile Phone Surface Defect Detection Based on Improved Faster R-CNN 2022 26th International Conference on Pattern Recognition (ICPR) · 2021 10.1109/icpr48806.2021.9412119
- R2AU-Net: Attention Recurrent Residual Convolutional Neural Network for Multimodal Medical Image Segmentation Security and Communication Networks · Hindawi Publishing Corporation · 2021 10.1155/2021/6625688
- 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