Mechanical arm gesture control method and system based on visual control guidance

Through the visual control method, YOLOv5 and Deep-Sort algorithms are combined with MPC electrical control to realize the robot arm following the movement of the human hand, solving the problems of cumbersome and low efficiency of the traditional control method, and improving the accuracy and production efficiency of the robot arm operation.

CN118769252APending Publication Date: 2024-10-15SHANGHAI MARITIME UNIVERSITY

Patent Information

Application Number
CN202411013036.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The traditional robotic arm control method is cumbersome, costly, and inefficient. It requires a lot of manpower and time for skill training, and it is difficult to meet the needs of industrial production.

Method used

The robot arm gesture control method based on vision control is adopted, through the YOLOv5 target detection and Deep-Sort target tracking algorithm, combined with the MPC electrical control algorithm, and the RGB camera is used to realize the real-time movement of the robot arm following the human hand, simplifying the operation process and lowering the threshold.

Benefits of technology

It achieves high-precision and robust gesture recognition and tracking, reduces operating costs and training requirements, and improves the efficiency and production efficiency of robotic arm control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118769252A_ABST
    Figure CN118769252A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a mechanical arm gesture control method and system based on visual control guidance. The mechanical arm gesture control method comprises the steps that S1, a corresponding gesture data set is selected, and data preprocessing and data enhancement are conducted; s2, training the data set by using a target detection algorithm YOLOv5 to realize recognition and detection of human hand actions; s3, a target tracking algorithm Deep-Sort is added, and real-time tracking is carried out on the motion trail of the human hand after the gesture recognition step is completed; s4, a mechanical arm gesture recognition control environment is built, and the deep learning model is deployed in a mechanical arm control system; s5, the forward and inverse kinematics of the mechanical arm is derived, and MPC dynamic control of the mechanical arm is designed; and S6, an MPC electrical control algorithm is combined with a visual module, and real-time movement of the mechanical arm along with the human hand is achieved through the RGB camera. The method is high in gesture recognition precision, strong in robustness, and high in human hand track tracking accuracy and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vision control technology, and in particular to a robotic arm gesture control method and system based on vision control guidance. Background Art

[0002] With the vigorous development of the field of artificial intelligence, various new scientific and technological advances continue to emerge. Nowadays, people have higher and higher requirements for the innovation of human-computer interaction methods and the improvement of efficiency, which has led to an increase in the demand for the application of artificial intelligence technology in the process of human-computer interaction. In response to the above status quo and needs, the present invention proposes a relatively novel visual interaction method, which aims to strengthen the cooperation and communication between humans and machines and improve the efficiency of production and life, so as to better meet the development trend of the artificial intelligence era.

[0003] The traditional human-computer interaction mode has many problems such as single operation form and cumbersome operation process, which can no longer meet the needs of today's production and life. As for the control of the robot arm, the current methods of manipulating the movement of the robot arm mainly include teach pendant control, operating handle control, keyboard and mouse control, etc. These control methods are costly, mechanical, and not very convenient, and require certain skills training for the corresponding operators, which takes a lot of time and labor costs, resulting in the problem of low efficiency of the application of the robot arm in industrial production. Summary of the invention

[0004] The purpose of the present invention is to solve the problems raised in the above-mentioned background technology. The present invention provides a robotic arm gesture control method and system based on visual control guidance, which has high accuracy and robustness in recognizing gestures, high accuracy and efficiency in tracking the trajectory of human hands, simplifies the operating process of robotic arm control, guides the robotic arm to complete some dangerous and difficult operations, and further improves work efficiency.

[0005] In order to achieve the above-mentioned purpose, the present invention specifically adopts the following technical solutions:

[0006] A robotic arm gesture control method based on visual control guidance, comprising:

[0007] Step S1: Select the corresponding gesture dataset and perform data preprocessing and data enhancement;

[0008] Step S2: Use the target detection algorithm YOLOv5 to train the data set to achieve recognition and detection of human hand movements;

[0009] Step S3: Add the target tracking algorithm Deep-Sort to track the motion trajectory of the human hand in real time after completing the gesture recognition step;

[0010] Step S4: Building a robotic arm gesture recognition control environment and deploying the above deep learning model into the robotic arm control system;

[0011] Step S5: deriving the forward and inverse kinematics of the robot arm and designing the MPC dynamic control of the robot arm;

[0012] Step S6: Using the MPC electrical control algorithm in combination with the vision module through the RGB camera, the robot arm follows the real-time movement of the human hand.

