Structure-Aware Classification using Supervised Dictionary Learning

2016·arXiv

ABSTRACT

1. INTRODUCTION

Dictionary learning aims to learn a set of atoms such that a given signal can be well approximated by a sparse linear combination of these atoms. The standard dictionary learning problem is formulated as

where is the data matrix, contains the sparse representations and is an overcomplete dictionary with normalized columns (atoms).

Despite the popularity of standard dictionary learning methods in many domains, their performance in classification tasks is sub-optimal, since an accurate reconstruction is not as important for classification as the discrimination capability of the dictionary. This motivates the emergence of supervised dictionary learning techniques, exploiting both the existing label information and the underlying structure of the data.

Some of these methods attempt to learn a separate sub-dictionary for each class (e.g. [1, 2, 3, 4]). Consequently, the sparse codes over the learned dictionary are used as features on which a classifier is trained. More sophisticated approaches (e.g. [5, 6, 7, 8]) learn a discriminative dictionary by introducing a classification-error term into the objective function, and enforcing some discriminative criteria on the optimized sparse coefficients. By doing so, these methods form a unified learning problem and learn the dictionary and classifier jointly.

Of the latter category, we focus on the Label Consistent K-SVD (LC-KSVD) method [8] for joint learning of an overcomplete dictionary D and an optimal linear classifier W:

s.t. (2) where is a binary matrix containing the labels of the training data (out of q possible classes), and associates label information with each dictionary atom, thus forcing signals from the same class to have similar sparse representations. The minimized objective hence balances between the reconstruction error , the label consis- tency and the classification error . These terms can be fused together, leading to a standard formulation:

where

Equation (3) can be efficiently solved using the K-SVD algorithm [9], which iteratively alternates between a sparse coding step (optimization over X) and a dictionary update step (that updates each dictionary atom in along with its related coefficients from X). Having completed the training process, the individual components D and W can be recovered from . Consequently, classification of a new signal is simply performed by sparse coding over the dictionary D and applying the learned classifier W on the resulting sparse coefficient vector, choosing the class that yields the highest score.

In [10], we have suggested an unsupervised dictionary learning algorithm for graph signals. The algorithm takes into account the underlying structure of the data in both the feature and the manifold domains using graph smoothness constraints. Furthermore, the underlying structure, encapsulated by a graph Laplacian matrix, can be learned within the dictionary learning process to promote the desired smoothness.

In this paper, we propose an extension of our dual graph regularized dictionary learning algorithm to a supervised setting by applying the same ideas to the LC-KSVD approach [8]. The novelty of the LC-KSVD algorithm lies in the requirement that objects from the same class have similar sparse codes over some dictionary. While this method was shown to yield satisfactory classification results, we argue that optimizing a separate sub-dictionary for each class or directly relating the dictionary atoms with specific classes is overly restrictive and highly sensitive to the initialization of the algorithm. We therefore replace the label consistency constraint with a graph-based smoothness regularization that leverages the label information and promotes the discriminative nature of the sparse codes. Additionally, we propose to simultaneously take into account the underlying structure of the training data in the feature domain such that the feature dependencies are preserved in the learned dictionary atoms.

In the sequel, we describe the proposed algorithm and demonstrate its efficiency in simulations.

2. GRAPH-CONSTRAINED SUPERVISED DICTIONARY LEARNING

2.1. Introducing the Data Manifold Structure

Our proposed algorithm is based on the LC-KSVD approach [8]. In order to take into account the local geometrical structure of the data manifold, we shall model the relationships between different data samples using a graph and require smoothness of the sparse codes over the graph topology.

Given a set of training samples , let us construct a weighted graph M with m vertices, where each node represents a training data point. The weight assigned to the edge connecting the i-th and j-th nodes is designed to be inversely proportional to the distance between them. A common choice uses a Gaussian kernel function

The graph adjacency matrix consists of the edge weights . The graph Laplacian is then defined as , where the degree matrix is a diagonal matrix whose entries are .Following ideas from manifold learning and spectral graph theory, the graph Laplacian can be used as a smoothness operator to preserve the local manifold structure. Similarly to the methods proposed in [11, 12], we incorporate into the objective function as a regularizer of the form . Denoting the i-th column of X by , we observe that

This term therefore encourages similar signals, having a large proximity measure , to have similar sparse codes, thus satisfying the commonly known manifold assumption [13]. In other words, it promotes smoothness of the obtained sparse representations X along the geodesics of the underlying data manifold, described by the graph Laplacian .

Replacing the original label consistency term with the graph regularization, the new dictionary learning problem formulation reads

s.t. (6) Fusing the first two components together similarly to the form presented in Equation (3), we obtain the graph-regularized supervised dictionary learning problem

2.2. Introducing Feature Interdependencies

