A computer vision feature extraction method based on gradient penalty

Through the computer vision feature extraction method based on gradient penalty, combined with the preprocessing of multimedia data and the gradient penalty loss function, the problem of insufficient accuracy and insufficient generalization ability of the deep learning model in computer vision recognition tasks is solved, and the recognition accuracy of the model is improved. And the ability to resist attacks improves robustness.

CN118470343BActive Publication Date: 2024-09-27HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410941479.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-27
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

Deep learning models have problems of insufficient accuracy and generalization ability in computer vision recognition tasks. In particular, they are vulnerable to adversarial attacks, and the first-order derivative loss training method is not enough to improve the robustness of the model.

Method used

A computer vision feature extraction method based on gradient penalty is used to obtain multimedia data and perform preprocessing, calculate the first loss function and gradient penalty loss function, perform back propagation to update the neural network model parameters, and combine the L1 norm, L2 norm and Local L2 norm loss improves the generalization ability and robustness of the model.

Benefits of technology

It significantly improves the model's recognition accuracy and adversarial attack capabilities, and improves the model's generalization and robustness without affecting the model's reasoning speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470343B
    Figure CN118470343B
Patent Text Reader

Abstract

The present application relates to a computer vision feature extraction method based on gradient penalty, which pre-processes multimedia data; inputs the pre-processed multimedia data and its annotation information into a neural network model, and calculates a first loss function; performs back propagation on the input data of the neural network model based on the first loss function, and obtains the first-order derivative of the first loss function to the input data; calculates the gradient penalty loss function according to the first-order derivative of the first loss function to the input data; performs secondary back propagation on the neural network model according to the first loss function and the gradient penalty loss function, and the target of the secondary back propagation is the model parameters, and the model parameters are updated; repeats the execution until the maximum number of training times is reached, and a trained neural network model is obtained; inputs the medical multimedia data whose features are to be extracted into the trained neural network model, and outputs the prediction results. This method can improve the recognition accuracy of the model, and at the same time improve the model's ability to resist attacks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image feature extraction, and in particular to a computer vision feature extraction method based on gradient penalty. Background Art

[0002] At present, when applying the model, it is necessary to judge new data that has not been seen, so generalization ability is crucial. In addition to the problem of insufficient accuracy, the generalization ability of current deep learning algorithms also needs to be improved. Studies have shown that deep learning models are vulnerable in computer vision recognition tasks, that is, simply adding noise that cannot be recognized by the naked eye to the input data can make the neural network output wrong prediction results with high confidence. Moreover, in the field of computer vision recognition, the loss training method based on first-order derivatives is still dominant. Summary of the invention

[0003] Based on this, it is necessary to provide a computer vision feature extraction method based on gradient penalty, which includes:

[0004] S1: Acquire multimedia data and its annotation information; and pre-process the multimedia data;

[0005] S2: inputting the preprocessed multimedia data and its annotation information into a neural network model to calculate a first loss function;

[0006] S3: back-propagating the input data of the neural network model based on the first loss function to obtain a first-order derivative of the first loss function with respect to the input data;

[0007] S4: Calculate the gradient penalty loss function according to the first-order derivative of the first loss function with respect to the input data;

[0008] S5: performing secondary back propagation on the neural network model according to the first loss function and the gradient penalty loss function, wherein the target of the secondary back propagation is the model parameters, and updating the model parameters;

[0009] S6: Repeat S2-S5 until the maximum number of training times is reached, and a trained neural network model is obtained;

[0010] S7: Input the medical multimedia data whose features are to be extracted into the trained neural network model and output the prediction results.

[0011] Preferably, the multimedia data includes images or video sequences.

[0012] Preferably, when the computer vision feature extraction method performs different tasks, the annotation information and the prediction result are different, including:

[0013] When performing an image recognition task, the annotation information is a category annotation, and the prediction result is a category of the target;

[0014] When performing an image detection task, the annotation information is a box annotation and a category annotation, and the prediction result is the location and category of the target;