[0013] An embodiment of the present invention further discloses a robotic arm gesture control system based on visual control guidance, the system comprising:

[0014] The collection module selects the corresponding gesture dataset and performs data preprocessing and data enhancement;

[0015] The training module uses the target detection algorithm YOLOv5 to train the data set;

[0016] The tracking module uses the target tracking algorithm Deep-Sort to track the motion trajectory of the human hand in real time after completing the gesture recognition step;

[0017] The deployment module is used to build a robotic arm gesture recognition control environment and deploy the above deep learning model into the robotic arm control system;

[0018] The derivation module is used to derive the forward and inverse kinematics of the robot arm, and derive the position and posture of the end point of the robot arm and the position and posture of each rod of the robot arm;

[0019] The driving module is used to output data and instructions to the robotic arm, and the robotic arm moves according to the corresponding instructions following the gestures.

[0020] Beneficial effects:

[0021] The present invention only needs to use an ordinary RGB camera, which is a low-cost and easily available medium, to achieve the dynamic effect that after the gesture appears in the camera's field of view, the robotic arm can accurately recognize and follow the movement trajectory of the human hand in real time; the visual remote control method makes good use of the relevant theoretical knowledge in the field of computer vision, gets rid of traditional robotic arm manipulation methods such as teach pendant control and handle control, simplifies the operating process of traditional robotic arm control to a certain extent, saves most of the manpower, financial resources and time costs, and has a broader development prospect in the future.

[0022] The present invention does not require a lot of training and learning for operators, and can achieve the robot arm to track the trajectory of human hands in real time through the camera. Compared with the traditional human-computer interaction method, it is more intuitive and convenient. This solution proves the effectiveness and feasibility of using vision for human-computer interaction, and better caters to the development trend of artificial intelligence technology today.

[0023] The present invention lowers the threshold for controlling a robotic arm and simplifies the current process of controlling a robotic arm; the lightweight and improved gesture recognition algorithm of the present invention can improve recognition efficiency, reduce the amount of calculation of parameters transmitted between the robotic arm and the robotic arm, improve the efficiency of model training, and effectively reduce the difficulty of interaction; the present invention can be applied to actual industrial production to assist in improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0025] Figure 1 This is a schematic diagram of a robotic arm gesture control method based on visual control guidance according to an embodiment of the present invention;

[0026] Figure 2 Provide a technical roadmap for the robotic arm gesture control and following motion system;

[0027] Figure 3 This is a schematic diagram of the structure of the improved target detection algorithm YOLOv5 according to one embodiment of the present invention;

[0028] Figure 4 A schematic diagram of the structure of a target tracking algorithm Deep-Sort according to an embodiment of the present invention;

[0029] Figure 5 This is the schematic diagram of the predictive model control algorithm MPC;

[0030] Figure 6 This is a schematic diagram of a robotic arm gesture control system based on visual control guidance according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0032] As shown in the figure, an embodiment of the present invention discloses a robotic arm gesture control method based on visual control guidance, including:

[0033] Step S1: Select the corresponding gesture dataset and perform data preprocessing and data enhancement;

[0034] Step S2: Use the target detection algorithm YOLOv5 to train the data set to achieve recognition and detection of human hand movements;

[0035] Step S3: Add the target tracking algorithm Deep-Sort to track the motion trajectory of the human hand in real time after completing the gesture recognition step;

[0036] Step S4: Building a robotic arm gesture recognition control environment and deploying the above deep learning model into the robotic arm control system;

[0037] Step S5: deriving the forward and inverse kinematics of the robot arm and designing the MPC dynamic control of the robot arm;

[0038] Step S6: Using the MPC electrical control algorithm in combination with the vision module through the RGB camera, the robot arm follows the real-time movement of the human hand.

[0039] In one embodiment of the present invention, in step S1, the original data set needs to be subjected to operations such as image gesture annotation, preprocessing, data enhancement, and data set classification. Specifically, the labeled data set is preprocessed and data enhanced, and the data set is preprocessed by translation, flipping, shearing, adding noise and other data enhancement methods to increase the number of training samples and improve the diversity of the original data set, which is more conducive to model training.

[0040] In one embodiment of the present invention, in step S1, according to the characteristics of the present invention, four gesture categories are designed, namely start, stop, fist, and palm, which respectively correspond to four instructions of the robotic arm, namely start process, end process, closing the robotic arm gripper, and opening the robotic arm gripper. The above four gestures are marked in the data set using Labelimg.

[0041] In step S1, the dataset after a series of preprocessing is divided into a training set and a validation set in a ratio of 8:2.

