Tactile attribute recognition method and device based on attention mechanism

Through the tactile attribute recognition method based on the attention mechanism, the multi-head attention mechanism and recognition sub-module are used to extract and process tactile data, which solves the problem of low recognition efficiency and accuracy in the existing technology and achieves efficient and accurate tactile attribute recognition.

CN116150684BActive Publication Date: 2024-09-24INST OF AUTOMATION CHINESE ACAD OF SCI +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310077438.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-17
Publication Date
2024-09-24
Estimated Expiration
2043-01-17

AI Technical Summary

Technical Problem

The existing tactile attribute recognition methods based on manually extracted features have poor recognition efficiency and accuracy, making it difficult to achieve efficient and accurate tactile attribute recognition.

Method used

The tactile attribute recognition method based on the attention mechanism is adopted. By obtaining the tactile data sequence of the target material, it is input to the attention mechanism module to extract the feature vector, and the multi-head attention mechanism and recognition sub-module are used to identify the tactile attributes, combined with the bidirectional recurrent network. layer, data slicing layer, dimension transformation layer and one-dimensional convolution layer to achieve automated tactile attribute recognition.

Benefits of technology

It achieves efficient and accurate tactile attribute recognition, improves recognition efficiency and accuracy, avoids dependence on manual feature extraction, and can be automatically executed online.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The present invention provides a tactile attribute recognition method and device based on an attention mechanism, which relates to the field of artificial intelligence technology, wherein the method comprises: obtaining a tactile data sequence of a target material; inputting the tactile data sequence into an attention mechanism module in a tactile attribute recognition model to obtain a feature vector of the target material; inputting the feature vector into a recognition module in the tactile attribute recognition model to obtain a tactile attribute recognition result of the target material; the tactile attribute recognition result is used to describe the surface characteristics of the target material; the tactile attribute recognition model is obtained by training based on tactile data sequences of various types of sample materials and tactile attribute labels corresponding to the sample materials. The tactile attribute recognition method and device based on an attention mechanism provided by the present invention solve the defects of poor recognition efficiency and recognition accuracy of tactile attribute recognition, and realize efficient and accurate tactile attribute recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a tactile attribute recognition method and device based on an attention mechanism. Background Art

[0002] Touch is one of the senses commonly used in human daily life. It can be used to describe a series of external stimuli such as squeezing, sliding, and friction caused by contact. A tactile sensor is a sensor that measures the size and distribution of external stimuli. In some extreme scenarios, such as at night, in fire, rain and fog, tactile information can make up for the shortcomings of visual information and serve as a key modality to execute perception and recognition algorithms, thereby completing important tasks such as grasping or rescue. Therefore, how to use tactile sensors to realize tactile attribute recognition, such as tactile adjective recognition, has attracted the attention of many researchers in the field of robotics.

[0003] At present, research in the field of tactile attribute recognition has made certain progress at home and abroad. For example, some scholars proposed to predefine an adjective set containing 25 adjectives, and then train a support vector machine model on the tactile data to complete the matching between materials and their corresponding adjectives; some scholars use accelerometers to capture the vibrations generated when objects are struck, extract physical features such as hardness, roughness and friction coefficient from the vibration, and then use these features for classification.

[0004] However, the above existing tactile attribute recognition methods are all based on manually extracted features and are greatly affected by artificial prior knowledge. Therefore, their recognition efficiency and recognition accuracy are poor. Summary of the invention

[0005] The present invention provides a tactile attribute recognition method and device based on an attention mechanism, so as to solve the defects of the prior art in which tactile attribute recognition is realized based on manually extracted features, and the recognition efficiency and recognition accuracy are poor, so as to realize efficient and accurate tactile attribute recognition.

[0006] The present invention provides a tactile attribute recognition method based on an attention mechanism, comprising:

[0007] acquiring a tactile data sequence of a target material;

[0008] Inputting the tactile data sequence into an attention mechanism module in a tactile attribute recognition model to obtain a feature vector of the target material;

[0009] Inputting the feature vector into a recognition module in the tactile property recognition model to obtain a tactile property recognition result of the target material; the tactile property recognition result is used to describe the surface characteristics of the target material;

[0010] The tactile attribute recognition model is obtained by training based on tactile data sequences of various types of sample materials and tactile attribute labels corresponding to the sample materials.

[0011] According to a tactile attribute recognition method based on an attention mechanism provided by the present invention, the recognition module includes a first recognition submodule and a second recognition submodule;

[0012] The step of inputting the feature vector into a recognition module in the tactile property recognition model to obtain a tactile property recognition result of the target material includes:

[0013] Inputting the feature vector into the first recognition submodule to obtain a first tactile property recognition result of the target material, and / or inputting the feature vector into the second recognition submodule to obtain a second tactile property recognition result of the target material;

[0014] The tactile property recognition result of the target material is acquired according to the first tactile property recognition result and / or the second tactile property recognition result.

[0015] According to a tactile attribute recognition method based on an attention mechanism provided by the present invention, the first recognition submodule includes a bidirectional recurrent network layer, a data slicing layer, a dimension transformation layer and a first fully connected layer;

[0016] The step of inputting the feature vector into the first recognition submodule to obtain a first tactile property recognition result of the target material includes:

[0017] Inputting the feature vector into the bidirectional recurrent network layer, and extracting the time series feature of the feature vector by the bidirectional recurrent network layer to obtain a first time series feature;

[0018] Inputting the first time series feature into the data slicing layer, and having the data slicing layer perform feature slicing on the first time series feature to obtain a plurality of feature segments;

[0019] Inputting a plurality of feature segments into a dimension transformation layer, and the dimension transformation layer performs dimension transformation on the plurality of feature segments;

[0020] Inputting the dimensional transformation result into the first fully connected layer, and the first fully connected layer performs tactile attribute category recognition according to the dimensional transformation result to obtain a first probability that the target material belongs to each preset tactile attribute category;

[0021] The first tactile attribute recognition result is obtained according to the first probability.

[0022] According to a tactile attribute recognition method based on an attention mechanism provided by the present invention, the second recognition submodule includes a one-dimensional convolutional layer and a second fully connected layer;

[0023] The step of inputting the feature vector into the second recognition submodule to obtain a second tactile property recognition result of the target material includes:

[0024] Performing a transposition operation on the feature vector, inputting the feature vector after the transposition operation into the one-dimensional convolution layer, and performing time series feature extraction on the feature vector by the one-dimensional convolution layer to obtain a second time series feature;

[0025] Inputting the second time series feature into the second fully connected layer, and the second fully connected layer performs tactile attribute category recognition according to the second time series feature to obtain a second probability that the target material belongs to each preset tactile attribute category;

[0026] The second tactile attribute recognition result is obtained according to the second probability.

[0027] According to a tactile attribute recognition method based on an attention mechanism provided by the present invention, the step of inputting the tactile data sequence into an attention mechanism module in a tactile attribute recognition model to obtain a feature vector of the target material includes:

[0028] Inputting the tactile data sequence into the multi-head attention layer in the attention mechanism module, each attention layer extracts attention features according to the tactile data sequence, and obtains attention features corresponding to each attention layer;

[0029] Input the attention features corresponding to the multi-head attention layer into the feature splicing layer in the attention mechanism module, and the feature splicing layer performs feature splicing on the attention features corresponding to the multi-head attention layer to obtain splicing features;

[0030] The tactile data sequence and the splicing features are input into the residual connection layer in the attention mechanism module, and the residual connection layer performs residual fusion on the tactile data sequence and the splicing features to obtain a feature vector of the target material.

[0031] According to a tactile attribute recognition method based on an attention mechanism provided by the present invention, the tactile attribute recognition model is trained based on the following steps:

[0032] Based on the bionic fingertip, collecting tactile data sequences of the plurality of types of sample materials;

[0033] Based on a plurality of different preset tactile attribute categories, marking corresponding tactile attribute labels for the tactile data sequence of the sample material;

[0034] Inputting the tactile data sequence of the sample material into the initial attention mechanism module in the initialization attribute recognition model to obtain a sample feature vector;

[0035] Inputting the sample feature vectors into a first initial recognition submodule and a second initial recognition submodule in the initialization attribute recognition model respectively, obtaining a first sample tactile attribute recognition result of the sample material output by the first initial recognition submodule, and a second sample tactile attribute recognition result of the sample material output by the second initial recognition submodule;

[0036] Determining a loss function value according to the first sample tactile attribute recognition result, the second sample tactile attribute recognition result, and the tactile attribute label corresponding to the sample material;

[0037] Based on the loss function value, the initialized attribute recognition model is iteratively trained to obtain the tactile attribute recognition model.

[0038] According to a tactile attribute recognition method based on an attention mechanism provided by the present invention, the tactile data sequences of the plurality of types of sample materials are collected based on a bionic fingertip, including:

