A pattern classification method based on support vector regularized dictionary pair learning

Through the support vector regularized dictionary pair learning method and the support vector machine classifier that combines the structural dictionary and sparse representation coefficients, it solves the problem of neglecting the discriminability of sparse representation and structural dictionary in the existing technology, and achieves more efficient image classification. accuracy, especially in face and scene recognition tasks.

CN114330535BActive Publication Date: 2024-09-06NANJING TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111603440.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-09-06
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

When improving image classification accuracy, existing pattern classification methods based on dictionary learning ignore the discriminability of sparse representation coefficients and the discriminability of structural dictionary pairs, resulting in limited classification accuracy.

Method used

A method of learning dictionary pairs based on support vector regularization is proposed. By simultaneously learning structural dictionary pairs and support vector machine classifiers for sparse representation coefficients, a joint training model is constructed to improve classification results.

Benefits of technology

This method significantly improves the accuracy of image classification while improving coding efficiency. It especially shows high accuracy in face recognition and scene recognition tasks, which is better than other existing algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114330535B
    Figure CN114330535B
Patent Text Reader

Abstract

The present invention discloses a pattern classification method based on support vector regularized dictionary pair learning, and belongs to the field of computer vision technology. The method comprises: mapping training images and test images to low-dimensional space to obtain training sets and test sets; learning comprehensive-analytic dictionary pairs and support vector machine classifiers based on the training set using a support vector regularized dictionary pair learning model; generating test set coding coefficients using the trained dictionary pairs; inputting the test set coding coefficients into a support vector machine classifier to obtain the category label of the test set, and using the category label as the classification result. Based on the dictionary pair learning model, the present invention proposes a discriminative classification model that integrates support vectors and performs optimization and solution, which is applicable to pattern recognition and image classification problems in general, and can achieve higher classification accuracy in face recognition and scene recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field:

[0001] The invention belongs to the field of computer vision, and in particular relates to a pattern classification method based on support vector regularized dictionary pair learning. Background technology:

[0002] In recent years, sparse representation and dictionary learning have been widely used in image denoising, image classification, image compression, image restoration, face recognition and abnormal behavior detection, and are a hot issue in the fields of machine learning, pattern recognition and computer vision.

[0003] For image classification problems, sparse representation can be regarded as a feature extraction process: for each input signal encoding, the corresponding sparse representation coefficient is obtained, and then the sparse representation coefficient is used as the input of the classifier to obtain the classification result. Introducing the classification error of the signal in this process can improve the accuracy of classification. In recent years, existing research on pattern classification based on dictionary learning can be roughly divided into three models: classification based on comprehensive models, classification based on analytical models, and classification based on comprehensive-analytic dictionary pairs. Among them, the analytical model is more efficient than the comprehensive model in sparse coding, and the dictionary learning based on the comprehensive model has achieved better classification results, while the comprehensive-analytic dictionary pair learning model can take into account the advantages of both.

[0004] Existing pattern classification methods based on dictionary learning usually use label information in dictionary learning to improve classification results: one type of method introduces a classifier for sparse representation coefficients into the model, such as the support vector-based dictionary learning (SVGDL) algorithm, and the other type of method introduces a structural dictionary to enhance the discriminative power of the model, such as the discriminative dictionary pair learning (DPL) algorithm. However, the former only focuses on the discriminativeness of sparse representation coefficients, but ignores the ability of the learning dictionary itself to generate discriminative coefficients, which affects the accuracy of classification to a certain extent; the latter focuses on the discriminativeness of the dictionary itself, but ignores the discriminativeness of the sparse representation coefficients.

[0005] To solve the above problems, the present invention proposes a pattern classification method based on support vector regularized dictionary pair learning, which integrates the discriminability of sparse representation coefficients and the discriminability of structural dictionary pairs into a classification model, and constructs a dictionary pair learning and classifier joint training model. Summary of the invention:

[0006] In order to improve the classification accuracy, a pattern classification method based on support vector regularized dictionary pair learning is proposed. In the dictionary pair learning framework, structural dictionary pairs and support vector machine classifiers for sparse representation coefficients are learned simultaneously to obtain better classification results.