[0015] When performing an image segmentation task, the annotation information is a mask annotation, and the prediction result is the target area;

[0016] When executing multiple types of tasks, the multiple types of tasks include image recognition tasks, image detection tasks and / or image segmentation tasks, the annotation information is composed of annotation information corresponding to multiple image recognition tasks, image detection tasks and / or image segmentation tasks, and the prediction results are composed of prediction results corresponding to multiple image recognition tasks, image detection tasks and / or image segmentation tasks.

[0017] Preferably, the preprocessing of the multimedia data includes:

[0018] A plurality of the images and their annotation information constitute a training set;

[0019] Cropping the image with a random size and a random aspect ratio, and resampling the image to a preset size;

[0020] Randomly flip the multiple images left and right with a probability of 0.5;

[0021] Perform RandAugment data enhancement on the image with an intensity of 7 and an intensity standard deviation of 0.5, and fill it with the statistical mean of the training set;

[0022] Perform random color jitter on the image with brightness, contrast and saturation all at 0.4;

[0023] Randomly erase the image with a probability of 0.25, a minimum ratio of 0.2, a maximum ratio of 1 / 3, and a mode of rand, and fill it with the statistical mean and statistical standard deviation of the training set;

[0024] The calculation formula for the statistical mean of the training set is:

[0025] ;

[0026] in, For each data element vector in the input data, is the total number of data element vectors, is an iterative representation of a vector of data elements, is the calculated statistical mean;

[0027] The calculation formula for the statistical standard deviation of the training set is:

[0028] ;

[0029] in, is the calculated statistical mean, is the calculated statistical standard deviation;

[0030] The image is normalized using the statistical mean and statistical standard deviation of the training set, and Mixup and CutMix data enhancement operations are performed.

[0031] Preferably, the first loss function includes a mean absolute error loss function, a mean square error loss function, or a cross entropy loss function.

[0032] Preferably, the neural network model adopts VIT-S, and the parameter settings include: patch size is 16, model base dimension is 384, there are 12 fully connected layers, 6 attention heads, the dimension size of the fully connected hidden layer is 4 times the model base dimension, the random depth value is 0.1, and a linear classification head is used for final classification.

[0033] Preferably, the training times of the neural network model include a training batch size of 128 and a training round number of 400 rounds.

[0034] Preferably, the gradient penalty loss function includes L1 norm loss, L2 norm loss and local L2 norm loss; the expression of the gradient penalty loss function is:

[0035] ;

[0036] ;

[0037] ;

[0038] ;

[0039] in, represents the gradient penalty loss function; represents the first weight; represents the second weight; represents the third weight; represents L1 norm loss; represents L2 norm loss; represents the local L2 norm loss; represents the first loss function; Represents the first element value of the preprocessed multimedia data; Represents the second element value of the preprocessed multimedia data; Represents the firsti element value; Represents the first n element value; Represents the first ik element value; Represents the first i+k element value; n Indicates the number of elements in a multimedia data; k Indicates the calculation window size; represents the mean square error loss.

[0040] Preferably, performing secondary back propagation on the neural network model according to the first loss function and the gradient penalty loss function includes: summing the first loss function and the gradient penalty loss function to obtain a total loss function, performing secondary back propagation on the neural network model based on the total loss function, calculating the derivative of the total loss function with respect to the model parameters of the neural network model, thereby updating the model parameters of the neural network model.

[0041] Preferably, the multimedia data and its annotation information adopt images and their corresponding categories in the Caltech101 dataset.

[0042] Beneficial effects: This method can improve the model recognition accuracy, while improving the model's ability to resist attacks, improving the model's generalization and robustness, without affecting the model's reasoning speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 This is a flowchart of a computer vision feature extraction method based on gradient penalty according to an embodiment of the present application.

[0045] Figure 2 This is a verification accuracy diagram for the training phase of an embodiment of the present application.

[0046] Figure 3 This is a parameter optimization diagram of an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.

[0048] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0049] like Figure 1 As shown, this embodiment provides a computer vision feature extraction method based on gradient penalty, the method comprising:

