# Sparse Weighting for Pyramid Pooling-Based SAR Image Target Recognition
## 2 SAR Image Recognition with Sparse Weighting Spatial Pyramid Pooling
### Determination of Sub-Region Weights  
The traditional SPM models use all the extracted local descriptors for image representation; therefore, some of them might not be the objects to be recognized. Thus, it was required to learn the spatial weights to boost the target part and weaken the background parts. Taking the sparse representation into account, the observation to be followed was that the target part was sparser than the background one. The feature vectors of the sub  
Figure 1: Overview of the SAR image target recognition flowchart.  
regions at every pyramid level were weighted on the residual basis to determine their dependability [21]. Then, the following optimization problem [10] was obtained:  
\[\delta_{k}=\text{argmin}_{r_{k}}\left\{||F_{k}x_{k}-y_{k}||_{2}^{2}+\lambda||x_{ k}||_{1}\right\}\text{ s.t. }\text{ }\ 1\leq k\leq K\, \tag{3}\]  
where \(y_{k}\) is the pooling feature for each sub-region, and \(F_{k}\) is the dictionary.  
The residuals of a sub-region can be measured simply by using the L2-norm as follows:  
\[r_{kc}=||F_{k}\delta_{c}(\hat{x}_{k})-y_{k}||_{2}, \tag{4}\]  
where \(r_{kc}\) is the residual corresponding to the \(c\)th class of the \(k\)th sub-region, \(\delta_{c}(\hat{x}_{k})\) is the discriminative function, which selects the elements related with the \(c\)th class in \(\hat{x}_{k}\), \(c=[1,2,\cdots,C]\), and \(C\) is the class number of the training dataset.  
All the residuals of the \(k\)th sub-region were concatenated to generate the residual vector \(r_{k}\) as follows:  
\[r_{k}=[r_{k1},r_{k2},\cdots,r_{kC}]. \tag{5}\]  
According to the theory of SR [10], target sub-regions can be accurately represented only by the training samples from the same class. Therefore, the residual vector produced contains only one small element. The background sub-regions could be far away from every subspace spanned by the training samples of each class but nearly within the subspace spanned by all training samples of all classes. The residual vector produced could include almost similar elements. According to the abovementioned analysis, the following function was applied for evaluating the sub-region sparsity:  
\[\varsigma_{k}=\frac{\text{min}(r_{k})}{\text{mean}(r_{k})}. \tag{6}\]  
When \(r_{k}\) has only a single zero or near zero residual, \(\varsigma_{k}\) reaches the minimum value 0. This shows that the sub-region could be well represented by its subspace. When all residuals in \(r_{k}\) are nonzero value and equal, \(\varsigma_{k}\) reaches the maximum value 1. This indicates that the sub-region could contain noise or it could be the background part.  
This is verified by the numerical value results shown in Figure 2. Figure 2a,b are example images, which illustrate the distribution of sub-regions in the construction of a three-level pyramid. Figure 2c,d show \(\varsigma_{k}\) of the sub-regions corresponding to Figure 2a,b respectively. The obtained residuals indicated that the residuals' sparsity \(\varsigma_{k}\) generated in the sub-regions located in the target parts (such as the sub-regions marked by 11 and 12 in Figure 2a) was smaller than the background parts (such as the sub-regions marked by 9 and 10 in Figure 2a) in the third-level pyramid. Additionally, a difference existed between the residual values in the different resolutions, such that the residuals were much greater in the low resolution level than in the high ones, in particular, the target parts. The reason could be that more background cluster and speckle noise was included in a larger region. Therefore, in order to differentiate the target sub-regions from the background ones, the residual could be employed to obtain the weighted feature vector.  
To tackle this problem, a simple way was to impair the feature representation of the background sub-regions for the classification. This was achieved by weighting all sub-regions with the reciprocal of the sparsity: \(\omega_{k}\), which is viewed as the dependability:  
\[\omega_{k}=\frac{1}{\varsigma_{k}} \tag{7}\]