[0042] Since the training process of deep learning models will be greatly restricted on some low-computing hardware platforms, and the large size of deep learning models will also cause difficulties in later deployment, in step S2, the target detection algorithm YOLOv5 is lightweight improved. The improved target detection algorithm YOLOv5 is as follows Figure 2 As shown, the improvement steps include:

[0043] Some convolution modules are replaced with lightweight Ghost modules, thus changing the original C3 module to C3Ghost, which greatly reduces the amount of parameter calculation during training;

[0044] Replacing the Conv structure with a lightweight module composed mainly of Ghost to form GhostConv not only shortens the model training time, but also further compresses the model size;

[0045] While achieving the above lightweighting, the original recognition accuracy may be reduced to a certain extent. In order to prevent excessive lightweighting operations from affecting the original recognition accuracy, the CBAM attention mechanism is added to the target detection algorithm YOLOv5, aiming to improve the recognition accuracy and strengthen the extraction of target features of various sizes, while strengthening the attention to important features of the target in both channel and space dimensions, and filtering unnecessary features.

[0046] In addition, the α-IoU loss function is introduced to replace the original CIoU loss function, which can improve the recognition accuracy and speed up the model training convergence. The lightweight and improved YOLOv5 not only maintains the original high recognition accuracy, but also significantly speeds up the training process, compresses the size, and is easier to deploy.

[0047] In one embodiment of the present invention, in step S3, if Figure 3 As shown in the figure, the target tracking algorithm Deep-Sort based on deep learning is added to the lightweight improved target detection algorithm YOLOv5. The target detection algorithm YOLOv5 is used to realize the recognition and detection of human hands. Deep-Sort is used to grasp the motion trajectory of gestures after the recognition process is completed, and to predict the motion trajectory of human hands and track the visualization process. The target tracking algorithm Deep-Sort adds a tracking mechanism on the basis of target detection. Its principle is to use Kalman filtering to continuously predict and update the motion trajectory, match the current frame and predict the next frame at the same time. Deep-Sort uses the re-identification algorithm in deep learning to identify the appearance features of the target object. Through each detection and tracking of the gesture, Deep-Sort will extract the appearance features of the gesture and save it. Each subsequent gesture detection will be matched with the appearance information of the gesture saved in the previous frame for similarity, so as to reduce the probability of missed detection.

[0048] In one embodiment of the present invention, in step S4, a deep learning algorithm is deployed in the simulation environment of the robot arm to facilitate calling and subsequent parameter transfer processes. Specifically, the present invention uses the robot toolbox in MATLAB to perform dynamic simulation of the robot arm, and deploys the improved YOLOv5 in step S2 and the Deep-Sort deep learning algorithm in step S3 into the simulation environment.

[0049] In one embodiment of the present invention, in step S5, the forward and inverse kinematics of the robot are derived. The forward kinematics is derived and implemented by using the coordinate system transformation method. By establishing a DH matrix for all adjacent rods of the robot, the motion of the end point of the robot is represented by the posture of the intermediate rod. The inverse kinematics is solved by an analytical method. By establishing a mathematical model of the robot, a method opposite to the forward kinematics is used to infer the posture of each rod of the robot according to the posture of the end point of the robot.

[0050] In one embodiment of the present invention, in step S6, the training instruction data of the deep learning algorithm is transmitted as input to the robotic arm, the robotic arm receives the incoming data and instructions, and the MPC control algorithm is used as output. According to the corresponding instructions, the robotic arm will move following the gesture. Step 6 controls the motion trajectory of the robotic arm as accurately as possible.

[0051] like Figure 6 As shown, the present invention also discloses a robotic arm gesture control system based on visual control guidance, the system comprising:

[0052] The collection module selects the corresponding gesture dataset and performs data preprocessing and data enhancement;

[0053] The training module uses the target detection algorithm YOLOv5 to train the data set;

[0054] The tracking module uses the target tracking algorithm Deep-Sort to track the motion trajectory of the human hand in real time after completing the gesture recognition step;

[0055] The deployment module is used to build a robotic arm gesture recognition control environment and deploy the above deep learning model into the robotic arm control system;

[0056] The derivation module is used to derive the forward and inverse kinematics of the robot arm, and derive the position and posture of the end point of the robot arm and the position and posture of each rod of the robot arm;

[0057] The driving module is used to output data and instructions to the robotic arm, and the robotic arm moves according to the corresponding instructions following the gestures.

