## Explainable and Reliable Machine Learning by Exploiting Large-Scale and Heterogeneous Data

View this Special IssueResearch Article | Open Access

Xin Wang, Can Tang, Ji Li, Peng Zhang, Wei Wang, "Image Target Recognition via Mixed Feature-Based Joint Sparse Representation", *Computational Intelligence and Neuroscience*, vol. 2020, Article ID 8887453, 8 pages, 2020. https://doi.org/10.1155/2020/8887453

# Image Target Recognition via Mixed Feature-Based Joint Sparse Representation

**Academic Editor:**Nian Zhang

#### Abstract

An image target recognition approach based on mixed features and adaptive weighted joint sparse representation is proposed in this paper. This method is robust to the illumination variation, deformation, and rotation of the target image. It is a data-lightweight classification framework, which can recognize targets well with few training samples. First, Gabor wavelet transform and convolutional neural network (CNN) are used to extract the Gabor wavelet features and deep features of training samples and test samples, respectively. Then, the contribution weights of the Gabor wavelet feature vector and the deep feature vector are calculated. After adaptive weighted reconstruction, we can form the mixed features and obtain the training sample feature set and test sample feature set. Aiming at the high-dimensional problem of mixed features, we use principal component analysis (PCA) to reduce the dimensions. Lastly, the public features and private features of images are extracted from the training sample feature set so as to construct the joint feature dictionary. Based on joint feature dictionary, the sparse representation based classifier (SRC) is used to recognize the targets. The experiments on different datasets show that this approach is superior to some other advanced methods.

#### 1. Introduction

In recent years, sparse representation classification (SRC) approach has successfully been used in the field of image recognition. Compared with other methods, SRC is robust to illumination, occlusion, and noise. In the feature extraction stage, the traditional image recognition methods based on sparse representation usually use the original samples directly or the low-dimensional samples after dimensionality reduction as the atoms to construct the dictionary. However, the dictionary constructed in this way cannot effectively represent the test samples, and it is difficult to make full use of the information hidden between the training samples. So, many scholars began to study the use of various features in the construction of dictionaries.

Gabor transform is a windowed Fourier transform, first proposed by Lee [1]. Later, Gabor wavelet transform was put forward by combining Gabor transform with wavelet transform. Different from the traditional Fourier transform, Gabor wavelet transform can easily adjust the frequency and direction of the filter, so the signal features obtained by Gabor wavelet transform have good discrimination in the time-space domain and the frequency domain. Using Gabor wavelet transform to extract the features of the original samples for sparse representation classification can avoid the problems caused by the direct construction of dictionaries from the original samples to some extent. Lu and Zhang proposed a face recognition method based on discriminant dictionary learning, which obtained the Gabor amplitude images of the faces through Gabor filter. Then, they used the Gabor amplitude images to construct a new dictionary for sparse representation classification, which improved the recognition rate of the face images in the uncontrolled environment [2].

As a popular image classification and recognition framework, convolutional neural network (CNN) has attracted a great deal of scholarly attention. However, CNN needs a large number of samples for training. In reality, many samples are not easily obtained, and the cost of CNN parameters adjustment is also large. CNN can extract a variety of features, such as texture, shape, color, and topology at the same time, so it is also very suitable to be used as a tool to extract image features [3, 4]. Zhang et al. proposed a CNN-GRNN model for image classification and recognition [5]. The model used CNN to extract image features and then used general regression neural network (GRNN) for classification and recognition. The deep features extracted by CNN enabled the method to have a good recognition effect. In order to better extract the features, the image superresolution can be applied for the image reconstruction first [6].

When Gabor wavelet transform is used to extract features for target recognition, the impact of light condition transformation on recognition can be reduced. At the same time, it has better robustness for image deformation and rotation to some extent. Therefore, this paper proposes an image target recognition method based on mixed features and joint sparse representation (M-JSR). The Gabor wavelet feature extracted by Gabor wavelet transform and the deep feature extracted by CNN were combined to form the hybrid feature and carry out adaptive weighting and PCA dimensionally reduction for mixed features and finally combined with the joint sparse model for classification recognition. The problem of poor representation ability of the original dictionary is avoided by building the dictionary with mixed features instead of the original sample. Compared with using CNN for classification recognition, M-JSR does not require a large number of training samples nor does it need a lot of time to adjust parameters. Moreover, the joint sparsity model divides the dictionary into the public features part and the private features part, so that the dictionary has better discrimination ability, and thus improves the recognition accuracy.