[0039] For each sample material of each type, perform the following steps:

[0040] Controlling the bionic fingertip to perform a downward pressing operation on the current sample material at a target speed until the total pressure value of the force sensor on the bionic fingertip reaches a pressure threshold, and stopping the downward pressing operation;

[0041] When the duration of stopping the downward pressing operation reaches a target duration, controlling the bionic fingertip to perform a first sliding operation on the current sample material, and acquiring a first tactile data sequence collected by the bionic fingertip during the first sliding operation;

[0042] and / or, when the duration of stopping the pressing down operation reaches the target duration, controlling the bionic fingertip to perform a second sliding operation on the current sample material, and acquiring a second tactile data sequence collected by the bionic fingertip during the second sliding operation; wherein the sliding speed corresponding to the first sliding operation is greater than the sliding speed corresponding to the second sliding operation;

[0043] According to the first tactile data sequence and / or the second tactile data sequence, a tactile data sequence of the current sample material is acquired.

[0044] According to a tactile attribute recognition method based on an attention mechanism provided by the present invention, the bionic fingertip comprises a base and a bionic fingertip body;

[0045] The bionic fingertip body is arranged on the base;

[0046] The bionic fingertip body comprises a first soft rubber layer, a force transmission rod, a second soft rubber layer, and a pressure sensor;

[0047] The first soft adhesive layer is arranged on the surface of the bionic fingertip body, and the surface of the first soft adhesive layer is provided with a texture structure of a bionic fingerprint, so as to be in contact with the surface of the material;

[0048] The second soft rubber layer is arranged in the middle layer of the bionic fingertip;

[0049] The force transmission rod is embedded in the second soft rubber layer, and one end of the force transmission rod is connected to the first soft rubber layer, and the other end of the force transmission rod is connected to the pressure sensor, so as to protect the pressure sensor and transmit external force to the pressure sensor;

[0050] The pressure sensor is used to collect the tactile data sequence.

[0051] The present invention also provides a tactile attribute recognition device based on an attention mechanism, comprising:

[0052] An acquisition module, used for acquiring a tactile data sequence of a target material;

[0053] A feature extraction module, used for inputting the tactile data sequence into an attention mechanism module in a tactile attribute recognition model to obtain a feature vector of the target material;

[0054] A tactile property recognition module, used for inputting the feature vector into a recognition module in the tactile property recognition model to obtain a tactile property recognition result of the target material; the tactile property recognition result is used to describe the surface characteristics of the target material;

[0055] The tactile attribute recognition model is obtained by training based on tactile data sequences of various types of sample materials and tactile attribute labels corresponding to the sample materials.

[0056] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a tactile attribute recognition method based on an attention mechanism as described above is implemented.

[0057] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for tactile attribute recognition based on the attention mechanism.

[0058] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned tactile attribute recognition methods based on the attention mechanism.

[0059] The present invention provides a tactile attribute recognition method and device based on an attention mechanism, which obtains a tactile data sequence by inputting it into an attention mechanism module in a tactile attribute recognition model obtained by training based on tactile data sequences of multiple types of sample materials and tactile attribute labels corresponding to the sample materials, obtains a feature vector of a target material and inputs it into a recognition module in the tactile attribute recognition model, obtains a tactile attribute recognition result of the target material, that is, obtains an adjective of the surface characteristics of the target material, and the entire attribute recognition process is automatically performed online without the need for manual feature extraction, thereby solving the defects of poor recognition efficiency and recognition accuracy of tactile attribute recognition in the prior art and realizing efficient and accurate tactile attribute recognition. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0061] Figure 1 It is one of the flow charts of the tactile attribute recognition method based on the attention mechanism provided by the present invention;

[0062] Figure 2 It is one of the structural schematic diagrams of the tactile attribute recognition model provided by the present invention;

[0063] Figure 3 This is the second structural schematic diagram of the tactile attribute recognition model provided by the present invention;

[0064] Figure 4 This is the third structural diagram of the tactile attribute recognition model provided by the present invention;

[0065] Figure 5 It is a flowchart of a training method for a tactile attribute recognition model provided by the present invention;

[0066] Figure 6 is a schematic diagram of the process of sampling a tactile data sequence provided by the present invention;

[0067] Figure 7 It is a schematic diagram of the total pressure change of the concave-convex rubber plate, the fiberglass fireproof board and the art notebook when they slide quickly, recorded in the tactile data sequence sampling process provided by the present invention;

[0068] Figure 8 It is a schematic diagram of the total pressure change of the concave-convex rubber plate, the fiberglass fireproof board and the art notebook when they slide slowly, recorded in the tactile data sequence sampling process provided by the present invention;

[0069] Fig. 9 It is a schematic diagram of the distribution of the 12 pressure sensors of the bionic fingertip provided by the present invention corresponding to the fingertip;

[0070] Fig.10 is a schematic structural diagram of the bionic fingertip provided by the present invention;

[0071] Fig.11 FIG. 1 is a schematic diagram of the structure of a tactile attribute recognition device based on an attention mechanism provided by the present invention;

[0072] Fig.12 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0074] With the popularization of modern information processing technology, sensors have now become an indispensable part of automation, intelligence and test measurement, playing an important role in the process of information collection and conversion. There are many types of sensors, and tactile sensors are becoming more and more widely used. Touch is one of the commonly used senses in human daily life. It can be used to describe a series of external stimuli such as squeezing, sliding, and friction caused by contact, while tactile sensors are sensors that measure the size and distribution of external stimuli. In some extreme scenarios, such as night, fire, rain and fog, tactile information can make up for the defects of visual information and serve as a key modality to execute perception and recognition algorithms, thereby completing important tasks such as grasping or rescue. Therefore, the application of tactile sensors in the field of robotics has attracted the attention of many researchers. These sensors can provide rich information when contacting objects, such as the distribution of surface features of objects, the force exerted on the sensor during contact, etc. This information plays an important role in improving the perception and decision-making ability of robots.

[0075] In recent years, related applications in the field of robot touch have formed relatively mature processing algorithms, such as texture recognition, slip detection, object recognition, and grasping state evaluation. Although these algorithms have achieved ideal results in their respective application fields, and some have even been implemented, the generalization performance they achieve is limited. Taking material recognition as an example, this type of algorithm can only recognize materials that have appeared in the training set during reasoning, and it is difficult to process materials outside the training set. However, in the real world, robots are more likely to encounter materials that have never been seen before, so these methods that are difficult to generalize to new categories are obviously flawed.

[0076] Compared with material recognition, tactile attribute recognition pays more attention to obtaining the characteristic distribution of the object surface through tactile data, such as roughness, hardness, comfort, etc. We know that the surface properties of objects of different materials may be very similar, while the surface properties of objects of the same material may be different. For example, smooth wooden boards and plexiglass boards are wood and plastic materials respectively, but the hardness, roughness and other properties of the two surfaces are similar; plastic boxes and bubble films are both plastic materials, but the former is obviously harder than the latter. From the perspective of the robot, directly identifying the surface properties of the object, that is, judging whether the surface of the object is smooth and elastic, is more conducive to completing subsequent operations such as grasping and moving; when the robot recognizes an unknown object, it can return the characteristic properties of the object based on prior knowledge, and then complete classification or other downstream tasks. Therefore, tactile attribute recognition is a more practical research topic.

[0077] The concept of adjective learning was first proposed in 2015. A predefined adjective set containing 25 attributes is used to train a support vector machine (SVM) model on tactile data to match materials with their corresponding adjectives. In some embodiments, an accelerometer is used to capture the vibration generated when an object is struck, and physical features such as hardness, roughness, and friction coefficient are extracted from the vibration, and then these features are used for classification. Both of the above methods are based on manually extracted features, which require extremely strong prior knowledge, and the inference model used has very high requirements on the data format.

[0078] At present, research in the field of tactile attribute recognition has made certain progress at home and abroad, but most recognition algorithms are based on manually extracted features. In recent years, some scholars have tried to use the Zero-Shot Learning (ZSL) algorithm to learn the relationship between material surface features and adjective labels, and then classify materials outside the training set; in the latest research, K-SVD (Singular Value Decomposition, sparse representation dictionary learning algorithm) and ST-HMP (Spatio-Temporal Hierarchical Matching Pursuit, spatio-temporal hierarchical matching pursuit) unsupervised feature learning methods are used to avoid manually designed features. These methods have achieved certain results, but they are all based on traditional feature extraction methods, such as Bayesian rules, dictionary learning, etc.

[0079] However, according to our understanding, the current research on tactile attribute recognition has not yet involved the end-to-end method of deep learning, but the end-to-end method has been widely used in other tactile research fields such as texture recognition and slip detection. With the great success of the end-to-end method in other fields, it is obviously not enough to use only non-end-to-end methods to deal with the adjective recognition problem. To this end, the embodiment of the present invention intends to use an end-to-end method to improve the recognition effect of tactile adjectives.