[0007] In order to solve the above technical problems, the present invention discloses an image classification method based on support vector regularized dictionary learning, comprising:

[0008] Step 1: Extract features from training images and test images, and construct training set X and test set

[0009] Step 2: Establish a learning model based on support vector regularization dictionary;

[0010] Step 3: Optimize and solve the model, input the training set X into the model based on support vector regularization dictionary pair learning, and obtain the parsing dictionary P, comprehensive dictionary D, encoding coefficient A and support vector machine classifier<U,b> ;

[0011] Step 4: Use the parsing dictionary P trained in step 3 to test the set Encode and get the test set encoding coefficient

[0012] Step 5: Encode the test set coefficients obtained in step 4 Input it into the support vector machine classifier trained in step 3 to obtain the classification result.

[0013] In the above-mentioned image classification method based on support vector regularized dictionary learning, feature extraction is performed on the training images and the test images, and a training set X and a test set are constructed. include:

[0014] ① Extract random features of training images and test images, use a random matrix to project the image into a vector of fixed dimension. The feature dimension is determined by the random matrix, and the generated feature vector is normalized to a unit vector of length 1.

[0015] ② Select a certain amount of data from each category as the training set X, and the remaining data as the test set

[0016] In the above-mentioned image classification method based on support vector regularized dictionary pair learning, the support vector regularized dictionary pair learning model includes:

[0017]

[0018] where λ1, λ2, λ3 are fixed scalars, and X = [X1, X2, ..., X k ] is the feature of the training set, K represents the number of samples, D = [D1, D2, ..., D k ] represents a structural comprehensive dictionary, P = [P1; P2; ...; P k ] represents a structural parsing dictionary, A = [A1, A2, ..., A k ] represents the coding coefficient, the comprehensive dictionary D k and the parsing dictionary Pk Represents the k-th input data X k The corresponding dictionary pair, Indicates X in X i The complement of U = [u1, u2, ..., u k ] represents a hyperplane, b=[b1,b2,…,b k ] T Indicates deviation, Represents the label vector corresponding to the kth class. If x i Samples belonging to the kth class x j Samples that do not belong to the kth category, d i represents the i-th column of D, represents the data fidelity term, f(A,y k ,u k , b k ) represents the discriminant; To avoid trivial solution D k =0, making the model more stable; is a constraint on the parsing dictionary, which ensures that the parsing dictionary has a relatively small Frobenius norm and unit row norm; specifically, the discriminant f(A, y k ,u k , b k ) is defined as follows:

[0019]

[0020] Among them, a i is the column vector of the coefficient matrix A, is the loss function, is a regularization term, when When when hour,

[0021] In the above-mentioned image classification method based on support vector regularized dictionary learning, the model is optimized and solved, and the training set X is input into the model based on support vector regularized dictionary learning to obtain the parsing dictionary P, the comprehensive dictionary D, the encoding coefficient A and the support vector machine classifier<U,b> ,include:

[0022] The solution is solved by loop iteration, updating variables A, P, D and<U,b> When updating a variable, other variables need to be fixed, and the iteration should be repeated until the objective function value converges or the maximum number of iterations is reached to obtain the optimal output result.

[0023] (a) Fixed P, D,<U,b> , update A:

[0024] When P, D,<U,b> When fixed, omit and Because they have no effect on the optimization solution of variable A. The optimization of A can be simplified to the following problem:

[0025]

[0026] The approximation of can be replaced by the loss function. The loss function is defined as follows:

[0027]

[0028] The optimization formula can be further written as:

[0029]

[0030] Through a i Taking the derivative and setting it equal to 0, we can get the following analytical solution:

[0031] when When i =(D T D+λ1I) -1 (λ1Px i +D T x i );

[0032] when hour,

[0033]

[0034] (b) Fix A, D,<U,b> , update P:

[0035] Since the constraints of the set Γ are matrices with relatively small Frobenius norm and unit row norm, the optimization problem of each analytic sub-dictionary can be formulated as follows:

[0036]