#### 2. Feature Extraction

##### 2.1. Gabor Wavelet Feature Extraction

Gabor wavelet transform has unique advantages in the representation, and analysis of image signals for images can be processed in different scales and directions. In simple terms, Gabor wavelet transform is used to convolve a set of Gabor filter functions with a given image signal.

In general, the two-dimensional Gabor function can be expressed as [1]where , represents the direction of the filter, , represents the maximum frequency, *f* is the interval factor of the kernel function in the frequency domain, and *u* and represent the direction and scale of Gabor wavelet, respectively. Researches show that using 5 scales and 8 directions can get the best effect [7]. *m* and *n* represent the spatial coordinates of the image, is the radius of the Gaussian function (which is the size of the two-dimensional Gabor wavelet) and *i* is a complex number operator.

Assume the input image is , thenwhere represents the Gabor wavelet features of the image .

##### 2.2. Deep Feature Extraction

Convolutional neural network (CNN) [8] is a feedforward neural network, which is essentially a multilayer perceptron. A complete convolutional neural network consists of the input layer, the convolutional layer, the subsampling layer (pooling layer), and the fully connected layer. The convolution layer is used to extract the features of the input data, and it generally contains multiple convolution kernels. The pooling layer mainly compresses the features which are extracted by the convolution layer to decrease the complexity of network computing and improve the robustness. The full connection layer combines the previously extracted features nonlinearly and sends the output value to the classifier, such as softmax classifier. Therefore, in addition to image classification, CNN can also be used as a tool to extract image features.

For extracting sparse features, we draw on the viewpoint of the literature [9–11] about network design. Visual geometry group networks (VGGNets) proposed by Simonyan and Zisserman have significantly improved image recognition performance by deepening the network to 19 layers. VGG19 network is used to extract deep features, and its structure is shown in Figure 1. In VGG19, the convolution filters are set to 3×3, and the max pooling is 2×2 with stride 2. VGG19 has better performance than other convolutional network models in extracting target features. As shown in Figure 1, the number of convolution kernels at the next layer is doubled when the size of the feature map is reduced by half through the max pooling layer. VGG19 ends with three fully connected layers and softmax function.

The convolution kernel of CNN convolutional layer can automatically extract complex global and local features from the image. The convolution kernels of shallow layers in the CNN network extract mostly texture and detail features. Relatively speaking, the deeper the layers are, the more representative the extracted features will be, while the resolution of the feature maps will become lower. As shown in Figure 2, the middle part is the original figure, the left side is the feature extracted by the convolution layer of the first part of VGG19 network, and the right side is the feature extracted by the convolution layer of the second part of VGG19 network.

#### 3. Joint Sparsity Model

##### 3.1. Joint Sparsity Model

The joint sparsity model (JSM) was originally used for the coding of multiple related signals in distributed compressed sensing scenes [12]. In JSM, according to the intrasignal and the intersignal correlation, a group of related signals can be regarded as a signal set. Then, each signal in the signal set can be jointly represented by the public feature of this type of signal and its own private feature, such as formula (3). Both public and private features can be sparsely represented on the same sparse basis.whereis the *j*th signal in a certain type of signal, represents the public feature of this type of signal, and represents the private feature of the *j*th signal.

If all the samples can be classified into *K* categories, and each containing *J* samples, the *j*th sample of class *i* can be represented as. After putting all the samples of class *i* into one set, we can represent it as. Then, as shown in formula (4), the *j*th sample of class *i* can be represented by a combination of public and private features, thus greatly reducing the required storage space:where is the public feature of all samples in class *i* andis the private feature of the *j*th sample of class *i* [13]. Assuming that the samples can be sparsely represented on the orthogonal basis, formula (4) can be expressed aswhere represents the sparse representation of the public part on and represents the sparse representation of the private part on. Through left multiplying, , the images of class *i* can be represented as