[0050] S1: Acquire multimedia data and its annotation information; and pre-process the multimedia data.

[0051] In this embodiment, the multimedia data includes images or video sequences.

[0052] The multimedia data and its annotation information adopt the pictures and their corresponding categories in the Caltech101 dataset. The Caltech101 dataset consists of 101 categories of object pictures, each category has about 40 to 800 pictures. Most categories have about 50 pictures, and common and popular categories such as faces usually have more pictures than uncommon categories. For object pictures with clear directions, such as airplanes and motorcycles, left-right mirroring is performed to align them; for vertical structures such as buildings, rotation is performed to deviate from the axis. The Caltech 101 dataset contains a total of 9146 pictures, divided into 101 different object categories, and an additional background / clutter category. In this example, it is randomly divided into training set, validation set and test set, where the training set contains 5287 pictures, and the training set average is calculated to be [138.52, 133.14, 126.49] and the standard deviation is [80.30, 78.70, 81.53].

[0053] When the computer vision feature extraction method performs different tasks, the annotation information and the prediction result are different, including:

[0054] When performing an image recognition task, the annotation information is a category annotation, and the prediction result is a category of the target;

[0055] When performing an image detection task, the annotation information is a box annotation and a category annotation, and the prediction result is the location and category of the target;

[0056] When performing an image segmentation task, the annotation information is a mask annotation, and the prediction result is the target area;

[0057] When executing multiple types of tasks, the multiple types of tasks include image recognition tasks, image detection tasks and / or image segmentation tasks, the annotation information is composed of annotation information corresponding to multiple image recognition tasks, image detection tasks and / or image segmentation tasks, and the prediction results are composed of prediction results corresponding to multiple image recognition tasks, image detection tasks and / or image segmentation tasks.

[0058] When used for video tasks, it is necessary to prepare training videos and related annotations.

[0059] Further, the preprocessing of the multimedia data includes:

[0060] A plurality of the images and their annotation information constitute a training set;

[0061] Cropping the image with random size (0.08 to 1.0) and random aspect ratio (3 / 4 to 4 / 3), and resampling the image to a preset size (224*224);

[0062] Randomly flip the multiple images left and right with a probability of 0.5;

[0063] The image is subjected to RandAugment data enhancement with an intensity of 7 and an intensity standard deviation of 0.5, wherein the selected strategy is 2, and the statistical mean of the training set is used for filling, and the resampling method is bicubic;

[0064] Perform random color jitter on the image with brightness, contrast and saturation all at 0.4;

[0065] Randomly erase the image with a probability of 0.25, a minimum ratio of 0.2, a maximum ratio of 1 / 3, and a mode of rand, and fill it with the statistical mean and statistical standard deviation of the training set;

[0066] The calculation formula for the statistical mean of the training set is:

[0067] ;

[0068] in, For each data element vector in the input data (usually a pixel RGB vector), is the total number of data element vectors, is an iterative representation of a vector of data elements, is the calculated statistical mean;

[0069] The calculation formula for the statistical standard deviation of the training set is:

[0070] ;

[0071] in, is the calculated statistical mean, is the calculated statistical standard deviation;

[0072] The image is normalized using the statistical mean and statistical standard deviation of the training set, and Mixup and CutMix data enhancement operations are performed, with alpha values ​​set to 0.8 and 1.0, respectively.

[0073] Validation set and test set data preprocessing process:

[0074] Resample the image so that the shorter side of the image has a size of 256;

[0075] Perform a center cropping operation on the image, with the cropping size being 224*224;

[0076] The images are normalized using the mean and standard deviation calculated from the validation set and test set.

[0077] S2: Input the preprocessed multimedia data and its annotation information into the neural network model to calculate the first loss function.

[0078] In this embodiment, the prepared model is not limited to the model structure, and models based on convolution and transformer can be used. Generally speaking, any model that can be trained using the stochastic gradient descent method can use the method described in this embodiment. The prepared loss function is also not limited to the type, and loss functions such as loss based on mean absolute error, mean square error loss, cross entropy loss, loss based on label smoothing, Dice loss, Focal loss, IOU Loss, etc. can all be used as the first loss function.