[0037] Through P k Taking the derivative and setting it to zero, we can obtain P k The optimal solution is:

[0038]

[0039] In order to satisfy the unit norm constraint on each row of the parsing dictionary in Γ, the parsing dictionary P obtained by the above formula k Each row of needs to be row-normalized.

[0040] (c) Fixed A, P,<U,b> , update D:

[0041] When A, P,<U,b> When fixed, and f(A,y k ,u k , b k ) are irrelevant to the optimization variable D and can be omitted. The optimization problem about D can be simplified to:

[0042]

[0043] By introducing the dual variable S, the above optimization problem can be written as:

[0044]

[0045] The alternating direction multiplier method can effectively solve this problem. The more detailed solution steps are as follows, where r is the number of iterations:

[0046]

[0047] (d) Fix A, P, D, and update<U,b> :

[0048] When A, P and D are fixed,<U,b> The optimization solution is a multi-classification support vector machine problem, that is, solving the following optimization problem:

[0049]

[0050] Because of the function It can be derived everywhere and can be solved using the support vector machine learning algorithm based on gradient descent

[0051] In the above-mentioned image classification method based on support vector regularized dictionary learning, the learned parsing dictionary P is used to test the test set Encode to get the test set encoding coefficient include:

[0052] The parsing dictionary P trained on the training set and the test set Multiply them together to get the test set encoding coefficient This coding coefficient will be used in step 5.

[0053] In the above-mentioned image classification method based on support vector regularized dictionary learning, the test set encoding coefficients are Input into the trained support vector machine classifier to obtain the classification results, including:

[0054] Test set encoding coefficients Input the trained support vector machine classifier parameters in step 3<U,b> In the calculation The jth element of the i-th column vector of the matrix H represents the i-th sample of the test set The confidence level of belonging to the jth class is The classification result is determined to be the category with the highest corresponding confidence.

[0055] The present invention has the following advantages:

[0056] A new model and method for pattern classification is proposed, and a structural dictionary pair and a support vector machine classifier are learned at the same time, which can improve the classification accuracy while improving the coding efficiency. The classification method can be widely used in pattern recognition problems such as face recognition, object recognition and scene recognition. In particular, for the reference of face recognition and scene recognition, the dictionary learning method proposed by the present invention can achieve a higher accuracy. Description of the drawings:

[0057] Figure 1 is a flow chart of the present invention;

[0058] Figure 2 It is a schematic diagram of the scene in the Scene15 database. Specific implementation method:

[0059] In order to make the purpose, technical scheme and advantages of the present invention clearer, the implementation method disclosed in the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following embodiments are used to illustrate the present invention, but are not used to limit the scope of protection of the present invention.

[0060] Embodiment 1:

[0061] This example conducts face recognition experiments on the AR database. The AR database is a widely used face image dataset that involves changes in lighting, expression, sunglasses, scarf, etc. This database contains 100 categories, 50 men and 50 women, each category contains no less than 26 images, and each image has a pixel size of 165x 120.

[0062] The specific implementation steps of the pattern classification method based on support vector regularized dictionary learning are as follows:

[0063] Example step 1: extract features from training and test images and construct training and test sets

[0064] First, feature extraction is performed on AR images. All images in the AR database are projected into a 540-dimensional vector space using a random matrix and normalized into unit vectors. 20 images are randomly selected from each category as training sets and 6 images as test sets.

[0065] Example step 2, establish a dictionary learning model:

[0066] In this embodiment, X is used as the input of the dictionary learning model to obtain the parsing dictionary P, comprehensive dictionary D, encoding coefficient A and support vector machine classifier parameters suitable for the training set.<U,b> Each dictionary type uses 6 dictionary atoms, and the overall parsing dictionary P and comprehensive dictionary D contain 600 dictionary atoms. In this example, λ1=1, λ2=1e-3, λ3=1e-5,

[0067] In order to compare the classification, the present invention is compared with the existing classification methods based on dictionary learning under the same experimental setting: Fisher discriminant dictionary learning (FDDL), label consistent singular value decomposition dictionary learning algorithm (LC-KSVD 1 , LC-KSVD 2 ), the classification accuracy of projected dictionary pair learning (DPL) and support vector dictionary learning (SVGDL) are compared.