[0080] At the same time, Transformer (a model based on attention mechanism) has become the mainstream model in the field of natural language processing and has gradually gained attention in the field of computer vision. Inspired by the Transformer model, the model proposed in the present invention uses a multi-head self-attention mechanism to mine the long-term dependency features of tactile sequences, and uses recognition modules such as convolutional neural networks (CNN) and long short-term memory networks (LSTM) to encode the temporal information of tactile sequences. This network model can not only achieve good results in the field of adjective recognition, but also can be extended to other tactile fields, thereby promoting the progress of the entire robot tactile algorithm research.

[0081] In view of the above problems, this embodiment provides a tactile attribute recognition method based on the attention mechanism. Figure 1 The tactile attribute recognition method based on the attention mechanism of this embodiment is described.

[0082] Optionally, the tactile attribute is used to describe the characteristic distribution of the surface of an object. The tactile attribute can be an adjective that represents a combination of one or more of the material, texture, and touch of the object. The adjective description of the material of the object can be its hardness and roughness. This embodiment does not specifically limit the category of the tactile attribute.

[0083] Figure 1 is a flow chart of the tactile attribute recognition method provided in this embodiment. Figure 1 As shown, the method includes:

[0084] Step 101, obtaining a tactile data sequence of a target material;

[0085] The target material may include a material that needs to be identified in terms of tactile properties.

[0086] Optionally, the method for acquiring the tactile data sequence of the target material may be to continuously collect tactile data from multiple sampling points of the target material using a tactile sensor or a bionic fingertip. This embodiment does not specifically limit the method for acquiring the tactile data sequence of the target material.

[0087] Step 102, inputting the tactile data sequence into the attention mechanism module in the tactile attribute recognition model to obtain a feature vector of the target material;

[0088] Step 103, inputting the feature vector into a recognition module in a tactile property recognition model to obtain a tactile property recognition result of the target material; the tactile property recognition result is used to describe the surface characteristics of the target material;

[0089] The tactile attribute recognition model is trained based on tactile data sequences of various types of sample materials and tactile attribute labels corresponding to the sample materials.

[0090] Specifically, before executing step 102, the initialization attribute recognition model may be trained to obtain the tactile attribute recognition model. Specifically, the initialization attribute recognition model may be constructed first, and the initialization attribute recognition model may include an initial attention mechanism module and an initial recognition module, and then tactile data sequences of various types of sample materials and tactile attribute labels corresponding to the sample materials are collected, and the tactile attribute recognition model is trained to obtain the tactile attribute recognition model, which is not specifically limited in the embodiment of the present invention.

[0091] The algorithm designed in this embodiment aims to identify the tactile attribute categories of materials, that is, given a sequence of tactile data collected from a certain material, it is expected that the algorithm can obtain all the adjective attributes of the material. In response to the above problems, this embodiment proposes a tactile attribute recognition model based on a deep neural network with a multi-head attention mechanism (hereinafter referred to as Atten-DNN). The model consists of two modules: an attention module and a recognition module.

[0092] Therefore, after the tactile attribute recognition model is trained, the tactile data sequence is input into the attention module, and the time series feature learning is performed on it through the attention module to obtain the feature vector of the target material.

[0093] Among them, the attention module is built based on the Transformer model structure, which can specifically use the multi-head self-attention calculation unit in the Transformer model to capture the global features of the sequence.

[0094] The Transformer model was first proposed for machine translation problems in natural language processing. It has an encoder-decoder architecture that relies entirely on attention calculations to process the model's input and obtain the model's output. Due to the global nature of the self-attention and cross-attention mechanisms, the Transformer model is very effective for tasks involving long sequences. In the past few years, the Transformer has replaced the recurrent neural network (RNN) and LSTM in natural language processing and has gradually emerged in the field of computer vision.

[0095] Optionally, since the attention module captures global features and does not contain the order information of the sequence (i.e., no position encoding operation is performed), in order to make up for this defect, the recognition module is combined to guide the model to learn the order information of the sequence, so as to obtain a tactile attribute recognition model that uses both the self-attention mechanism and the recognition module. This can achieve full capture of the long-term dependencies in the tactile data based on the attention module, while guiding the model to learn the order information in the data based on the recognition module, thereby further improving the accuracy of tactile attribute prediction.

[0096] Among them, the recognition module can be formed based on a combination of one recognition submodule or multiple recognition submodules. Specifically, when the recognition module is formed based on a combination of one recognition submodule, the feature vector extracted by the attention module can be directly input into the recognition submodule to obtain the tactile attribute recognition result; correspondingly, when the recognition module is formed based on a combination of multiple recognition submodules, the feature vector extracted by the attention module can be respectively input into multiple recognition submodules to obtain corresponding multiple tactile attribute recognition results, and the multiple tactile attribute recognition results can be fused to obtain the final tactile attribute recognition result, which is not specifically limited in this embodiment.

[0097] Optionally, the selection of the recognition submodule may be determined according to the material of the target material. Specifically, for the target material, a recognition submodule with better material recognition performance may be selected as a recognition model to recognize its tactile properties, which is not specifically limited in this embodiment.

[0098] The tactile attribute recognition method based on the attention mechanism provided in the present embodiment obtains a tactile data sequence by inputting it into an attention mechanism module in a tactile attribute recognition model obtained by training based on tactile data sequences of multiple types of sample materials and tactile attribute labels corresponding to the sample materials, obtains a feature vector of the target material and inputs it into a recognition module in the tactile attribute recognition model, obtains a tactile attribute recognition result of the target material, that is, obtains an adjective of the surface characteristics of the target material. The entire attribute recognition process is automatically performed online without manual feature extraction, thereby solving the defects of poor recognition efficiency and recognition accuracy of tactile attribute recognition in the prior art and realizing efficient and accurate tactile attribute recognition.

[0099] Based on the above embodiments, the recognition module in this embodiment includes a first recognition submodule and a second recognition submodule; the feature vector is input into the recognition module in the tactile property recognition model to obtain the tactile property recognition result of the target material, including: inputting the feature vector into the first recognition submodule to obtain the first tactile property recognition result of the target material, and / or inputting the feature vector into the second recognition submodule to obtain the second tactile property recognition result of the target material; according to the first tactile property recognition result and / or the second tactile property recognition result, the tactile property recognition result of the target material is obtained.

[0100] The first tactile property recognition result of the target material is a tactile property recognition result obtained after the first recognition submodule processes the feature vector.

[0101] Similarly, the second tactile property recognition result of the target material is a tactile property recognition result obtained after the second recognition submodule processes the feature vector.

[0102] Specifically, in this embodiment, the recognition module that inputs the feature vector into the tactile property recognition model is set according to the actual scenario. The feature vector can be input only into the first recognition submodule to obtain the first tactile property recognition result of the target material; the feature vector can be input only into the second recognition submodule to obtain the second tactile property recognition result of the target material; or the feature vector can be input into the first recognition submodule and the second recognition submodule at the same time to obtain the first tactile property recognition result and the second tactile property recognition result of the target material respectively. This embodiment does not specifically limit this.

[0103] Accordingly, when only the feature vector is input into the first recognition submodule to obtain the first tactile property recognition result of the target material, the tactile property recognition result of the target material may be the acquired first tactile property recognition result; when only the feature vector is input into the second recognition submodule to obtain the second tactile property recognition result of the target material, the tactile property recognition result of the target material may be the acquired second tactile property recognition result; and when the feature vector is input into the first recognition submodule and the second recognition submodule at the same time to obtain the first tactile property recognition result and the second tactile property recognition result of the target material respectively, the tactile property recognition result of the target material may be obtained by appropriately combining the acquired first tactile property recognition result and the second tactile property recognition result.

[0104] In this embodiment, the tactile property recognition result of the target material is obtained according to the first tactile property recognition result and / or the second tactile property recognition result, so as to encode the timing information of the tactile sequence, which helps to realize efficient and accurate tactile property recognition.

[0105] On the basis of the above embodiments, the first recognition submodule in this embodiment includes a bidirectional recurrent network layer, a data slicing layer, a dimensionality transformation layer and a first fully connected layer; the feature vector is input into the first recognition submodule to obtain a first tactile attribute recognition result of the target material, including: inputting the feature vector into the bidirectional recurrent network layer, and the bidirectional recurrent network layer performs time series feature extraction on the feature vector to obtain a first time series feature; inputting the first time series feature into the data slicing layer, and the data slicing layer performs feature slicing on the first time series feature to obtain multiple feature segments; inputting the multiple feature segments into the dimensionality transformation layer, and the dimensionality transformation layer performs dimensionality transformation on the multiple feature segments; inputting the dimensionality transformation result into the first fully connected layer, and the first fully connected layer performs tactile attribute category recognition according to the dimensionality transformation result to obtain a first probability that the target material belongs to each preset tactile attribute category; according to the first probability, obtaining the first tactile attribute recognition result.

