Multi-point contact detection method of rigid-soft finger based on inter-domain adaptation and forceless sensor
Through the forceless sensor technology based on inter-domain adaptation, air pressure and joint angle sensors are used to build a combined network, which realizes multi-point contact detection and prediction of the soft robot's forceless sensor, solves the problem of soft robot perception ability and manufacturing consistency, and improves prediction Accuracy and stability.
Patent Information
- Application Number
- CN202311123176.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-01
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-09-01
AI Technical Summary
Soft robots have challenges in sensing capabilities and manufacturing consistency, especially the lack of effective sensors to detect contact and force, which makes it difficult to obtain sufficient sensing capabilities and accurate modeling, and changes in material properties affect prediction accuracy.
A multi-point contact detection method of hard and soft fingers based on forceless sensors based on inter-domain adaptation is used to obtain data through air pressure sensors and soft body joint angle sensors, and a combined network is constructed to predict the contact status, achieving multi-point contact detection and cross-individual contact detection without the need for physical force sensors. , prediction across time.
It enhances the force-tactile sensing ability of soft robots, reduces the impact of changes in material properties on prediction performance, improves the accuracy of cross-individual and cross-time predictions, and reduces the amount of labeled data collected.
Smart Images

Figure CN117325150B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a method for detecting multi-point contact of rigid-soft fingers of force-free sensors based on inter-domain adaptation, which belongs to the field of force tactile perception of pneumatic soft robots. Background Art
[0002] Soft robots are mostly used in open-loop conditions, relying mainly on the inherent flexibility of the material itself to interact with the outside world. This approach lacks precise control of its own state and effective estimation of interactions. It has difficulties in operations that require high proprioceptive performance. In order to enhance the perception ability of soft robots, existing methods usually embed hard sensors commonly used in traditional robots, such as FSR thin film force sensors, into the soft structure. However, these sensors originally designed for rigid robots will affect the deformation and movement of the soft structure. In contrast, some other soft sensors are specially designed to detect physical quantities such as contact and force using soft and flexible materials. However, soft sensors still face many challenges in manufacturing consistency, stability, signal-to-noise ratio, signal repeatability, etc., and it is difficult to meet the needs of actual tasks. Integrating more sensor channels means higher process and structural complexity, and the stability of the system will be greatly reduced. Due to the limitations of soft sensors, soft robots often find it difficult to obtain sufficient sensing capabilities. There is a lack of effective estimation of their own motion state and the state of interaction with the outside world.
[0003] At the same time, there are many limitations in the manufacturing process of soft robots. For example, poor manufacturing consistency leads to huge differences between hard and soft fingers. In addition, the main flexible materials of soft actuators have the characteristics of stress relaxation. As the material usage time and the number of stress cycles increase, its superelastic properties are variable. Manufacturing defects, structural damage, air leakage, etc. will aggravate the changes in the performance of the actuator. The characteristics of the sensor have also changed, requiring a large number of repeated calibrations. These are common problems faced by most soft robots. Due to the individual differences and characteristic changes of soft robots, it is difficult to accurately model their actuators and sensors. Especially for rigid-soft hybrid structures, the complexity of modeling is further increased. Model-based control and state prediction are often affected by insufficient modeling accuracy. In addition, general data-based modeling methods require a large number of samples for strong supervised training. Factors such as short life, individual manufacturing differences and stress relaxation make data collection difficult, making these methods infeasible in soft robot modeling. Summary of the invention
[0004] The purpose of this application is to provide a force sensor-free rigid-soft finger multi-point contact detection method based on inter-domain adaptation, to realize the force tactile perception function of a pneumatic soft robot, and to solve the problem of detecting the contact position between the soft structure and the outside world without a physical force tactile sensor.
[0005] To achieve the above-mentioned purpose, the first aspect of the present application provides a forceless sensor rigid-soft finger multi-point contact detection method based on inter-domain adaptation, which is applied to a pneumatic soft robot, wherein the pneumatic soft robot comprises: a plurality of rigid-soft hybrid structure fingers, an air pressure sensor installed in the driving air cavity of each finger, a soft joint angle sensor installed at each finger joint driver, and a tactile sensor installed on the source finger;
[0006] The method for detecting multi-point contact of rigid and soft fingers with a forceless sensor comprises:
[0007] Obtaining a source data set through the tactile sensor, wherein the source data set includes a real-time air pressure vector, a joint angle vector and a label vector of a source finger;
[0008] A target data set is obtained through each air pressure sensor and a soft joint angle sensor, wherein the target data set includes a 0-label data set and a missing label data set, the 0-label data set includes an air pressure vector and a joint angle vector of a target finger when no external force is applied, the missing label data set includes a real-time air pressure vector and a joint angle vector of a target finger when an external force is applied, and the target finger is a finger other than a source finger;
[0009] Constructing a combined network, the combined network comprising a feature generator for enhancing data features of a source finger and a target finger, a feature extractor for extracting common features between the source finger and the target finger, and an adaptive classifier for predicting a contact state of the target finger according to the common features;
[0010] Pre-training the combined network using the source data set and the 0-label data set;
[0011] The pre-trained combined network is iteratively trained using the source data set and the missing label data set, and the contact state of the target finger is predicted in real time using the target network obtained through the iterative training.
[0012] In one implementation, the combined network specifically includes:
[0013] A first feature generator, configured to enhance the data feature of the source finger according to the source data set and output a first enhanced feature, wherein the first enhanced feature comprises a set of labeled data features;
[0014] A first feature extractor, configured to extract features from the first enhanced features and output a first common feature;
[0015] A first adaptive classifier, used for predicting and outputting a source finger prediction result according to the first common feature;
[0016] A second feature generator, used to enhance the data features of the target finger according to the target data set and output a second enhanced feature, wherein the second enhanced feature includes a set of unlabeled data features;
[0017] A second feature extractor, sharing parameters with the first feature extractor, configured to extract features from the second enhanced features and output a second common feature;
[0018] The second adaptive classifier is used to predict and output a target finger prediction result according to the second common feature.
[0019] In one embodiment, the second feature generator includes:
[0020] A feature enhancement network is used to predict the joint angle vector of the target finger without external force based on the unlabeled air pressure vector;
[0021] The second feature generator is used to obtain the second enhanced feature according to the predicted joint angle vector and the joint angle vector collected in real time.
[0022] In one embodiment, pre-training the combined network using the source data set and the zero-label data set includes:
[0023] The feature enhancement network is pre-trained using the 0-label dataset.
[0024] In one embodiment, the first adaptive classifier includes:
[0025] A first fully connected layer, including a LeakyReLu activation function, is used to output a third common feature according to the first common feature;
[0026] A first prediction layer, used for predicting and outputting a source finger prediction result according to the third common feature;
[0027] The second adaptive classifier comprises:
[0028] a second fully connected layer, comprising a LeakyReLu activation function and sharing parameters with the first fully connected layer, and configured to output a fourth common feature according to the second common feature;
[0029] The second prediction layer is used to predict and output a target finger prediction result according to the fourth common feature.
[0030] In one embodiment, the combined network further includes:
[0031] A loss function layer, used to calculate a first LogCoral loss according to the first common feature and the second common feature, calculate a second LogCoral loss according to the third common feature and the fourth common feature, calculate a first classification loss according to the source finger prediction result, and calculate a second classification loss according to the target finger prediction result;
[0032] The loss function layer is further used to calculate an optimized loss function by combining the first LogCoral loss, the second LogCoral loss, the first classification loss, and the second classification loss.
[0033] In one implementation, calculating a first LogCoral loss according to the first common feature and the second common feature includes:
[0034] Calculate the covariance matrices corresponding to the source data set and the target data set respectively according to the first common feature and the second common feature;
[0035] Combine the two covariance matrices to calculate the first LogCoral loss.
[0036] In one embodiment, the iterative training of the pre-trained combined network using the source data set and the missing label data set includes:
[0037] In each training process, the source data set is divided into multiple subsets, and the first classification loss corresponding to each subset is calculated, and the first LogCoral loss, the second LogCoral loss and the second classification loss are calculated on the entire domain;
[0038] The optimization loss function is obtained by linearly combining the first classification loss, the first LogCoral loss, the second LogCoral loss and the second classification loss;
[0039] According to the optimized loss function, the parameters of the combined network are optimized through back propagation.
[0040] The second aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the first aspect or any one of the embodiments of the first aspect when executing the computer program.
[0041] A third aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the first aspect or any implementation of the first aspect are implemented.
[0042] As can be seen from the above, the present application provides a method for detecting multi-point contact of rigid and soft fingers based on domain-inter-adaptive forceless sensors, and proposes a combined network to establish a mapping relationship between driving air pressure, joint angle and multi-point contact occurrence position, and then obtain the corresponding data set through the air pressure sensor and the soft joint angle sensor to train the combined network to realize the prediction of the contact position, and the multi-point contact detection of the soft structure can be realized without using a physical force sensor, thereby enhancing the perception ability of the soft body. At the same time, any finger can be used as the source finger to obtain a source data set with complete contact marks to predict other target fingers with missing labels, and realize cross-individual prediction between different fingers; the missing label data set can also be updated using the newly added tiny labeled data and 0-label data collected in real time, so as to update the parameters of the combined network even after the finger features change, and realize the cross-time prediction of the target finger, thereby reducing the influence of the change of material properties on the prediction performance. In addition, the parameters of the combined network can be iteratively optimized through the tiny data collected in real time, so that a large amount of new data and labels do not need to be collected on the target finger during the prediction process, which can improve the prediction performance under small sample sets and biased data sets, effectively improve the prediction accuracy of cross-individual and cross-time prediction, and greatly reduce the amount of labeled data collected. The force tactile perception function of the pneumatic soft robot is realized, which solves the problem of detecting the contact position between the soft structure and the outside world in the absence of physical force tactile sensors. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 A schematic flow chart of a method for detecting multi-point contact of a rigid-soft finger with a forceless sensor provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of the structure of a feature generator provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of the structure of a combined network provided in an embodiment of the present application;
[0047] Figure 4 A schematic diagram of a loss change process provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of the Accuracy indicator change process provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of the F1-Score indicator change process provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0051] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0052] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.
[0053] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present application. Therefore, the present application is not limited to the specific embodiments disclosed below.
[0055] Embodiment 1
[0056] The embodiment of the present application provides a forceless sensor rigid-soft finger multi-point contact detection method based on inter-domain adaptation, which is applied to a pneumatic soft robot, wherein the pneumatic soft robot comprises: a plurality of rigid-soft hybrid structure fingers, an air pressure sensor installed in the driving air cavity of each finger, a soft joint angle sensor installed at each finger joint driver, and a tactile sensor installed on a source finger;
[0057] In one embodiment, soft robots often lack sufficient sensors, which makes it difficult for soft robots to identify their own state and external environment. Proprioception, including the perception of position and force, is particularly important in the operation tasks of soft robots. However, due to the limitations of its size and process, it is usually difficult to integrate a sufficient number of high-performance soft force / tactile sensors for soft structures. In addition, soft robots are limited by their manufacturing process, and often have large manufacturing differences between individuals, short lifespan, and stress relaxation of flexible materials during use that easily leads to changes in characteristics. This causes great difficulties in collecting data during model building. To solve the above problems, the present application embodiment proposes a method for detecting multi-point contact of rigid-soft fingers based on domain-inter-adaptive forceless sensors. In order to obtain the air pressure and joint information built into the rigid-soft hybrid structure finger, an air pressure sensor is installed in each driving air cavity in the soft structure. And a soft joint angle sensor is installed at the driver of each channel. The air pressure vector and joint angle vector are obtained by the air pressure sensor and the soft joint angle sensor to predict the contact between the soft structure and the outside world.
[0058] like Figure 1 As shown, the forceless sensor hard-soft finger multi-point contact detection method includes:
[0059] S100 obtains a source data set through the tactile sensor, wherein the source data set includes a real-time air pressure vector, a joint angle vector, and a label vector of a source finger;
[0060] In one embodiment, a tactile sensor is installed on one of the fingers under test (ie, the source finger) to collect a labeled data set as a source data set. The source data set includes an air pressure vector Pressure, a joint angle vector Angle, and a label vector Contact collected by the tactile sensor.
[0061] Furthermore, the source data set may be cleaned to ensure data quality.
[0062] S200 obtains a target data set through each air pressure sensor and a software joint angle sensor, wherein the target data set includes a 0-label data set and a missing label data set, the 0-label data set includes an air pressure vector and a joint angle vector of a target finger when no external force is applied, the missing label data set includes a real-time air pressure vector and a joint angle vector of a target finger when an external force is applied, and the target finger is a finger other than a source finger;
[0063] In one embodiment, data from built-in sensors in other fingers are collected in actual grasping applications. These fingers are called target fingers, and do not need to be equipped with tactile sensors. They only rely on their built-in air pressure sensors and soft joint angle sensors to construct a data set with missing labels as the target data set. Before the target finger comes into contact with the outside world, that is, when there is no external force, the finger is allowed to move freely for a period of time, and the data collected during this period is assigned a 0 label as the 0 label data set; during the grasping process of other fingers, the latest data of the built-in sensors and tiny data that are easy to obtain labels are collected in real time as the missing label data set, that is, the missing label data set may include a newly added 0 label subset and a partial labeled subset, and the target data set is updated based on the latest acquired missing label data set. The embodiment of the present application trains a combined network by using the labeled data set of the finger under test in step S100 and the unlabeled data set of other fingers in step S200 to distinguish the contact state of the finger under test and other fingers.
[0064] S300 constructs a combined network, the combined network comprising a feature generator (FGT) for enhancing data features of a source finger and a target finger, a feature extractor (FET) for extracting common features between the source finger and the target finger, and an adaptive classifier (ACF) for predicting a contact state of the target finger according to the common features;
[0065] In one embodiment, the structure of FGT is as follows Figure 2 As shown, in the lower layer of the combined network, data from the source finger and the target finger are input into the corresponding FGT for data enhancement. FGT is individual-specific, so each finger has independent FGT parameters, and each FGT includes a feature enhancement network (FEN) pre-trained using the original 0-label data of the finger. When the latest data sets are input into the combined network for a new round of training, FGT divides the subsets of the labeled data set, and selects the newly added 0-label subset in the new target data set, and uses the 0-label subset to fine-tune FEN, and then uses the fine-tuned FEN to predict the joint angle reference vector Angle' when there is no external force based on the input air pressure vector Pressure. The actual joint angle vector Angle is combined with Angle', and the difference and ratio between the two are added to obtain an enhanced data feature vector, and finally an unlabeled enhanced feature vector EnFeature set and a data label set consisting of all labeled samples are output. Among them, the calculation formula of the enhanced data feature vector EnFeature is:
[0066] EnFeature=[Angle,Angle',Angle-Angle',Angle / Angle']
[0067] The feature set enhanced by FGT will pass through the FET of the source finger and the target finger respectively. The two FETs have the same network structure and shared parameters. The output of the FET is fed into the ACF, which has two layers of networks. The first layer is a fully connected layer (fcl) with a LeakyReLu activation function. The network structure and parameters of the ACF are shared between the first layers. The second layer is a prediction layer (Softmax), which is used to output the prediction of the contact state.
[0068] Optionally, the combined network is a knowledge transfer combined network with deep correlation alignment, such as Figure 3 As shown, the combined network specifically includes: a first feature generator, used to enhance the data features of the source finger according to the source data set and output a first enhanced feature, wherein the first enhanced feature includes a set of data features with complete labels; a first feature extractor, used to extract features from the first enhanced feature and output a first common feature; a first adaptive classifier (i.e., a source classifier), used to predict based on the first common feature and output a source finger prediction result; a second feature generator, used to enhance the data features of the target finger according to the target data set and output a second enhanced feature, wherein the second enhanced feature includes a set of unlabeled data features; a second feature extractor, which shares parameters with the first feature extractor, used to extract features from the second enhanced feature and output a second common feature; a second adaptive classifier (i.e., a target classifier), used to predict based on the second common feature and output a target finger prediction result.
[0069] Optionally, the first adaptive classifier includes: a first fully connected layer, containing a LeakyReLu activation function, for outputting a third common feature based on the first common feature; a first prediction layer, for predicting based on the third common feature and outputting a source finger prediction result; the second adaptive classifier includes: a second fully connected layer, containing a LeakyReLu activation function and sharing parameters with the first fully connected layer, for outputting a fourth common feature based on the second common feature; a second prediction layer, for predicting based on the fourth common feature and outputting a target finger prediction result.
[0070] Optionally, the combined network further includes: a loss function layer, used to calculate a first LogCoral loss according to the first common feature and the second common feature, calculate a second LogCoral loss according to the third common feature and the fourth common feature, calculate a first classification loss according to the source finger prediction result, and calculate a second classification loss according to the target finger prediction result;
[0071] The loss function layer is further used to calculate an optimized loss function by combining the first LogCoral loss, the second LogCoral loss, the first classification loss, and the second classification loss.
[0072] In one implementation, the specific calculation process of each of the above loss functions is: first, the respective covariance matrices are calculated according to the source data set of the source finger and the target data set of the target finger.
[0073] For the source finger:
[0074]
[0075] Among them, n s is the number of samples in the source data set, 1 T is a vector whose elements are all 1, D s is the matrix composed of the features of the source finger.
[0076] For the target finger:
[0077]
[0078] Among them, n t is the number of samples in the target dataset, 1 T is a vector whose elements are all 1, D t It is a matrix composed of the features of the target finger.
[0079] Then calculate the LogCoral loss:
[0080]
[0081] Where d is the feature dimension of the network layer for calculating LogCoral loss. s and U t Represents the covariance matrix C of the source finger and the target finger respectively s and C t The feature vector of . and represents the ith eigenvalue of the corresponding data set of the source finger and the target finger. The diag(·) notation indicates that the eigenvalues are arranged in order along the diagonal of the matrix to obtain a diagonal matrix. The mark represents the calculation of the Frobenius norm.
[0082] The classification loss is calculated as:
[0083]
[0084]
[0085] Among them, l CEs and lCEt Represent the classification loss on the corresponding datasets of source and target fingers, respectively. The Ε mark represents the de-expectation. It is a symbolic function. When the output of the combined network is the kth label, that is, when the condition y=k is satisfied, its return value is 1, otherwise it returns 0.
[0086] Finally, calculate and optimize the loss function:
[0087]
[0088] Among them, ω represents the weight of each loss, which is a hyperparameter. θ represents the set of network parameters that need to be optimized.
[0089] S400 pre-trains the combined network using the source data set and the 0-label data set;
[0090] Optionally, the feature enhancement network is pre-trained using the 0-label dataset.
[0091] S500 iteratively trains the pre-trained combined network using the source data set and the missing label data set, and predicts the contact state of the target finger in real time using the target network obtained through the iterative training.
[0092] Optionally, during each training process, the source data set is divided into multiple subsets, and the first classification loss corresponding to each subset is calculated, and the first LogCoral loss, the second LogCoral loss and the second classification loss are calculated on the entire domain; the first classification loss, the first LogCoral loss, the second LogCoral loss and the second classification loss are linearly combined to obtain the optimized loss function; according to the optimized loss function, the parameters of the combined network are optimized by back propagation.
[0093] In one application scenario, when the combined network needs to achieve cross-individual prediction, a finger is selected to install a tactile sensor to collect a complete labeled dataset, and the collected labeled dataset is used as the source dataset. The built-in sensor dataset collected by other fingers in actual applications and the small dataset on the target finger that is easy to obtain labels are selected as the target dataset. When the network needs to be updated across time scales, it is necessary to collect the latest built-in sensor dataset and small labeled dataset of the target finger, and use the new target dataset to update the parameters of the combined network. In this process, there is no need to collect a large amount of new data and labels on the target finger.
[0094] As can be seen from the above, the embodiment of the present application provides a method for detecting multi-point contact of rigid and soft fingers based on domain-interconnected forceless sensors, and proposes a combined network to establish a mapping relationship between driving air pressure, joint angle and multi-point contact occurrence position, and then obtain the corresponding data set through the air pressure sensor and the soft joint angle sensor to train the combined network to predict the contact position, and can realize multi-point contact detection of the soft structure without using a physical force sensor, thereby enhancing the perception ability of the soft body. At the same time, any finger can be used as the source finger to obtain a source data set with complete contact marks to predict other target fingers with missing labels, and realize cross-individual prediction between different fingers; the newly added tiny labeled data and 0-label data collected in real time can also be used to update the missing label data set, so as to update the parameters of the combined network even after the finger features change, so as to realize the cross-time prediction of the target finger, and reduce the impact of material property changes on the prediction performance. In addition, the combined network parameters can be iteratively optimized through the tiny data collected in real time, so that a large amount of new data and labels do not need to be collected on the target finger during the prediction process, which can improve the prediction performance under small sample sets and biased data sets, effectively improve the prediction accuracy of cross-individual and cross-time predictions, and greatly reduce the amount of labeled data collected. The force tactile perception function of the pneumatic soft robot is realized, which solves the problem of detecting the contact position between the soft structure and the outside world under the condition of lacking physical force tactile sensors.
[0095] Embodiment 2
[0096] The embodiment of the present application is based on the PyTorch deep learning framework to conduct experiments to demonstrate the effect of the forceless sensor hard-soft finger multi-point contact detection method provided in the first embodiment. The specific experimental process is as follows:
[0097] The FEN network is a fully connected network with 4 hidden layers and a width of 32-128-128-32. Each layer is added with a Dropout = 0.1 mechanism and uses the LeakyRelu activation function. The learning rate is 1e-3 and the epoch is 1024 during pre-training. All parameters are updated and trained during fine-tuning with a learning rate of 1e-4 and an epoch of 50. The FET network is a fully connected network with a width of 16-64-256-256-128-64. Each layer is added with a Dropout = 0.1 mechanism and uses the LeakyRelu activation function. The width of ACF is 24, and the activation function of the first layer is LeakyRelu. The features used to calculate the loss are selected as the features before the activation function. The weight of the classification loss is 1, and the loss of LogCoral is 1e4. The batch size is 1024, the epoch is 2048, and the learning rate is 1e-3.
[0098] The experimental results are as follows:
[0099] Figure 4The loss change process during prediction is shown. It can be seen that with the change of the number of iterations (EPOCH), the classification losses and LogCoral losses are significantly reduced, indicating that the prediction performance of the method in Example 1 of the present application is continuously enhanced with the continuous iterative update of the combined network parameters, effectively improving the prediction accuracy of cross-individual and cross-time predictions.
[0100] Tables 1 and 2 respectively show the comparison of prediction performance when using the method of the embodiment of the present application and the direct training prediction model method for cross-finger prediction and cross-time prediction.
[0101] Table 1. Comparison of prediction performance across fingers (using finger 1 as the source finger)
[0102]
[0103] Table 2. Comparison of prediction performance of model updates across time (using finger 1 as the source finger and target finger)
[0104]
[0105] It can be seen from the above table that when the combined network trained by the method of the embodiment of the present application is used for prediction, the Accuracy index and F1-Score index of each finger are significantly better than the direct training prediction model method. Figure 5 The diagram shows the change process of the Accuracy indicator during prediction. Figure 6 A schematic diagram of the change process of the F1-Score indicator during prediction is shown, which also proves that the prediction accuracy of the method described in Example 1 of the present application is higher.
[0106] Embodiment 3
[0107] An embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the memory is used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory and the processor are connected via a bus. Specifically, the processor implements any step in the first embodiment above by running the computer program stored in the memory.
[0108] It should be understood that in the embodiments of the present application, the processor referred to may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0109] The memory may include a read-only memory, a flash memory, and a random access memory, and provides instructions and data to the processor. A part or all of the memory may also include a nonvolatile random access memory.
[0110] It should be understood that the above-mentioned integrated module / unit, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on such an understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.
[0111] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
[0112] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0113] It should be noted that the methods and detailed examples provided in the above embodiments can be combined with the devices and equipment provided in the embodiments, and references can be made to each other, and no further details will be given.
[0114] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0115] In the embodiments provided in the present application, it should be understood that the disclosed apparatus / terminal equipment and method can be implemented in other ways. For example, the apparatus / equipment embodiments described above are only schematic, for example, the division of the above modules or units is only a logical function division, and in actual implementation, other division methods can be used, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0116] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. 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 application, and should all be included in the protection scope of the present application.
Claims
1. A method for multi-point contact detection of rigid-soft fingers based on domain-interconnection adaptive forceless sensors, applied to pneumatic soft robots, characterized in that: The pneumatic soft robot comprises: a plurality of fingers of a rigid-soft hybrid structure, an air pressure sensor installed in the driving air cavity of each finger, a soft joint angle sensor installed at each finger joint driver, and a tactile sensor installed on the source finger; The method for detecting multi-point contact of rigid and soft fingers with a forceless sensor comprises: Obtaining a source data set through the tactile sensor, wherein the source data set includes a real-time air pressure vector, a joint angle vector and a label vector of a source finger; A target data set is obtained through each air pressure sensor and a soft joint angle sensor, wherein the target data set includes a 0-label data set and a missing label data set, the 0-label data set includes an air pressure vector and a joint angle vector of a target finger when no external force is applied, the missing label data set includes a real-time air pressure vector and a joint angle vector of a target finger when an external force is applied, and the target finger is a finger other than a source finger; Constructing a combined network, the combined network comprising a feature generator for enhancing data features of a source finger and a target finger, a feature extractor for extracting common features between the source finger and the target finger, and an adaptive classifier for predicting a contact state of the target finger according to the common features; Pre-training the combined network using the source data set and the 0-label data set; The pre-trained combined network is iteratively trained using the source data set and the missing label data set, and the contact state of the target finger is predicted in real time using the target network obtained through the iterative training.
2. The method for detecting multi-point contact of a forceless sensor with a hard or soft finger according to claim 1, characterized in that: The combined network specifically includes: A first feature generator, configured to enhance the data feature of the source finger according to the source data set and output a first enhanced feature, wherein the first enhanced feature comprises a set of labeled data features; A first feature extractor, configured to extract features from the first enhanced features and output a first common feature; A first adaptive classifier, used for predicting and outputting a source finger prediction result according to the first common feature; A second feature generator, used to enhance the data features of the target finger according to the target data set and output a second enhanced feature, wherein the second enhanced feature includes a set of unlabeled data features; A second feature extractor, sharing parameters with the first feature extractor, configured to extract features from the second enhanced features and output a second common feature; The second adaptive classifier is used to predict and output a target finger prediction result according to the second common feature.
3. The method for detecting multi-point contact of a forceless sensor with a hard or soft finger as claimed in claim 2, characterized in that: The second feature generator comprises: A feature enhancement network is used to predict the joint angle vector of the target finger without external force based on the unlabeled air pressure vector; The second feature generator is used to obtain the second enhanced feature according to the predicted joint angle vector and the joint angle vector collected in real time.
4. The method for detecting multi-point contact of a forceless sensor with a hard or soft finger as claimed in claim 3, characterized in that: The pre-training of the combined network by using the source data set and the 0-label data set comprises: The feature enhancement network is pre-trained using the 0-label dataset.
5. The method for detecting multi-point contact of a forceless sensor with a hard or soft finger as claimed in claim 3 or 4, characterized in that: The first adaptive classifier comprises: A first fully connected layer, including a LeakyReLu activation function, is used to output a third common feature according to the first common feature; A first prediction layer, used for predicting and outputting a source finger prediction result according to the third common feature; The second adaptive classifier comprises: a second fully connected layer, comprising a LeakyReLu activation function and sharing parameters with the first fully connected layer, and configured to output a fourth common feature according to the second common feature; The second prediction layer is used to predict and output a target finger prediction result according to the fourth common feature.
6. The method for detecting multi-point contact of a forceless sensor with a hard or soft finger as claimed in claim 5, characterized in that: The combined network also includes: A loss function layer, used to calculate a first LogCoral loss according to the first common feature and the second common feature, calculate a second LogCoral loss according to the third common feature and the fourth common feature, calculate a first classification loss according to the source finger prediction result, and calculate a second classification loss according to the target finger prediction result; The loss function layer is further used to calculate an optimized loss function by combining the first LogCoral loss, the second LogCoral loss, the first classification loss, and the second classification loss.
7. The method for detecting multi-point contact of a forceless sensor with a hard or soft finger according to claim 6, characterized in that: Calculating the first LogCoral loss according to the first common feature and the second common feature includes: Calculate the covariance matrices corresponding to the source data set and the target data set respectively according to the first common feature and the second common feature; Combine the two covariance matrices to calculate the first LogCoral loss.
8. The method for detecting multi-point contact of a forceless sensor with a hard or soft finger as claimed in claim 6 or 7, characterized in that: The iterative training of the pre-trained combined network using the source data set and the missing label data set includes: In each training process, the source data set is divided into multiple subsets, and the first classification loss corresponding to each subset is calculated, and the first LogCoral loss, the second LogCoral loss and the second classification loss are calculated on the entire domain; The optimization loss function is obtained by linearly combining the first classification loss, the first LogCoral loss, the second LogCoral loss and the second classification loss; According to the optimized loss function, the parameters of the combined network are optimized through back propagation.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Robot humanoid multi-finger joint tactile perception method, system and equipment
CN116572254A
Robot hand and control system, control method and control program for the same
US20100292842A1
