Skip to main content
. 2016 Aug 16;16(8):1296. doi: 10.3390/s16081296
Algorithm 1: Weighted Kernel Sparse Representation Classifier
1. Hierarchical Features Extraction based on CENTRIST
2. WKSR:
Initialize the weight in each block as 1: ωi=1
While not converge, do
(a) Compute weighted kernel sparse representation
α^i=argminα{i=1Bωik(yi,yi)+αiTi=1BωikXiXiαi2αiTi=1BωikXiyi+λαi1}
(b) Compute the reconstruction residual
ei=φ(yi)φ(Xi)αi22=k(yi,yi)+α^jTkXiXiα^j2α^jTkXiyi
(c) Compute the weight value
ω(ei)=12πσ2exp(ei22σ2)
(d) Checking convergence condition
i=1B(ωi(t)ωi(t1))2/i=1B(ωi(t1))2<τ
where τ is a small positive scalar and ωi(t) is the weight value of ith block in the iteration t.
3. Do classification
identity=argminj{i=1Bωik(yi,yi)+α^jTi=1BωikXi,jXi,jα^j2α^jTi=1BωikXi,jyi},j=0,1
where Xi,j the sub-matrix of Xi associated with the jth class, α^j being the representation coefficient vector associated with the jth class.