[0106] Among them, the main functional unit of the first identification submodule can be an LSTM unit.

[0107] LSTM units have strong temporal feature learning capabilities and are therefore often used to process continuous tactile signals. Some scholars have compared the classification performance of WaveNet and LSTM, two neural networks used to process temporal signals, for object recognition problems, and LSTM has significantly better classification performance. Since CNN cannot explicitly encode the temporal information of sequence data, other scholars have proposed a ConvLSTM model that combines LSTM and CNN to learn the spatiotemporal features of tactile sequences for slip detection tasks, and then detect the sliding direction of objects, achieving good results. Therefore, LSTM has good performance in tactile sequence processing.

[0108] The LSTM unit may be composed of a memory unit and multiple thresholds, which stores historical information through the memory unit and uses different thresholds to control the flow of information in and out of the memory unit. The LSTM unit in this embodiment may be generated by constructing a bidirectional LSTM network layer.

[0109] Among them, the first identification submodule can be a combination of one or more bidirectional recurrent network layers, one or more data slicing layers, one or more dimensional transformation layers and one or more first fully connected layers (linear layers), and the specific number of layers of each layer can be set according to the actual scenario. Exemplarily, in this embodiment, the first identification submodule can be set to include a combination of 3 bidirectional recurrent network layers, 1 data slicing layer, 1 dimensional transformation layer and 2 first fully connected layers, which is not specifically limited in this embodiment.

[0110] Optionally, the step of predicting tactile attributes based on the first recognition submodule includes:

[0111] The acquired feature vector of the target sequence is input into the bidirectional recurrent network layer in the first recognition submodule, and the bidirectional recurrent network layer extracts the time series feature of the feature vector to obtain the first time series feature.

[0112] The number of hidden units in each bidirectional recurrent network layer can be set according to the actual scenario. For example, in this embodiment, the number of hidden units in the three bidirectional recurrent network layers can be set to 128, which is not specifically limited in this embodiment.

[0113] Then the first time series feature obtained by the bidirectional recurrent network layer is input to the data slicing layer, and the data slicing layer performs feature slicing on the first time series feature to obtain multiple feature segments. It should be noted that the number of feature frames contained in each feature segment can be set according to actual needs, such as 1000 frames.

[0114] Then, the multiple feature segments are input into a dimension transformation layer, and the dimension transformation layer performs dimension transformation on the multiple feature segments.

[0115] Finally, the dimensionality transformation result is input into the first fully connected layer, which identifies the tactile attribute category of the dimensionality transformation result to obtain the output of the target material in the first recognition submodule, i.e., the first tactile attribute recognition result.

[0116] Optionally, the first tactile attribute recognition result may be a multi-dimensional vector, representing the probabilities corresponding to a plurality of tactile attribute categories, that is, the first probability of each preset tactile attribute category. The dimension of the output vector of the first tactile attribute recognition result may be set according to the actual scenario. Exemplarily, in this embodiment, the output of the first recognition submodule may be set to be a 24-dimensional vector, representing the probabilities corresponding to 24 preset tactile attribute categories, which is not specifically limited in this embodiment.

[0117] Exemplarily, taking the case where the number of feature frames contained in each feature segment is 1000 frames, the formula for predicting tactile attributes of the first recognition submodule is described as follows:

[0118] The first recognition submodule uses a bidirectional LSTM to read the sequential information in the high-order feature vector E obtained by the attention module from the tactile data sequence. The latent variables output by the LSTM layer are input into a fully connected network every 100 frames for the final prediction:

[0119] H=LSTM(E)={h1,h2,…,h T-1 ,h T};

[0120]

[0121] Among them, H is the first time series feature output by the bidirectional LSTM layer, h t is the t-th time series feature in the first time series feature, T is the time series length of the first time series feature; E is the feature vector output by the attention mechanism module, LSTM(·) is the bidirectional LSTM network layer; Slice(H) is the feature slice of the first time series feature, and FC1(·) is the first fully connected layer.

[0122] In this embodiment, by setting each layer structure of the first recognition submodule, the first probability and the first tactile attribute recognition result of the target material belonging to each preset tactile attribute category are obtained to learn the timing information of the tactile data sequence and finally give an efficient and accurate tactile attribute prediction.

[0123] Based on the above embodiments, the second recognition submodule in this embodiment includes a one-dimensional convolutional layer and a second fully connected layer; the feature vector is input into the second recognition submodule to obtain a second tactile attribute recognition result of the target material, including: transposing the feature vector, inputting the feature vector after the transposition operation into the one-dimensional convolutional layer, and extracting time series features from the feature vector by the one-dimensional convolutional layer to obtain a second time series feature; inputting the second time series feature into the second fully connected layer, and the second fully connected layer performs tactile attribute category recognition based on the second time series feature to obtain a second probability that the target material belongs to each preset tactile attribute category; and obtaining a second tactile attribute recognition result based on the second probability.

[0124] Among them, the main functional unit of the second recognition submodule can be a Conv1d module based on CNN.

[0125] CNN has powerful feature extraction capabilities and excellent performance in learning high-order feature expressions. Therefore, end-to-end methods based on CNN have been widely used in many tactile studies of robots. For example, some scholars have proposed two CNN-based network models for material recognition tasks, namely a network trained from scratch only on a tactile dataset and a network pre-trained on a visual dataset. Other scholars have proposed a CNN model based on an attention mechanism for fabric defect detection tasks. This model performs weighted calculations on each channel of the convolutional layer, where a lower weight is given to the channel corresponding to the fabric texture information to reduce the interference of the fabric texture itself on the detection of defective areas.

[0126] The Conv1d module can be composed of multiple convolutional blocks and fully connected layers.

[0127] Optionally, the second recognition submodule may be a combination of one or more one-dimensional convolutional layers and one or more second fully connected layers, and the specific number of layers of each layer may be set according to the actual scenario. Exemplarily, in this embodiment, the second recognition submodule may be set to include a combination of 4 one-dimensional convolutional layers and 2 second fully connected layers, and one or more maximum pooling layers are deployed after every two one-dimensional convolutions, such as a one-dimensional maximum pooling layer is deployed after two one-dimensional convolutions close to the input layer, followed by two one-dimensional convolutions, followed by a one-dimensional maximum pooling layer and a two-dimensional maximum pooling layer, and finally, two second fully connected layers are deployed, which is not specifically limited in this embodiment.

[0128] Optionally, the acquired feature vector of the target sequence is input into a one-dimensional convolution layer in the second recognition submodule, and the one-dimensional convolution layer performs time series feature extraction on the feature vector to obtain a second time series feature.

[0129] Optionally, the step size in each one-dimensional convolution layer can be set according to the actual scenario. Exemplarily, in this embodiment, the step size of the one-dimensional convolution layer can be set to 1 or 2, which is not specifically limited in this embodiment.

[0130] Then, the second time series features obtained by the one-dimensional convolutional layer are input into the second fully connected layer, and the second fully connected layer performs tactile attribute category recognition on the second time series features to obtain the output of the target material in the second recognition submodule, i.e., the second tactile attribute recognition result.

[0131] Optionally, the second tactile attribute recognition result may also be a multi-dimensional vector, representing the probabilities corresponding to multiple tactile attribute categories, that is, the second probability of belonging to each preset tactile attribute category. The dimension of the output vector of the second tactile attribute recognition result may be set according to the actual scenario. Exemplarily, in this embodiment, the second tactile attribute recognition result may be set to be a 24-dimensional vector, representing the probabilities corresponding to 24 preset tactile attribute categories, which is not specifically limited in this embodiment.

[0132] It should be noted that the second recognition submodule uses the multi-dimensional features of each frame output by the attention module as multiple input channels of the convolution block, and then calculates the order information between frames. Therefore, the encoding sequence is first transposed, and the transposed sequence is input into several convolutional layers and pooling layers, and the final prediction result is output through the fully connected layer. The specific calculation formula is:

[0133] y=FC2(Conv(Transpose(E)));

[0134] Among them, FC2(·) is the second fully connected layer, Conv(·) is the one-dimensional convolutional layer, and Transpose(E) is the feature vector after the transposition operation.

[0135] The outputs of the first recognition submodule and the second recognition submodule can both represent the prediction results of tactile attribute recognition. In view of the difference in the output modules, the corresponding tactile attribute recognitions are named Atten-LSTM model and Atten-Conv1d model respectively.

[0136] In this embodiment, by setting each layer structure of the second recognition submodule, the second probability and the second tactile attribute recognition result of the target material belonging to each preset tactile attribute category are obtained to learn the timing information of the tactile data sequence and finally give an efficient and accurate tactile attribute prediction.