[0058] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one 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 invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A robotic arm gesture control method based on visual control guidance, characterized in that: include: Step S1: Select the corresponding gesture dataset and perform data preprocessing and data enhancement; Step S2: Use the target detection algorithm YOLOv5 to train the data set to achieve recognition and detection of human hand movements; Step S3: Add the target tracking algorithm Deep-Sort to track the motion trajectory of the human hand in real time after completing the gesture recognition step; Step S4: Building a robotic arm gesture recognition control environment and deploying the above deep learning model into the robotic arm control system; Step S5: deriving the forward and inverse kinematics of the robot arm and designing the MPC dynamic control of the robot arm; Step S6: Using the MPC electrical control algorithm in combination with the vision module through the RGB camera, the robot arm follows the real-time movement of the human hand.

2. The method for controlling a robot arm gesture based on visual control guidance according to claim 1, characterized in that: In step S1, the gesture dataset is preprocessed and enhanced, including image rotation, image translation, and noise addition methods, to expand the size of the dataset.

3. The method for controlling a robot arm gesture based on visual control guidance according to claim 1, characterized in that: In step S1, four gestures are designed in the data set, corresponding to the four instructions of the robot arm: starting the process, ending the process, closing the gripper, and releasing the gripper.

4. The method for controlling a robot arm gesture based on visual control guidance according to claim 1, characterized in that: In step S2, the target detection algorithm YOLOv5 is light-weighted and improved. The improvement steps include: Replace some convolutional modules with Ghost modules and transform C3 into C3Ghost; The structure of Conv is replaced with a lightweight module composed mainly of Ghost to form GhostConv; The CBAM attention mechanism is added to the target detection algorithm YOLOv5, and the α-IoU loss function is introduced to speed up the model convergence process.

5. The method for controlling a robot arm gesture based on visual control guidance according to claim 1, characterized in that: In step S3, the deep learning-based target tracking algorithm Deep-Sort is added to the lightweight and improved target detection algorithm YOLOv5. The target detection algorithm YOLOv5 is used to realize the recognition and detection of human hands. Deep-Sort is used to grasp the motion trajectory of the gesture after the recognition process is completed, and realize the prediction of the motion trajectory of the human hand and the tracking visualization process.

6. The method for controlling a robot arm gesture based on visual control guidance according to claim 1, characterized in that: In step S4, the deep learning algorithm is deployed in the simulation environment of the robotic arm to facilitate the calling and subsequent parameter transfer process.

7. The method for controlling a robot arm gesture based on visual control guidance according to claim 1, characterized in that: In step S5, the forward and inverse kinematics of the robot are derived. The forward kinematics is derived and implemented by the coordinate system transformation method. By establishing a DH matrix for all adjacent rods of the robot, the motion of the end point of the robot is represented by the posture of the intermediate rod. The inverse kinematics is solved by an analytical method. By establishing a mathematical model of the robot, a method opposite to the forward kinematics is used to infer the posture of each rod of the robot according to the posture of the end point of the robot.

8. The method for controlling a robot arm gesture based on visual control guidance according to claim 1, characterized in that: In step S6, the training instruction data of the deep learning algorithm is transmitted as input to the robotic arm, the robotic arm receives the incoming data and instructions, and the MPC control algorithm is used as output. According to the corresponding instructions, the robotic arm will move following the gesture.

9. A robotic arm gesture control system based on visual control guidance, characterized in that: The system includes: The collection module selects the corresponding gesture dataset and performs data preprocessing and data enhancement; The training module uses the target detection algorithm YOLOv5 to train the data set; The tracking module uses the target tracking algorithm Deep-Sort to track the motion trajectory of the human hand in real time after completing the gesture recognition step; The deployment module is used to build a robotic arm gesture recognition control environment and deploy the above deep learning model into the robotic arm control system; The derivation module is used to derive the forward and inverse kinematics of the robot arm, and derive the position and posture of the end point of the robot arm and the position and posture of each rod of the robot arm; The driving module is used to output data and instructions to the robotic arm, and the robotic arm moves according to the corresponding instructions following the gestures.

Citation Information

Patent Citations

  • Robot demonstration programming method based on fingertip identification and hand motion tracking

    CN111216133A

  • Robot arm teleoperation method, device and system and medium

    CN113829357A

  • Method and system for controlling mechanical arm to assemble blades based on gesture recognition

    CN114851200A

  • Intelligent mechanical arm control system and control method based on machine vision

    CN116175582A

  • Mechanical arm control method and system based on gesture recognition

    CN118151747A

Cited By

  • Multi-mode intelligent interactive mechanical arm system

    CN120080317A