Soft mechanical arm inverse kinematics modeling method based on partition neural network
The inverse kinematics problem of the soft robotic arm is divided by the partitioned neural network, which reduces the solution complexity and computational burden, improves the control accuracy and adaptability, and solves the problems of low inverse kinematics solution efficiency and large errors in traditional methods.
Patent Information
- Application Number
- CN202410599484.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-15
AI Technical Summary
The traditional inverse kinematics solution method for soft robotic arms is difficult to deal with complex nonlinear relationships, has a large amount of calculations and is low in efficiency. When the neural network model is directly used, too many input and output neurons lead to long solution times and large errors.
A partitioned neural network is used to divide the inverse kinematics problem of the soft robotic arm into multiple sub-problems according to the driving air pressure method, reduce the number of output neurons, determine the position of the target area through mathematical calculation methods, and use the collected kinematic data to perform the partitioned neural network training, reducing solution complexity and improving control accuracy.
It significantly improves the grasping accuracy and adaptability, simplifies the control tasks, improves the efficiency and flexibility of the controller, reduces the computational burden and errors, and achieves higher solution efficiency and control accuracy.
Smart Images

Figure CN118528256A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of robotics technology, and specifically relates to a method for inverse kinematics modeling of a soft robotic arm based on a partitioned neural network. Background Art
[0002] Soft manipulators are a typical application direction of soft robots, which are used to imitate the movement and flexibility of human hands to achieve functions such as grasping, carrying and manipulating objects. Inverse kinematics refers to determining the pressure of the braking space of the soft manipulator based on the position and posture of the end effector so that the manipulator can reach the desired target position. Traditional inverse kinematics solutions for soft manipulators are mainly based on the following methods:
[0003] 1. Geometric mathematical method: The geometric method is one of the earliest methods used to solve the inverse kinematics of robots. It calculates the motion parameters of each joint of the robot arm based on the coordinate system and related geometric relationships. For example, the Denavit-Hartenberg (DH) parameterization method can be used to establish the coordinate transformation matrix between adjacent connected joints, thereby deriving the forward and inverse kinematics equations of the entire robot arm. The advantage of this method is that it is simple and easy to understand, but its limitation is that it is difficult to handle complex nonlinear relationships.
[0004] 2. Analytical method for specific structures: For certain soft manipulators with specific structures, their special geometric structures and motion laws can be used to solve the inverse kinematics problem through analytical methods. For example, in some specific soft manipulators, accurate expressions can be derived based on intuitive geometric judgments using trigonometric methods to solve the inverse kinematics problem. The advantage of this method is high computational efficiency, but it requires specific structural conditions to be met.
[0005] 3. Numerical iteration method: Numerical iteration method is often used to solve complex nonlinear inverse kinematics problems. The numerical iteration method transforms the inverse kinematics problem into an optimization problem, continuously adjusts the initial values of the joint parameters, and uses numerical optimization algorithms to search for the optimal solution. Typical numerical iteration methods include Newton-Raphson method, gradient descent method, etc. The advantage of this method is that it can handle complex nonlinear relationships, but the amount of calculation is large, requiring high computing resources and time.
[0006] Neural networks have the ability to learn. They can learn inverse kinematic mapping from a large amount of data to solve problems that are more difficult with traditional methods. Once trained, the generalization of neural networks enables them to adapt well to new data. For the inverse kinematics modeling of soft arms, neural networks can be used to build inverse kinematic models based on actual motion data. This data-driven approach makes the model more consistent with actual motion laws. Therefore, in the inverse kinematics modeling of soft robotic arms, the use of neural networks can improve the accuracy and efficiency of the inverse kinematics model.
[0007] The main purpose of using partitioned neural networks is to reduce the complexity of inverse kinematics problem solving and improve control accuracy. In the process of inverse kinematics solution of soft robotic arms, if the traditional neural network model is used directly, three input neurons (spatial coordinates) and three output neurons (chamber air pressure) are required. This will increase the solution time and large solution errors. In order to solve this problem, the target area can be divided according to the driving air pressure of the soft arm. The two air pressure drives are set as one group to construct three groups of partitioned neural networks that only require two output neurons. When solving inverse kinematics, the location of the target area is first determined according to mathematical calculations. Since the partitioned neural network has one less output neuron, the required chamber air pressure value can be quickly parsed when performing inverse kinematics.
[0008] The advantage of using a partitioned neural network is that it can effectively reduce the workload of establishing an inverse kinematics neural network and improve control accuracy. By dividing the target area, the originally complex multi-input and multi-output problem can be simplified to fewer inputs and outputs, thereby reducing the number of parameters and the computational burden. At the same time, since the partitioned neural network can better correspond to the features and relationships in different areas, its control accuracy is also higher. Therefore, the partitioned neural network is an effective method that can be used to solve the inverse kinematics problem of soft robotic arms, and has high solution efficiency and control accuracy. Summary of the invention
[0009] In order to overcome the shortcomings of the prior art, the present invention provides a method for inverse kinematics modeling of a soft robotic arm based on a partitioned neural network. First, the kinematic data of the soft robotic arm is collected, including the air pressure drive data during the movement of the soft robotic arm and the three-dimensional spatial coordinate data of the end effector, and the data is preprocessed; then, the area is divided according to the driving air pressure method, and the inverse kinematics problem is converted into multiple sub-problems; finally, the partitioned neural network is trained using the collected kinematic data set to complete the solution of the inverse kinematics of the robotic arm. The method of the present invention can be used to solve the inverse kinematics problem of the soft robotic arm, and has high solution efficiency and control accuracy.
[0010] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0011] Step 1: Collect the kinematic data of the soft robotic arm, including the pneumatic drive data during the movement of the soft robotic arm and the three-dimensional spatial coordinate data of the end effector, and pre-process the data;
[0012] Step 2: Zoning design: Divide the area according to the driving air pressure method and transform the inverse kinematics problem into multiple sub-problems;
[0013] Step 3: Use the collected kinematic data set to train the partitioned neural network to solve the inverse kinematics of the robotic arm.
[0014] Furthermore, the soft robotic arm is a cylinder containing three closed chambers; the outside is wrapped with Kevlar fiber to prevent radial expansion while allowing longitudinal expansion; the soft robotic arm is connected by an anti-bending structure, the connection angle of the two soft robotic arms is 180°, and the chambers of the two soft robotic arms are connected to each other. When the air pressure in the chamber changes, the two sections of the soft robotic arm will produce equal and opposite deformations.
[0015] Furthermore, the step 1 is specifically as follows:
[0016] Step 1-1: Randomly generate multiple sets of data from the lowest pressure to the highest pressure in the chamber, and pressurize any two chambers of the soft arm at the same time based on the generated data, and record the pressure sensor data {P ij}, i = 1, 2; j = 1, 2, 3, where i represents the i-th curved segment; j represents the j-th cavity;
[0017] Step 1-2: Capture the position data (x, y, z) of the end effector of the soft robotic arm through a binocular camera;
[0018] Step 1-3: Repeat steps 1-1 to 1-2 until the set total amount of sampling data is reached.
[0019] Furthermore, the step 2 is specifically as follows:
[0020] Step 2-1: Generate partition boundaries;
[0021] The three chambers of the soft arm are pressurized step by step, and the soft arm continues to expand longitudinally until the chamber reaches the maximum pressure and then the pressurization stops; each chamber generates a spatial fold line, and these three spatial fold lines are used as the boundaries of the partitions, and their intersection point is the coordinate origin;
[0022] Step 2-2: Describe the partition boundaries;
[0023] Use the curve fitting toolbox in Matlab to fit the spatial points on each broken line in step 2-1 to generate a plane passing through the origin, and generate three plane equations passing through the origin. These three planes will serve as the boundaries of the partitions.
[0024] Step 2-3: Method for determining the regional location;
[0025] Convert the boundary plane generated in step 2-2 into a vector to establish a computable linear equation; determine whether any point is located in a specific area by constructing a group of inequalities;
[0026] Step 2-4: Determine the partition expression;
[0027] Two intersecting planes will produce four spatial regions. The positive and negative values of the product of a plane's normal vector and a spatial point can only determine the two regions where the spatial point is located. At the same time, a group of inequalities formed by the two plane normal vectors and the spatial point is needed to determine the spatial region where any point is located.
[0028] Furthermore, the step 3 is specifically as follows:
[0029] Step 3-1: Construct a partitioned neural network;
[0030] Based on the partitioning in step 2, a partitioned neural network model is constructed for each region;
[0031] Step 3-2: Design of input and output layers;
[0032] The input layer is the position data (x, y, z) of the end effector of the soft robot arm, and the output layer is the chamber pressure {P ij}, i = 1, 2; j = 1, 2, 3, and preprocess the data;
[0033] Step 3-3: Prepare training data;
[0034] The preprocessed data is divided into training set, validation set and test set, and the cross-validation method is used for data division;
[0035] Step 3-4: Train the model;
[0036] Select parameters to train the partitioned neural network;
[0037] Step 3-5: Model evaluation;
[0038] Use the test set and validation set to evaluate the model, and adjust and optimize the model based on the evaluation results.
[0039] The beneficial effects of the present invention are as follows:
[0040] 1. The method of the present invention significantly improves grasping accuracy and wide adaptability: The present invention is a neural network control method based on region division. During the execution of the grasping task, more detailed spatial positioning of the target object can be achieved through precise region division. This refined control strategy makes the present method far superior to traditional control methods in terms of grasping accuracy.
[0041] 2. Efficiency and flexibility brought by modular design: The control strategy of the present invention adopts a modular design with regional division, which decomposes complex control tasks into several relatively independent subtasks, and each subtask is managed by a dedicated neural network module. This design makes the controller more efficient during the construction process and also increases its flexibility. When faced with new environments or tasks, it is only necessary to fine-tune or replace the corresponding neural network module for a specific subtask without retraining the entire network, thereby greatly improving the adaptability and update speed of the controller. In addition, the modular design also facilitates the function expansion and performance optimization of the controller, further enhancing its application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a schematic diagram of the inverse kinematics modeling process of the soft robotic arm based on the partitioned neural network of the present invention;
[0043] Figure 2 is a partition boundary diagram of the present invention;
[0044] Figure 3 It is a relationship diagram between two planes and scattered point positions of the present invention;
[0045] Figure 4 It is a region and scatter point relationship diagram of the present invention;
[0046] Figure 5 It is an iterative process for training a neural network of the present invention;
[0047] Figure 6 is the optimal number of iterations of the neural network of the present invention. DETAILED DESCRIPTION
[0048] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0049] The present invention provides a method for inverse kinematics modeling of a soft robotic arm based on a partitioned neural network. The method is a technical method for correcting a theoretical model based on real experimental data and then using a neural network to solve the inverse kinematics parameters of the soft robotic arm.
[0050] like Figure 1 As shown, the technical solution adopted by the present invention is as follows:
[0051] A method for inverse kinematics modeling of a soft robotic arm based on a partitioned neural network, wherein the soft robotic arm is a cylinder containing three closed chambers. The outer side is wrapped with Kevlar fiber to prevent radial expansion while allowing longitudinal expansion. The deformation principle is the expansion of the chamber under pressure changes. The soft robotic arm adopts an anti-bending structure connection, the connection angle of the two soft robotic arms is 180°, and the chambers of the two soft robotic arms are connected to each other. When the air pressure in the chamber changes, the two sections of the soft arms will produce equal and opposite deformations; the steps include:
[0052] S1. Collect kinematic data of the soft robotic arm, including the pneumatic drive data during the movement of the soft robotic arm and the three-dimensional spatial coordinate data of the end effector, and pre-process the data;
[0053] S2. Zoning design: divide the area according to the driving pressure method and transform the inverse kinematics problem into multiple sub-problems;
[0054] S3. Use the collected kinematic data set to train the partitioned neural network and complete the inverse kinematics solution of the robotic arm.
[0055] Furthermore, step S1 specifically includes the following steps:
[0056] S11. Randomly generate multiple sets of data from the lowest pressure to the highest pressure in the chamber, and pressurize any two chambers of the soft arm at the same time based on the generated data, and record the pressure sensor data {P ij}, i = 1, 2; j = 1, 2, 3, where i represents the i-th curved segment; j represents the j-th cavity;
[0057] S12. Capture the position data (x, y, z) of the end effector of the soft robotic arm through a binocular camera;
[0058] S13. Repeat S11-S12 to obtain enough sampling data;
[0059] Furthermore, the specific steps of step S2 include:
[0060] S21. Generate partition boundaries: The three chambers of the soft arm are pressurized step by step, and the soft arm continues to expand longitudinally until the chamber reaches the maximum pressure and stops pressurizing. Each chamber will generate a spatial polyline, and these three spatial polylines can be used as the boundaries of the partitions, and their intersection point is the coordinate origin;
[0061] S22. Describing the partition boundaries: To describe the positions of the various regions in step S21 in space, the experimental data needs to be processed. The curve fitting toolbox in Matlab is used to fit the spatial points on each broken line in step S21 to generate a plane passing through the origin, and three plane equations passing through the origin are generated. These three planes will be used as the partition boundaries;
[0062] S23. Method for determining the location of the region: Generating a plane alone cannot effectively constrain the point set. For example, although we intuitively observe that the scattered points are concentrated in Figure 3 One of the four regions formed by the intersection of two planes in , but these planes themselves cannot generate a valid set of inequalities to constrain the positions of these points. Therefore, we need to convert the known surface into vectors so that we can build a computable linear equation. Finally, by constructing a set of inequalities, we can determine whether any point is in a specific region.
[0063] S24. Judgment of partition expression: Two intersecting planes will produce four spatial regions. The positive and negative values of the product of a plane normal vector and a spatial point can only determine the two regions in which the spatial point is located. At the same time, the inequality group formed by the two plane normal vectors and the spatial point is required to determine the spatial region where any point is located:
[0064] After obtaining the space where the target object is located, it is possible to determine which two chambers of the soft arm will be driven, thereby reducing one air pressure analysis. Therefore, in the subsequent construction of the inverse kinematics neural network, the output neuron will reduce one parameter, thereby improving the experimental accuracy;
[0065] Furthermore, the specific steps of step S3 include:
[0066] S31. Constructing a partitioned neural network: based on the partitioning in step S2, constructing a suitable partitioned neural network model for each region;
[0067] S32. Design of input and output layers: The input layer is the position data (x, y, z) of the end effector of the soft robot arm, and the output layer is the chamber pressure {P ij}, i = 1, 2; j = 1, 2, 3, and preprocess the data;
[0068] S33. Prepare training data: divide the preprocessed data into training set, validation set and test set, and use cross-validation and other methods to divide the data;
[0069] S34. Training model: selecting appropriate parameters to train the partitioned neural network;
[0070] S35. Model evaluation: Use the test set and validation set to evaluate the model, and adjust and optimize the model based on the evaluation results.
[0071] Example:
[0072] In a specific embodiment, the partitioning method includes the following steps:
[0073] S1. Collect kinematic data of the soft robotic arm, including the pneumatic drive data during the movement of the soft robotic arm and the three-dimensional spatial coordinate data of the end effector, and pre-process the data;
[0074] S2. Zoning design: divide the area according to the driving pressure method and transform the inverse kinematics problem into multiple sub-problems;
[0075] S3. Use the collected kinematic data set to train the partitioned neural network and complete the inverse kinematics solution of the robotic arm.
[0076] Furthermore, step S1 specifically includes the following steps:
[0077] S11. Randomly generate multiple sets of data from the lowest pressure to the highest pressure in the chamber, and pressurize any two chambers of the soft arm at the same time based on the generated data, and record the pressure sensor data {P ij}, i = 1, 2; j = 1, 2, 3, where i represents the i-th curved segment; j represents the j-th cavity;
[0078] S12. Capture the position data (x, y, z) of the end effector of the soft robotic arm corresponding to the pressure through the binocular camera;
[0079] S13. Repeat S11-S12 to obtain enough sampling data;
[0080] Furthermore, the specific steps of step S2 include:
[0081] S21. Generate partition boundaries: The three chambers of the soft arm are pressurized step by step with a step length of 10 kPa. The soft arm will continue to bend longitudinally until the chamber reaches the maximum pressure and the pressurization stops. The air pressure values are shown in Table 1 (where 101 kPa means that the air cavity is at atmospheric pressure and is not pressurized by the air pump). Generate a line graph of the air pressure change in the air cavity, and place the three generated lines in the same three-dimensional space, such as Figure 2 In this figure, the blue line represents the target point line graph generated by only passing P1, P2 is red, P3 is yellow, and the intersection of the three lines is the coordinate origin, that is, the initial position of the soft robot.
[0082] Table 1 Line chart of air pressure values
[0083]
[0084] S22. Describing the partition boundary: To describe the position of each area in step S21 in space, the experimental data needs to be processed. The curve fitting toolbox in Matlab is used to fit the spatial points on each broken line in step S21 to generate a plane passing through the origin, thereby obtaining three plane equations passing through the origin:
[0085] The surface generated by the P1 polyline (P1 surface): z = 0.4542x + 0.6066y
[0086] The surface generated by the P2 polyline (P2 surface): z = -2.14x + 0.3809y
[0087] The surface generated by the P3 polyline (P3 surface): z = -0.3346x + 0.7676y
[0088] These three planes are the boundaries of the region, such as Figure 2 shown.
[0089] S23. Method for determining the location of the region: Generating a plane alone cannot effectively constrain the point set. For example, although it is intuitively observed that the scattered points are concentrated in Figure 3 One of the four regions formed by the intersection of two planes in , but these planes themselves cannot generate a valid set of inequalities to constrain the positions of these points. Therefore, it is necessary to convert the known surface into vectors so that a computable linear equation can be established. Finally, by constructing a set of inequalities, we can determine whether any point is located in a specific region.
[0090] S24. Judgment of partition expression: Two intersecting planes will produce four spatial regions. The positive and negative values of the product of a plane normal vector and a spatial point can only determine the two regions in which the spatial point is located. At the same time, the inequality group formed by the two plane normal vectors and the spatial point is required to determine the spatial region where any point is located:
[0091] Area 1 judgment, control air pressure is P1, P2
[0092]
[0093] Applying the same method to the judgment of area 2 and area 3, we can obtain inequality groups (2) and (3):
[0094] Area 2 judgment, control air pressure is P1, P3:
[0095]
[0096] Area 3 judgment, control air pressure is P2, P3:
[0097]
[0098] When the 75 test points are brought into the inequality for judgment, it can be understood from the relationship between the area and the point shown in Table 2. Figure 4 This relationship is shown more vividly.
[0099] Table 2 Relationship between points and divided areas
[0100]
[0101] After completing the segmentation of the three-dimensional space, based on the spatial coordinates of the target object, we can know which two chambers of the soft arm will be driven, which can reduce one air pressure analysis amount. In constructing the inverse kinematics neural network, the output neuron will reduce one parameter, which will improve the output air pressure accuracy.
[0102] Furthermore, the specific steps of step S3 include:
[0103] S31. Constructing a partitioned neural network: Based on the partitioning in step S2, construct a suitable partitioned neural network model for each region, as shown in Table 3;
[0104] Table 3 Neural network parameters
[0105]
[0106] S32. Design of input and output layers: The input layer is the position data (x, y, z) of the end effector of the soft robot arm, and the output layer is the chamber pressure {P ij}, i = 1, 2; j = 1, 2, 3, and the data is normalized;
[0107] S33. Prepare training data: divide the preprocessed data into a training set, a validation set, and a test set, and divide the data using a cross-validation method;
[0108] S34. Training model: Select appropriate parameters to train the partitioned neural network, such as Figure 5 and Figure 6 As shown;
[0109] S35. Model evaluation: Use the test set and validation set to evaluate the model, and adjust and optimize the model based on the evaluation results. At the same time, establish an experimental control group, use the displacement (x, y, z) as the input neuron of neural network 4, and the three air pressure values as the output neurons. As shown in Table 4, this experiment compares the error values between the two air pressure prediction values and the actual air pressure values when the neural network 4 is compared with the three neural networks established in different regions at the same displacement point. 16 points are selected in each region, for a total of 48 points.
[0110] Table 4 Different neural network tables
[0111]
[0112] Table 5. Comparison of single and partitioned neural network errors
[0113]
[0114] As shown in Table 5, whether it is the overall error or the regional comparison error, the regional neural network has a smaller error than the single neural network, and regional division is also conducive to the subsequent negative feedback adjustment for specific air pressure values.
Claims
1. A method for inverse kinematics modeling of a soft robotic arm based on a partitioned neural network, characterized in that: The steps include: Step 1: Collect the kinematic data of the soft robotic arm, including the pneumatic drive data during the movement of the soft robotic arm and the three-dimensional spatial coordinate data of the end effector, and pre-process the data; Step 2: Partition design; Divide the area according to the driving air pressure method and transform the inverse kinematics problem into multiple sub-problems; Step 3: Use the collected kinematic data set to train the partitioned neural network to solve the inverse kinematics of the robotic arm.
2. The inverse kinematics modeling method of a soft robotic arm based on a partitioned neural network according to claim 1, characterized in that: The soft robotic arm is a cylinder containing three closed chambers; the outside is wrapped with Kevlar fiber to prevent radial expansion while allowing longitudinal expansion; the soft robotic arm is connected by an anti-bending structure, the connection angle of the two soft robotic arms is 180°, and the chambers of the two soft robotic arms are connected to each other. When the air pressure in the chamber changes, the two sections of the soft arms will produce equal and opposite deformations.
3. The inverse kinematics modeling method of a soft robotic arm based on a partitioned neural network according to claim 2, characterized in that: The step 1 is specifically as follows: Step 1-1: Randomly generate multiple sets of data from the lowest pressure to the highest pressure in the chamber, and pressurize any two chambers of the soft arm at the same time based on the generated data, and record the pressure sensor data {P ij }, i = 1, 2; j = 1, 2, 3, where i represents the i-th curved segment; j represents the j-th cavity; Step 1-2: Capture the position data (x, y, z) of the end effector of the soft robotic arm through a binocular camera; Step 1-3: Repeat steps 1-1 to 1-2 until the set total amount of sampling data is reached.
4. The inverse kinematics modeling method of a soft robotic arm based on a partitioned neural network according to claim 3, characterized in that: The step 2 is specifically as follows: Step 2-1: Generate partition boundaries; The three chambers of the soft arm are pressurized step by step, and the soft arm continues to expand longitudinally until the chamber reaches the maximum pressure and then the pressurization stops; each chamber generates a spatial fold line, and these three spatial fold lines are used as the boundaries of the partitions, and their intersection point is the coordinate origin; Step 2-2: Describe the partition boundaries; Use the curve fitting toolbox in Matlab to fit the spatial points on each broken line in step 2-1 to generate a plane passing through the origin, and generate three plane equations passing through the origin. These three planes will serve as the boundaries of the partitions. Step 2-3: Method for determining the regional location; Convert the boundary plane generated in step 2-2 into a vector to establish a computable linear equation; determine whether any point is located in a specific area by constructing a group of inequalities; Step 2-4: Determine the partition expression; Two intersecting planes will produce four spatial regions. The positive and negative values of the product of a plane's normal vector and a spatial point can only determine the two regions where the spatial point is located. At the same time, a group of inequalities formed by the two plane normal vectors and the spatial point is needed to determine the spatial region where any point is located.
5. The inverse kinematics modeling method of a soft robotic arm based on a partitioned neural network according to claim 4, characterized in that: The step 3 is specifically as follows: Step 3-1: Construct a partitioned neural network; Based on the partitioning in step 2, a partitioned neural network model is constructed for each region; Step 3-2: Design of input and output layers; The input layer is the position data (x, y, z) of the end effector of the soft robot arm, and the output layer is the chamber pressure {P ij }, i = 1, 2; j = 1, 2, 3, and preprocess the data; Step 3-3: Prepare training data; The preprocessed data is divided into training set, validation set and test set, and the cross-validation method is used for data division; Step 3-4: Train the model; Select parameters to train the partitioned neural network; Step 3-5: Model evaluation; Use the test set and validation set to evaluate the model, and adjust and optimize the model based on the evaluation results.
Citation Information
Patent Citations
Variable-rigidity flexible mechanical arm module and control method thereof
CN109648550A
Control system and method of intelligent citrus picking machine
CN109699300A
Method for correcting kinematic model of soft body mechanical arm
CN110125934A
Closed-loop control method and system of air bag type flexible mechanical arm
CN111546339A
Open-loop motion control method of air bag type soft mechanical arm
CN111546341A