[0137] Based on the above embodiments, in this embodiment, the tactile data sequence is input into the attention mechanism module in the tactile attribute recognition model to obtain a feature vector of the target material, including: inputting the tactile data sequence into the multi-head attention layer in the attention mechanism module, and each attention layer extracts attention features according to the tactile data sequence to obtain the attention features corresponding to each attention layer; inputting the attention features corresponding to the multi-head attention layer into the feature splicing layer in the attention mechanism module, and the feature splicing layer performs feature splicing on the attention features corresponding to the multi-head attention layer to obtain the splicing features; inputting the tactile data sequence and the splicing features into the residual connection layer in the attention mechanism module, and the residual connection layer performs residual fusion on the tactile data sequence and the splicing features to obtain the feature vector of the target material.

[0138] It should be noted that both LSTM and Conv1d have achieved great success in sequence modeling and have been widely used in natural language processing, speech processing, tactile perception and other fields. However, these two types of models have limited capabilities in processing long sequences, and the tactile data that may be collected by the target material may be as high as thousands of frames. Therefore, it is obviously difficult to meet our needs to use only LSTM or Conv1d as the main processing model. On the other hand, the self-attention mechanism can directly associate two frames that are far apart in the sequence through global correlation calculations, thereby effectively learning the long-term dependency between frames. The self-attention mechanism makes up for the long-term dependency defects of LSTM and one-dimensional convolution, but due to the global nature of the correlation calculation, it cannot utilize the previous and next relationships between frames in the sequence.

[0139] In summary, this embodiment proposes an Atten-DNN model that uses both the self-attention mechanism and LSTM / Conv1d. It is expected that the attention module in the model can fully capture the long-term dependencies in the tactile data, while the LSTM module and / or Conv1d module can guide the model to learn the sequential information in the data.

[0140] like Figure 2 The figure shows the overall architecture of the Atten-DNN model. First, the model encodes the tactile sequence through the attention module. This embodiment draws on the calculation method of Transformer and uses a multi-head self-attention mechanism to abstract the input sequence into a high-order feature representation.

[0141] The first recognition submodule may be a combination of one or more multi-head attention layers, one or more feature splicing layers, and one or more residual connection layers, and the specific number of layers of each layer may be set according to the actual scenario. Exemplarily, in this embodiment, the first recognition submodule may be set to include a combination of 2 multi-head attention layers, 1 feature splicing layer, and 1 residual connection layer, which is not specifically limited in this embodiment.

[0142] First, the acquired tactile data sequence is input into the multi-head attention layer in the attention mechanism module, and each attention layer extracts the attention features of the tactile data sequence to obtain the attention features corresponding to each attention layer.

[0143] The number of heads in each multi-head attention layer can be set according to the actual scenario. For example, in this embodiment, the number of heads in two multi-head attention layers can be set to 2 or the number of heads in two multi-head attention layers can be set to 3, which is not specifically limited in this embodiment.

[0144] Assume that the input sequence X of the tactile attribute recognition model is expressed as

[0145]

[0146] in, is the input signal of the tth frame, and T is the length of the input sequence. The multi-head attention mechanism allows the model to focus on inter-frame related information in multiple subspaces at the same time. In order to perform multi-head self-attention calculation, the input sequence X is transformed through h different linear projection matrices to obtain the query sequence Q, key value sequence K, and similarity value sequence V of h different subspaces (i.e., h heads):

[0147] Q i =XW i Q ,K i =XW i K ,V i =XW i V ;

[0148] Where W i Q , W i K and W i V is the linear projection matrix corresponding to the query, key value and similarity value, i = 1, 2, ..., h represents h heads. Next, use the query sequence Q of each head i , key value sequence K i and similarity value sequence V i Calculate its attention value:

[0149]

[0150] in, is the scaling factor, Represents the attention value of the i-th head.

[0151] Then the attention features corresponding to the multi-head attention layer are input into the feature concatenation layer, which concatenates the feature values ​​and projects them into the space of the initial dimension to obtain the concatenated feature A. The specific formula is:

[0152] A={a1,a2,…,a T-1 ,a T}=Concat(head1,…,head h )W o ;

[0153] Among them, W O ∈R d×d is the linear projection matrix, and Concat(·) is the concatenation operation.

[0154] Finally, a residual connection is used for the multi-head attention layer, followed by layer normalization. The tactile data sequence and the obtained splicing features are input into the residual connection layer, which performs residual fusion on the tactile data sequence and the splicing features to obtain a high-order feature representation E of the sequence residual fusion, that is, the feature vector E of the target material:

[0155]

[0156] The following is a specific example to describe the Atten-LSTM model constructed by the attention module and the first recognition module;

[0157] like Figure 3 This is a schematic diagram of the structure of the Atten-LSTM model;

[0158] First, a tactile data sequence is collected as an input sequence, where the dimension of the input sequence can be [1000×2×15], that is, the number of frames of the input sequence is 1000 frames, and there are two collection methods (such as the first sliding operation collection method and the second sliding operation collection method), and the feature dimension collected in each collection method is 15 (such as the 12-dimensional pressure features of 12 pressure sensors and the three-dimensional acceleration features collected by the inertial measurement unit). Subsequently, the input sequence is dimensionally transformed, and the dimension of the sampled data is transformed to [1000×30]. Subsequently, after two layers of multi-head attention layers; taking the multi-head attention layer using LN (LayerNormalization, layer standardization) with 3 heads as an example, the dimension of the feature vector is [1000×30]. Subsequently, after three layers of bidirectional LSTM layers; taking each bidirectional LSTM layer with 118 hidden units as an example, the dimension of the first time series feature is [1000×256]. Subsequently, after the data slicing layer, the dimensions of multiple feature fragments are [10×256]. Then, after the dimension transformation layer, the dimension of the obtained feature segment is transformed into

[2560] . Then, after two first fully connected layers, with their output dimensions of 512 and 24 respectively as an example, the dimension of the first probability that the material belongs to each preset tactile attribute category is

[24] .

[0159] The following is a specific example to describe the Atten-Convld model constructed by the attention module and the second recognition module;

[0160] like Figure 4 Schematic diagram of the structure of the Atten-Convld model.

[0161] First, the dimension of the input sequence is [1000×2×15]. Then, the dimension of the input sequence is transformed, and the dimension of the sampled data is transformed to [1000×30]. Then, after two layers of multi-head attention layers; taking the multi-head attention layer using LN and the number of heads as 2 as an example, the dimension of the feature vector is [1000×30]. Then, the feature vector is transposed and the dimension of the feature vector is transposed to [30×1000]. Then, after two layers of multi-head attention layers, the feature vector is transformed to [1000×30].

[0162] 1 1 One-dimensional convolution layer and one-dimensional maximum pooling layer, with one-dimensional convolution layers of 32×3 and 64×3, respectively, and stride 1

[0163] is 1, and the one-dimensional maximum pooling layer is 3, and the stride is 2, for example, the dimension of the second time series feature is [64×497]. Subsequently, after two one-dimensional convolutional layers and one-dimensional maximum pooling layer, the one-dimensional convolutional layer 1 1 1

[0164] The dimensions of the second temporal feature are 128×5 and 256×5, respectively, with a step size of 2. For example, the one-dimensional maximum pooling layer is 3 and the step size is 2, and the dimension of the second temporal feature is [256×60].

[0165] Taking the large pooling layer as 3 and the step size as 2 as an example, the dimension of the second temporal feature is [127×29]. Then, after two second fully connected layers, with the output dimensions of 512 and 24 respectively, the dimension of the second probability that the material belongs to each preset tactile attribute category is obtained

[24] .

[0166] In this embodiment, by setting the various layers of the attention mechanism module, the feature vector of the target material is obtained to fully capture the long-term dependencies in the tactile data sequence, and ultimately provide efficient and accurate tactile attribute predictions.

[0167] Based on the above embodiments, Figure 5 It is a flowchart of the training method of the tactile attribute recognition model provided in this embodiment.

[0168] like Figure 5 As shown, the training steps of the tactile attribute recognition model include:

[0169] Step 501, collecting tactile data sequences of various types of sample materials based on the bionic fingertip;

[0170] First, fix the bionic fingertip at the end of the robotic arm, and control the robotic arm to sample a variety of sample materials. Optionally, the selection of sample materials can be set according to the actual scene. Exemplarily, in this embodiment, 19 materials such as smooth wood, plywood, gauze, burlap, plastic box, bubble film, high-density foam, plexiglass board (acrylic board), rough foam, low-density foam, fiberglass fireproof board, cardboard, book cover, art notebook, rubber board, concave-convex rubber board, artificial stone board, aluminum board and artificial skin can be selected as sample materials, and this embodiment does not make specific limitations on this.

[0171] Each time the sample material is sampled, the robotic arm will successively perform the exploration processes of fast sliding (Fast Slide) and slow sliding (Slow Slide). The specific operation process can be set according to the actual scenario, and this embodiment does not make any specific limitation to this.