In order to take into account the interdependencies in the feature domain as well, we shall construct a second graph to model the relationships between different features, and require smoothness of the dictionary atoms over this new graph. That is, if two features behave similarly across the training signals, this behavior should be reflected in the structure of the learned atoms. Explicitly, given the set of training samples , let us construct a weighted graph G with n vertices, where each node represents a feature (corresponding to a row in the data matrix). The weight assigned to the edge connecting the i-th and j-th nodes is again designed to be inversely proportional to the distance between them. The graph adjacency matrix consists of the edge weights, is the corresponding degree matrix, and the graph Laplacian is defined as .

In a symmetric view to the manifold graph regularization, the feature graph should be integrated through a regularization term of the form applied to the dictionary matrix D. Since in the current formulation (7) the dictionary D only occupies a subset of the matrix , we shall zero-pad to the dimension of :

As the extended matrix satisfies , the regularization may equivalently be imposed on .

The result is the dual graph constrained dictionary learning problem:

s.t. (9) Solving this problem requires significant modifications of the K-SVD algorithm. This can be done using the graphDL algorithm we proposed in [10] that reflects the added restrictions. Upon completion of the learning process, D and W can be recovered from , and classification is again performed by sparse coding the test signals using D and applying the clas-sifier W on the resulting coefficients.

2.3. Learning Dependencies

The feature dependencies were so far inferred from the patterns detected in the training set. For this purpose, an initial weight matrix for the features graph can be constructed by computing the pairwise distances between rows in the data matrix Y , which correspond to the different features:

To better handle partial correlations, these dependencies can be learned and adapted along with the dictionary learning process, as previously suggested in [10]. Having obtained an intermediate dictionary D, the graph can be re-estimated based on the dictionary instead of the original input data Y , according to the following optimization problem:

where

defines the set of trace-normalized valid graph Laplacian matrices of size . The term was added to the objec- tive function to control the sparsity of the resulting Laplacian matrix. In a similar manner, the manifold graph Laplacian may also be adapted by solving

The complete algorithm, as summarized in Algorithm 1, is assembled by alternating between the graph constrained supervised dictionary learning problem posed in Equation (9), and adapting the Laplacian matrices and .

3. EXPERIMENTAL RESULTS

3.1. Single-Label Classification

First, we evaluate the performance of the proposed algorithm for single-label image classification on the AR Face database [14] and on the Extended YaleB database [15].

The AR Face database consists of over 4000 images: 26 images per person for 126 different people. The images feature frontal view faces with different facial expressions, illumination conditions, and occlusions (sun-glasses and scarf). Following the standard evaluation procedure, we use a subset of the database consisting of 2600 images from 50 male subjects and 50 female subjects. Randomly selected 20 images per person constitute the training set, and the rest are used for testing. Each image is represented by a 540-dimensional feature vector using the procedure described in [8].

The Extended YaleB database contains 2414 frontal-face images of 38 individuals, captured under various illumination conditions. We randomly selected half of the images (about 32 images per person) as the training set and the rest are used for testing. Each image is represented by a 504-dimensional feature vector.

We compare the proposed algorithm to the two variants proposed in [8]: LC-KSVD1, which refers to (2) for , and LC-KSVD2, which refers to (2) for . Two variants of our method are evaluated: SupGraphDL, standing for Algorithm 1 without learning the graph Laplacians and , and SupGraphDL-L, in which the two Laplacians are adapted throughout the process. The obtained results are summarized in Table 1. Note that we used a random partition of the data into training and testing sets, therefore the results obtained for LC-KSVD are different from the best case results presented in [8]. Nevertheless, our algorithm is able to achieve a higher classification accuracy for both evaluated datasets.

Table 1: Classification accuracy (%) for the AR Face dataset and the Extended YaleB dataset.

3.2. Multi-Label Classification

Next, we evaluate the proposed algorithm for the more challenging task of multi-label classification. In this setting, each instance may be associated with multiple classes simultaneously. Thus, exploiting the interdependency between labels can significantly affect the success of the classification algorithm.

As an initial step, we extended our method to support multi-label classification, by altering the binary label matrix H to allow multiple non-zeros per column. The classification procedure was also extended to support multiple labels: instead of choosing the class yielding the maximal score, the relevant labels were selected as those reaching a result above a threshold, i.e. , where is the sparse representation of a test sample over the dictionary D, and W is the learned classifier.

The algorithm was evaluated for two datasets: natural scene images and yeast gene functionality.

The natural scene dataset consists of 2000 natural scene images, each belonging to one or more out of 5 possible semantic classes: desert, mountains, sea, sunset and trees. Half of the images were used for training and the rest constitute the test set. Each image is represented by a 294-dimensional feature vector using the procedure described in [16]. The extracted features are spatial color moments in the LUV space, which are commonly used in the scene classification literature.

The yeast dataset [17] is formed by micro-array expression data and phylogenetic profiles, and includes 2417 genes, 1500 of which are used for training and the rest constitute the test set. Each gene is represented by a 103-dimensional feature vector, and associated with a set of functional groups out of 14 possible classes (such as metabolism, transcription and protein synthesis).

Similarly to the single-label classification experiment, we compare two variants of our method (with and without adapting the graphs) to LC-KSVD1 and LC-KSVD2 proposed in [8].