After simplifying, formula (6) can be expressed aswhere , , and represents an overcomplete dictionary that contains two parts: and .can be obtained by solving the minimization problem as follows:

After obtaining, according to the inverse transformation, the public features of all images of class *i* and the private features of each image in the domain can be obtained as

Combining all public and private features can get the joint feature dictionary *D*:

Finally, according to the sparse representation classification method, the target can be classified by the following formula:where represents the sparse coefficient vector that can be reconstructed from *y* with the dictionary.

##### 3.2. Adaptive Weighted Reconstruction

When using SRC, the information carried by atoms in different dictionaries is mainly used to sparse reconstruction. Therefore, in order to improve the recognition accuracy, the atoms with more target information can be screened out by calculating the variance or standard deviation. And, the contribution ability of these atoms can be artificially improved to make the dictionary more discriminant [14].

Suppose is a vector which extracted from an image, and then it can be modified by the following formula:where , represents the *ith* feature after weighted reconstruction. After the above processing, the variance between the feature vectors will increase to a certain extent. The feature dictionary contains more recognition information, which can improve the discrimination ability of the dictionary.

#### 4. Framework of Mixed Feature-Based Joint Sparse Representation (M-JCR)

The algorithm framework is shown in Figure 3. First, Gabor wavelet features and deep features are combined into mixed features. Then, the joint sparsity model is used to extract public feature and private feature to build joint dictionary, and the test samples are sparse reconstructed. Finally, the target can be identified on the basis of the minimum reconstruction error criterion.

The specific steps of M-JSR are as follows:(1)Gabor wavelet transform is used to extract Gabor wavelet features of training images and test images, and CNN is used to extract deep features of training images and test images.(2)The Gabor wavelet feature and deep feature are adaptively weighted to form the mixed feature set, and the mixed feature is dimensionally reduced by PCA.(3)The public feature of each class and the private feature of each image are extracted from the training image feature set. The public features are formed into a matrix *M*, and all private features are arranged into a matrix *N* to form a joint feature dictionary, as shown in Formula (10).(4)The mixed feature vector of the test image is sparsely represented on the joint feature dictionary to get the sparse coefficient, and the mixed feature vector of the test image is reconstructed.(5)Finally, the recognition result is obtained through Formula (11).

#### 5. Experiments and Analysis

In this paper, M-JSR is verified on face images, AR data set, and remote sensing images, respectively. The platform used in the experiment is Matlab R2017a. The computer is configured as Intel Core i5-3210M@2.5 GHz, and the memory is 4 GB. The experimental results are the average values of 10 experiments.

##### 5.1. Face Image Recognition

In this part, two face datasets of AR [15] and Extended YaleB [16] are selected, and our experiment results are compared with SRC [17], extended SRC (ESRC) [18], low-rank matrix recovery method (LR) [19], discriminative low-rank representation method (DLRR) [20], sparse dictionary decomposition method (SDD) [21], adaptive weighting joint sparse representation method (AJSR) [14], and deep feature-based adaptive joint sparse representation(D-AJSR) [22], respectively.

###### 5.1.1. AR Dataset

The AR dataset contains more than 4000 positive images, belonging to 126 individuals, with the image size of 120×165. In the experiments, we use a subset of 100 people, 50 men and 50 women, and there are 26 positive images of each person. Among them, 14 images are no blocking images with only changes in expression or light. 6 people wear sunglasses, and 6 people wear scarves. Therefore, the dataset can be divided into two separate parts, and each part contains 13 pictures (7 positive pictures with no blocking and only changes in expression or light, 3 facial pictures with sunglasses, and 3 positive pictures with scarves). Figure 4 shows some sample images in the AR dataset. We randomly select one part for training and the other for testing. The Gabor wavelet features used in the experiments include 5 scales and 40 features in 8 directions. The deep features used are from the convolution layer in the second part of VGG19, and the number is 128. After PCA dimension reduction, the feature dimensions are 25, 50, 75, 100, and 150.