[0172] Step 502, based on a plurality of different preset tactile attribute categories, marking the tactile data sequence of the sample material with corresponding tactile attribute labels;

[0173] In order to gain a deeper understanding of human subjective feelings towards 19 sample materials, including smooth wooden boards, plywood, gauze, burlap, plastic boxes, bubble wrap, high-density foam, plexiglass boards (acrylic boards), rough-surface foam, low-density foam, fiberglass fireproof boards, cardboard, book covers, art notebooks, rubber boards, embossed rubber boards, artificial stone boards, aluminum boards, and artificial skin, a physical touch test was conducted in this embodiment.

[0174] The subject uses exactly the same exploration process as described above to perceive each material, and then selects any number of words from a set containing multiple tactile attributes to describe the material. Optionally, the tactile attributes in the set can be designed according to the actual scene. Exemplarily, with reference to the methods in some embodiments, in this embodiment, 24 tactile attributes such as absorbent, bumpy, compressible, cool, wrinkled, furry, hairy, hard, metallic, pleasant, porous, rough, scratchy, smooth, flat, soft, hard, elastic, floppy, sticky, textured, thick, thin and unpleasant can be designed as a set for describing the sample material, and this embodiment does not make specific limitations on this.

[0175] If more than half of the subjects selected a tactile attribute during the test, the material was labeled with that tactile attribute.

[0176] Taking 24 tactile attributes such as absorbent, bumpy, compressible, cool, wrinkled, furry, hairy, hard, metallic, pleasant, porous, rough, scratchy, smooth, flat, soft, hard, elastic, squishy, ​​sticky, textured, thick, thin and unpleasant as an example of a set of descriptions of the sample materials of this embodiment, the final material and tactile attribute matching table is shown in Table 1. Each adjective label in Table 1 is expressed in binary form. The label is 1, indicating that the material has the attribute, and the label is 0, indicating that the material does not have the attribute.

[0177] Table 1 Material and tactile property matching table

[0178]

[0179]

[0180]

[0181]

[0182] Step 503, inputting the tactile data sequence of the sample material into the initial attention mechanism module in the initialization attribute recognition model to obtain a sample feature vector;

[0183] The tactile data sequence of the sample material is input into the initial attention mechanism module, and the time series feature learning is performed on it through the initial attention mechanism module to obtain the sample feature vector of the sample material.

[0184] Step 504, inputting the sample feature vector into the first initial recognition submodule and the second initial recognition submodule in the initialization attribute recognition model respectively, obtaining the first sample tactile attribute recognition result of the sample material output by the first initial recognition submodule, and the second sample tactile attribute recognition result of the sample material output by the second initial recognition submodule;

[0185] Step 505, determining a loss function value according to the first sample tactile attribute recognition result, the second sample tactile attribute recognition result, and the tactile attribute label corresponding to the sample material;

[0186] The error is obtained by comparing the first sample tactile attribute recognition result with its corresponding tactile attribute label to determine the loss function value of the first initial recognition submodule. Similarly, the loss function value of the second initial recognition submodule is obtained according to the second sample tactile attribute recognition result and the tactile attribute label. Then, the final loss function value is determined according to the loss function values ​​of the two modules.

[0187] Optionally, for each loss function value of the loss function value of the first initial recognition submodule and the loss function value of the second initial recognition submodule, the loss function value can be determined according to the actual scenario. Exemplarily, since each sample material can have multiple tactile attribute labels at the same time, tactile attribute classification is a multi-label classification task. In this embodiment, a multi-label soft margin loss function can be used to determine the loss function value to train the entire network:

[0188]

[0189] in, is the loss function value of the first initial recognition submodule or the loss function value of the second initial recognition submodule; l[i] is the tactile attribute label of the i-th sample material, and y[i] is the tactile attribute prediction result of the i-th sample material.

[0190] Step 506 , iteratively training the initialized attribute recognition model based on the loss function value to obtain a tactile attribute recognition model.

[0191] Finally, the parameters of the initialized attribute recognition model can be iteratively trained by back propagation based on the loss function value. When the training reaches a certain convergence condition, the tactile attribute recognition model can be obtained.

[0192] Further, during the model training process, the initial attention mechanism module and the first initial recognition submodule may be firstly trained as a whole based on the loss function value of the first initial recognition submodule, and then, based on the loss function value of the second initial recognition submodule, the trained initial attention mechanism module and the second initial recognition submodule may be trained as a whole; or, the initial attention mechanism module and the second initial recognition submodule may be firstly trained as a whole based on the loss function value of the second initial recognition submodule, and then, based on the loss function value of the first initial recognition submodule, the trained initial attention mechanism module and the first initial recognition submodule may be trained as a whole; or, the loss function value of the first initial recognition submodule and the loss function value of the second initial recognition submodule may be integrated to determine the total loss function value, and the first initial recognition submodule, the second initial recognition submodule and the initial attention mechanism module may be trained as a whole based on the total loss function value. This embodiment does not specifically limit this.

[0193] In this embodiment, a suitable tactile attribute recognition model is obtained based on the above training steps, thereby solving the defects of poor recognition efficiency and recognition accuracy of tactile attribute recognition, and achieving efficient and accurate tactile attribute recognition.

[0194] Based on the above embodiments, Figure 6 It is a schematic diagram of the flow of collecting the tactile data sequence of the sample material provided by this embodiment.

[0195] like Figure 6 As shown, in this embodiment, based on the bionic fingertip, tactile data sequences of various types of sample materials are collected, and the following steps are performed for each type of each sample material:

[0196] Step 601, controlling the bionic fingertip to press downward on the current sample material at a target speed until the total pressure value of the force sensor on the bionic fingertip reaches a pressure threshold, and then stopping the downward pressing operation;

[0197] First, the fingertip is controlled to slowly descend at a constant speed so as to come into contact with the material, and then continues to descend at the same speed until the total pressure of the force sensor on the fingertip reaches a certain pressure threshold.

[0198] Step 602, when the duration of stopping the downward pressing operation reaches the target duration, controlling the bionic fingertip to perform a first sliding operation on the current sample material, and acquiring a first tactile data sequence collected by the bionic fingertip during the first sliding operation;

[0199] The target duration is then maintained so that the contact between the fingertip and the material remains stable. Then, the fingertip performs a fast sliding process, sliding a certain distance in a certain direction on the material with a first sliding operation and acquiring a first tactile data sequence collected.

[0200] Optionally, the target duration of maintenance can be set according to the actual scenario. For example, in this embodiment, 3 seconds can be selected as the time for the fingertip and the material to remain stable.

[0201] Optionally, the first sliding operation performs the exploration process at a faster speed, and the speed of the first sliding operation can be set according to the actual scene. Exemplarily, in this embodiment, the speed of the first sliding operation can be selected to be about 18 mm / s, and this embodiment does not make a specific limitation on this.

[0202] Step 603, and / or, when the duration of stopping the downward pressing operation reaches the target duration, controlling the bionic fingertip to perform a second sliding operation on the current sample material, and obtaining a second tactile data sequence collected by the bionic fingertip during the second sliding operation; wherein the sliding speed corresponding to the first sliding operation is greater than the sliding speed corresponding to the second sliding operation;

[0203] Afterwards, the fingertip returns to the initial position and repeats the process of descending at a constant speed and maintaining stability, and then performs a slow sliding process, sliding the same distance in the same direction on the material with a second sliding operation and acquiring a second tactile data sequence collected.

[0204] Optionally, the second sliding operation performs the exploration process at a slower speed, and the speed of the second sliding operation can be set according to the actual scene. For example, in this embodiment, the speed of the second sliding operation can be selected to be about 8 mm / s, which is not specifically limited in this embodiment.

[0205] The exploration process of this embodiment simulates some actions that humans should take when perceiving objects using touch.

[0206] It should be noted that, in the process of collecting tactile data sequences, it is necessary to repeat the sampling of each material for multiple times according to the above process, and record the values ​​of the force sensor and the inertial measurement unit (IMU) on the bionic fingertips to obtain a tactile data sequence. Optionally, the number of repeated samplings can be set according to the actual scenario. Exemplarily, 15 repeated samplings can be selected in this embodiment, and this embodiment does not make specific limitations. Taking the three materials of concave-convex rubber plate, fiberglass fireproof board and art notebook as sample materials, the frame-by-frame total pressure during fast sliding (first sliding operation) and slow sliding (second sliding operation) are recorded. The frame-by-frame total pressure values ​​of the three materials during fast sliding and slow sliding are recorded respectively using P FS and P SS express.

[0207] like Figure 7-8 As shown in the figure, the total pressure changes of the three materials, namely the concave-convex rubber plate, the glass fiber fireproof board and the art notebook, during the fast sliding and slow sliding, respectively, recorded during the sampling process. Figure 7-8 We can see that due to the differences in their surface properties, different materials have very different corresponding total pressure values.

