선정목록으로
Learning a Class-specific and Shared Dictionary for Classifying Surface Defects of Steel Sheet
필름·전자재료 · (16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.2355/isijinternational.isijint-2016-478
- 저널
- ISIJ International
- 발행년도
- 2016
- 발행기관
- The Iron and Steel Institute of Japan
- 피인용수
- 8
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.2355/isijinternational.isijint-2016-478
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W2552846726
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (16) CPI(투명 폴리이미드)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
An approach to a class-specific and shared dictionary learning (CDSDL) for sparse representation is proposed to classify surface defects of steel sheet. The proposed CDSDL algorithm is modelled as a unified objective function, covering reconstructive error, sparse and discriminative promotion constraints. With the high-quality dictionary, the compact, reconstructive and discriminative feature representation of an image can be extracted. Then the classification can be efficiently performed by discriminative information obtained from the reconstructive error or the sparse vector. Based on a dataset of surface images captured from a practical steel production line, the CDSDL algorithm is carried out to verify its effectiveness. Experimental results indicate that the CDSDL algorithm is more effective in classifying surface defects of steel sheet than other algorithms.
본문 55,849자
본문 펼치기
ISIJ International, Vol. 57 (2017), No. 1ISIJ International, Vol. 57 (2017), No. 1, pp. 123–130
# Learning a Class-specific and Shared Dictionary for Classifying Surface Defects of Steel Sheet
Shiyang ZHOU, Youping CHEN, Dailin ZHANG,* Jingming XIE and Yunfei ZHOU
School of Mechanical Science and Engineering, Huazhong University of Science and Technology, Wuhan, 430074 China.
( _Received on August 1, 2016; accepted on September 20, 2016; J-STAGE Advance published date:_
_November 26, 2016_ )
An approach to a class-specific and shared dictionary learning (CDSDL) for sparse representation is
proposed to classify surface defects of steel sheet. The proposed CDSDL algorithm is modelled as a unified objective function, covering reconstructive error, sparse and discriminative promotion constraints.
With the high-quality dictionary, the compact, reconstructive and discriminative feature representation of
an image can be extracted. Then the classification can be efficiently performed by discriminative information obtained from the reconstructive error or the sparse vector. Based on a dataset of surface images
captured from a practical steel production line, the CDSDL algorithm is carried out to verify its effectiveness. Experimental results indicate that the CDSDL algorithm is more effective in classifying surface
defects of steel sheet than other algorithms.
KEY WORDS: surface defects of steel sheet; image classification; sparse representation; discriminative
dictionary learning.
1. Introduction
Machine vision-based classification of surface defects of
steel sheet has attracted much attention due to the potential
value and challenges for some practical industrial applications. <sup>1–8)</sup> As a classical pattern recognition problem, feature
extraction (learning) and designing of classifier construct
the core. Most of existing works have focused on these two
aspects to enhance the classification performance over the
past few years. <sup>9–20)</sup> A set of features are studied, including
grayscale features, <sup>9,10)</sup> geometric features, <sup>9,10)</sup> shape features, <sup>9–11)</sup> texture features, <sup>10,12)</sup> Gabor filter output features, <sup>13)</sup>
Fourier spectral, <sup>14)</sup> wavelet transform, <sup>14–17)</sup> local binary
pattern (LBP), <sup>18,19)</sup> shearlet transform; <sup>20)</sup> and the classifier
of artificial neural network (ANN) <sup>12,13,15)</sup> and support vector machine (SVM) <sup>9,10,14,17–20)</sup> is discussed. However, these
approaches, which treat feature extraction and classifier
training as two separating steps, are difficult to control the
interaction of two steps. In fact, sparse representation and
dictionary learning based classification methods, with no
explicit stage of feature extraction, may be more effective
in classification of surface defects of steel sheet. The sparse
representation and dictionary learning, which can be formulated as follows, has also been successfully applied in many
machine vision applications, <sup>21)</sup> such as face recognition. <sup>22)</sup>
_d_ _i_ is less than one, λ is a positive parameter that balances
the tradeoff between reconstructive error and sparsity. The
optimization of _x_ and _D_ is carried out by an iterative method
composing two steps: (a) fixing _D_ to update _x_ ; (b) fixing
_x_ to update _D_ . Equation (1) can be solved efficiently by
many kinds of algorithms, <sup>36–40)</sup> such as orthogonal matching
pursuit (OMP). <sup>41)</sup>
A choice of dictionary _D_ plays a key role to obtain a
sparse, high-fidelity and discriminative feature representation
of an image. Many state-of-the-art results have shown that a
good dictionary is learned from the training dataset itself. <sup>23,24)</sup>
For example, given a set of feature vectors { _y_ _i_ } _i_ = 1, 2, ..., _N_ in
<sup>_d_</sup>, the goal of dictionary learning is to learn a dictionary
_D_ = { _d_ _i_ } _i_ = 1, 2, ..., _K_ in <sup>_d_</sup> × <sup>_K_</sup> that each _y_ _i_ can be compactly represented as a sparse linear combination of a few atoms from
_D_, meanwhile keeping the reconstruction error _y_ _i_ - _D_ _x_ _i_ 22
2
λ _x_ 1 ........................ (1)
_D_, meanwhile keeping the reconstruction error _y_ _i_ - _D_ _x_ _i_ 22
as small as possible. Many existing dictionary learning
approaches can be divided into two categories: unsupervised dictionary learning and supervised dictionary learning.
For the unsupervised dictionary learning methods, such as
method of optimal directions (MOD) <sup>25)</sup> and K-SVD, <sup>26)</sup> the
learned dictionary may not be best for classification because
the class information of a training dataset isn’t utilized. In
recent years, a large number of researches about supervised
or discriminative dictionary learning have been proposed,
such as sparse representation based classification (SRC). <sup>22)</sup>
A reconstructive and discriminative dictionary, which has a
finer adaptation for classification, can be learned. The stateof-the-art classification performance <sup>27–35)</sup> suggests that sparse
representation and dictionary learning is a promising method
for classifying surface defects of steel sheet.
min _x_ _y_ - _D_ _x_ 22 + λ _x_
where _y_ ∈ <sup>_d_</sup> is a given feature vector, _D_ ∈ <sup>_d_</sup> × <sup>_K_</sup> is a dictionary, _x_ 1 is _l_ 1-norm of a coding vector _x_, _l_ 2-norm of an atoms
- Corresponding author: E-mail: mnizhang@mail.hust.edu.cn
DOI: http://dx.doi.org/10.2355/isijinternational.ISIJINT-2016-478
The surface defects of steel sheet as shown in Fig. 1
ISIJ International, Vol. 57 (2017), No. 1
Fig. 1. Examples of practical surface defects of steel sheet: (a)
Folding; (b) Line; (c) Patch; (d) Scratch; (e) Non-defective.
can be regarded as the local anomaly against the relatively
homogeneous background. The defect area of an image (discriminative pattern) occupies a small portion of an image.
The background texture of an image (shared pattern), which
is useful for reconstruction rather than discrimination, is
nearly the same. Because the class-specific information of
defects is only a small proportion in the total information
of an image, the feature representation of different defect
images aren’t discriminative. If a traditional discriminative
dictionary learning method is adopted, most of atoms of
the learned dictionary are used to represent the background
information that contributes nothing to classify different
defects, and only a small part of atoms are used to represent the class-specific information of defects. Therefore, the
discriminative ability of a coding vector between different
defect images will reduce, and the poor classification performance may be achieved.
Based on the above analysis, a class-specific and shared
dictionary learning (CDSDL) algorithm, in which some
class-specific sub-dictionaries and only one shared subdictionary can be learned simultaneously, is proposed. Each
class-specific sub-dictionary encodes the exclusive pattern
for corresponding class, and the shared sub-dictionary
encodes the explicit and hidden common pattern that shared
by all the classes. With these sub-dictionaries, the exclusive
pattern and the shared pattern of an image can be explicitly
separated. Because the atoms of these sub-dictionaries can
capture the inherent structure of a defect image, the effective feature representation of the image for classification
can be obtained.
The remainder of this paper is organized as follows. In
Section 2, we briefly introduce some related works about
classification of surface defects of steel sheet, sparse representation and dictionary learning based classification.
In Section 3, the proposed CDSDL algorithm, including
formulation and optimization, is introduced. In Section 4,
experimental results are presented. Finally, conclusions are
given.
2. Related Work
In the past decades, a lot of works about classification
of surface defects of steel sheet have been studied by some
researchers. Caleb _et al._ presented a classification method
of surface defects of hot rolled steel based on the classifier
of multi-layer perceptron (MLP) and self-organising maps
network (SOM). <sup>12)</sup> Medina _et al._ introduced an approach
to classify six different kinds of defects of flat steel coils
by combining an ANN, a _k_ -nearest neighbor (KNN) and
a naive Bayesian. <sup>13)</sup> Ghorai _et al._ exploited an approach
of automatic defect detection of hot rolled flat steel based
on three-level Haar feature set. <sup>17)</sup> Hu _et al._ established a
SVM model to classify five types of surface defects of
stripe steel. <sup>9)</sup> Furthermore, they optimized feature vector
of image and kernel function of SVM by hybrid chromosome genetic algorithm and had better classification performance. <sup>10)</sup> Moreover, Chu _et al._ constructed an invariant
feature extraction approach based on smoothed LBP. <sup>19)</sup>
However, these methods largely depend on an appropriate
set of hand-crafted features, which need the special design
for the special task.
Recently, some sparse representation and dictionary learning based classification methods, which are mainly divided
into two categories, have also been paid more attention.
One category aims to improve the discriminative capability
of a dictionary. <sup>27,28)</sup> Ramirez _et al._ introduced a structured
incoherence term for promoting the independence of subdictionary associated with different classes. <sup>27)</sup> Gao _et al._
learned both some category-specific sub-dictionaries and a
shared dictionary by imposing cross-incoherence constraint
between different sub-dictionaries and self-incoherence
constraint in each sub-dictionary. <sup>28)</sup> For these methods, the
reconstructive error associated with different classes can
be used for classification, but a coding vector, which isn’t
discriminative, isn’t suitable for classification. Another category aims to improve the discriminative capability of a coding vector based on a discriminative dictionary. <sup>29–32)</sup> Huang
_et al._ presented a method that quantified the discriminative
ability of a coding vector by Fisher’s discrimination criterion. <sup>29)</sup> Zhang _et al._ introduced a classification error term
of a linear classifier. <sup>30)</sup> Furthermore, Jiang _et al._ exploited a
label consistency regularization term. <sup>31)</sup> These methods have
learned a shared dictionary by all the classes and treat a
coding vector as a new feature representation of an original
image. Although the coding vector is discriminative, the
classification based on the class-specific reconstructive error
doesn’t work. The main difference between these two kinds
of method is the discriminative capability of a dictionary
or a coding vector. If the dictionary discrimination and the
coding vector discrimination can be combined, better classification performance may be gained.
3. Class-specific and Shared Dictionary Learning
(CDSDL)
Given a training dataset of _c_ classes, the CDSDL
algorithm constructs _c_ discriminative class-specific subdictionaries for each class and a shared sub-dictionary for all
classes, respectively. Some structural incoherence terms are
added in the objective function to promote the incoherence
for the sub-dictionary and the coding vector. The coding
vector over the learned dictionary, which can be directly
treated as a new feature representation of an image, contains
crucial information for reconstruction and discriminative
information for classification. The coding vector of a defect
image of the same class is similar, while the coding vector
of different class is dissimilar. Therefore, both the reconstructive error associated with different classes and the coding vector can be used for classification. In addition, we can
amplify the discriminative part and suppress the shared part
for feature representation of a defect image by controlling
the number of atoms of sub-dictionary. The illustration of
the CDSDL algorithm is shown in Fig. 2 .
ISIJ International, Vol. 57 (2017), No. 1
weight parameters, _nc_ + 1 = _N_ .
_Xi_ = [ _Xi_ 1; ...; _Xi_ i; ...; _Xi_ c; _Xi_ c + 1]∈ _K_ × _ni_ is a coding vector
matrix corresponding to a training dataset _Yi_, each column
_xi_ j is the coding vector corresponding to the _j_ -th training
1; ...; _Xi_ i; ...; _Xi_ c
_Xi_ = [ _Xi_
c; _Xi_
_xi_ j is the coding vector corresponding to the _j_ -th training
sample of the _i_ -th class, _Xi_ i is the coding vector matrix of _Yi_
sample of the _i_ -th class, _Xi_ i is the coding vector matrix of _Yi_
corresponding to a sub-dictionary _Di_ .
_Qi_ ∈ <sup>_K_</sup> × <sup>_ki_</sup> is a selective operator, each column has only
one nonzero element 1 that the row index equals the column
×( _ki_ + _kc_ + )
index of an atom _d_ _j_, _Q_ <sup></sup> _i_ = [ _Qi_, _Qc_ + 1]∈ <sup>_K_</sup> 1, _Q −i_ = [ _Qi_,
..., _Qi−_ 1, _Qi_ + 1, ..., _Qc_, _Qc_ + 1 ]∈ <sup>_K_</sup> ×( _K_ - _ki_ ).
3.2. Analysis of CDSDL
The term _Yi_ - _DXi_ 2 _F_
Fig. 2. An illustration of the CDSDL algorithm. Each image can
be sparsely represented by a few atoms from corresponding class-specific sub-dictionary _Di_ (purple) and shared
sub-dictionary _Dc_ +1 (red).
The term _Yi_ - _DXi_ 2 _F_ indicates that the dictionary _D_
should represent _Yi_ well.
Because _Di_ is a class-specific sub-dictionary and _Dc_ + 1 is
2
#### − ( DQ i )(( Q i ) T Xi ) F
a shared sub-dictionary, the term _Yi_ - ( _DQ_ _i_ )(( _Q_ _i_ ) _T_ _Xi_
2
_T_
_i_
3.1. Formulation of CDSDL
Let _Y_ = [ _Y_ 1, ..., _Yi_, ..., _Yc_ ]∈ <sup>_d_</sup> × <sup>_N_</sup> denote a training dataset
## of samples of length c classes, Yi ∈ d d ×, ni ∑ is a matrix constructed by stacking ic =1 ni = N, where d is the dimension ni
## samples of length d, ∑ ic =1 ni = N, where d is the dimension
of a sample, _ni_ is the number of sample of the _i_ -th class, _N_ is
the total number of the whole training dataset. Let _D_ = [ _D_ 1,
..., _Di_, ..., _Dc_, _Dc_ + 1]∈ <sup>_d_</sup> × <sup>_K_</sup> denote the learned dictionary of
_K_ atoms, _Di_ ∈ <sup>_d_</sup> × <sup>_ki_</sup>, _i_ = 1, 2, ..., _c_, is the class-specific subdictionary that trained from a corresponding training dataset
_Yi_, _Dc_ + 1∈ <sup>_d_</sup> × <sup>_kc_</sup> +1 is the shared sub-dictionary that trained _c_ +
## from the whole training dataset Y, where K = ∑ i =11 ki, ki is
indicates that _Yi_ should be well represented by [ _Di_, _Dc_ + 1],
but not by [ _Dj_, _Dc_ + 1], _j ≠ i_, which forces the samples from
the same class to have similar feature representation.
The term _G_ ( _X_ ) directly operates the coding vector and
promotes them to more discriminative between different
classes. Based on Fisher’s linear discriminant, <sup>43)</sup> which maximizes the ratio of between-class scatter matrix to withinclass scatter matrix, we can jointly minimize the withinclass scatter matrix _SW_ ( _X_ ) and maximum the between-class
scatter matrix _SB_ ( _X_ ). _SW_ ( _X_ ) and _SB_ ( _X_ ) are defined as follows.
_c_
_i_
_T_
_i_ _x_ _i_
_j_
_Yi_, _Dc_ + 1∈ <sup>_d_</sup> <sup>_kc_</sup> +1 is the shared sub-dictionary that trained _c_ +
## from the whole training dataset Y, where K = ∑ i =11 ki, ki is
the number of atoms of the _i_ -th sub-dictionary. Therefore,
the objective function of the CDSDL algorithm is shown
as follows.
where _x_ _i_ ( _j_ ) denotes the _j_ -th training sample of the _i_ -th class,
_m_ _i_ and _m_ are mean vector of _Xi_ and _X_ respectively, _m_ _i_ =
where _x_ _i_
## SW ( X ) = ∑ ic =1 ∑ nji =1( x i
## ( X ) = ∑ ic =1 ∑ nji =1( x i ( j ) − m i )( x i ( j ) − m i ) T ....... (6)
_j_
_c_ +
## ∑ i =11
_n_
_j_
_c_ +
_i_
=1
## ( X ) = ∑ ic =1 ni ( m i − m )( m i − m ) T ............. (7)
## SB ( X ) = ∑ ic =1 ni ( m i − m )( m i
_T_
_i_
= min _D_, _X_ _F_ ( _D_, _X_ ; _Y_ ) + λ1 _X_ 1 + λ2 _G_ ( _X_ ) + _H_ ( _D_ )
... (2)
_D_, _X_ _F_ ( _D_, _X_ ; _Y_ ) + λ1 _X_ 1 + λ2
min _D_, _X_ _F_ ( _D_, _X_ ;
_J_ = min _D_, _X_ _F_ ( _D_, _X_ ; _Y_ ) + λ1 _X_ 1 + λ2 _G_ ( _X_ ) + _H_ ( _D_
_j_
## ∑ nji =1 x i ( )∈ K, m = 1
_N_
_j_
_ni_ = _x_ _i_ ( )
_j_
_c_ _n_ _j_
## ∑ i =1 ∑ ji =1 x i ( )∈ K .
_i_
_N_ _i_ 1 _j_ =1
_D_, _X_
_j_
_n_
_ni_ _j_ =1
<u>1</u>
_j_
(:, _j_ ) 2 = 1, ∀
_i_
_i_
_j_
s.t. _Di_ (:, _j_ ) 2 = 1
_Di_ (:, _j_ ) = 1, ∀ _i_, _j_
Therefore
_i_
:, _j_ ) = 1, ∀ _i_,
where
2
(, ; ) =
<sup>_D_</sup> <sup>_X_</sup> <sup>_Y_</sup>
## tr ( SW ) = ∑ ic =1 Xi − Mi 2 F
## ( SW ) = ∑ ic =1 Xi −
1 _Xi_ - _Mi_ 2 _F_ ..................... (8)
(, ;
<sup>_F_</sup> <sup>_D_</sup> <sup>_X_</sup> <sup>_Y_</sup>
2 _c_ 2
_c_
## tr ( SB ) = ∑ ic =1 ni m i − m 22 = ∑ ic =1 Mi − M 2 F
## ( SB ) = ∑ ic =1 ni m i − m 22 = ∑ ic =1 Mi −
## 1 ni m i − m 22 = ∑ ic =1 Mi − M 2 F ...... (9)
## ∑ ic =1 Yi − DXi 2 F + Yi − ( DQ i )(( Q i ) T Xi ) F + λ1 Xi 1
_i_
_c_
## 1 Yi − DXi 2 F + Yi − ( DQ i )(( Q i ) T Xi ) + λ1 Xi 1
2
## Yi − DXi 2 F + Yi − ( DQ i )(( Q i ) T Xi ) F +
#### Yi − DXi 2 F + Yi − ( DQ i ) ( Q i ) Xi + λ1 Xi
2
#### 2 − ( ) ( ) T
.......................................... (3)
_T_
_i_ =1 _Yi_ - _DXi_ _F_ + _Yi_ _DQi_ _Qi_ _Xi_ + λ1 _Xi_
_i_
_F_
where _Mi_ ∈ <sup>_K_</sup> × <sup>_ni_</sup>, each column equals _m_ _i_ . For corresponding
_Mi_, _M_ ∈ <sup>_K_</sup> × <sup>_ni_</sup>, each column equals _m_ .
The combination of _X_ 1 and _X_ 2 _F_ can make the solution
## ∑ ic =1 Xi − Mi 2 F − ∑ ic =1 Mi − M 2 F + ∑ ic =1 Xi 2 F
## ( X ) = ∑ ic =1 Xi − Mi 2 F − ∑ ic =1 Mi − M 2 F +
_c_
2 _c_ 2 _c_ 2
_T_
_i_ - _Iki_ 2
_F_
## G ( X ) = ∑ ic =1 Xi − Mi 2 F − ∑ ic =1 Mi − M 2 F + ∑ ic =1 Xi 2 F
The term _DiT_ _Di_ - _I_
_i_
1 _i_ _i_ _F_ _i_ =1 _i_ _F_ _i_ =1 _i_ _F_
.......................................... (4)
_c_
_i_
( ) =
<sup>_D_</sup>
(
<sup>_H_</sup> <sup>_D_</sup>
_T_
- _i_ _F_
_T_
The term _Di_ _D_
_c_ +1
## ∑ i =1
1
1
_<u>i</u>_ _T_ 2 _<u>ni</u>_ _T_
_w_ 1 _k_ <sup>_<u>n</u>_</sup> _i_ 2 _Di_ _Di_ - _Iki_ _F_ + _w_ 2 _ki_ <u>(</u> _K_ - _ki_ <u>)</u> _Di_ ( _DQ_ - _i_ )
_w_ 1 <sup>_<u>n</u>_</sup>
_ki_
_i_
_T_
_i_
_i_ - _Iki_ _F_
2 + _w_ 2 _<u>ni</u>_ _DiT_ ( _DQ_ - _i_ ) 2
_c_ +1 _<u>i</u>_ _T_ _<u>i</u>_ _T_
_i_ =1 _w_ 1 _k_ <sup>_<u>n</u>_</sup> _i_ 2 _Di_ _Di_ - _Iki_ _F_ + _w_ 2 _ki_ <u>(</u> _K_ - _ki_ <u>)</u> _Di_ ( _DQ_ - _i_ ) _F_
_i_ 2 _<u>i</u>_ _DiT_ _Di_ - _Iki_ 2 _F_ + _w_ 2 _ki_ <u>(</u> _Kni_ - _ki_ <u>)</u> _DiT_ ( _DQ_
.......................................... (5)
_i_ =1 1 _k_ 2 _Di_ _Di_ - _Iki_ _F_ + _w_ 2 _k_ <u>(</u> _K_ - _k_ <u>)</u> _Di_ _DQ_ - _i_ _F_
_i_ _K_ - _ki_
_<u>i</u>_
_T_
_i_
The combination of _X_ 1 and _X_ 2 _F_ can make the solution
_X_ more stable. <sup>38)</sup>
The term _DiT_ _Di_ - _Iki_ 2 shows that each sub-dictionary
is self-incoherent, which enhances incoherence for each _F_
sub-dictionary and has a direct impact on the speed of
computation. <sup>27,44)</sup> 2
_T_
The term _Di_ _D_ - denotes a cross-incoherent constraint
_i_ _F_
between different sub-dictionaries, which promotes atoms
of different sub-dictionary to be as independent as possible. <sup>27,44)</sup>
_<u>i</u>_
The weight _w_ 1 <sup>_<u>n</u>_</sup> 2
2 _<u>i</u>_ <sup>and</sup> <sup>_w_</sup> <sup>2</sup> _<u>ni</u>_
_i_ _ki_ ( _K_ - _k_
2 _<u>i</u>_
_i_
_<u>i</u>_
_F_ ( _D, X; Y_ ) is a reconstructive error term, _G_ ( _X_ ) is a Fisher
discriminative term imposed on the coding vector matrix _X_,
_H_ ( _D_ ) is a structural incoherence term imposed on the dictionary _D_, each atom _d_ _j_ of _D_ is constrained to unit _l_ 2-norm
to avoid trivial solution _X_ .
⋅ _F_ denotes Frobenius-norm, _X_ 1 is a sparsity regularizer, _Iki_ is an identity matrix, λ1, λ2, _w_ 1 and _w_ 2 are the scalar
alleviate the effect
_ki_
_ki_ ( _K_ - _ki_ )
_i_
of imbalance between the number of samples and atoms. <sup>28)</sup>
An incoherent constraint on sub-dictionary was proposed
in, <sup>27,28,35)</sup> a Fisher discrimination constraint on coding vector was presented in, <sup>33,34)</sup> and a class-specific and shared
dictionary was adopted in. <sup>28,34,35)</sup> However, there are mainly
two differences between the proposed CDSDL algorithm
ISIJ International, Vol. 57 (2017), No. 1
and these algorithms. Firstly, Ramirez <sup>27)</sup> and Yang <sup>33)</sup> only
learn some class-specific sub-dictionaries, which can’t
separate the class-specific features and the shared features.
Secondly, the constraints of these algorithms are imposed
on either sub-dictionary <sup>27,28,35)</sup> or coding vector, <sup>33,34)</sup> while
the proposed CDSDL algorithm explicitly imposes the constraints on both sub-dictionary and coding vector.
3.3. Optimization of CDSDL
The optimization of the CDSDL algorithm is not jointly
convex, but is convex with respect to each variable when the
others are fixed. The optimization problem can be divided
into three sub-problems: (1) Solving _X_ with fixed _D_ ; (2)
Solving _Di_ with fixed _X_ and _D_ - _j_, _j_ ≠ _i_, where _D_ - _j_ is the submatrix by removing _Dj_ from _D_ ; (3) Solving _Dc_ + 1 with fixed
_X_ and _D_ -( _c_ + 1). An effective iterative algorithm that alternatively optimizes objective function _J_ with respect to coding
vector matrix _X_, class-specific sub-dictionary _Di_ and shared
sub-dictionary _Dc_ + 1 is introduced as follows. The CDSDL
algorithm is summarized in Table 1 .
3.3.1. Update of _X_
With fixed _D_, _J_ can be rewritten as follows.
σ
we have
∇ _Xi_ <sup>_F_</sup> ( <sup>_X_</sup> _i_ ) = 2 _DT_ ( _DXi_ - _Yi_ )
_i_ - _Yi_
_T_
_Xi_ <sup>_F_</sup> ( <sup>_X_</sup> _i_ ) = 2 _DT_ ( _DXi_ - _Yi_
_Xi_ <sup>_F_</sup> <sup>_X_</sup> _i_
2
#### +2 Q i ( Q i ) T DT DQ i ( Q i ) T Xi −
<sup></sup>
_i_ _Qi_
_T_
2
#### Q i ( Q i ) T DT DQ i ( Q i
_i_ _Qi_
#### Q i ( Q i ) DT DQ i ( Q i ) Xi − Yi
<sup></sup>
_T_ _DT_
_i_ - _Yi_
<sup></sup>
_j_ _Qi_
+
_T_
_T_ _T_ _T_ _j_ _j_ _j_
#### 2λ2 X O Oi i i + Xi PPi i − RPi + X Qi i ( Qi ) − Tj ( Qi
_i_
_T_
_j_
_i_ _PPi_ _i_
_T_
_i_
_T_
_i_ _i_
_j_
2λ2
_T_ _T_
_T_ _T_ _T_ _j_ _j_ _j_
#### X O Oi i i + Xi PPi i − RPi + X Qi i ( Qi ) − Tj ( Qi )
<sup></sup>
_T_
........................................ (12)
_ni_ × _n_ _j_
_n_
×
1 - 1
, _Oi_ = _Ini_ × _ni_ - _<u>Eii</u>_
_ni_ × _ni_ - _<u>Eii</u>_, _Qij_ = _<u>Ei</u>_
_i_
_<u>i</u>_
_ij_ = _<u>ENi</u>_
= _<u>Eij</u>_, _Pi_ =
where _Eij_
=
1 - 1
- -
1 - 1
1 - 1
_ni_ × _ni_ - _ni_
_i_
_i_
_<u>Eii</u>_
_i_
_lc_ =1 _X Ql_ _lj_ .
_l_ ≠ _i_
_<u>Ei</u>_ - _Qii_
_ni_
_c_
_<u>j</u>_ _c_ _j_
## j = X j E − ∑ l =1 X Ql l
_n_ _j_ _l_ ≠ _i_
_<u>j</u>_ _c_ _j_
## = X j E − ∑ l =1 X Ql l .
_n_ _j_ _l_ ≠ _i_
_j_
_<u>j</u>_
_j_
_c_ _i_ _<u>j</u>_
## ∑ j =1 X jQj, Tj = X j E
_j_ ≠ _i_ _n_ _j_
_l_ _l_
_i_
## − Qii, R = ∑ cj =1 X jQij
_j_ ≠ _i_
According to FISTA and TwIST algorithm, we have
{ _Xi_ } _t_ +1 = (1 −α){ _Xi_ } _t_ −1 + (α− β){ _Xi_ } _t_
α){ _Xi_ } _t_ −1 + (α− β
+1 = (1 −α){ _Xi_ } _t_ −1
_Xi_ } _t_ +1 = (1 −α){ _Xi_ } _t_ −1 + (α− β){ _X_
_i_ _t_ +1 = 1 −α _Xi_ _t_ −1 + α− β _Xi_ _t_
<u>1</u>
+β _S_ στ <sup></sup> { _Xi_ } _t_ - 2σ ∇ _Xi_ _F_ ( _Xi_ )
......... (13)
<u>1</u>
2σ
<u>1</u>
β _S_ <u>τ</u> { _Xi_ } _t_ - ∇ _Xi_ _F_ ( _Xi_ )
σ <sup></sup> 2σ
_S_ <u>τ</u> { _Xi_ } _t_ - ∇ _Xi_ _F_ ( _Xi_
_i_ _t_ 2σ ∇ _Xi_ _F_ _Xi_
)
where _S_ <u>τ</u>
( ⋅ ) is a soft-threshold shrinkage operator, { _Xi_ } _t_ −1
2
#### 2 ( ) T
#### − DXi 2 F + Yi − DQ i ( Q i )
_F_
#### Q i ( Q i
_T_
_i_
#### min Xi Yi − DXi 2 F + Yi − DQ i ( Q i
#### Yi − DXi 2 F + Yi − DQ i ( Q i ) Xi
is the previous value, { _Xi_ } _t_ is the current value, { _Xi_ } _t_ + 1 is
the next value, α>0, β>0, σ>0.
3.3.2. Update of _Di_
With fixed _X_ and _D_ - _j_, _j_ ≠ _i_, _J_ can be rewritten as follows.
_F_
## λ2 ( Xi − Mi 2 F − ∑ ic =1 Mi − M 2 F + Xi 2 F ) + λ1 Xi 1
## +λ2 ( Xi − Mi 2 F − ∑ ic =1 Mi − M 2 F +
_c_
## 2 ( Xi − Mi 2 F − ∑ ic =1 Mi − M 2 F
.... (10)
## Xi − Mi 2 F − ∑ c = Mi − M 2 F + X
2
## i − Mi F − ∑ i =1 Mi − M F
_i_ _F_
1
Equation (10) can be rewritten as follows.
_F_
...... (14)
...... (15)
_T_
2 _T_
#### Yi − DXi F + Yi − DQ i ( Q i )
1
min _Xi_ _F_ ( _Xi_ ) + 2τ _Xi_ 1 ...................... (11)
_c_
## ∑ i =1
_c_
## min Di ∑ ic
2
#### =1 Yi − DXi F + Yi − DQ i ( Q i
## Di ∑ ic =1 Yi − DXi 2 F + Yi − DQ i ( Q i ) Xi
2
#### 2 ( ) T
_i_ - _DXi_ _F_ + _Yi_ - _DQi_ _Qi_
_i_
_<u>i</u>_ _T_ 2
+ _w_ 1 _k_ <sup>_<u>n</u>_</sup> 2 _Di_ _Di_ - _Ik_ _i_ _F_
_<u>i</u>_
_w_ 1 <sup>_<u>n</u>_</sup> 2
_<u>i</u>_
1 _k_ 2
2 _F_ + _Yi_ - _DQ_ _i_ ( _Q_ _i_ ) _T_ _X_
where _F_ ( _Xi_ ) = _Yi_ - _DXi_ 2 _F_
2
- _DQ_ _i_ ( _Q_ _i_ ) _T_ _Xi_ _F_
_T_
_T_
_i_
_DiT_ _Di_ - _Ik_
_T_
_i_
_i_ _K_ - _ki_
_<u>i</u>_
_i_ - _Ik_
2
+ λ2
_F_
2 _c_ 2
## Xi − Mi F − ∑ i =1 Mi − M F + Xi 2 F
<sup></sup> <sup></sup>
Then, we have
2 + _w_ 2 _<u>ni</u>_ _DiT_ ( _DQ_ - _i_ ) 2
_F_ _ki_ <u>(</u> _K_ - _ki_ <u>)</u> _F_
_c_
## Xi − Mi 2 F − ∑ ic =1 Mi − M F + X
1
2
+ _Xi_ 2 _F_, τ = λ1/2.
<sup></sup>
_ki_
_i_
Because _F_ ( _Xi_ ) is convex and differentiable to _Xi_, a fast
iterative shrinkage thresholding algorithm (FISTA) <sup>42)</sup> and
a two-step iterative shrinkage/thresholding (TwIST) algorithm <sup>45)</sup> can be employed to solve Eq. (11).
The first derivative of _F_ ( _Xi_ ) with respect to _Xi_ is calculated, some detailed steps are listed in Appendix 1, then
min _Y_ - _D_ ( _X_ 1, �,
_c_
_F_
min _Y_ - _D_ ( _X_ 1, �, _Xc_
_i_
_Di_
- _D_ ( _X_ 1, �, _Xc_ )
2
1, �, _Xc_ )
#### + Y − D Q �1 ( Q �1 ) T X 1, �, DQ � c ( Q � c )
<sup></sup>
_T_
, �,
#### Q �1 ( Q �1 ) T X 1, �, DQ � c ( Q �
_T_
_c_ _Qc_
#### Y − D Q �1 ( Q �1 ) X 1, �, DQ � c ( Q � c ) X
<sup></sup>
_T_
_i_
1 _Q_ 1 _X_ 1
_c_
2
_F_
_<u>i</u>_
_w_ 1 <sup>_<u>n</u>_</sup> 2
_T_
_i_
+
1 _k_ 2 _Di_ _Di_ - _Iki_ _F_ + _w_ 2 _k_ <u>(</u> _K_ - _k_ <u>)</u> _Di_ _DQ_ - _i_ _F_
_ki_
_i_ 2 _<u>i</u>_ _DiT_ _Di_ - _Iki_ 2 _F_ + _w_ 2 _ki_ <u>(</u> _Kni_ - _ki_ <u>)</u> _DiT_ ( _DQ_
_i_ - _Iki_ _F_
- _Iki_ 2 + _w_ 2 _<u>ni</u>_ _DiT_ ( _DQ_ - _i_ ) 2
_F_ _ki_ <u>(</u> _K_ - _ki_ <u>)</u> _F_
_i_ _K_ - _ki_
_<u>i</u>_
Table 1. Algorithm of class-specific and shared dictionary
learning.
Algorithm 1: Class-specific and Shared Dictionary Learning
Input : Training dataset _Y_ = { _Yi_ } _i_ = 1, 2, ..., _c_ ; size of sub-dictionary _ki_,
_i_ = 1, 2, ..., _c_, _c_ +1; parameters λ1, λ2, _w_ 1, _w_ 2, and _T_ .
Output : The learned dictionary _D_ = { _Di_ } _i_ = 1, 2, ..., _c_, _c_ +1, _Di_ is a classspecific sub-dictionary, _i_ ≠ _c_ +1, _Dc_ +1 is a shared sub-dictionary.
Initialize : The class-specific sub-dictionary _Di_ is initialized by
K-SVD in _Yi_, the shared sub-dictionary _Dc_ +1 is initialized by K-SVD
in _Y_ .
While stop criterion isn’t reached
Update of _X_
Equation (11) is solved by FISTA and TwIST
Update of _Di_
Equation (18) is solved by MOCOD
Update of _Dc_ +1
Equation (22) is solved by MOCOD
End While
to the following problem.
_i_
Denote _A_ = [ _Y, Y_ ]∈ <sup>_d_</sup> × 2 _N_, _B_ = [ _X_ 1, …, _Xc_, _Q_ 1( _Q_ 1) _T_ _X_ 1,
…, _DQ_ _c_ ( _Q_ _c_ ) _T_ _Xc_ ]∈ <sup>_K_</sup> × 2 _N_, _C_ = _DQ_ - _i_ ∈ _d_ ×( _K_ - _ki_ ), we have
1 1
_c_ ( _Q_ _c_ ) _T_ _Xc_ ]∈ <sup>_K_</sup> × 2 _N_, _C_ = _DQ_ - _i_ ∈ _d_ ×( _K_ - _ki_ ), we have
_T_
_i_ _A_ - _DB_ 2 _F_ + _w_ 1 <sup>_<u>n</u>_</sup> 2 _<u>i</u>_ _DiT_ _Di_ - _Iki_
2 _<u>i</u>_
_F_ + _w_ 1 _k_ <sup>_<u>n</u>_</sup> 2
- _DB_ 2 _F_ + _w_ 1 <sup>_<u>n</u>_</sup> 2 _<u>i</u>_ _DiT_ _Di_
_i_ - _Iki_ _F_
min _Di_ _A_ - _DB_ 2 _F_
_ki_ 2
_<u>i</u>_
2
_i_
2
_DiT_ _Di_ - _I_
_T_
_i_
_i_ ......... (16)
2 _<u>ni</u>_ _DiT_ _C_ 2
_w_ 2 _<u>ni</u>_ _DiT_ _C_
_ki_ <u>(</u> _K_ - _ki_ <u>)</u>
_<u>i</u>_
_T_
_i_
+ _w_ 2 _<u>ni</u>_
_ki_ <u>(</u> _K_ - _ki_ <u>)</u>
_F_
_i_ _K_ - _ki_
Therefore
2
## ∑ cj +=11 D j B j − D Bi i
_j_ ≠ _i_
2
## Di A − ∑ cj +=11 D j B j − D Bi i + w 1 n 2 i DiT Di − Iki
_c_
## − ∑ cj +=11 D j B j − D Bi i + w 1 n 2 i DiT Di −
_cj_ +=11 _D_ _j_ _B_ _j_ - _D Bi_ _i_
_j_ ≠ _i_
_i_
_F_
_i_ - _Iki_ _F_
_c_ +1
## min Di A − ∑ j =1 D j
_j_
2
_j_ =
_j_ ≠
_DiT_ _Di_ - _I_
_T_
_i_
1 _k_ 2
_ki_ 2
_<u>i</u>_
2
_i_
_w_ 2 _<u>ni</u>_
_ki_ <u>(</u> _K_ - _ki_
_<u>i</u>_
+ _w_ 2 _<u>ni</u>_
_ki_ <u>(</u> _K_
_F_ _ki_ ... (17)
2
2
_ki_ <u>(</u> _K_ - _ki_ <u>)</u>
_DiT_ _C_
_T_
_i_ _K_ - _ki_
_F_
## ∑ cj +=11 D j B j ∈ d × 2 N, Eq. (17) is equivalent
_j_ ≠ _i_
## Denote A = A − ∑ cj +=11 D j B j
_c_ +
_cj_ +=11 _D_ _j_ _B_ _j_
_j_ ≠ _i_
_j_ =1
_j_ ≠ _i_
ISIJ International, Vol. 57 (2017), No. 1
_Di_ _A_ - _D Bi_ _i_ 2 + _w_ 1 <sup>_<u>n</u>_</sup> 2 _<u>i</u>_ _DiT_ _Di_ - _Iki_
the whole dictionary _D_ as follows.
_A_ - _D Bi_ _i_ 2 + _w_ 1 <sup>_<u>n</u>_</sup> 2 _<u>i</u>_ _DiT_ _Di_
2 _<u>i</u>_
_F_ + _w_ 1 _k_ <sup>_<u>n</u>_</sup> 2
_T_
_i_ - _Iki_ _F_
min _Di_ _A_ - _D Bi_
_i_
_F_
2
λ _x_ 1 ............... (23)
2
_DiT_ _Di_ - _I_
_i_
_ki_
_<u>i</u>_
2
_i_
_i_ ........ (18)
2 _<u>ni</u>_ _DiT_ _C_ 2
According to arg min _i_ _y_ <sup>ˆ</sup> - _Di_ _x_ ˆ _i_ 22, the class of _y_ ˆ is the
index _i_ of the smallest reconstruction error _y_ ˆ - _Di_ _x_ ˆ _i_ 22,
index _i_ of the smallest reconstruction error _y_ ˆ - _Di_ _x_ ˆ _i_ 22,
where _x_ ˆ = [ _x_ <sup>ˆ</sup> 1; …; _x_ <sup>ˆ</sup> _i_ ; …; _x_ <sup>ˆ</sup> _c_ ; _x_ <sup>ˆ</sup> _c_ + 1]∈ <sup>_K_</sup>, _i_ = 1, 2, ...,
_c_, _x_ <sup>ˆ</sup> _i_ is the sub-vector of _x_ ˆ that corresponding to the subdictionary _Di_, the global coding vector _x_ ˆ <sup>_G_</sup> equals _x_ ˆ .
For a local classifier, we stack a class-specific subdictionary _Di_ and a shared sub-dictionary _Dc_ + 1 to construct
_c_ compositional dictionaries. A test sample _y_ <sup>ˆ</sup> is computed
over each compositional dictionary as follows.
_x_ ˆ = arg min _x_ _y_ ˆ - _D_ _x_ 22 + λ _x_
_w_ 2 _<u>ni</u>_ _DiT_ _C_
_ki_ <u>(</u> _K_ - _ki_ <u>)</u>
According to arg min _i_ _y_ <sup>ˆ</sup> - _Di_ _x_ ˆ _i_ 22
_<u>i</u>_
_T_
_i_
+ _w_ 2 _<u>ni</u>_
_ki_ <u>(</u> _K_ - _ki_ <u>)</u>
_F_
_i_ _K_ - _ki_
where _B_ <sup>_i_</sup> denotes _ki_ rows of _B_ corresponding to the subdictionary _Di_ .
Equation (18) can be solved by method of optimal coherence-constrained directions (MOCOD) <sup>44)</sup> algorithm.
3.3.3. Update of _Dc_ + 1
With fixed _X_ and _D_ -( _c_ + 1), _J_ can be rewritten as follows.
_x_ ˆ _i_ = arg min _x_ _y_ ˆ - ( _Di_, _Dc_ +1 ) _x_ 22 + λ _x_
2
λ _x_ ........ (24)
1
_c_
2
_i_
## ∑ Yi − DXi 2 F + ∑ Yi − D Xi ii −
_c_
_c_ +1 _Xi_
+1
min
## min Dc +1 ∑ Yi − DXi 2 F + ∑ Yi − D Xi ii − Dc +1 Xi
_c_
_i_ =
_c_
_Yi_ - _D Xi_ _ii_ - _Dc_ +1 _Xic_ +1 <sup>2</sup>
## ∑ F
=1
_i_ - _D Xi_ _i_
+1
_F_
According to arg min _i_ _y_ ˆ - ( _Di_, _Dc_ +1) ˆ _x_ _i_ 22
_Dc_ +1 _i_ =
_c_ +1 _i_ =1 _i_ =
+1 _i_ =1
_i_ - _DXi_ _F_
_<u>c</u>_
_w_ 1 <sup>_<u>n</u>_</sup>
_c_ +1 _Dc_ +1 - _Ikc_ +
2
+1 _Dc_ +1 - _Ikc_ +1
_c_
_T_
According to arg min _i_ _y_ ˆ - ( _Di_, _Dc_ +1) ˆ _x_ _i_ 22, the class
of _y_ <sup>ˆ</sup> is the index _i_ of the smallest reconstruction error
_y_ ˆ - ( _Di_, _Dc_ +1) ˆ _x_ _i_ 22, where _x_ ˆ _i_ = [ ˆ _x_ _ii_ ; _x_ ˆ _ic_ + 1]∈ _ki_ + _kc_ + 1, _i_ = 1, 2,
..., _c_, _x_ <sup>ˆ</sup> _ii_ is the sub-vector corresponding to the class-specific
..., _c_, _x_ <sup>ˆ</sup> _ii_ is the sub-vector corresponding to the class-specific
sub-dictionary _Di_, _x_ <sup>ˆ</sup> _ic_ + 1 is the sub-vector corresponding to
_y_ ˆ - ( _Di_, _Dc_ +1) ˆ _x_ _i_ 22
22, where _x_ ˆ _i_ = [ ˆ _x_ _ii_ ; _x_ ˆ _i_
+
_<u>c</u>_ <u>+1</u>
1 <sup>_<u>n</u>_</sup> 2
_kc_ 2
_<u>c</u>_ <u>+</u>
_<u>c</u>_ 2+1 _D_ _cT_ +1 _Dc_ +1 - _Ik_
_c_ +1
_<u>c</u>_ <u>+1</u>
2
_c_ +1
+1
_c_ +1 - _Ikc_ +1 _F_
... (19)
_c_ +
_w_ 2 _<u>nc</u>_ <u>+1</u> _DcT_ +1( _DQ_ _kc_ +1( _K_ - _kc_ +1)
_<u>nc</u>_ <u>+1</u> _DcT_ +1( _DQ_ −( _c_ +1) ) 2
+1( _K_ - _kc_ +1) _F_
_<u>c</u>_ <u>+1</u>
_T_
_c_ +
_<u>nc</u>_ <u>+1</u>
2
_c_ +1( _DQ_ −( _c_ +1
_<u>c</u>_ <u>+</u>
+ _w_ 2 _<u>nc</u>_ <u>+1</u>
_kc_ +1( _K_
( _c_ +1) )
_F_
_<u>c</u>_ <u>+1</u> _DcT_ +1( _DQ_ −( _c_ +1) )
1( _K_ - _kc_ +1)
_c_ +1( _K_ - _kc_ +
_c_ +1( _K_ - _kc_
## tive error, thereforeBecause ∑ ic =1 Yi − DXi 2 F denotes the global reconstruc
sub-dictionary _Di_, _x_ <sup>ˆ</sup> _ic_ + 1 is the sub-vector corresponding to
the shared sub-dictionary _Dc_ + 1.
In fact, _x_ <sup>ˆ</sup> _ic_ + 1, which just works for reconstruction, can
be omitted. Therefore, we stack _c_ remaining _x_ <sup>ˆ</sup> _ii_ together,
be omitted. Therefore, we stack _c_ remaining _x_ <sup>ˆ</sup> _ii_ together,
and denote the local coding vector _x_ ˆ <sup>_L_</sup> = [ _x_ <sup>ˆ</sup> 1 _i_ ; …; _x_ ˆ _ii_ ; …;
and denote the local coding vector _x_ ˆ <sup>_L_</sup> = [ _x_ <sup>ˆ</sup> 1 _i_ ; …; _x_ ˆ _ii_ ; …;
_x_ ˆ _ci_ ]∈ _K_ - _kc_ +1.
_x_ ˆ _ci_ ]∈ _K_ - _kc_ +1.
The _x_ ˆ <sup>_G_</sup> and _x_ ˆ <sup>_L_</sup> can be directly treated as the input feature
vector of linear one versus rest (OVR) SVM, respectively.
In fact, _x_ <sup>ˆ</sup> _i_
1 _i_ ; …; _x_ ˆ _ii_
_c_ _Yi_ - _DXi_ 2
## ∑ i =1 F
_c_
## Because ∑ ic =1 Yi − DXi
min
## ∑
_c_
_Y_ - _D_ _j_ _X_ _j_ - _Dc_ +1 _X_ _c_ +1
## +1 ∑ j =1
2
_F_
_Y_ - _D_ _j_ _X_ _j_ ## c +1 ∑
_c_ +
+1
_Y_ - _D_ _j_ _X_ _j_ - _Dc_ +1 _X_
## c +1 ∑
+1
_c_
_j_
_Dc_ +1 _j_
_j_
_j_ =1
_c_
_i_
## ∑
<u>1</u> _DcT_ +1 _Dc_ +1 - _Ikc_ +1
+ _Yi_ - _D Xi_ _ii_ - _Dc_ +1 _Xic_ +1 <sup>2</sup> +
## ∑
_c_ +1 _Xi_
+
_c_ +1 - _Ikc_ +1 _F_
_Yi_ - _D Xi_ _ii_ - _Dc_ +1 _Xic_ +1 <sup>2</sup> + _w_
_<u>c</u>_ 2+1 _DcT_ +1 _Dc_ +1 - _Ikc_ +1 2 _F_
_c_ +1
_<u>c</u>_
2
_c_
<u>+1</u> _DcT_ +1 _Dc_ +1 - _Ikc_ +
_DcT_ +1 _Dc_ +1 - _I_
_T_
_c_
_c_ +1 _Dc_ +
1
_c_
+
_i_ - _D Xi_ _i_
_F_
+1
_i_ =
_i_
1 _Yi_ - _D Xi_ _ii_ - _Dc_ +1 _Xic_ +1 <sup>2</sup> _F_ + _w_ 1 <sup>_<u>n</u>_</sup> _kcc_ 2
#### w 2 nc +1 DcT +1 ( DQ −
_kc_ +1 <u>(</u> _K_ - _kc_ +1 <u>)</u>
<u>+</u>
_T_
_c_
_<u>nc</u>_ <u>+1</u>
2
_<u>c</u>_ <u>+</u>
+ _w_ 2 _<u>nc</u>_ <u>+1</u>
_kc_ +1 <u>(</u> _K_ - _kc_ +1 <u>)</u>
........................................ (20)
2
#### ( DQ −( c +1 ) ) F
( _c_
2
_Dc_ +1 _DQ_ −( _c_ +1 )
1 <u>(</u> _K_ - _kc_ +1 <u>)</u>
_c_ +1 _K_ - _kc_ +1
#### +1 ( DQ −( c +
_c_ +1 _K_ - _kc_
4. Experimental Results
The dataset of steel surface images as shown in Fig. 1
was collected from practical steel sheet production line.
The dataset comprises four kinds of typical surface defects
(Folding, Line, Patch, and Scratch) and one kind of nondefective (Original). There are 300 8-bit grayscale images
per class, whose image size is 200 × 200 pixels. Each image
is resized from 200 × 200 pixels to 40 × 40 pixels to avoid
over-fitting. Because of non-uniform brightness of the
images, each image is normalized to have zero mean and
unit _l_ 2-norm. We randomly choose 50% images per class
for a training dataset, and the rest is a testing dataset. The
classification accuracy is defined as follows.
where _X_ <sup>_c_</sup> <sup>+</sup> <sup>1</sup> = ( _X_ 1 _c_ + 1, _X_ 2 _c_ + 1, ..., _Xcc_ + 1).
Denote _A_ = _Y_ - _DQ_ −( _c_ + 1)( _Q_ −( _c_ + 1)) <sup>_T_</sup> _X, B_ = ( _Y_ 1− _D_ 1 _X_ 11
where _X_ <sup>_c_</sup> <sup>+</sup> <sup>1</sup> = ( _X_ 1 _c_ + 1, _X_ 2 _c_ + 1, ..., _Xcc_ + 1)
_c_
Denote _A_ = _Y_ - _DQ_ −( _c_ + 1)( _Q_ −( _c_ + 1)) <sup>_T_</sup> _X, B_ = ( _Y_ 1− _D_ 1 _X_ 11,
_Y_ 2− _D_ 2 _X_ 22, …, _Yc_ - _DcXcc_ ), _C_ = _DQ_ −( _c_ + 1), then we have
22, …, _Yc_ - _DcXcc_ ), _C_ = _DQ_ −( _c_ + 1), then we have
min _Dc_ +1 _A_ - _Dc_
## +1 A − Dc +1 X c +1 2 F + ∑ ic =1 B − Dc +1 X c +1
2
_F_
+ _B_ - _Dc_
## F ∑ i =1
_c_
_c_ _B_ - _Dc_ +1 _X_ _c_
_i_ =1
_c_ _B_ - _Dc_ +1 _X_ _c_ +
_i_ =1
## c +1 A − Dc +1 X c +1 2 + ∑ ic =1 B −
+
## c +1 A − Dc +1 X c +1 2 + ∑ ic =1 B − Dc +1 X
_c_ +
_c_
+1
_T_
_c_ +
_c_ +
_c_ +1 _Dc_ +
_DcT_ +1 _Dc_
_T_
+
_<u>c</u>_
_w_ 1 <sup>_<u>n</u>_</sup>
_<u>c</u>_ <u>+1</u>
1 <sup>_<u>n</u>_</sup> 2
_kc_ 2
_<u>c</u>_
_cc_ 2++11 _DcT_ +1 _Dc_ +1 <sup>−</sup> _Ikc_ +1 2 _F_ + _w_ 2 _kc_ +1 <u>(</u> _<u>nKc</u>_ <u>+−1</u> _kc_ +1 <u>)</u>
_<u>c</u>_ <u>+</u>
2
_c_ +
_c_
_Ikc_ +1 2 _F_ + _w_ 2 _kc_ +1 <u>(</u> _<u>nKc</u>_ <u>+−1</u> _kc_ +1 <u>)</u> _DcT_ +1 _C_
_c_ +1 _F_ 2 _k_ + <u>(</u> _K_ - _k_ + <u>)</u> _c_ +1 _F_
_c_ +1
_<u>c</u>_
<u>+</u>
2 + _w_ 2 _<u>nc</u>_ <u>+1</u>
_<u>nc</u>_ <u>+1</u> _DcT_ +1 _C_ 2
+1 <u>(</u> _K_ - _kc_ +1 <u>)</u> _F_
_c_
_c_ +1 _K_ - _kc_
+1 _K_ - _kc_ +
........................................ (21)
Denote _U_ = [ _A, B_ ], _V_ = [ _X_ <sup>_c_</sup> <sup>+</sup> <sup>1</sup>, _X_ <sup>_c_</sup> <sup>+</sup> <sup>1</sup> ], Eq. (21) is equivalent to the following problem.
_<u>N</u>_
_Acc_ =
= _<u>N</u>_ _<u>R</u>_ ............................... (25)
_N_
_Dc_ +1 _U_ - _Dc_ +1 _V_ 2 _F_ + _w_ 1 <sup>_<u>n</u>_</sup> _<u>c</u>_ 2+1 _DcT_ +1 _Dc_ +1 - _Ikc_ +
+1 _U_ - _Dc_ +1 _V_ 2 _F_ + _w_ 1 <sup>_<u>n</u>_</sup> _<u>c</u>_ 2+1 _DcT_ +1 _Dc_ +1 - _Ikc_ +1
_DcT_ +1 _Dc_ +1 - _I_
_T_
_c_ +
_c_ +1 _Dc_ +
_c_ +1 _U_ - _Dc_ +1 _V_ 2 _F_ + _w_ 1 <sup>_<u>n</u>_</sup> _<u>c</u>_ 2+1 _DcT_ +1 _Dc_ +1 - _Ikc_ +1
_c_ +1 - _Ikc_ +1 _F_
min _Dc_ +1 _U_ - _Dc_ +1 _V_ 2 _F_
_kc_ 2
_c_
_<u>c</u>_ 2+1 _DcT_ +1 _Dc_ +1 - _Ikc_ +1 2 _F_
_c_ +1
_<u>c</u>_
+
<u>+</u>
+
where _NR_ is the number of test samples that are correctly
classified, _N_ is the total number of test samples. To deal
with random influence, we do each experiment 10 times
and have the mean and standard deviation of results. The
weight parameters λ1, λ2, _w_ 1, _w_ 2 and sparsity _T_ are tuned
with 5-fold cross validation. Finally, we set λ1 = 0.1, λ2 =
0.001, _w_ 1 = 0.01, _w_ 2 = 0.1, _T_ = 5, respectively. We consider further fine-tuning may further improve the classification performance.
The relationship between classification accuracy and size
of sub-dictionary is shown in Fig. 3 . Figure 3(a), in which
the size of class-specific sub-dictionary is fixed, shows
that classification performance decreases with increasing
the size of shared sub-dictionary. The possible reasons are
that smaller shared sub-dictionary is enough to capture the
shared features of the defect images, and that larger shared
_w_ 2 _<u>nc</u>_
_kc_ +1 <u>(</u> _K_
_<u>c</u>_ <u>+1</u>
_T_
_c_ +
_<u>nc</u>_ <u>+1</u>
2
_<u>c</u>_
+ _w_ 2 _<u>nc</u>_ <u>+1</u>
_kc_ +1 <u>(</u> _K_
_F_
+1 <u>)</u>
_c_ +
_kc_ +1 ... (22)
_<u>nc</u>_ <u>+1</u> _DcT_ +1 _C_ 2
<u>(</u> _K_ - _k_ _c_ +1 <u>)</u> _F_
_c_
_<u>c</u>_ <u>+1</u> _DcT_ +1 _C_
1 <u>(</u> _K_ - _k_ _c_ +1 <u>)</u>
Similar to Eqs. (18), (22) can be solved by MOCOD
algorithm.
3.4. Classification
For the CDSDL algorithm, both the reconstructive error
associated with different class and the coding vector can
achieve good classification performance. Based on the coding vector, there are two kinds of classifier as follows.
For a global classifier, a test sample _y_ <sup>ˆ</sup> is computed over
ISIJ International, Vol. 57 (2017), No. 1
Fig. 4. The convergence curve of the CDSDL algorithm.
Fig. 3. The classification accuracy versus the number of atoms in
sub-dictionary, where the legend denotes the number of
atoms in the class-specific sub-dictionary (top) and the
shared sub-dictionary (bottom), respectively.
sub-dictionary may cause redundancy of the feature vector.
Figure 3(b), in which the size of shared sub-dictionary is
fixed, shows the classification performance improves with
increasing the size of class-specific sub-dictionary. The possible reason is that more discriminative information can be
captured by a larger class-specific sub-dictionary. In fact,
larger size of dictionary may have stronger representative
ability of details and achieve better classification performance at the expense of increasing computational load.
When the class-specific sub-dictionary reaches to a certain
size, classification performance won’t develop. Therefore,
we should make a tradeoff between classification performance and computational efficiency. As shown in Fig. 3,
when the size of shared sub-dictionary _ks_ = 2 and the size
of class-specific sub-dictionary _kc_ = 25, CDSDL can still
have higher classification accuracy 94.25%. From _kc_ = 50
to _kc_ = 25, classification accuracy only drops by 1.58%.
Therefore, the CDSDL algorithm is simple and efficient to
learn a compact, reconstructive and discriminative dictionary, which can boost classification performance and reduce
computational load.
Figure 4 shows that objective function value of the
CDSDL algorithm decreases fast and converges within
about 5–8 iterations.
Figure 5 shows that the global coding vector matrix
of training dataset and testing dataset are nearly diagonal block. Each block indicates the main part of coding
matrix for the corresponding class-specific sub-dictionary.
Therefore, the discrimination of the coding vector which
can improve classification performance is enhanced by the
CDSDL algorithm.
The CDSDL algorithm is compared with several state-ofthe-art methods, including COPAR, <sup>35)</sup> FDDL, <sup>33)</sup> LCKSVD <sup>31)</sup>
and SRC. <sup>22)</sup> As shown in Table 2, CDSDL with a local clas
Method Accuracy (%)
COPAR 91.85 ± 1.02
FDDL 51.89 ± 4.31
LCKSVD 66.99 ± 1.42
SRC 56.96 ± 1.20
CDSDL 94.25 ± 0.42
sifier achieves 94.25% classification accuracy, compared
to 91.85% for COPAR, 51.89% for FDDL, 66.99% for
LCKSVD and 56.96% for SRC. Compared to SRC, which
is the baseline method in the experiment, CDSDL improves
the classification accuracy with a margin of more than 37%.
CDSDL outperforms FDDL by about 42.36%. CDSDL is
competitive with 2.4% improvement to 91.85% achieved
by COPAR. Therefore, CDSDL has better classification
performance than these methods. Besides, a local classifier
(94.25%) of CDSDL achieves much better performance than
a global classifier (83.51%) with about 10% advancement.
The probable reason is that the number of training samples
Fig. 5. The visualization image of global coding vector matrix
(Folding, Line, Non-defect, Patch, Scratch): training dataset (top); testing dataset (bottom).
Table 2. The comparison of classification accuracy of different
methods.
ISIJ International, Vol. 57 (2017), No. 1
Fig. 6. The confusion matrix, where the element located in the
_i_ -th row and the _j_ -th column indicates the number of the
_j_ -th class sample is misclassified to the _i_ -th class, _j_ ≠ _i_ .
Fig. 7. Some scratch samples are misclassified to other defects: (a)
Scratch→Folding; (b) Scratch→Line; (c) Scratch→Patch.
Fig. 8. The same image is polluted by Gaussian noise: (a) 15 dB;
(b) 20 dB; (c) 25 dB; (d) Original.
of each class is relatively large, or the learned class-specific
sub-dictionary has large size.
According to Fig. 6, error rate of scratch is bigger than
other defects. There are 33 images of scratch are misclassified to 9 folding, 10 line and 13 patch. The possible reasons
for this phenomenon are listed as follows. (1) These defects
are similar with scratch in size, direction and illumination.
(2) The CDSDL algorithm is sensitive to scratch defect,
and thus generates the improper feature representation. We
will make a further research for this phenomenon. Figure 7
shows that some scratch samples are misclassified to other
defects.
To evaluate robustness of the CDSDL algorithm, additive Gaussian noise was added to some surface images. We
randomly choose 50% images per class as a training dataset,
and the rest is a testing dataset. All the training samples are
Table 3. The classification accuracy of the CDSDL algorithm for
different Gaussian noise.
SNR (dB) Accuracy (%)
15 65.77 ± 2.50
20 85.88 ± 1.63
25 92.45 ± 0.29
added to Gaussian noise with different signal to noise ratio
(SNR), including 15 dB, 20 dB and 25 dB. As shown in
Fig. 8, the same image is polluted by Gaussian noise with
different SNR. According to Table 3, CDSDL can achieve
92.45% classification accuracy even at 25 dB noise.
5. Conclusion
A classification method based on class-specific and
shared sub-dictionary learning is presented in the paper. The
class-specific sub-dictionary learning and shared sub-dictionary learning are jointly formulated with reconstructive
error, sparse and discriminative promotion constraints. Each
class-specific sub-dictionary has good performance to represent the sample of corresponding class, and the shared subdictionary contributes to reconstruction of all the samples.
Therefore, the associated feature representation based on
class-specific sub-dictionary and shared sub-dictionary not
only faithfully represent the sample from anyone class, but
also are more compact and discriminative for classification.
Experimental results show that the CDSDL algorithm can
achieve better accuracy in classification of surface defects
of steel sheet.
Acknowledgements
This work was supported by the Natural Science Foundation of China, under grant No. 51174151, and the Specialized
Research Fund for the Key Science and Technology Innovation Plan of Hubei Province, under grant No. 2013AAA011.
The authors would like to thank Kechen Song and Yungang
Tan for providing the defect images. MATLAB procedure
was revised and optimized from. <sup>27,33,35,44)</sup>
REFERENCES
1) T. S. Newman and A. K. Jain: _Comput. Vis. Image Underst._, 61
(1995), 231.
2) D. Brzakovic and N. Vujovic: _Pattern Recogn._, 29 (1996), 1401.
3) D. M. Tsai and T. Y. Huang: _Image Vis. Comput._, 21 (2003), 307.
4) E. N. Malamas, E. G. M. Petrakis, M. Zervakis, L. Petit and J. D.
Legat: _Image Vis. Comput._, 21 (2003), 171.
5) X. H. Xie: _ELCVIA_, 7 (2008), 1.
6) R. Shanmugamani, M. Sadique and B. Ramamoorthy: _Measurement_,
60 (2015), 222.
7) B. K. Kwon, J. S. Won and D. J. Kang: _Int. J. Precis. Eng. Manuf._,
16 (2015), 965.
8) N. Neogi, D. K. Mohanta and P. K. Dutta: _EURASIP J. Image. Video_
_Process._, 1 (2014), 1.
9) H. J. Hu, Y. X. Li, M. F. Liu and W. H. Liang: _Multimed. Tools Appl._,
69 (2014), 199.
10) H. J. Hu, Y. Liu, M. F. Liu and L. Q. Nie: _Neurocomputing_, 181
(2015), 86.
11) M. F. Liu, Y. Liu, H. J. Hu and L. Q. Nie: _J. Vis. Commun. Image._
_R._, 37 (2016), 70.
12) P. Caleb and M. Steuer: Proc. IEEE KES, IEEE, Piscataway, NJ,
(2000), 103.
13) R. Medina, F. Gayubo, L. M. González-Rodrigo, D. Olmedo, J.
Gómez-García-Bermejo, E. Zalama and J. R. Perán: _Int. J. Adv._
_Manuf. Tech._, 57 (2011), 1087.
ISIJ International, Vol. 57 (2017), No. 1
14) X. W. Zhang, Y. Q. Ding, Y. Y. Lv, A. Y. Shi and R. Y. Liang:
_Expert Syst. Appl._, 38 (2011), 5930.
15) C. S. Lee, C. H. Choi, J. Y. Choi, Y. K. Kim and S. H. Choi: Proc.
IEEE ICIP, IEEE, Piscataway, NJ, (1996), 673.
16) F. Pernkopf: _Pattern Anal. Appl._, 7 (2004), 333.
17) S. Ghorai, A. Mukherjee, M. Gangadaran and P. K. Dutta: _IEEE_
_Trans. Instrum. Meas._, 62 (2013), 612.
18) K. C. Song and Y. H. Yan: _Appl. Surf. Sci._, 285 (2013), 858.
19) M. X. Chu and R. F. Gong: _ISIJ Int._, 55 (2015), 1956.
20) K. Xu, S. H. Liu and Y. H. Ai: _Image Vis. Comput._, 35 (2015), 23.
21) J. Wright, Y. Ma and J. Mairal: _Proc._ _IEEE_, 98 (2015), 1031.
22) J. Wright, A. Y. Yang, A. Ganesh, S. S. Sastry and Y. Ma: _IEEE_
_Trans. Pattern Anal._, 31 (2008), 210.
23) I. Tošić and P. Frossard: _IEEE Signal Proc. Mag._, 28 (2011), 27.
24) R. Rubinstein, A. M. Bruckstein and M. Elad: _Proc._ _IEEE_, 98 (2010),
1045.
25) K. Engan, S. O. Aase and J. H. Husøy: _Signal Process._, 80 (2000),
2121.
26) M. Aharon, M. Elad and A. K. Bruckstein: _IEEE Trans. Signal Pro-_
_cess._, 54 (2006), 4311.
27) I. Ramirez, P. Sprechmann and G. Sapiro: Proc. IEEE CVPR, IEEE,
Piscataway, NJ, (2010), 3501.
28) S. H. Gao, I. W. H. Tsang and Y. Ma: _IEEE Trans. Image Process._,
23 (2014), 623.
29) K. Huang and S. Aviyente: Proc. NIPS, Vol. 19, IEEE, Piscataway,
NJ, (2006), 609.
30) Q. Zhang and B. X. Li: Proc. IEEE CVPR, IEEE, Piscataway, NJ,
(2010), 2691.
31) Z. L. Jiang, Z. Lin and L. S. Davis: _IEEE Trans. Pattern Anal._, 35
(2013), 2651.
32) J. Mairal, F. Bach and J. Ponce: _IEEE Trans. Pattern Anal._, 34
(2012), 791.
33) M. Yang, L. Zhang, X. C. Feng and D. Zhang: _Int. J. Comput. Vis._,
109 (2014), 209.
34) N. Zhou and J. P. Fan: _IEEE Trans. Pattern Anal._, 36 (2013), 715.
35) D. H. Wang and S. Kong: _Pattern Recogn._, 47 (2014), 885.
36) M. Elad, M. A. T. Figueiredo and Y. Ma: _Proc. IEEE_, 98 (2010),
972.
37) A. M. Bruckstein, D. L. Donoho and M. Elad: _SIAM Rev._, 51 (2009),
34.
38) H. Zou and T. Hastie: _J. R. Stat. Soc. B_, 67 (2005), 301.
39) A. Y. Yang, A. Genesh and Z. H. Zhou: _IEEE T. Image Process._, 22
(2013), 3234.
40) Z. Zhang, Y. Xu, J. Yang, X. L. Li and D. Zhang: _IEEE Access_, 3
(2015), 490.
41) Y. C. Pati, R. Rezaiifar and P. S. Krishnaprasad: Proc. of 27th Asilomar Conf. on Signals, Systems and Computers, IEEE, Piscataway,
NJ, (1993), 40.
42) A. Beck and M. Teboulle: _SIAM J. Imaging Sci._, 2 (2009), 183.
43) R. O. Duda, P. E. Hart and D. G. Stork: Pattern Classification, 2nd
ed., John Wiley&Sons, New York, (2001), 30.
44) I. Ramirez, F. Lecumberry and G. Sapiro: Technical Report
2279, Institute for Mathematics and its Application, University of
Minnesota, MN, (2009), 1.
45) J. M. Bioucas-Dias and M. A. T. Figueiredo: _IEEE Trans. Image_
_Process._, 16 (2007), 2992.
Appendix
Appendix 1: Derivation of _F_ ( _Xi_ ) in Eq. (12)
= _<u>Eij</u>_, _Pi_ = _<u>Eii</u>_
_i_
_<u>i</u>_
_i_
_<u>i</u>_
_i_
Denote _Qij_ = _<u>Ei</u>_
_<u>Eii</u>_
_j_ = _<u>Ei</u>_
_Pi_ = _<u>i</u>_ - _<u>i</u>_ = _<u>i</u>_ - _Qii_
_ni_ _N_ _ni_
## = Ei − Ei = Ei − Qii, R = ∑ cj =1 X jQij
_ni_ _N_ _ni_ _j_ ≠ _i_
_i_
_<u>i</u>_
_i_
_<u>Eii</u>_
## = ∑ cj =1 X jQij,
_j_ ≠ _i_
_i_ _N_
_ni_
_N_
_i_
then, we have
_c_ _i_ _i_ _c_
2 _<u>i</u>_ _<u>i</u>_
## ∑ Mi − M F = Xi E − Xi E + ∑
_i_ =1 _ni_ _N_ _j_ =1
_j_ ≠ _i_
2
_F_
_j_
_c_
_Mi_ - _M_ 2 _F_ = _Xi_ <sup>_<u>E</u>_</sup> _<u>i</u>_
2
_i_
_j_ =1
_j_ ≠ _i_
_c_
=1
_i_ _i_
<sup>_<u>E</u>_</sup> _<u>i</u>_ - _Xi_ <sup>_<u>E</u>_</sup> _<u>i</u>_
_ni_ _N_
_i_
_i_ _c_ _i_
_<u>i</u>_ _<u>j</u>_
<sup>_<u>E</u>_</sup> + _X_ _j_ <sup>_<u>E</u>_</sup>
## ∑
_N_ _j_ =1 _N_
_i_
_<u>i</u>_
_N_
_i_
_<u>j</u>_
_<u>i</u>_
_ni_
_i_ - _M_ _F_ = _i_
_i_ =
1
2
_F_
_i_
_jQij_
_i_ _i_
_i_
- _X Qi_ _i_ +
_j_ =1
_j_ ≠ _i_
_j_ =1
_j_ ≠ _i_
1
=
_i_
_<u>i</u>_
_Xi_ <sup>_<u>E</u>_</sup>
_i_
<sup>_<u>E</u>_</sup> _<u>i</u>_ - _X Qi_ _ii_ + _X_ _jQij_
## ∑
_ni_ _j_ =1
_i_
## ∑ c
_c_
_<u>i</u>_
_i_
2
_i_
_i_
_i_
_i_
_jQij_
_jQij_
_i_
_<u>i</u>_
_Xi_ <sup>_<u>E</u>_</sup>
_i_ _i_
_j_ =
_j_ = 1
_j_ ≠ _i_
= 1
_c_
_j_ =1
_j_ ≠ _i_
_j_ =1
_j_ ≠ _i_
_<u>i</u>_ _i_
= _Xi_ <sup>_<u>E</u>_</sup> - _X Qi_ _i_
## ∑ c X jQij = Xi Eii − Qii − ∑ c
_n_
_c_
_Xi_ _<u>Eii</u>_
_i_
<sup>−</sup>
2
_F_
_<u>i</u>_ _i_
<sup>_<u>E</u>_</sup> - _X Qi_ _i_ - _X_ _jQ_
## ∑
_ni_ _j_ = 1
_i_
_i_
_<u>i</u>_
_i_
_<u>i</u>_
_i_
## i − Qii − ∑ X jQ
_ni_ _j_ =1
1
_F_
## ∑ c
_j_ =1
_j_ ≠ _i_
= _Xi_ _Pi_
_c_
_i_ _Pi_ - _X_ _jQij_
## ∑
_Xi_ _Pi_ - _X_ _jQij_
## ∑
_j_ ≠ _i_
2
_F_
_j_ =1
=1
≠ _i_
_j_
_j_
## − ∑ cj =1 X jQij
_j_ ≠ _i_ _F_
_c_
2
## For the i -th class, we have Xi Pi − ∑ cj =1 X jQij
_j_ ≠ _i_
## ∑ cj =1 X j Pj − ∑ lc =1 X Ql lj
_j_ ≠ _i_ _l_ ≠ _j_ _F_
_c_
## cj =1 X j Pj − ∑ lc =
_j_ ≠ _i_ _l_ ≠
2
## For the non i -th class, we have ∑ cj =1 X j Pj − ∑ lc =1 X Ql lj
Choose the _j_ -th part of the _i_ -th class, we have
_lc_ =1 _X Ql_ _lj_
_l_ ≠ _j_
2
_l_ =1
_l_ ≠ _j_
=1
_c_
## X j Pj − ∑ X Ql lj = X j E j
_jQj_
_j_
_c_
_j_
_c_ _c_
## ∑ X Ql lj = X j E j − X jQjj − ∑
_l_ =1 _n_ _j_ _l_ =1
_l_ ≠ _j_ _F_ _l_ ≠ _j_
## − ∑ X Ql lj = X j E j − X jQjj −
_c_
_l_ _l_
2
_F_
_j_
_j_ _Pj_ - _X Ql_ _l_
_<u>j</u>_ _j_
## E − X jQj − ∑ X Ql l
_n_ _j_ _l_ =1
_j_
_<u>j</u>_
_j_
_j_
_l_ =1
_l_ ≠
_l_ =1
_l_ ≠ _j_
_F_
_l_ _l_
_j_
_c_
_j_ _j_
## X jQj + ∑ X Ql l
_l_ =1
_l_ ≠ _j_
_l_ =1
_l_ ≠ _j_
=1
_j_
=
_<u>j</u>_
_X_ _j_ <sup>_E_</sup>
_j_
_c_
_n_ _j_
_j_
_<u>j</u>_
_j_
_j_
_j_
− _X_ _jQj_ +
2
_F_
_j_
_<u>j</u>_
## − X Qi ij + ∑ lc =1 X Ql lj
<sup></sup> _l_ ≠ _i_ <sup></sup>
_F_
_i_ _i_
_j_
_<u>j</u>_
Separate _Xi_, we have _X_ _j_ <sup>_E_</sup>
2
## ∑ lc =1 X Ql lj
_l_ ≠ _i_ <sup></sup>
_c_
_lc_ =1 _X Ql_ _lj_
_l_ ≠ _i_
_l_ _l_
_<u>j</u>_ _j_ _c_ _j_
## j E − X Qi i + ∑ l =1 X Ql l
_n_ _j_ <sup></sup> _l_ ≠ _i_
_j_
_j_
_c_
_<u>j</u>_
= _X_ _j_ <sup>_E_</sup>
_lc_ =1 _X Ql_ _lj_
_l_ ≠ _i_
_l_ _l_
## ∑ cj =1 Tj −
_j_ ≠ _i_
2
=1 _Tj_ - _X Qi_ _ij_,
_j_
_<u>j</u>_
_j_
## − ∑ lc =1 X Ql lj − X Qi ij
_l_ ≠ _i_
_F_
2
2
= _Tj_ - _X Qi_ _ij_
2
- _X Qi_ _ij_
_F_
_j_
_j_
## j E j − ∑ lc =1 X Ql lj − X Qi ij
_n_ _j_ _l_ ≠ _i_
_i_ _i_
## Expand the anyone non i -th class, ∑ cj =1 Tj − X Qi ij
then, we have
_c_
_j_ =1 _Tj_ - _X Qi_ _i_
_j_ ≠ _i_ _F_
2 2 2
2
## ∑
## − Mi 2 F + ∑ Mi − M 2 F = X Oi i 2 F − Xi Pi −
## Xi − Mi 2 F + ∑ Mi − M 2 F = X Oi i 2 F − Xi Pi − R
_i_ - _Mi_ _F_
_i_
_i_ =1
_i_ - _M_ _F_ = _X Oi_ _i_ _F_ - _Xi_ _Pi_ - _R_ _F_
=1
_n_
_i_ × _n_
1 - 0
- -
0 - 1
_ni_ × _ni_
2
1 - 1
1 - 0
_c_
2
_j_
- _Tj_ ## ∑
## ∑ c
_F_
_j_ =1
_j_ ≠ _i_
_j_ =1
_j_ ≠ _i_
=1
_Tj_ - _X Qi_ _i_
_j_ - _X Qi_ _i_
Denote _Eij_
=
1 - 1
- -
1 - 1
, _Ini_ × _ni_
_i_ ×
_i_ × _ni_
=
,
1 - 1
_ni_ × _n_ _j_
0 - 1
Calculate the first derivative with respect to _Xi_, we have
_i_
_<u>i</u>_
_i_
_Oi_ = _Ini_ × _ni_ - _<u>Ei</u>_
_i_ _i_ _<u>F</u>_ =
∂ _Xi_
_i_ _i_ _<u>F</u>_
_i_ _<u>F</u>_
= 2 _X O Oi_ _i_ _i_
_Xi_
= _Ini_ × _ni_ - _<u>Ei</u>_, then, we have
∂
2
2
_i_ = _Ini_ × _ni_ - _ni_
_X Oi_ _i_
_i_ _i_ _i_
_T_
_ni_ × _ni_ _F_
_ni_ × _ni_
_i_ ×
_i_
<u>1</u> <u>1</u>
∂ _Xi_ _Pi_
_Xi_ _Pi_ - _R_
2
2
1 - 0
- -
0 - 1
_ni_ × _ni_
_T_
_i_
1 - 0
2
_i_ _PPi_ _i_
_T_
_ni_ _ni_
_i_ _ni_
#### i Pi − R F = 2( Xi PPi iT − RPiT )
∂ _Xi_
_i_ _Pi_ - _R_ _<u>F</u>_
_<u>F</u>_ = 2( _Xi_ _PPi_ _iT_ - _RPi_
_Xi_
- _M_ 2 =
_i_ _F_
_i_
## ∑
_i_
_Xi_ - _Mi_ 2 _F_ = _Xi_ - - - - _Xi_
_i_ - _Mi_ _F_ = _Xi_
- -
<u>1</u> <u>1</u>
_c_
2
## ∑
_j_ =1
_j_ =1
_<u>j</u>_ <u>≠</u> _<u>i</u>_
_j_ =1
_<u>j</u>_ <u>≠</u> _<u>i</u>_
2
_F_
0 - 1
_j_ _j_
#### = 2∑ X Qi i ( Qi ) − Tj ( Qi
∂ _Xi_ _j_ =1 <sup></sup>
_i_ _i_
_c_
_Tj_ - _X Qi_ _i_
_j_ _i_ _i_ _F_ _c_ _j_ _j_ _T_ _j_
#### = 2∑ X Qi i ( Qi ) − Tj ( Qi )
∂ _Xi_ _j_ =1 <sup></sup>
_j_ - _X Qi_ _i_
_j_
∂∑ _c_ _j_ =1 _Tj_
1
<sup></sup>
_j_ _Qi_
_T_
_j_
_ni_ _ni_
_i_
_T_
_j_
_j_
_i_ _ni_
_j_ =1
_j_ ≠ _i_
_j_ =1
_j_ ≠ _i_
_i_
2
2
_Xi_ _Ini_ × _ni_ - _Xi_ <sup>_<u>E</u>_</sup> _<u>i</u>_
= _Xi_ _Ini_ × _ni_ - _Xi_ <sup>_<u>E</u>_</sup> _<u>i</u>_ =
_i_ _i_ _F_
×
_i_ _Ini_ × _ni_ - _i_
_<u>i</u>_
<sup>_<u>E</u>_</sup> = _X Oi_ _i_
_ni_ _F_
_i_
_<u>i</u>_
_i_ _F_
섹션 본문
섹션 본문이 없습니다.
참고문헌 38건
- Label Consistent K-SVD: Learning a Discriminative Dictionary for Recognition IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2013 10.1109/tpami.2013.88
- Fast L1-Minimization Algorithms For Robust Face Recognition arXiv (Cornell University) · Cornell University · 2010 10.48550/arxiv.1007.3753
- Detection of surface defects on raw steel blocks using Bayesian network classifiers Pattern Analysis and Applications · Springer Science+Business Media · 2004 10.1007/s10044-004-0232-3
- From Sparse Solutions of Systems of Equations to Sparse Modeling of Signals and Images SIAM Review · Society for Industrial and Applied Mathematics · 2009 10.1137/060657704
- Sparse Representation Based Fisher Discrimination Dictionary Learning for Image Classification International Journal of Computer Vision · Springer Science+Business Media · 2014 10.1007/s11263-014-0722-8
- Detection and classification of surface defects of gun barrels using computer vision and machine learning Measurement · Elsevier BV · 2014 10.1016/j.measurement.2014.10.009
- On the Role of Sparse and Redundant Representations in Image Processing Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 2010 10.1109/jproc.2009.2037655
- A Survey of Automated Visual Inspection Computer Vision and Image Understanding · Elsevier BV · 1995 10.1006/cviu.1995.1017
- Designing a defect classification system: A case study Pattern Recognition · Elsevier BV · 1996 10.1016/0031-3203(95)00166-2
- Multi-frame compression: theory and design Signal Processing · Elsevier BV · 2000 10.1016/s0165-1684(00)00072-4
- Weakly Supervised Visual Dictionary Learning by Harnessing Image Attributes IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2014 10.1109/tip.2014.2364536
- Automated surface inspection for statistical textures Image and Vision Computing · Elsevier BV · 2003 10.1016/s0262-8856(03)00007-6
- Automated visual classification of frequent defects in flat steel coils The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2011 10.1007/s00170-011-3352-0
- A New TwIST: Two-Step Iterative Shrinkage/Thresholding Algorithms for Image Restoration IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2007 10.1109/tip.2007.909319
- Genetic algorithm and mathematical morphology based binarization method for strip steel defect image with non-uniform illumination Journal of Visual Communication and Image Representation · Elsevier BV · 2015 10.1016/j.jvcir.2015.04.005
- Classification of defects in steel strip surface based on multiclass support vector machine Multimedia Tools and Applications · Springer Science+Business Media · 2012 10.1007/s11042-012-1248-0
- A vision inspection system for the surface defects of strongly reflected metal based on multi-class SVM Expert Systems with Applications · Elsevier BV · 2010 10.1016/j.eswa.2010.11.030
- Sparse Representation for Computer Vision and Pattern Recognition Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 2010 10.1109/jproc.2010.2044470
- Automatic Defect Detection on Hot-Rolled Flat Steel Products IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2012 10.1109/tim.2012.2218677
- Application of Shearlet transform to classification of surface defects for metals Image and Vision Computing · Elsevier BV · 2015 10.1016/j.imavis.2015.01.001
- A survey on industrial vision systems, applications and tools Image and Vision Computing · Elsevier BV · 2003 10.1016/s0262-8856(02)00152-x
- 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
- A Review of Recent Advances in Surface Defect Detection using Texture analysis Techniques ELCVIA Electronic Letters on Computer Vision and Image Analysis · Computer Vision Center Press · 2008 10.5565/rev/elcvia.268
- A Fast Iterative Shrinkage-Thresholding Algorithm for Linear Inverse Problems SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2009 10.1137/080716542
- Jointly Learning Visually Correlated Dictionaries for Large-Scale Visual Recognition Applications IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2013 10.1109/tpami.2013.189
- Regularization and Variable Selection Via the Elastic Net Journal of the Royal Statistical Society Series B (Statistical Methodology) · Oxford University Press · 2005 10.1111/j.1467-9868.2005.00503.x
- Orthogonal matching pursuit: recursive function approximation with applications to wavelet decomposition 2002 10.1109/acssc.1993.342465
- Robust Face Recognition via Sparse Representation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2009 10.1109/tpami.2008.79
- A Survey of Sparse Representation: Algorithms and Applications IEEE Access · Institute of Electrical and Electronics Engineers · 2015 10.1109/access.2015.2430359
- Review of vision-based steel surface inspection systems EURASIP Journal on Image and Video Processing · Springer Nature · 2014 10.1186/1687-5281-2014-50
- $rm K$-SVD: An Algorithm for Designing Overcomplete Dictionaries for Sparse Representation IEEE Transactions on Signal Processing · Institute of Electrical and Electronics Engineers · 2006 10.1109/tsp.2006.881199
- Task-Driven Dictionary Learning IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2011 10.1109/tpami.2011.156
- Dictionaries for Sparse Representation Modeling Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 2010 10.1109/jproc.2010.2040551
- A classification-oriented dictionary learning model: Explicitly learning the particularity and commonality across categories Pattern Recognition · Elsevier BV · 2013 10.1016/j.patcog.2013.08.004
- Fast defect detection for various types of surfaces using random forest with VOV features International Journal of Precision Engineering and Manufacturing · Springer Science+Business Media · 2015 10.1007/s12541-015-0125-y
- Invariant Feature Extraction Method Based on Smoothed Local Binary Pattern for Strip Steel Surface Defect ISIJ International · The Iron and Steel Institute of Japan · 2015 10.2355/isijinternational.isijint-2015-201
- Surface defect classification in large-scale strip steel image collection via hybrid chromosome genetic algorithm Neurocomputing · Elsevier BV · 2015 10.1016/j.neucom.2015.05.134
- Fast <formula formulatype="inline"><tex Notation="TeX">$\ell_{1}$</tex></formula>-Minimization Algorithms for Robust Face Recognition IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2013 10.1109/tip.2013.2262292