To assess the accuracy of the algorithms in the multi-label experiments, we use the average precision measure as defined in [16]. The obtained classification results are summarized in Table 2, indicating that our algorithm clearly outperforms the other methods.

Table 2: Classification accuracy (%) for the multi-label Scene and Yeast datasets.

In the multi-modal scenario, the potential overlap between different combinations of classes implies that a more complex underlying structure could be learned and exploited. As expected, the impact of the structural constraints in the multi-modal scenario is very significant, and more pronounced compared with the single-label examples. For the yeast dataset, which is known to be difficult, the achieved improvement in classification accuracy is almost 7%. Moreover, though increasing the computational complexity, it can be observed that adapting the Laplacian matrices further improves the classification results for both datasets.

4. CONCLUSIONS

In this paper, we suggested an extension of our previously proposed dual graph regularized dictionary learning algorithm to a supervised setting. In the new algorithm, the dictionary atoms are encouraged to preserve the feature similarities as detected in the training data and encapsulated by the graph Laplacian , thus leading to a better representative and more robust dictionary. By adhering to the intrinsic geometrical structure of the data manifold, as captured by the graph Laplacian , the resulting sparse codes are more discriminative and can significantly enhance classification performance.

Experiments performed on different datasets demonstrate that the proposed algorithm yields very good classification results, outperforming other supervised dictionary learning algorithms for both single-label and multi-label classification tasks.

5. REFERENCES

[1] J. Wright, A. Y. Yang, A. Ganesh, S. S. Sastry, and Yi Ma, “Robust face recognition via sparse representation,” TPAMI, vol. 31, no. 2, pp. 210–227, Feb 2009.

[2] M. Yang, L. Zhang, J. Yang, and D. Zhang, “Metaface

learning for sparse representation based face recognition,” in ICIP, 2010, pp. 1601–1604.

[3] M. Yang, L. Zhang, X. Feng, and D. Zhang, “Fisher discrimination dictionary learning for sparse representation,” in ICCV, 2011, pp. 543–550.

[4] I. Ramirez, P. Sprechmann, and G. Sapiro, “Classifi- cation and clustering via dictionary learning with structured incoherence and shared features,” in CVPR, 2010, pp. 3501–3508.

[5] J. Mairal, F. R. Bach, J. Ponce, G. Sapiro, and A. Zis- serman, “Supervised dictionary learning,” in NIPS, pp. 1033–1040. 2009.

[6] D.-S. Pham and S. Venkatesh, “Joint learning and dic- tionary construction for pattern recognition,” in CVPR, June 2008, pp. 1–8.

[7] Q. Zhang and B. Li, “Discriminative K-SVD for Dic- tionary Learning in Face Recognition,” in CVPR, June 2010, pp. 2691–2698.

[8] Z. Jiang, Z. Lin, and L. S. Davis, “Learning a Discrim- inative Dictionary for Sparse Coding via Label Consistent K-SVD,” in CVPR, 2011, pp. 1697–1704.

[9] M. Aharon, M. Elad, and A. Bruckstein, “K-SVD: An Algorithm for Designing Overcomplete Dictionaries for Sparse Representation,” IEEE Trans. Sig. Proc., vol. 54, no. 11, pp. 4311–4322, Nov. 2006.

[10] Y. Yankelevsky and M. Elad, “Dual Graph Regularized Dictionary Learning,” IEEE Transactions on Signal and Information Processing over Networks, 2016, doi:10.1109/TSIPN.2016.2605763.

[11] M. Zheng, J. Bu, C. Chen, C. Wang, L. Zhang, G. Qiu, and D. Cai, “Graph Regularized Sparse Coding for Image Representation,” IEEE Trans. Img. Proc., vol. 20, no. 5, pp. 1327–1336, May 2011.

[12] K. N. Ramamurthy, J. J. Thiagarajan, P. Sattigeri, and A. Spanias, “Learning Dictionaries with Graph Embedding Constraints,” in ASILOMAR, Nov 2012, pp. 1974– 1978.

[13] M. Belkin and P. Niyogi, “Laplacian eigenmaps for di- mensionality reduction and data representation,” Neural Comput., vol. 15, no. 6, pp. 1373–1396, June 2003.

[14] A. Martinez and R. Benavente, “The AR Face Database,” Tech. Rep. 24, CVC, June 1998.

[15] A. S. Georghiades, P. N. Belhumeur, and D. J. Krieg- man, “From Few to Many: Illumination Cone Models for Face Recognition Under Variable Lighting and Pose,” TPAMI, vol. 23, no. 6, pp. 643–660, June 2001.

[16] M. R. Boutell, J. Luo, X. Shen, and C. M. Brown, “Learning multi-label scene classification,” Pattern Recognition, vol. 37, no. 9, pp. 1757–1771, 2004.

[17] A. Elisseeff and J. Weston, “A Kernel Method for Multi- Labelled Classification,” in NIPS, 2001, pp. 681–687.

Designed for Accessibility and to further Open Science