The experimental results are shown in Table 1. The bold number in each column represents the highest recognition rate under the same condition. Although the recognition rate of M-JSR is not the highest when the dimension is 25, it also remains at the average level. When the dimension is above 50, the recognition rate of M-JSR is higher than that of other methods.

###### 5.1.2. Extended YaleB Dataset

The Extended YaleB dataset consists of 2,414 positive images of size 168×192, in which there are 38 people under different lighting conditions. Figure 5 shows some sample images from the Extended YaleB dataset. In the experiments, we randomly selected 16 images of each person for training and the rest for testing. The Gabor wavelet features used in the experiment include 5 scales and 40 features in 8 directions. The deep features used are from the convolution layer in the second part of VGG19, and the number is 128. After PCA dimension reduction, the feature dimensions are also 25, 50, 75, 100, and 150.

The experimental results are shown in Table 2. The bold number in each column represents the highest recognition rate under the same condition. The M-JSR method maintains high accuracy rates in all dimensions, only slightly lower than D-AJSR in 50 and 75 dimensions. Compared with the AR dataset, the recognition rates are relatively higher because there is no image with sunglasses and scarf.

##### 5.2. Remote Sensing Image Recognition Experiments

In this part, we download the remote sensing aircraft images of different shooting times and locations on Google Earth 7.1.8 as the experimental dataset. In the dataset, 375 remote sensing images are classified to 15 aircraft types, as shown in Figure 6. 10 images in each aircraft type are randomly selected for training and 15 for testing. The image size is 170×170. The Gabor wavelet features used in the experiment include 5 scales and 40 features in 8 directions. The deep features used are from the first part of VGG19, and the number is 64. After PCA dimension reduction, the feature dimensions are also 25, 50, 75, and 100. The experiment results are shown in Table 3. The bold number in each column represents the highest recognition rate under the same condition.

It can be seen from Table 3 that M-JSR has better effect than other methods. This is because the addition of Gabor wavelet feature can provide more information in different directions. However, compared with the recognition rates of face images, the recognition rates are relatively lower. It is mainly because many planes leave shadows on the side due to the slanting sun. As a result, the contour of two planes will appear on the feature map when the image feature is extracted, which has great interference to the subsequent recognition.

##### 5.3. Comprehensive Analysis of Experiments

In the experiment, when PCA was used in dimensionality reduction, the cumulative variance contribution rates of the 3 datasets were also different, as shown in Table 4. It can be seen that the cumulative variance contribution rates of M-JSR on all datasets is low. The reason is M-JSR uses the mixed features which composed of Gabor wavelet features and deep features, so the energy of feature vectors would not be concentrated during PCA dimensionality reduction. Relatively speaking, the fewer principal components are selected, the lower the cumulative variance contribution rate will be. At the same time, the recognition rates of M-JSR are also low when the feature dimension is low.

In addition to the contribution rates of the cumulative variance, the time efficiency of M-JSR is also calculated on 3 datasets, respectively. The training efficiency results of AR dataset and Extended YaleB dataset are shown in Table 5, and the test efficiency results are shown in Table 6. The unit of time is seconds (s). In these experiments, the images of the AR dataset is more than those of the YaleB dataset, so that the training time and test time required for the AR dataset are more than that of the Extended YaleB dataset.

On the remote sensing dataset, the time efficiency of M-JSR is compared with that of SRC, AJRC, and D-AJSR. The training efficiency results are shown in Table 7, and the test efficiency results are shown in Table 8. The unit of time is seconds (s). As can be seen from Table 7 and Table 8, since M-JSR needs to extract two types of features, it takes more training time and more testing time than the other methods. However, considering the recognition rate, we still think the M-JSR method has its own advantages.

It can be seen from the previous experiments that M-JSR has a good robustness for the illumination change and rotation of the image because of the combination of Gabor wavelet features and deep features. Moreover, when the dataset is small, satisfactory recognition results can also be obtained. In many cases, it is difficult to obtain a large number of target images, and the image quality is generally poor due to the influence of dim light, distortion, and other factors. In this case, M-JSR can also provide accurate identification results.