[0079] The mean absolute error-based loss, also known as the L1 loss, calculates the mean absolute error (MAE) between each corresponding element of the input matrix and the target matrix as the loss:

[0080] ;

[0081] ;

[0082] in, represents the mean absolute error; x is the input matrix, y is the target matrix; x and y Same shape, both have elements; express The number of any one of the elements; reduction refers to the way of aggregating the elements of the loss matrix, which can be mean aggregation ('mean') or sum aggregation ('sum'), and mean aggregation is usually used; T means transpose; L Represents the loss function without aggregation operation; Represents the first element in the loss function without aggregation operation; Represents the loss function without aggregation operation. elements; Represents the loss function without aggregation operation. elements; Indicates the first elements; Indicates the target matrix elements; Represents the averaging operation; Represents a sum operation.

[0083] Mean squared error loss is similar to L1 loss, but uses quadratic loss to calculate the loss:

[0084] ;

[0085] ;

[0086] in, represents the mean square error loss function; x is the input matrix, y is the target matrix. x and y Same shape and have n elements. Reduction refers to the way of aggregating the elements of the loss matrix, usually using mean aggregation.

[0087] Cross entropy loss is a commonly used loss function. Its formula is as follows:

[0088] ;

[0089] ;

[0090] ;

[0091] in, represents the cross entropy loss function; x is the input matrix, y is the target matrix, C is the number of categories, N is the batch size, reduction refers to the way of aggregating the elements of the loss matrix, usually using mean aggregation; Indicates The weights set for each category; Indicated in the input matrix Middle to The multimedia data is predicted as The probability of each category.

[0092] In this embodiment, the neural network model adopts VIT-S, and the parameter settings include: the patch size is 16, the model basic dimension is 384, there are 12 fully connected layers, 6 attention heads, the dimension size of the fully connected hidden layer is 4 times the model basic dimension, the random depth value is 0.1, and a linear classification head is used for the final classification.

[0093] S3: Back-propagate the input data of the neural network model based on the first loss function to obtain the first-order derivative of the first loss function with respect to the input data.

[0094] S4: Calculate the gradient penalty loss function according to the first-order derivative of the first loss function with respect to the input data.

[0095] Specifically, the gradient penalty loss function includes L1 norm loss, L2 norm loss and local L2 norm loss; the expression of the gradient penalty loss function is:

[0096] ;

[0097] ;

[0098] ;

[0099] ;

[0100] in, represents the gradient penalty loss function; represents the first weight; represents the second weight; represents the third weight; represents L1 norm loss; represents L2 norm loss; represents the local L2 norm loss; represents the first loss function; Indicates the first element value of the preprocessed multimedia data (such as the R channel value in the RGB channel of the upper left pixel position in the input image); Represents the second element value of the preprocessed multimedia data (such as the G channel value in the RGB channel of the upper left pixel position in the input image); Represents the first i An element value (such as the R channel value in the RGB channel of a pixel position in the input image); Represents the first n An element value (such as the R channel value in the RGB channel of a pixel position in the input image); Represents the first i- k An element value (such as the R channel value in the RGB channel of a pixel position in the input image); Represents the first i+k An element value (such as the R channel value in the RGB channel of a pixel position in the input image); n Indicates the number of elements in a multimedia data (e.g., the image length in a preprocessed input image). Image width 3 (number of RGB channels)); k Indicates the calculation window size; represents the mean square error loss.

[0101] S5: Perform secondary back propagation on the neural network model according to the first loss function and the gradient penalty loss function, wherein the target of the secondary back propagation is the model parameters, and the model parameters are updated.

[0102] Specifically, performing secondary back propagation on the neural network model according to the first loss function and the gradient penalty loss function includes: summing the first loss function and the gradient penalty loss function to obtain a total loss function, performing secondary back propagation on the neural network model based on the total loss function, calculating the derivative of the total loss function with respect to the model parameters of the neural network model, thereby updating the model parameters of the neural network model.