[0208] Step 604 : acquiring a tactile data sequence of the current sample material according to the first tactile data sequence and / or the second tactile data sequence.

[0209] Optionally, the tactile data sequence of the current sample material may be a directly selected first tactile data sequence, may be a directly selected second tactile data sequence, or may be a combination of the first tactile data sequence and the second tactile data sequence.

[0210] In this embodiment, the tactile data sequence of the current sample material is obtained according to the first tactile data sequence and / or the second tactile data sequence, so as to achieve the purpose of collecting tactile data sequences of various types of sample materials and realize efficient and accurate tactile attribute recognition.

[0211] On the basis of the above embodiments, the bionic fingertip in this embodiment includes a base and a bionic fingertip body; the bionic fingertip body is arranged on the base; the bionic fingertip body includes a first soft rubber layer, a force transmission rod, a second soft rubber layer, and a pressure sensor; the first soft rubber layer is arranged on the surface layer of the bionic fingertip body, and the surface of the first soft rubber layer is provided with a texture structure of a bionic fingerprint for contacting the surface layer of the material; the second soft rubber layer is arranged in the middle layer of the bionic fingertip; the force transmission rod is embedded in the second soft rubber layer, and one end of the force transmission rod is connected to the first soft rubber layer, and the other end of the force transmission rod is connected to the pressure sensor for protecting the pressure sensor and transmitting external force to the pressure sensor; the pressure sensor is used to collect tactile data sequences.

[0212] In order to support the research of tactile attribute recognition algorithm, this embodiment builds a tactile data collection platform for collecting tactile data, which is composed of a mechanical arm, a bionic finger and a material operation table. Among them, the end of the multi-joint mechanical arm is connected to the bionic finger to control the movement and data collection of the bionic finger; the bionic fingertip can be made of a combination of multiple force sensors and an IMU (Inertial Measurement Unit) to collect tactile data by touching the sample material on the material operation table; a variety of sample materials can be placed on the material operation table, such as artificial skin samples, fiberglass fireproof board samples, bubble film samples, book cover samples, plywood samples, aluminum plate samples, etc.

[0213] Optionally, the force sensor is used to transmit the contact force on the fingertips. The number, model selection, and distribution of the force sensors can be set according to the actual scenario. For example, in this embodiment, the force sensors can be 12 Alps Alpine HSFPAR003A force sensors. The distribution of the 12 pressure sensors corresponding to the fingertips is as follows: Fig. 9 As shown, this embodiment does not make any specific limitation to this.

[0214] Accordingly, the IMU is used to record the three-axis acceleration of the fingertip movement, and the IMU model selection can be set according to the actual scenario. For example, in this embodiment, the force IMU can be selected as the TDK ICM-20948 model, which is not specifically limited in this embodiment.

[0215] Each sampling result consists of 1000 frames of data for the fast sliding and slow sliding processes. Each frame of data contains multiple force sensor values ​​and IMU three-axis acceleration values. Therefore, the data dimension of the sampled tactile data sequence is 1000×2×15.

[0216] The appearance and internal structure of the bionic fingertip are as follows Fig.10As shown, each force sensor is covered with two layers of soft glue and a force transmission rod to protect the sensor and transmit external force. The first soft glue layer on the outside is the surface of rubber and imitates the texture structure of human fingerprints, making the touch mechanism of the bionic fingertip and the material closer to the real touch mechanism.

[0217] Taking the force sensors as 12 Alps Alpine HSFPAR003A model force sensors as an example, the distribution of the 12 pressure sensors corresponding to the fingertips is as follows: Fig. 9 shown.

[0218] At present, common sensors in the field of touch include Gelsight, iCub RoboSkin and SynTouch BioTac, etc. These sensors are expensive and difficult to implement in actual industrial production. Therefore, it should be pointed out that the sensor used in the production of fingertips in this embodiment is low in cost, which is convenient for subsequent practical application and implementation.

[0219] This embodiment sets a bionic fingertip structure to achieve the purpose of collecting tactile data sequences of various types of sample materials, thereby realizing efficient and accurate tactile attribute recognition.

[0220] The following is a description of a tactile attribute recognition device based on an attention mechanism provided by the present invention. The tactile attribute recognition device based on an attention mechanism described below and the tactile attribute recognition method based on an attention mechanism described above can refer to each other.

[0221] like Fig.11 The figure is a schematic diagram of the structure of the tactile attribute recognition device based on the attention mechanism provided in this embodiment, and the device includes: an acquisition module 1101, used to acquire the tactile data sequence of the target material; a feature extraction module 1102, used to input the tactile data sequence into the attention mechanism module in the tactile attribute recognition model to obtain the feature vector of the target material; a tactile attribute recognition module 1103, used to input the feature vector into the recognition module in the tactile attribute recognition model to obtain the tactile attribute recognition result of the target material; the tactile attribute recognition result is used to describe the surface characteristics of the target material; the tactile attribute recognition model is trained based on the tactile data sequences of various types of sample materials and the tactile attribute labels corresponding to the sample materials.

[0222] The tactile attribute recognition device based on the attention mechanism provided in the present embodiment obtains a tactile data sequence by inputting it into an attention mechanism module in a tactile attribute recognition model obtained by training based on tactile data sequences of multiple types of sample materials and tactile attribute labels corresponding to the sample materials, obtains a feature vector of the target material and inputs it into a recognition module in the tactile attribute recognition model, obtains a tactile attribute recognition result of the target material, that is, obtains an adjective of the surface characteristics of the target material. The entire attribute recognition process is automatically performed online without the need for manual feature extraction, thereby solving the defects of poor recognition efficiency and recognition accuracy of tactile attribute recognition in the prior art and realizing efficient and accurate tactile attribute recognition.

[0223] Fig.12 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.12 As shown, the electronic device may include: a processor 1210, a communication interface 1220, a memory 1230 and a communication bus 1240, wherein the processor 1210, the communication interface 1220 and the memory 1230 communicate with each other through the communication bus 1240. The processor 1210 may call the logic instructions in the memory 1230 to execute a tactile attribute recognition method based on an attention mechanism, the method comprising: obtaining a tactile data sequence of a target material; inputting the tactile data sequence into an attention mechanism module in a tactile attribute recognition model to obtain a feature vector of the target material; inputting the feature vector into a recognition module in the tactile attribute recognition model to obtain a tactile attribute recognition result of the target material; the tactile attribute recognition result is used to describe the surface characteristics of the target material; the tactile attribute recognition model is obtained by training based on tactile data sequences of multiple types of sample materials and tactile attribute labels corresponding to the sample materials.

[0224] In addition, the logic instructions in the above-mentioned memory 1230 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0225] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a tactile attribute recognition method based on an attention mechanism provided by the above methods, the method including: obtaining a tactile data sequence of a target material; inputting the tactile data sequence into an attention mechanism module in a tactile attribute recognition model to obtain a feature vector of the target material; inputting the feature vector into a recognition module in the tactile attribute recognition model to obtain a tactile attribute recognition result of the target material; the tactile attribute recognition result is used to describe the surface characteristics of the target material; the tactile attribute recognition model is trained based on tactile data sequences of multiple types of sample materials and tactile attribute labels corresponding to the sample materials.

[0226] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute a tactile attribute recognition method based on an attention mechanism provided by the above-mentioned methods, the method comprising: obtaining a tactile data sequence of a target material; inputting the tactile data sequence into an attention mechanism module in a tactile attribute recognition model to obtain a feature vector of the target material; inputting the feature vector into a recognition module in the tactile attribute recognition model to obtain a tactile attribute recognition result of the target material; the tactile attribute recognition result is used to describe the surface characteristics of the target material; the tactile attribute recognition model is trained based on tactile data sequences of multiple types of sample materials and tactile attribute labels corresponding to the sample materials.