#### 6. Conclusions

For the application requirements of image target recognition, Gabor wavelet features and deep features are introduced into JSR in this paper. The classification framework (M-JSR) has good robustness for deformation, rotation, and light and shade change and can get relatively accurate recognition results with only a few training samples. In M-JSR, two kinds of features are composed into mixed features, in which the weights can be adjusted adaptively. The joint sparse model divides the feature dictionary into public part and private part, which reduces the required storage space and improves the recognition accuracy of the image target. However, because M-JSR needs to extract two characteristics, it takes more time than other methods. Therefore, in the future research, how to take into account the feature expressiveness and extraction speed is a problem that needs to be paid attention. Using lightweight networks [23] for feature extraction is an effective approach.

#### Data Availability

All datasets in this article are public datasets and can be found on public websites.

#### Conflicts of Interest

The authors declare no conflicts of interest.

#### Acknowledgments

This research was funded by the National Defense Pre-Research Foundation of China under Grant 9140A01060314KG01018, National Natural Science Foundation of China under Grant 61471370, Equipment Exploration Research Project of China under Grant 71314092, Scientific Research Fund of Hunan Provincial Education Department under Grant 17C0043, Hunan Provincial Natural Science Fund under Grant 2019JJ80105, Changsha Science and Technology Project under Grant 29312, and Hunan Graduate Scientific Research Innovation Project under Grant CX20200882.

#### References