[0103] S6: Repeat S2-S5 until the maximum number of training times is reached to obtain a trained neural network model.

[0104] In this embodiment, the number of training times of the neural network model includes a training batch size of 128 and a training round of 400 rounds. The accuracy index is used for evaluation. The automatic learning rate planning technology is used, in which the base batch size is set to 1024 and the base learning rate is 2e-3. The learning rate planning technology is used, and after the linear learning rate warmup, it is a learning rate decay based on the cosine function. The linear initial learning rate coefficient is 1e-4, and it starts to decay after 70 rounds, and the final learning rate coefficient is 5e-4. The learning rate planning is performed iteration by iteration. The AdamW optimizer is used, and the weight decay value is set to 0.05. Set to 0.9, Set to 0.999. Use gradient clipping (clip_grad) and set the maximum norm value to 1.0.

[0105] S7: Input the medical multimedia data whose features are to be extracted into the trained neural network model and output the prediction results.

[0106] In this embodiment, not only medical multimedia data features can be extracted, but also multimedia data features in other fields can be extracted according to actual conditions.

[0107] The computer vision feature extraction method based on gradient penalty provided in this embodiment proves that this technology can be applied in multiple tasks such as recognition, detection, and segmentation of images or videos in computer vision. Using this method can not only improve the model recognition accuracy, but also improve the model's ability to resist attacks, and improve the model's generalization and robustness. The algorithm based on gradient penalty has been proven to be effective in the generation field in computer vision and is an algorithm based on second-order derivatives.

[0108] During the training phase, the top-1 accuracy of the model on the validation set was verified every 5 epochs. The verification accuracy is shown in Figure 2 .from Figure 2 As can be seen in the figure, in the initial stage of training, the model parameters are randomly initialized. Since the training time is not long, this method has not yet taken effect. The performance of this method is similar to that of the baseline model. As the training process progresses, the accuracy of the model using this method gradually increases and exceeds the baseline model. In the end, the verification accuracy of the model using this method is 74.51%, and the verification accuracy of the baseline model is 70.44%, which is 4.07% higher than the baseline model. After the model training is completed, the accuracy of the model on the test set is experimented. In the end, the test accuracy of the model using this method is 75.10%, and the test accuracy of the baseline model is 72.04%, which is 4.07% higher than the baseline model.

[0109] In order to eliminate the influence of randomness in a single experiment and search for the optimal Loss weight, a hyperparameter search experiment was also conducted on the validation set and the test set. The experimental settings of this part of the experiment are basically the same as those of the above experiment. The experimental results are shown in Figure 3 . It can be seen that this method is not sensitive to the hyperparameter setting, and the Loss weight can significantly improve the model performance in the range of 5000~100000. At the same time, multiple experiments were conducted on each hyperparameter value to eliminate the influence of randomness. The experiment found that the model performed best when the hyperparameter was set to 40000. When the hyperparameter was set to 40000, the average accuracy on the validation set was improved by about 2.14%, and the average accuracy on the test set was improved by about 2.33%.

[0110] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0111] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.

Claims

1. A computer vision feature extraction method based on gradient penalty, characterized in that: include: S1: Acquire multimedia data and its annotation information; and preprocess the multimedia data; the multimedia data includes an image or a video sequence; S2: inputting the preprocessed multimedia data and its annotation information into a neural network model to calculate a first loss function; S3: back-propagating the input data of the neural network model based on the first loss function to obtain a first-order derivative of the first loss function with respect to the input data; S4: Calculate the gradient penalty loss function according to the first-order derivative of the first loss function with respect to the input data; S5: performing secondary back propagation on the neural network model according to the first loss function and the gradient penalty loss function, wherein the target of the secondary back propagation is the model parameters, and updating the model parameters; S6: Repeat S2-S5 until the maximum number of training times is reached, and a trained neural network model is obtained; S7: Input the medical multimedia data whose features are to be extracted into the trained neural network model and output the prediction results.