[0227] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0228] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0229] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A tactile attribute recognition method based on attention mechanism, characterized in that: include: acquiring a tactile data sequence of a target material; Inputting the tactile data sequence into an attention mechanism module in a tactile attribute recognition model to obtain a feature vector of the target material; Inputting the feature vector into a recognition module in the tactile property recognition model to obtain a tactile property recognition result of the target material; the tactile property recognition result is used to describe the surface characteristics of the target material; The tactile attribute recognition model is obtained by training based on tactile data sequences of various types of sample materials and tactile attribute labels corresponding to the sample materials; The identification module includes a first identification submodule and a second identification submodule; The step of inputting the feature vector into a recognition module in the tactile property recognition model to obtain a tactile property recognition result of the target material includes: Inputting the feature vector into the first recognition submodule to obtain a first tactile property recognition result of the target material, and / or inputting the feature vector into the second recognition submodule to obtain a second tactile property recognition result of the target material; Acquire a tactile property recognition result of the target material according to the first tactile property recognition result and / or the second tactile property recognition result; The first recognition submodule includes a bidirectional recurrent network layer, a data slicing layer, a dimension transformation layer and a first fully connected layer; The step of inputting the feature vector into the first recognition submodule to obtain a first tactile property recognition result of the target material includes: Inputting the feature vector into the bidirectional recurrent network layer, and extracting the time series feature of the feature vector by the bidirectional recurrent network layer to obtain a first time series feature; Inputting the first time series feature into the data slicing layer, and having the data slicing layer perform feature slicing on the first time series feature to obtain a plurality of feature segments; Inputting a plurality of feature segments into a dimension transformation layer, and the dimension transformation layer performs dimension transformation on the plurality of feature segments; Inputting the dimensional transformation result into the first fully connected layer, and the first fully connected layer performs tactile attribute category recognition according to the dimensional transformation result to obtain a first probability that the target material belongs to each preset tactile attribute category; According to the first probability, obtaining the first tactile attribute recognition result; The tactile data sequence of each sample material is formed based on a combination of data collected by multiple pressure sensors and an inertial measurement unit in the bionic fingertip; The bionic fingertip comprises a base and a bionic fingertip body; The bionic fingertip body is arranged on the base; The bionic fingertip body comprises a first soft rubber layer, a force transmission rod, a second soft rubber layer, a pressure sensor and an inertial measurement unit; The first soft adhesive layer is arranged on the surface of the bionic fingertip body, and the surface of the first soft adhesive layer is provided with a texture structure of a bionic fingerprint, so as to be in contact with the surface of the material; The second soft rubber layer is arranged in the middle layer of the bionic fingertip; The force transmission rod is embedded in the second soft rubber layer, and one end of the force transmission rod is connected to the first soft rubber layer, and the other end of the force transmission rod is connected to the pressure sensor, so as to protect the pressure sensor and transmit external force to the pressure sensor; The pressure sensor is used to transmit the contact force applied to the bionic fingertip; The inertial measurement unit is used to record the three-axis acceleration of the bionic fingertip.

2. The tactile attribute recognition method based on the attention mechanism according to claim 1 is characterized in that: The second recognition submodule includes a one-dimensional convolutional layer and a second fully connected layer; The step of inputting the feature vector into the second recognition submodule to obtain a second tactile property recognition result of the target material includes: Performing a transposition operation on the feature vector, inputting the feature vector after the transposition operation into the one-dimensional convolution layer, and performing time series feature extraction on the feature vector by the one-dimensional convolution layer to obtain a second time series feature; Inputting the second time series feature into the second fully connected layer, and the second fully connected layer performs tactile attribute category recognition according to the second time series feature to obtain a second probability that the target material belongs to each preset tactile attribute category; The second tactile attribute recognition result is obtained according to the second probability.

3. The tactile attribute recognition method based on the attention mechanism according to any one of claims 1-2, characterized in that: The step of inputting the tactile data sequence into an attention mechanism module in a tactile attribute recognition model to obtain a feature vector of the target material includes: Inputting the tactile data sequence into the multi-head attention layer in the attention mechanism module, each attention layer extracts attention features according to the tactile data sequence, and obtains attention features corresponding to each attention layer; Input the attention features corresponding to the multi-head attention layer into the feature splicing layer in the attention mechanism module, and the feature splicing layer performs feature splicing on the attention features corresponding to the multi-head attention layer to obtain splicing features; The tactile data sequence and the splicing features are input into the residual connection layer in the attention mechanism module, and the residual connection layer performs residual fusion on the tactile data sequence and the splicing features to obtain a feature vector of the target material.

4. The tactile attribute recognition method based on the attention mechanism according to any one of claims 1-2, characterized in that: The tactile attribute recognition model is trained based on the following steps: Based on the bionic fingertip, collecting tactile data sequences of the plurality of types of sample materials; Based on a plurality of different preset tactile attribute categories, marking corresponding tactile attribute labels for the tactile data sequence of the sample material; Inputting the tactile data sequence of the sample material into the initial attention mechanism module in the initialization attribute recognition model to obtain a sample feature vector; Inputting the sample feature vectors into a first initial recognition submodule and a second initial recognition submodule in the initialization attribute recognition model respectively, obtaining a first sample tactile attribute recognition result of the sample material output by the first initial recognition submodule, and a second sample tactile attribute recognition result of the sample material output by the second initial recognition submodule; Determining a loss function value according to the first sample tactile attribute recognition result, the second sample tactile attribute recognition result, and the tactile attribute label corresponding to the sample material; Based on the loss function value, the initialized attribute recognition model is iteratively trained to obtain the tactile attribute recognition model.

5. The tactile attribute recognition method based on the attention mechanism according to claim 4 is characterized in that: The method of collecting tactile data sequences of the plurality of types of sample materials based on the bionic fingertip includes: For each sample material of each type, perform the following steps: Controlling the bionic fingertip to perform a downward pressing operation on the current sample material at a target speed until the total pressure value of the force sensor on the bionic fingertip reaches a pressure threshold, and stopping the downward pressing operation; When the duration of stopping the downward pressing operation reaches a target duration, controlling the bionic fingertip to perform a first sliding operation on the current sample material, and acquiring a first tactile data sequence collected by the bionic fingertip during the first sliding operation; and / or, when the duration of stopping the pressing down operation reaches the target duration, controlling the bionic fingertip to perform a second sliding operation on the current sample material, and acquiring a second tactile data sequence collected by the bionic fingertip during the second sliding operation; wherein the sliding speed corresponding to the first sliding operation is greater than the sliding speed corresponding to the second sliding operation; According to the first tactile data sequence and / or the second tactile data sequence, a tactile data sequence of the current sample material is acquired.

6. A tactile attribute recognition device based on an attention mechanism, characterized in that: include: An acquisition module, used for acquiring a tactile data sequence of a target material; A feature extraction module, used for inputting the tactile data sequence into an attention mechanism module in a tactile attribute recognition model to obtain a feature vector of the target material; A tactile property recognition module, used for inputting the feature vector into a recognition module in the tactile property recognition model to obtain a tactile property recognition result of the target material; the tactile property recognition result is used to describe the surface characteristics of the target material; The tactile attribute recognition model is obtained by training based on tactile data sequences of various types of sample materials and tactile attribute labels corresponding to the sample materials; The identification module includes a first identification submodule and a second identification submodule; The tactile attribute recognition module is specifically used for: Inputting the feature vector into the first recognition submodule to obtain a first tactile property recognition result of the target material, and / or inputting the feature vector into the second recognition submodule to obtain a second tactile property recognition result of the target material; Acquire a tactile property recognition result of the target material according to the first tactile property recognition result and / or the second tactile property recognition result; The first recognition submodule includes a bidirectional recurrent network layer, a data slicing layer, a dimension transformation layer and a first fully connected layer; The tactile attribute recognition module is further used for: Inputting the feature vector into the bidirectional recurrent network layer, and extracting the time series feature of the feature vector by the bidirectional recurrent network layer to obtain a first time series feature; Inputting the first time series feature into the data slicing layer, and having the data slicing layer perform feature slicing on the first time series feature to obtain a plurality of feature segments; Inputting a plurality of feature segments into a dimension transformation layer, and the dimension transformation layer performs dimension transformation on the plurality of feature segments; Inputting the dimensional transformation result into the first fully connected layer, and the first fully connected layer performs tactile attribute category recognition according to the dimensional transformation result to obtain a first probability that the target material belongs to each preset tactile attribute category; According to the first probability, obtaining the first tactile attribute recognition result; The tactile data sequence of each sample material is formed based on a combination of data collected by multiple pressure sensors and an inertial measurement unit in the bionic fingertip; The bionic fingertip comprises a base and a bionic fingertip body; The bionic fingertip body is arranged on the base; The bionic fingertip body comprises a first soft rubber layer, a force transmission rod, a second soft rubber layer, a pressure sensor and an inertial measurement unit; The first soft adhesive layer is arranged on the surface of the bionic fingertip body, and the surface of the first soft adhesive layer is provided with a texture structure of a bionic fingerprint, so as to be in contact with the surface of the material; The second soft rubber layer is arranged in the middle layer of the bionic fingertip; The force transmission rod is embedded in the second soft rubber layer, and one end of the force transmission rod is connected to the first soft rubber layer, and the other end of the force transmission rod is connected to the pressure sensor, so as to protect the pressure sensor and transmit external force to the pressure sensor; The pressure sensor is used to transmit the contact force applied to the bionic fingertip; The inertial measurement unit is used to record the three-axis acceleration of the bionic fingertip.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the tactile attribute recognition method based on the attention mechanism as described in any one of claims 1 to 5 is implemented.

Citation Information

Cited By

  • Amplification of formal method and fuzz testing to enable scalable assurance for communication system

    US12621337B2