- T. S. Lee, “Image representation using 2D Gabor wavelets,”
*IEEE Transactions on Pattern Analysis and Machine Intelligence*, vol. 18, no. 10, pp. 959–971, 1996. View at: Publisher Site | Google Scholar - Z. Lu and L. L. Zhang, “Face recognition algorithm based on discriminative dictionary learning and sparse representation,”
*Neurocomputing*, vol. 174, pp. 749–755, 2016. View at: Publisher Site | Google Scholar - A. Krizhevsky, I. Sutskever, and G. E. Hinton, “ImageNet classification with deep convolutional neural networks,” in
*Proceedings of the International Conference on Neural Information Processing Systems*, vol. 60, pp. 1097–1105, Lake Tahoe, Nevada, USA, January 2012. View at: Google Scholar - S. Ren, K. He, R. Girshick, J. Sun, and R.-C. N. N. Faster, “Towards real-time object detection with region proposal networks,” in
*Proceedings of the International Conference on Neural Information Processing Systems*, vol. 39, pp. 91–99, Montreal, Canada, 2015. View at: Google Scholar - J. Zhang, S. Kun, and L. Xing, “Small sample image recognition using improved Convolutional Neural Network,”
*Journal of Visual Communication and Image Representation*, vol. 55, pp. 640–647, 2018. View at: Publisher Site | Google Scholar - W. Wei, J. Yongbin, L. Yanhong, L. Ji, W. Xin, and Z. Tong, “An advanced deep residual dense network (DRDN) approach for image super-resolution,”
*International Journal of Computational Intelligence Systems*, vol. 12, no. 2, pp. 1592–1601, 2019. View at: Publisher Site | Google Scholar - C. Wang, L. Yun, and Z. Li, “Algorithm research of face image gender classification based on2-D gabor wavelet transform and SVM international symposium on computer science and computational Technology,” in
*Proceedings of 2008 International Symposium on Computer Science and Computational Technology*, pp. 312–315, IEEE, Shanghai, China, December 2008. View at: Publisher Site | Google Scholar - Y. Lecun, L. Bottou, Y. Bengio, and P. Haffner, “Gradient-based learning applied to document recognition,”
*Proceedings of the IEEE*, vol. 86, no. 11, pp. 2278–2324, 1998. View at: Publisher Site | Google Scholar - C. Zhang and J. Tian, “A SAR image targets recognition approach via novel SSF-net models,”
*Computational Intelligence and Neuroscience*, vol. 2020, Article ID 8859172, 9 pages, 2020. View at: Publisher Site | Google Scholar - W. Wang, Y. Yang, and X. Wang, “Development of convolutional neural network and its application in image classification: a survey,”
*Optical Engineering*, vol. 58, no. 4, Article ID 040901, 2019. View at: Publisher Site | Google Scholar - W. Wang, C. Zhang, and J. Tian, “High resolution radar targets recognition via inception-based VGG (IVGG) networks,”
*Computational Intelligence and Neuroscience*, vol. 2020, Article ID 8893419, 11 pages, 2020. View at: Publisher Site | Google Scholar - D. Baron, M. F. Duarte, and M. B. Wakin, “Distributed compressive sensing,” in
*Proceedings of IEEE International Conference on Acoustics Speech and Signal Processing*, IEEE, Taipei, Taiwan, April 2009. View at: Publisher Site | Google Scholar - P. Nagesh and B. Li, “A compressive sensing approach for expression-invariant face recognition,” in
*Proceedings of IEEE Conference on Computer Vision and Pattern Recognition*, pp. 1518–1525, IEEE, Miami, FL, USA, June 2009. View at: Publisher Site | Google Scholar - W. Wang, J. Chen, J. Li, and X. Wang, “Remote targets recognition based on adaptive weighting feature dictionaries and joint sparse representations,”
*Journal of the Indian Society of Remote Sensing*, vol. 46, no. 11, pp. 1863–1870, 2018. View at: Publisher Site | Google Scholar - A. Martínez and R. Benavente, “The AR face database,”
*CVC Technical Report*, vol. 24, 1998. View at: Google Scholar - K. C. Lee, J. Ho, and D. J. Kriegman, “Acquiring linear subspaces for face recognition under variable lighting,”
*IEEE Transactions on Pattern Analysis and Machine Intelligence*, vol. 27, no. 5, pp. 684–698, 2005. View at: Publisher Site | Google Scholar - J. Wright, A.Y. Yang, A. Ganesh, S.S. Sastry, and Y. Ma, “Robust face recognition via sparse representation,”
*IEEE Transactions on Pattern Analysis and Machine Intelligence*, vol. 31, no. 2, pp. 210–227, 2008. View at: Publisher Site | Google Scholar - W. Deng, J. Hu, and J. Guo, “Extended SRC: undersampled face recognition via intraclass variant dictionary,”
*IEEE Transactions on Pattern Analysis and Machine Intelligence*, vol. 34, no. 9, pp. 1864–1870, 2012. View at: Publisher Site | Google Scholar - C. Chen, C. Wei, and Y. Wang, “Low-rank matrix recovery with structural incoherence for robust face recognition,” in
*Proceedings of IEEE Conference on Computer Vision and Pattern Recognition*, pp. 2618–2625, IEEE, Providence, RI, USA, June 2012. View at: Publisher Site | Google Scholar - J. Chen and Z. Yi, “Sparse representation for face recognition by discriminative low-rank matrix recovery,”
*Journal of Visual Communication and Image Representation*, vol. 25, no. 5, pp. 763–773, 2014. View at: Publisher Site | Google Scholar - F. Cao, X. Feng, and J. Zhao, “Sparse representation for robust face recognition by dictionary decomposition,”
*Journal of Visual Communication and Image Representation*, vol. 46, pp. 260–268, 2017. View at: Publisher Site | Google Scholar - W. Wei, T. Can, W. Xin, L. Yanhong, H. Yongle, and L. Ji, “Image object recognition via deep feature-based adaptive joint sparse representation,”
*Computational Intelligence and Neuroscience*, vol. 2019, Article ID 8258275, 9 pages, 2019. View at: Publisher Site | Google Scholar - W. Wang, Y. Li, T. Zou, X. Wang, J. You, and Y. Luo, “A novel image classification approach via dense-MobileNet models,”
*Mobile Information Systems*, vol. 2020, Article ID 7602384, 8 pages, 2020. View at: Publisher Site | Google Scholar

#### Copyright

Copyright © 2020 Xin Wang et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.