[0068] Table 1 Classification results of different methods on AR database

[0069] method Method of the present invention FDDL SVGDL Classification accuracy 98.7% 92.0% 94.6% method <![CDATA[LC-KSVD 1 ]]> <![CDATA[LC-KSVD 2 ]]> DPL Classification accuracy 92.5% 93.7% 98.3%

[0070] The accuracy of the algorithm is higher than that of the previous algorithms, and it achieves the best accuracy on the AR database. The accuracy of the method of the invention on the AR database reaches 98.7%, which is 0.4% and 4.1% higher than that of DPL and SVGDL respectively.

[0071] Embodiment 2:

[0072] This example conducts a face classification experiment on the ExtendedYaleB dataset. The Extended YaleB database is another widely used face image dataset that involves huge changes in lighting and expressions. The ExtendedYaleB database contains frontal image information of 38 people, each with approximately 64 images, each with a size of 168x192 pixels, for a total of 2414 images.

[0073] The operation steps are similar to those in Example 1. In step 1, 32 images are randomly selected from each category as the training set, and the rest are used as the test set. The feature extraction method in data preprocessing is similar to that of the AR database. Finally, 504-dimensional image features are obtained and normalized. The parameters of this example are set as λ1=2e-1, λ2=1e-2, λ3=1e-4,

[0074] Table 2 Classification results of different methods on the ExtendedYaleB database

[0075]

[0076]

[0077] Compared with FDDL, LC-KSVD1, LC-KSVD2 and SVGDL, the method of the present invention has advantages and achieves 97.0% classification accuracy on the ExtendedYaleB database. The method of the present invention adopts a structured dictionary to learn support vectors, which is 0.9% higher than SVGDL.

[0078] Embodiment 3:

[0079] This example conducts scene classification experiments on the Scene15 dataset. The Scene15 dataset contains 4485 images in 15 natural scene categories. Each directory contains at least 200 images, and the average image size is about 250×300 pixels. The dataset includes kitchen, suburbs, life, forest, coast, industry, office, highway, high-rise building, mountain, city interior, bedroom, street, room, field and store scene categories. Some sample images of the Scene15 database are shown in the figure below. Figure 2 shown.

[0080] The operation steps are similar to those of Example 1 and Example 2. This example randomly selects 100 images in each category for training and uses the remaining images for testing. In order to extract the features of the image, this example uses the bag-of-words model and the spatial pyramid matching framework to extract the features of the image, and then uses the principal component analysis technique to reduce the feature dimension to 3000. The parameters of this example are set to λ1=1e-1, λ2=1e-4, λ3=1e-6, To ensure the fairness of the comparison results, the same database and feature extraction method are used in the FDDL, LC-KSVD1, LC-KSVD2, DPL and SVGDL algorithms as in the method of the present invention.

[0081] Table 3 Classification results of different methods on Scene15 database

[0082] method Method of the present invention FDDL SVGDL Classification accuracy 97.3% 92.1% 96.1% method <![CDATA[LC-KSVD 1 ]]> <![CDATA[LC-KSVD 2 ]]> DPL Classification accuracy 90.4% 92.9% 96.9%

[0083] It can be seen that the method of the present invention achieves a higher classification accuracy on the Scene15 dataset, which is 1.2% higher than SVGDL and 0.4% higher than DPL.

[0084] Embodiment 4:

[0085] This example conducts scene classification experiments on the Caltech101 dataset. The Caltech101 dataset contains 9144 images and 102 object categories: 101 object classes and one background class. The images include animals, vehicles, flowers, plants, etc. Each category has at least 31 images. In addition, the images of a category have large shape variations in object size, pose, and position, which increases the difficulty of classification.

[0086] The operation steps are similar to those of Example 1, Example 2, Example 3, and Example 4. In this example, 30 images from each class are randomly selected for training, and all the remaining images are tested. Image features are extracted based on the bag-of-words model and the spatial pyramid matching framework, and the original dimensional features are reduced to 3000 dimensional features using principal component analysis. The parameters of this example are set to λ1=1e-1、λ2=5e-5、λ3=1e-5、