2. The computer vision feature extraction method based on gradient penalty according to claim 1, characterized in that: When the computer vision feature extraction method performs different tasks, the annotation information and the prediction result are different, including: When performing an image recognition task, the annotation information is a category annotation, and the prediction result is a category of the target; When performing an image detection task, the annotation information is a box annotation and a category annotation, and the prediction result is the location and category of the target; When performing an image segmentation task, the annotation information is a mask annotation, and the prediction result is the target area; When executing multiple types of tasks, the multiple types of tasks include image recognition tasks, image detection tasks and / or image segmentation tasks, the annotation information is composed of annotation information corresponding to multiple image recognition tasks, image detection tasks and / or image segmentation tasks, and the prediction results are composed of prediction results corresponding to multiple image recognition tasks, image detection tasks and / or image segmentation tasks.

3. The computer vision feature extraction method based on gradient penalty according to claim 1, characterized in that: The preprocessing of the multimedia data comprises: A plurality of the images and their annotation information constitute a training set; Cropping the image with a random size and a random aspect ratio, and resampling the image to a preset size; Randomly flip the multiple images left and right with a probability of 0.5; Perform RandAugment data enhancement on the image with an intensity of 7 and an intensity standard deviation of 0.5, and fill it with the statistical mean of the training set; Perform random color jitter on the image with brightness, contrast and saturation all at 0.4; Randomly erase the image with a probability of 0.25, a minimum ratio of 0.2, a maximum ratio of 1 / 3, and a mode of rand, and fill it with the statistical mean and statistical standard deviation of the training set; The calculation formula for the statistical mean of the training set is: ; in, For each data element vector in the input data, is the total number of data element vectors, is an iterative representation of a vector of data elements, is the calculated statistical mean; The calculation formula for the statistical standard deviation of the training set is: ; in, is the calculated statistical mean, is the calculated statistical standard deviation; The image is normalized using the statistical mean and statistical standard deviation of the training set, and Mixup and CutMix data enhancement operations are performed.

4. The computer vision feature extraction method based on gradient penalty according to claim 2, characterized in that: The first loss function includes a mean absolute error loss function, a mean square error loss function, or a cross entropy loss function.

5. The computer vision feature extraction method based on gradient penalty according to claim 1, characterized in that: The neural network model adopts VIT-S, and the parameter settings include: patch size is 16, model base dimension is 384, there are 12 fully connected layers, 6 attention heads, the dimension size of the fully connected hidden layer is 4 times the model base dimension, the random depth value is 0.1, and a linear classification head is used for final classification.

6. The computer vision feature extraction method based on gradient penalty according to claim 1, characterized in that: The training times of the neural network model include a training batch size of 128 and a training epoch of 400 epochs.

7. The computer vision feature extraction method based on gradient penalty according to claim 1, characterized in that: The gradient penalty loss function includes L1 norm loss, L2 norm loss and local L2 norm loss; the expression of the gradient penalty loss function is: ; ; ; ; in, represents the gradient penalty loss function; represents the first weight; represents the second weight; represents the third weight; represents L1 norm loss; represents L2 norm loss; represents the local L2 norm loss; represents the first loss function; Represents the first element value of the preprocessed multimedia data; Represents the second element value of the preprocessed multimedia data; Represents the first i element value; Represents the first n element value; Represents the first ik element value; Represents the first i+k element value; n Indicates the number of elements in multimedia data; k Indicates the calculation window size; represents the mean square error loss.

8. The computer vision feature extraction method based on gradient penalty according to claim 1, characterized in that: The secondary back propagation of the neural network model according to the first loss function and the gradient penalty loss function includes: summing the first loss function and the gradient penalty loss function to obtain a total loss function, performing secondary back propagation on the neural network model based on the total loss function, calculating the derivative of the total loss function with respect to the model parameters of the neural network model, and thereby updating the model parameters of the neural network model.

9. The computer vision feature extraction method based on gradient penalty according to claim 1, characterized in that: The multimedia data and its annotation information adopt the pictures and their corresponding categories in the Caltech101 dataset.