A classification method for imbalanced data of tactile materials based on DDQN
By using the combined method of DDQN and VGG19 in tactile material classification, the problem of low classification accuracy under unbalanced data is solved and a high-precision classification effect is achieved, which is suitable for fields such as robot recognition.
Patent Information
- Application Number
- CN202111000507.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-08-27
AI Technical Summary
Existing tactile material classification methods have low accuracy when dealing with unbalanced data, especially ignoring a small number of sample materials, and are easily affected by noise. Traditional methods such as SMOTE and NearMiss are not applicable in tactile material classification and are prone to overfitting.
A method based on DDQN is adopted, VGG19 is used to extract image features, and a DDQN environment is constructed. The network parameters are optimized according to the imbalance rate by adjusting the reward function to avoid overfitting, and the deep reinforcement learning algorithm is used to improve classification accuracy in imbalanced data.
It achieves high-precision classification under unbalanced data, avoids over-fitting, and improves classification effects. It is suitable for fields such as robot recognition and tactile telepresence.
Smart Images

Figure CN114332594B
Abstract
Description
Technical Field
[0001] The present invention relates to a classification method for tactile material imbalance data, and in particular to a classification method for tactile material imbalance data based on DDQN. Background Art
[0002] Tactile material classification has become an important and rapidly developing research topic in recent years. At the same time, the classification of unbalanced data of tactile materials has gradually attracted people's attention. The large difference in the number of samples of different materials reduces the classification accuracy of many methods. Unbalanced data appears in many practical applications, such as robot recognition and remote operation systems.
[0003] In recent years, many methods for the classification of tactile materials have been proposed. Among them, classification using visual information is one of the main classification methods. At the beginning of the study of tactile material classification, many methods were used to extract hand-crafted features from images for classification. They used random projection to compress images and obtain image features, and then used the K-order nearest neighbor method to classify these features. In addition, calculating the gray level co-occurrence matrix is also a very advanced method. They used the k-order nearest neighbor to classify the features obtained from the gray level co-occurrence matrix. Since these methods have greatly compressed the image information, the differences between materials have become so small that it is difficult to apply to imbalanced data classification. With the development of convolutional neural networks (CNNs), many CNN-based tactile material classification methods have been developed. In 2015, MirceaCimpoi et al. used CNN as a feature extraction tool and defined the Fisher-vector descriptor extracted from the output of the intermediate layer of CNN as a feature. But a major disadvantage of CNN-based methods is that they ignore materials with a small number of samples in imbalanced data classification.
[0004] The two main methods for handling imbalanced data classification are the oversampling technique SMOTE and the downsampling technique NearMiss. However, neither of these two methods is suitable for the imbalanced data classification of tactile materials. This is because the new material samples generated by SMOTE are prone to overfitting of the classifier. NearMiss deletes some samples due to downsampling, which can easily cause the loss of important information. In addition, both methods are susceptible to noise. In 2012, Mikel Galar et al. proposed a method that combines ensemble learning with oversampling technology, such as SMOTE+Adaboost. Since then, some representative methods of ensemble learning, such as random forest, SMOTE+random forest, etc., have gradually become popular.
[0005] As a deep reinforcement learning algorithm, DDQN is very popular in the field of robot decision-making and games. VGG19 was proposed by the Visual Geometry Group of Oxford University in 2015. Its proposal proves that increasing the depth of the network affects the performance of the network to a certain extent. Summary of the invention
[0006] The present invention provides a classification method for unbalanced data of tactile materials based on DDQN to solve the classification problem of unbalanced data caused by tactile data collection in real scenes.
[0007] The technical solution adopted by the present invention is: comprising the following steps:
[0008] (1) Use VGG19 to process images and extract image features;
[0009] (2) Treat the image features extracted by VGG19 as the states of DDQN and their labels as the actions of DDQN to build the environment of DDQN;
[0010] (3) Set the reward function of DDQN according to the number of samples in the training set of different materials;
[0011] (4) The evaluation network of DDQN estimates the Q value and selects the action with the largest Q value to pass to the target network;
[0012] (5) The target network of DDQN calculates the temporal difference error of the estimated Q value of the evaluation network;
[0013] (6) The time difference error of the evaluation network's estimated Q value is subjected to stochastic gradient descent optimization parameter optimization until the global optimal solution is found. At the end of the training, the trained network is saved and the image is classified according to the action corresponding to the maximum Q value.
[0014] The specific method of extracting image features in step (1) of the present invention is:
[0015] The label of the unbalanced image set is represented as Where M represents M types of materials, and the unbalanced image set is expressed as in Indicates the first i A collection of images of materials, is the standard image set, whose number of images n is the least among all materials, and then we define the imbalance rate σ i n divided by the first i The number of images of the material, where i = 1, ..., M, σ i The range of variation is (0,1];
[0016] VGG19 is used as the feature extraction network. VGG19 consists of 16 convolutional layers and 3 fully connected layers. A global average pooling layer is used to replace the 3 fully connected layers. The global average pooling layer outputs the average value of all pixels in each feature map obtained by convolution. These average values are then regarded as feature vectors. The images in the unbalanced image set are input into VGG19 to obtain the features of these images {X1,…,X h}, h is the number of all images in the unbalanced image set. These extracted features will be used to build the DDQN environment in the next step.
[0017] The specific approach of constructing the DDQN environment in step (2) of the present invention is that the DDQN environment is composed of states and actions;
[0018] Status: Before each iteration, randomly shuffle the image features {X1,…,X h}, and then treat them as states {S1,…,S h}, use this method to convert image features into state sequences;
[0019] Action: The goal of classification is to find the correct label for each image, which is defined as making the correct action, and the label of the image {l1,…,l M} as the action space, DDQN in state S t Then the state S t Transform to a new state S t+1 , t represents the tth step performed by DDQN.
[0020] The specific method of setting the reward function in step (3) of the present invention is:
[0021] A reward function R is defined for the imbalanced image set, which varies with the imbalance rate σ i Change, in state S t , forming state S t The features of the picture belong to If DDQN takes action a at step t t The correct action is l i , it will get σ i reward, otherwise get -σ i Reward, the reward function is as follows:
[0022]
[0023] The specific way of evaluating the action of selecting the maximum Q value in step (4) of the present invention is:
[0024] In DDQN, a neural network-based evaluation network Q′ is established to estimate the action value: Q value; Q value reflects the estimate of the future reward obtained by DDQN taking action a in state s;
[0025]
[0026] Among them, w (t) represents the parameters of the evaluation network Q′ at step t, G t It represents the reward for taking action a in state s plus the future reward, and uses the discount factor γ to reduce the impact of future rewards on the current action selection:
[0027] G t =R t +γR t+1 +γ 2 R t+2 +γ 3 R t+3 +…+γ k R t+k
[0028] R t Represents the state s at step t t Make an action t Then the reward obtained based on the right or wrong of the action and the unbalanced reward function, R t+1 represents the reward of step t+1, and k represents the number of steps of DDQN in one iteration;
[0029] In particular, in addition to the evaluation network Q′, DDQN has another target network Its construction is the same as the evaluation network Q′, and its parameters are copied from the evaluation network Q′ at regular intervals. t+1 , the evaluation network Q′ estimates the Q values corresponding to all actions, and then selects the action corresponding to the maximum Q value:
[0030]
[0031] Among them, Q(s t+1 ,a;w (t) ) represents the Q value estimated by the evaluation network Q′, and the evaluation network Q′ selects the action a corresponding to the maximum Q value * After that, action a * The temporal difference error passed to the target network for computing the estimated Q value.
[0032] The specific method of calculating the time difference error of the target network in step (5) of the present invention is:
[0033] Target Network The action a corresponding to the maximum Q value selected by the evaluation network Q′* Used to calculate the time difference target (TD target) y t ,y t The calculation formula is as follows:
[0034]
[0035] r represents the state of DDQN in the previous state s t The reward obtained after taking an action according to the unbalanced reward function, w (t-tmodc) Indicates that the parameters of the evaluation network Q' are copied to the target network every C steps To calculate the time difference error, the calculated time difference target is used to calculate the time difference error δ of the estimated Q value of the evaluation network Q′ t :
[0036] δ t =Q(s t ,a;w (t) )-y t
[0037] The time difference error δ obtained at step t is t Will be used for parameter update.
[0038] The specific approach of reducing the estimated Q value error optimization parameter in step (6) of the present invention is:
[0039] The target network The time difference error is obtained by subtracting the calculated time difference target from the Q value evaluated by the evaluation network Q′. The stochastic gradient descent method is used to reduce this error. First, the error function is defined as:
[0040]
[0041] Then use the stochastic gradient descent method to reduce the error and optimize the parameters. The steps are:
[0042]
[0043] where w (t+1) Represents the parameters of the t+1th step. As the training progresses, the gradient descent is continuously used to optimize the parameters until the global optimal solution is found, that is, the value of the error function L(w) is minimized. After the training is completed, the trained network is saved. When a new image is input into the trained network, VGG19 extracts features from the image, and the evaluation network Q′ of DDQN estimates the Q value corresponding to each action based on the image. The action corresponding to the maximum Q value is the label of the image.
[0044] As a deep reinforcement learning algorithm, DDQN, compared with existing classification methods, its adversarial system composed of evaluation network and target network can make the training of network parameters faster and prevent overfitting more prominently. At the same time, DDQN's representation ability is much stronger than existing classification methods. It maps the input features to a higher-dimensional space, and the classification effect is more significant. However, there is no research on the use of DDQN for classification problems. In this invention, DDQN is used for classification problems for the first time. We regard the classification problem as a decision-making process, and regard the classification of data and finding the correct label as making the correct action in a certain state. DDQN's own advantages are perfectly applied to the classification problem, achieving very good results.
[0045] The study found that DDQN's reward mechanism is very suitable for classifying imbalanced data. By changing its rewards, DDQN can adjust its focus on different materials and avoid ignoring materials with a small number of training samples. In general methods, the features used for classification are always confused with noise during the processing process, which affects the performance of the classifier. In this method, the convolutional neural network VGG19 is introduced to process images, avoiding the interference of noise and ensuring the robustness of the extracted features.
[0046] VGG19 performs very well in classifying images and extracting image features. The parameter update mechanism of DDQN avoids overfitting and ensures the robustness of the trained network. This method only uses images of materials that are easy to collect when classifying tactile materials, and does not use tactile information such as acceleration friction, avoiding the data collection process of using complex tactile information collection equipment.
[0047] The advantages of the present invention are: using the deep reinforcement learning method DDQN for processing decision problems to solve the classification problem of unbalanced data of tactile materials, and the classification accuracy is higher than the commonly used classification method of unbalanced data; compared with the traditional classification CNN method, only a very small time cost is used to improve the classification accuracy; only pictures are used to achieve a high classification accuracy, avoiding the process of collecting tactile information, and can be applied to robot recognition, tactile remote presentation and other fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flow chart of the present invention;
[0049] Figure 2 It is a flowchart of VGG19 extracting features of tactile material imbalance data and feeding them into DDQN classification in the present invention;
[0050] Figure 3 It is a confusion matrix plot for the classification of imbalanced data of tactile materials. DETAILED DESCRIPTION
[0051] The following steps are involved:
[0052] (1) Use VGG19 to process images and extract image features:
[0053] There are two main methods for classifying unbalanced data of tactile materials. One is to use only visual information images for classification, and the other is to use visual information images and tactile information such as acceleration and friction for classification. In this method, only images are used to classify tactile materials. The labels of the unbalanced image set can be expressed as Where M represents M types of materials, and the unbalanced image set is expressed as in Indicates the first i A collection of images of materials. Without loss of generality, we define is a standard image set, whose number of images n is the least among all materials, and the imbalance rate σ is defined i n divided by the first i The number of images of a material, where i = 1,…,M. σ i The range of variation is (0,1];
[0054] VGG19 is used as the feature extraction network. VGG19 consists of 16 convolutional layers and 3 fully connected layers. Compared with networks using large convolutional kernels (such as AlexNet), its deeper convolutional layers and smaller convolutional kernels ensure that the extracted features are more robust. However, the fully connected layer increases the computational complexity and easily leads to overfitting. Therefore, a global average pooling layer is used instead of the three fully connected layers. The global average pooling layer outputs the average value of all pixels in each feature map obtained by convolution, and then these average values are regarded as feature vectors. The images in the unbalanced image set are input into VGG19 to obtain the features of these images {X1,…,X h}, h is the number of all images in the unbalanced image set. These extracted features will be used to build the DDQN environment in the next step;
[0055] (2) Take the image features extracted by VGG19 as the states of DDQN, and their labels as the actions of DDQN to build the environment of DDQN. The environment of DDQN is composed of states and actions:
[0056] Status: Before each iteration, randomly shuffle the image features {X1,…,X h}, and then treat them as states {S1,…,S h}, use this method to convert image features into state sequences;
[0057] Action: The goal of classification is to find the correct label for each image, which is defined as making the correct action, and assigning the image label {l1,…,lM} as the action space, DDQN in state S t Then the state S t Transform to a new state S t+1 , t represents the tth step of DDQN. Unless otherwise specified in the present invention, t refers to the tth step. In the next step, the reward function of DDQN is set to motivate DDQN to make correct decisions.
[0058] (3) Set the reward mechanism of DDQN according to the number of training samples of different materials:
[0059] The reward is important in our method because we can adjust it to change the importance DDQN places on different materials. We define a reward function R for the imbalanced image set, which varies with the imbalance rate σ i Change. In state S t , forming state S t The features of the picture belong to If DDQN takes action a at step t t The correct action is l i , it will get σ i reward, otherwise get -σ i Reward, the reward function is as follows:
[0060]
[0061] (4) The evaluation network of DDQN estimates the Q value and selects the action with the largest Q value to pass to the target network:
[0062] In DDQN, a neural network-based evaluation network Q′ is established to estimate the action value: Q value, which reflects the estimate of the future reward obtained by DDQN taking action a in state s:
[0063]
[0064] Among them, w (t) represents the parameters of the Q network at step t, G t It represents the reward for taking action a in state s plus the future reward, and uses the discount factor γ to reduce the impact of future rewards on the current action selection:
[0065] G t =R t +γR t+1 +γ 2 R t+2 +γ 3 R t+3 +…+γ k R t+k
[0066] Rt Represents the state s at step t t Make an action t Then the reward obtained based on the right or wrong of the action and the unbalanced reward function, R t+1 represents the reward of step t+1, and k represents the number of steps of DDQN in one iteration;
[0067] In particular, in addition to the evaluation network Q′, DDQN has another target network Its construction is the same as the evaluation network Q′, and its parameters are copied from the evaluation network Q′ at regular intervals. t+1 , the evaluation network Q′ estimates the Q values corresponding to all actions, and then selects the action corresponding to the maximum Q value:
[0068]
[0069] Among them, Q(s t+1 ,a;w (t) ) represents the Q value estimated by the evaluation network Q′, and the evaluation network Q′ selects the action a corresponding to the maximum Q value * After that, action a * The time difference error passed to the target network for calculating the estimated Q value;
[0070] (5) The target network of DDQN calculates the temporal difference error of the estimated Q value of the evaluation network:
[0071] Target Network The action a corresponding to the maximum Q value selected by the evaluation network Q′ * Used to calculate the time difference target (TD target) y t ,y t The calculation formula is as follows:
[0072]
[0073] r represents the state of DDQN in the previous state s t The reward obtained after taking an action according to the unbalanced reward function, w (t-tmodc) Indicates that the parameters of the evaluation network Q' are copied to the target network every C steps To calculate the time difference error, the calculated time difference target is used to calculate the time difference error δ of the estimated Q value of the evaluation network Q′ t :
[0074] δ t =Q(s t ,a;w (t) )-y t
[0075] The time difference error δ obtained at step t is t Will be used for parameter update.
[0076] (6) The target network The time difference error is obtained by subtracting the calculated time difference target from the Q value evaluated by the evaluation network Q′. The stochastic gradient descent method is used to reduce this error. The error function is defined as:
[0077]
[0078] Then use the stochastic gradient descent method to reduce the error and optimize the parameters. The steps are:
[0079]
[0080] where w (t+1) Represents the parameters of the t+1th step. As the training progresses, the gradient descent is continuously used to optimize the parameters until the global optimal solution is found, that is, the value of the error function L(w) is minimized. After the training is completed, the trained network is saved. When a new image is input into the trained network, VGG19 extracts features from the image, and the evaluation network Q′ of DDQN estimates the Q value corresponding to each action based on the image, and classifies the image according to the action corresponding to the maximum Q value.
[0081] The applicability of the classification method of tactile material imbalance data based on DDQN proposed in the present invention to the existing tactile material database is analyzed through simulation experiment data. The software used in the simulation experiment is PyCharm software and Tensorflow framework.
[0082] Simulation experiment: The existing tactile material databases are all balanced databases. In order to be closer to the classification problems in real scenarios, the training samples of the existing databases are deleted to make them unbalanced databases. The LTM108 database proposed by the Technical University of Munich in 2017 was selected to evaluate the unbalanced data classification method of tactile materials based on DDQN. The LTM108 database contains 108 materials, each with 20 pictures. First, 2 pictures of each material are used for verification and 2 pictures are used for testing. Then the remaining 16 pictures are adjusted to make them unbalanced data for training. The imbalance ratio of 1:2:4:8 is defined. 27 materials are randomly selected from the 108 materials and these 16 pictures are deleted to 2. Then 27 materials are randomly selected from the remaining materials and deleted to 4 pictures. 27 materials are selected and deleted to 8 pictures. The last 27 materials are not deleted, and 16 pictures of each material are kept for training. The picture set of materials with 2 pictures is defined as the standard set, and the imbalance ratio σ iIt is the number of images in the standard set 2 divided by the number of images in the other image sets. The imbalance rate σ of the material used for training with 2 images and 4, 8, and 16 images for training i They are 1, 0.5, 0.25, and 0.125 respectively. i The reward for correctly classifying different materials with different settings. This experiment used cross-validation to ensure the robustness of the method. In the programming implementation, a global average pooling layer was used to replace the three fully connected layers of VGG19. The other layers of VGG19 remained unchanged. The parameters used by VGG19 were the parameters pre-trained on the public image dataset ImageNet. VGG19 was used to extract the image features of the unbalanced image set {X1,…,X 810 Then use these features and the labels of the materials they belong to {l1,…,l 108}Define the environment of DDQN, that is, the state and action of DDQN, and then define the reward function according to the number of pictures used for training with different materials. The discount factor γ used in the experiment is 0.1, the batch size used for training each time is 256, and the number of steps k of each iteration of DDQN is set to 2000. The experiment uses the python framework tensorflow to build the DDQN network. The experiment uses the python framework tensorflow to build the evaluation network and target network of DDQN. The structure of the two networks is exactly the same. They are both composed of 5 fully connected layers. The number of neurons in these 5 fully connected layers is 500, 400, 300, 200, and 108 respectively. The activation function of the fully connected layer is ReLU. Input the state and action of DDQN, define the reward function, and use the Adam stochastic gradient descent method to train the network until the error function reaches the minimum. The training ends and saves the trained network. Then we use the trained network to classify the test set and get the classification accuracy of the test set, which is the result in Table 1.
[0083] Figure 3 The confusion matrix of the DDQN-based tactile material imbalanced data classification method proposed in the present invention when classifying the LTM108 database is shown. Table 1 shows the classification results of DDQN and other two classic classifiers on the imbalanced LTM108 dataset.
[0084] Table 1 Classification results of DDQN and other two classic classifiers on the imbalanced LTM108 dataset
[0085]
[0086] From the analysis of the experimental results, it can be seen that the classification effect of the method proposed by the present invention is still significant when the imbalance ratio of the small sample data set (i.e., the sample set with a small number of training set samples) reaches up to 8:1, and the classification accuracy is significantly higher than other classifiers. In actual scenarios, for materials with high sample collection difficulty, more accurate classification can be performed even with a small number of samples; in addition, the present invention only uses the visual information of the tactile material without adding tactile information such as acceleration friction, avoiding the complex tactile information collection process, but achieving the classification accuracy of the fusion of visual information and tactile information.
Claims
1. A classification method for imbalanced data of tactile materials based on DDQN, characterized in that: The following steps are involved: (1) Use VGG19 to process images and extract image features; (2) Treat the image features extracted by VGG19 as the states of DDQN and their labels as the actions of DDQN to build the environment of DDQN; (3) Set the reward function of DDQN according to the number of samples in the training set of different materials; (4) The evaluation network of DDQN estimates the Q value and selects the action with the largest Q value to pass to the target network. The specific way in which the evaluation network selects the action with the largest Q value is: In DDQN, a neural network-based evaluation network Q′ is established to estimate the action value: Q value; The Q value reflects the estimate of the future reward obtained by DDQN taking action a in state s; Among them, w (t) represents the parameters of the evaluation network Q′ at step t, G t It represents the reward for taking action a in state s plus the future reward, and uses the discount factor γ to reduce the impact of future rewards on the current action selection: G t =R t +γR t+1 +g 2 R t+2 +g 3 R t+3 +…+c k R t+k R t Represents the state s at step t t Make an action t Then the reward obtained based on the right or wrong of the action and the unbalanced reward function, R t+1 represents the reward of step t+1, and k represents the number of steps of DDQN in one iteration; In particular, in addition to the evaluation network Q′, DDQN has another target network Its construction is the same as the evaluation network Q′, and its parameters are copied from the evaluation network Q′ at regular intervals. t+1 , the evaluation network Q′ estimates the Q values corresponding to all actions, and then selects the action corresponding to the maximum Q value: Among them, Q(s t+1 ,a;w (t) ) represents the Q value estimated by the evaluation network Q′, and the evaluation network Q′ selects the action a corresponding to the maximum Q value * After that, action a * The time difference error passed to the target network for calculating the estimated Q value; (5) The target network of DDQN calculates the temporal difference error of the estimated Q value of the evaluation network; (6) The time difference error of the evaluation network's estimated Q value is subjected to stochastic gradient descent optimization parameter optimization until the global optimal solution is found. At the end of the training, the trained network is saved and the image is classified according to the action corresponding to the maximum Q value.
2. The classification method of tactile material imbalance data based on DDQN according to claim 1, characterized in that: The specific method of extracting the image features in step (1) is: The labels of the unbalanced image set are represented as Where M represents M types of materials, and the unbalanced image set is expressed as in Indicates the first i A collection of images of materials, is the standard image set, whose number of images n is the least among all materials, and then the imbalance rate σ is defined i n divided by the first i The number of images of the material, where i = 1, ..., M, σ i The range of variation is (0,1]; VGG19 is used as the feature extraction network. VGG19 consists of 16 convolutional layers and 3 fully connected layers. A global average pooling layer is used to replace the 3 fully connected layers. The global average pooling layer outputs the average value of all pixels in each feature map obtained by convolution. These average values are then regarded as feature vectors. The images in the unbalanced image set are input into VGG19 to obtain the features of these images {X1,…,X h }, h is the number of all images in the unbalanced image set. These extracted features will be used to build the DDQN environment in the next step.
3. The classification method of tactile material imbalance data based on DDQN according to claim 1, characterized in that: The specific approach of constructing the DDQN environment in step (2) is that the DDQN environment is composed of states and actions; Status: Before each iteration, randomly shuffle the image features {X1,…,X h }, and then treat them as states {S1,…,S h }, use this method to convert image features into state sequences; Action: The goal of classification is to find the correct label for each image, which is defined as making the correct action, and assigning the image label {e1,…,e M } as the action space, DDQN in state S t Then the state S t Transform to a new state S t+1 , t represents the tth step performed by DDQN.
4. The classification method of tactile material imbalance data based on DDQN according to claim 1, characterized in that: The specific method of setting the reward function in step (3) is: A reward function R is defined for the imbalanced image set, which varies with the imbalance rate σ i Change, in state S t , forming state S t The pictures with the characteristics of If DDQN takes action a at step t t The correct action is l i , it will get σ i reward, otherwise get -σ i Reward, the reward function is as follows:
5. The classification method of tactile material imbalance data based on DDQN according to claim 1, characterized in that: The specific way of calculating the time difference error of the target network in step (5) is: Target Network The action a corresponding to the maximum Q value selected by the evaluation network Q′ * Used to calculate the time difference target (TDtarget) y t ,y t The calculation formula is as follows: r represents the state of DDQN in the previous state s t The reward obtained after taking an action according to the unbalanced reward function, w (t-tmodc) Indicates that the parameters of the evaluation network Q' are copied to the target network every C steps To calculate the time difference error, the calculated time difference target is used to calculate the time difference error δ of the estimated Q value of the evaluation network Q′ t : δ t =Q(s t ,a;w (t) )-y t The time difference error δ obtained at step t is t Will be used for parameter update.
6. The classification method of tactile material imbalance data based on DDQN according to claim 1, characterized in that: The specific approach of reducing the estimated Q value error optimization parameter in step (6) is: The target network The time difference error is obtained by subtracting the calculated time difference target from the Q value evaluated by the evaluation network Q′. The stochastic gradient descent method is used to reduce this error. First, the error function is defined as: Then use the stochastic gradient descent method to reduce the error and optimize the parameters. The steps are: where w (t+1) Represents the parameters of the t+1th step. As the training progresses, the gradient descent is continuously used to optimize the parameters until the global optimal solution is found, that is, the value of the error function L(w) is minimized. After the training is completed, the trained network is saved. When a new image is input into the trained network, VGG19 extracts features from the image, and the evaluation network Q′ of DDQN estimates the Q value corresponding to each action based on the image. The action corresponding to the maximum Q value is the label of the image.