[0087] Table 4 Classification results of different methods on Caltech101 database

[0088] method Method of the present invention FDDL SVGDL Classification accuracy 77.5% 73.2% 76.7% method <![CDATA[LC-KSVD 1 ]]> <![CDATA[LC-KSVD 2 ]]> DPL Classification accuracy 73.4% 73.6% 73.9%

[0089] It can be seen that the recognition rate of the method of the present invention on the Caltech101 data set is better than that of other algorithms. The recognition rate of the algorithm is 0.8% higher than that of the DPL algorithm and 3.6% higher than that of the SVGDL algorithm.

Claims

1. A pattern classification method based on support vector regularized dictionary learning, characterized in that: include: Perform feature extraction on training and test images and construct training set X and test set Establish a dictionary learning model based on support vector regularization; Input the training set X into the support vector regularization dictionary learning model, and optimize the corresponding objective function to obtain the parsing dictionary P, comprehensive dictionary D, encoding coefficient A and support vector machine classifier parameters suitable for the training set.<U,b> ; Use the trained parsing dictionary P to test the set Encode and get the test set encoding coefficient Encoding the test set coefficients Input into the trained support vector machine classifier to obtain the classification result; The establishment of the support vector regularized dictionary learning model includes: where λ1, λ2, λ3 are fixed scalars, and X = [X1, X2, ..., X k ] is the feature of the training set, K represents the number of samples, D = [D1, D2, ..., D k ] represents a structural comprehensive dictionary, P = [P1; P2; ...; P k ] represents a structural parsing dictionary, A = [A1, A2, ..., A k ] represents the coding coefficient, the comprehensive dictionary D k and the parsing dictionary P k Represents the k-th input data X k The corresponding dictionary pair, Indicates X in X i The complement of U = [u1, u2, ..., u k ] represents a hyperplane, b=[b1,b2,…,b k ] T Indicates deviation, Represents the label vector corresponding to the kth class. If x i Belonging to the k-th class of samples, x j Samples that do not belong to the kth category, d i represents the i-th column of D, represents the data fidelity term, and f(A,y k ,u k , b k ) represents the discriminant; To avoid trivial solution D k =0, making the model more stable; is a constraint on the parsing dictionary; specifically, the discriminant f(A, y k ,u k , b k ) is defined as follows: Among them, A is the coding coefficient of the sample, a i is the column vector of encoding coefficients A, is the loss function, is a regularization term, when When when hour, 2. A pattern classification method for supporting vector regularized dictionary learning according to claim 1, characterized in that The training set X is input into the support vector regularization dictionary learning model, and the corresponding objective function is optimized and solved to obtain the parsing dictionary P, comprehensive dictionary D, encoding coefficient A and support vector machine classifier parameters suitable for the training set.<U,b> ,include: The solution is solved by loop iteration, updating A, P, D and<U,b> ; When updating a variable, you need to fix other variables and iterate ① to ④ repeatedly, that is: ①Fix P, D,<U,b> , update A; ②Fix A, D,<U,b> , update P; ③Fix A, P,<U,b> , update D; ④Fix A, P, D, update<U,b> ; When the objective function value converges or the maximum number of iterations is reached, the iteration is stopped to obtain the optimal output result.

3. A pattern classification method based on support vector regularized dictionary learning according to claim 1, characterized in that The parsing dictionary P obtained by the training is used for the test set Encode and get the test set encoding coefficient include: Use the parsing dictionary P learned based on the training set and the test set Multiply them together to get the test set encoding coefficient 4. A pattern classification method based on support vector regularization dictionary learning according to claim 1, characterized in that The test set encoding coefficients are Input into the trained support vector machine classifier to obtain classification results, including: Use the trained support vector machine classifier parameters<U,b> ,calculate The jth element of the i-th column vector of the matrix H represents the i-th sample of the test set The confidence level of belonging to the jth class will be The classification result is determined to be the category with the highest corresponding confidence.