Mechanical arm gesture interaction method based on improved YOLOv8 network model
By transforming the YOLOv8 network model, adding the MBConv module of the ECA attention mechanism and designing a lightweight PConv detection head, and introducing the RFCBAMConv module, the problem of insufficient detection accuracy and speed of robotic arm gesture recognition in complex environments has been solved, and the Higher real-time performance and detection accuracy, and suitable for embedded device deployment.
Patent Information
- Application Number
- CN202410395856.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-02
- Publication Date
- 2024-08-23
AI Technical Summary
Existing robotic arm gesture recognition technology has insufficient detection accuracy and speed in complex environments, making it difficult to meet real-time response requirements. Moreover, the model parameters are large and difficult to deploy on embedded devices.
By transforming the YOLOv8 network model, adding the MBConv module of the ECA attention mechanism, designing a lightweight PConv detection head, and introducing the RFCBAMConv module, the amount of model parameters and calculations are reduced, and detection accuracy and speed are improved.
It achieves higher real-time performance and detection accuracy in the field of robotic arm gesture interaction, reduces the amount of model parameters and calculations, makes it suitable for embedded device deployment, and improves recognition performance in complex environments.
Smart Images

Figure CN118528249A
Abstract
Description
Technical Field
[0001] The invention relates to a method for recognizing human gestures for manipulator human-computer interaction based on an improved YOLOv8 network model, and belongs to the field of robot human-computer interaction. Background Art
[0002] In today's highly automated and intelligent society, robotic arms are increasingly used in a variety of fields, including manufacturing, medical, and service industries. With the continuous development of science and technology, human-machine interaction with robotic arms has become a key area for improving their application flexibility and intelligence. Gesture interaction, as a natural and intuitive way of interaction, can effectively improve user experience and work efficiency.
[0003] Gesture recognition is a technology that analyzes human hand movements to understand and implement human-computer interaction. Gesture recognition can be divided into two types: wearable device-based and vision-based. For wearable devices, due to their high price, complex operation, and unnatural and unintuitive interaction, vision-based gesture recognition has gradually become the mainstream. With the advancement of sensor technology, especially the introduction of advanced sensors such as depth cameras, vision-based gesture recognition has become more accurate and easier. Vision-based gesture recognition can be divided into two types: based on traditional image processing and based on deep learning.
[0004] Gesture recognition based on traditional image processing is a method that uses computer vision and traditional image processing technology to detect and analyze gestures. Its main steps are: collect gesture images; pre-process the images such as denoising and adjusting brightness; extract key features of gestures from the images, such as color, shape, contour, etc.; select the most representative features to reduce the dimension; use machine learning algorithms (such as SVM, decision trees) to compare the features with the trained model to achieve gesture classification and recognition. Finally, execute corresponding decisions or actions based on the classification results.
[0005] Although gesture recognition based on traditional image processing has been successful to a certain extent, it may not perform well for complex scenes and gestures with large changes. In recent years, with the development of deep learning technology, gesture recognition based on deep learning has gradually become the focus of research to improve the accuracy and robustness of complex gestures.
[0006] At present, the YOLOv8 model has achieved remarkable results in the field of object detection. Its fast and accurate characteristics make it a powerful tool for improving the interaction of robotic arm gestures. However, since the application of robotic arms in real-time scenarios requires them to respond quickly and accurately to user gesture commands, it is necessary to further improve the speed and accuracy of gesture recognition. At the same time, in order to facilitate subsequent deployment on embedded devices with low computing power, a more lightweight model is needed. Summary of the invention
[0007] In order to further improve the speed of gesture recognition and the detection accuracy in complex environments, ensure the real-time performance of robot arm gesture interaction, and create a more lightweight model to facilitate the deployment of embedded and other devices with low computing power, the YOLOv8 network model is modified to make the YOLOv8 model more practical in the field of real-time gesture interaction of robot arms, and a robot arm gesture interaction method based on this network is proposed. The robot arm gesture interaction method invented in this article is applied to a robot arm equipped with a depth camera. The main technical solutions adopted by the present invention include:
[0008] S1. Before the robotic arm gesture interaction, adjust the distance between the depth camera and the gesture and the person so that the depth camera can capture the person's hand gesture, i.e., the human gesture, and obtain the RGB image of the human gesture through the depth camera.
[0009] S2. Input the RGB image with human gestures into the pre-trained improved YOLOv8 model, and output the gesture recognition result image with target detection box and confidence.
[0010] S3. Obtain corresponding gesture category information according to the output gesture recognition result image, and generate corresponding gesture interaction instructions according to the defined gesture interaction instruction table.
[0011] S4. The generated gesture interaction command is transmitted to the robot control cabinet or the gripper controller to control the robot to perform the interaction task.
[0012] Among them, the improved YOLOv8 network model uses the MBConv module with the ECA attention mechanism added to the existing YOLOv8 network structure to reconstruct the C2f module, reduce the model parameters and calculation amount, and improve the detection accuracy of the target; the lightweight detection head is designed using the PConv module, which greatly reduces the model parameters and calculation amount, while improving the detection speed; the introduction of RFCBAMConv improves the detection performance of the model. Through the above improvements, the model has higher real-time performance, higher detection accuracy, and more practical value in actual robotic arm gesture interaction tasks.
[0013] Optionally, in step S2, four human gestures are defined:
[0014] (1) Raise your index finger, put your other fingers together, and face your palm towards the depth camera.
[0015] (2) Open your palm with your five fingers together and your palm facing the depth camera.
[0016] (3) Open your palm with your five fingers spread out and your palm facing the depth camera.
[0017] (4) Make a fist with your palm facing the depth camera.
[0018] At the same time, the steps to obtain the improved YOLOv8 model are as follows:
[0019] The first step is to create a dataset containing four human gestures.
[0020] The second step is to build and improve the YOLOv8 model.
[0021] The third step is to train and optimize the network model
[0022] The fourth step is to export the model to onnx format.
[0023] Optionally, in step S3, four gesture interaction instructions are defined:
[0024] (1) one command: start the robot arm
[0025] (2) Stop command: Stop the robot arm
[0026] (3) palm command: Controls the opening of the gripper at the end of the robot arm
[0027] (4) Fist command: Controls the opening and closing of the gripper at the end of the robot arm
[0028] Optionally, the improved YOLOv8 network model includes:
[0029] The backbone network, the neck network and the detection head are three parts;
[0030] For the backbone network, the idea of cross-stage partial (CSP) is still adopted. It is mainly composed of two RFCBAMConv modules, three groups of C2f_EMBC modules and CBS convolution modules, as well as a C2f_EMBC module and an SPPF module. The C2f_EMBC module is composed of a series of ECA_MBConv modules and CBS modules. The parameters of the ECA_MBConv module include: first, a point-by-point convolution with a step size of 1×1, followed by a BN module, and then a Relu6 activation function, followed by a depth convolution with a step size of 3×3, followed by a BN module, and then a Relu6 activation function, then an ECA module, followed by a point-by-point convolution with a step size of 1×1 and a BN module, and finally a residual connection. The CBS module is an ordinary convolution that is normalized and then passes through the SiLU activation function.
[0031] For the neck network, it is constructed according to the FPN+PAN structure with 2 Upsample modules, 4 C2f_EMBC modules, 2 CBS modules with a step size of 3×3 and 4 concat operations.
[0032] For the detection head part, it mainly includes three lightweight decoupled detection heads. Each detection head includes a regression branch and a classification branch. The regression branch consists of a PConv convolution, a 1×1 CBS convolution module, and a 1×1 convolution with an output channel number of 4*reg_max. The classification branch consists of a PConv convolution, a 1×1 CBS convolution module, and a 1×1 convolution with an output channel number equal to the number of categories.
[0033] Optionally, when training the improved YOLOv8 network, the following evaluation indicators are used to measure the accuracy and speed of gesture recognition:
[0034] (1) The average precision of all categories with the intersection-over-union (IOU) ratio between the predicted box and the actual target box ranging from 0.5 to 0.95. The formula is:
[0035]
[0036] Where AP represents the average precision of IOU of each category ranging from 0.5 to 0.95, and N represents the number of categories.
[0037] (2) The number of pictures that the model can predict per second (FPS), the formula is:
[0038]
[0039] Among them, t pre ,t infer and t post Respectively represent the pre-processing, inference and post-processing time of each image, all in milliseconds.
[0040] Compared with the original YOLOv8 network model, the improved model in the present invention has smaller parameter quantity and computational complexity, which is convenient for deployment in embedded and other devices with low computing power. At the same time, it improves the detection speed and detection accuracy of the model, and is more practical in the field of high real-time and high-precision robotic arm gesture interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 Flowchart for the implementation of this method.
[0042] Figure 2 The following are the effects of the robot arm gesture interaction. (a) Start the robot arm; (b) Control the robot arm’s gripper to open; (c) Control the robot arm’s gripper to close; (d) Stop the robot arm.
[0043] Figure 3 This is the original network structure diagram of YOLOv8.
[0044] Figure 4 This is the C2f module structure diagram.
[0045] Figure 5 This is the structural diagram of the decoupling head.
[0046] Figure 6 Partial visualization of the HaGRID dataset.
[0047] Figure 7 This is the improved YOLOv8 network structure diagram.
[0048] Figure 8 This is the structure diagram of the MBConv module.
[0049] Fig. 9 This is the structure diagram of the improved MBConv module.
[0050] Fig.10 This is the structure diagram of the improved C2f module.
[0051] Fig.11 This is the PConv module structure diagram.
[0052] Fig.12 This is the structural diagram of the improved detection head.
[0053] Fig.13 This is the structural diagram of RFCBAMConv.
[0054] Fig.14 This is the gesture recognition effect diagram.
[0055] Fig.15 It is a diagram of gesture images, gesture types and meanings. DETAILED DESCRIPTION
[0056] The method is described in detail below with reference to the accompanying drawings and embodiments.
[0057] The technical solution adopted by the present invention is a robotic arm gesture interaction method based on an improved YOLOv8 network model, in which the C2f module is reconstructed using the MBConv module with an added ECA attention mechanism, a new lightweight detection head is designed using the PConv module to replace the original detection head, and the RFCBAMConv module is introduced to reduce the number of parameters and the amount of calculation of the model, thereby improving the detection speed and accuracy of the model. The experimental results show that the detection accuracy of the present invention using the improved YOLOv8 network on the self-made data set reaches 82.9%, which is 1% higher than the original model; the model parameter volume is only 2.06M, and the calculation volume is only 4.07GFLOPs, which is 31% less than the original model, and 42% less than the original model; the FPS on the A100 server is 188, which is 34.2% higher than the original network.
[0058] according to Figure 1 , the specific implementation method of the present invention is as follows:
[0059] The first stage is to adjust the depth camera's posture and the distance between the person so that the depth camera can capture the person's hand posture and obtain the RGB image of the human hand gesture through the depth camera. The specific method is to use a camera stand to support the camera so that its height from the ground is about 1.5 meters.
[0060] The second stage is to input the RGB image with human gestures into the pre-trained improved YOLOv8 model, and output the gesture recognition result image with target detection box and confidence. The specific steps are as follows:
[0061] S1. Run the onnx model exported after the improved YOLOv8 model training for inference: First, use the onnx model to infer the input image. This will produce a series of detection results, each of which contains the coordinates, category, and confidence score of the bounding box.
[0062] S2. Draw bounding boxes and confidence using opencv: Iterate over each detection result and draw the bounding box on the image using opencv. Use the coordinates of the bounding box to determine the location of the bounding box and use the detected object category to add a label to each bounding box. In addition, add the confidence score as text next to the bounding box.
[0063] S3. Save the image with confidence.
[0064] There are 4 types of human gestures defined:
[0065] (1) Raise your index finger, put your other fingers together, and face your palm towards the camera.
[0066] (2) Open your hand, put your five fingers together, and face your palm towards the camera.
[0067] (3) Open your hand with your five fingers spread out and your palm facing the camera.
[0068] (4) Make a fist with your palm facing the camera.
[0069] For S1 above, the steps to obtain the improved YOLOv8 model are as follows:
[0070] The first step is to create a data set containing the above gestures and use labelImg software to label the images, with 1,500 images for each gesture, for a total of 6,000 images.
[0071] The second step is to build and improve the YOLOv8 model and adjust the corresponding training parameters.
[0072] The third step is to input the images in the established gesture dataset into the established improved YOLOv8 network model for training.
[0073] The fourth step is to export the model to onnx format based on the weight file after training.
[0074] The third stage is to obtain the corresponding gesture category information based on the output gesture recognition result image, and generate the corresponding gesture interaction instructions according to the defined gesture interaction instruction table. There are 4 types of gesture interaction instructions defined in this article, such as Fig.15 shown.
[0075] The fourth stage is to pass the generated gesture interaction instructions to the robot arm control cabinet or gripper controller to control the robot arm to perform the interactive task.
[0076] The improved YOLOv8 network described in the above stage is based on the YOLOv8 network structure. The MBConv module with the ECA attention mechanism is used to reconstruct the C2f module. A new lightweight detection head is designed using the PConv module to replace the original detection head, and the RFCBAMConv module is introduced to improve the YOLOv8 model, which reduces the number of model parameters and calculations, and improves the detection speed and accuracy of the model. This makes the real-time performance and recognition accuracy higher in the process of robot arm gesture interaction, and has more practical value.
[0077] In order to better understand the solution of the present invention, the following description is provided in conjunction with the accompanying drawings.
[0078] 1. Robotic arm human-computer interaction solution based on improved YOLOv8
[0079] Set the manipulator human-computer interaction task to a grasping task, and its task flow is as follows:
[0080] First, the operator faces the camera and makes a gesture corresponding to the one command. The camera captures the gesture image and inputs it into the improved YOLOv8 network model for inference to obtain the gesture category, coordinates of the bounding box, confidence score and other information. According to the gesture category, a command to start the robotic arm is generated to start the robotic arm to move to the point with the object to be grasped.
[0081] Secondly, the operator faces the camera and makes the gesture corresponding to the palm command. The camera captures the gesture image and inputs it into the improved YOLOv8 network model for inference, obtains the gesture category, generates the command to open the mechanical gripper, and controls the gripper of the robotic arm to open and prepare to grasp the object.
[0082] Then, the operator faces the camera and makes the gesture corresponding to the fist instruction. The camera captures the gesture image and inputs it into the improved YOLOv8 network model for inference, obtains the gesture category, generates the instruction for closing the robot arm's gripper, controls the robot arm's gripper to close, and successfully grasps the object.
[0083] Finally, when the interactive task is completed, the operator faces the camera and makes the gesture corresponding to the stop command. The camera captures the gesture image and inputs it into the improved YOLOv8 network model for inference, obtains the gesture category, generates the command to stop the robotic arm, and stops the robotic arm to end the interactive task.
[0084] The effect of the corresponding scheme can be seen in Figure 2 shown.
[0085] 2. YOLOv8 network structure and algorithm principle
[0086] YOLOv8 is the latest target detection and image segmentation model in the YOLO series. Its core idea is to transform the target detection problem into a regression problem. The model first divides the input image into a fixed-size grid, and then predicts whether there is a target object in each grid one by one, and determines the position and size of the object by predicting the bounding box. Each bounding box is determined by four parameters, which represent the coordinates of the center of the bounding box, the height and width of the bounding box, and the confidence score used to judge the existence of the target. This method effectively combines the ideas of target detection and regression, allowing the model to efficiently identify and locate multiple targets at the same time.
[0087] The network model of YOLOv8 is mainly composed of three parts: backbone network (Backbone), neck network (Neck) and detection head (Head). Its network structure is as follows Figure 3 As shown in the figure, the backbone network performs preliminary extraction of sample features and generates three feature maps of different scales; the neck network fuses the three feature maps generated by the backbone network and then outputs three new feature maps. The detection head is responsible for classifying the fused features and making predictions.
[0088] The backbone network structure of YOLOv8 is inspired by YOLOv5 and retains its clear architectural rules. The design of the backbone network is based on downsampling feature maps using a 3×3 convolution with a stride of 2 per layer, and connecting a C3 module to further enhance the features. In YOLOv8, the C3 module is replaced by a new C2f module. The C2f module introduces more branches to enrich the tributaries during gradient backpropagation. This enhances the network's expressive power. See the network structure diagram of the C2f module. Figure 4 .
[0089] For the neck network, YOLOv8 retains the design of using FPN (Feature Pyramid Network) + PAN (Path Aggregation Network) structure to build the YOLO feature pyramid to achieve full integration of multi-scale information. Compared with YOLOv5, although the C3 module in the FPN-PAN structure is replaced by the C2f module, the structure other than that remains basically the same.
[0090] For the detection head part, from YOLOv3 to YOLOv5, the "coupled" detection head structure has been used, that is, a layer of convolution layer is used to simultaneously complete the target classification and position positioning tasks. This design continued until the advent of YOLOX, and the YOLO series used the "decoupled head" for the first time. YOLOv8 also uses the decoupled head structure, which means that the two tasks of classification and positioning are decomposed into two independent branches. In YOLOv8, the design of the detection head uses two parallel branches, which are used to extract target category features and position features respectively. These two branches then each use a layer of 1×1 convolution to complete the classification and positioning tasks, realizing independent learning of target categories and positions. See the structure diagram of the detection head. Figure 5 .
[0091] 3. Improved YOLOv8 network construction and training
[0092] The improved YOLOv8 network described in the present invention uses a gesture dataset suitable for the research needs of this paper, which is built based on the HaGRID (Hand Gesture Recognition Image Dataset) public dataset. The HaGRID dataset covers a wide range of gestures, including 18 common gestures, with a total of about 550,000 images. The dataset diagram is shown in the figure below: Figure 6 As shown in the figure. In each picture, there are differences in factors such as the subjects, the distance between the subjects and the camera, and the complexity of the environment, which provides good representative data for the study. The dataset is divided into training set, validation set and test set in a ratio of 0.7:0.15:0.15.
[0093] Each input image is scaled to 640 × 640 before being fed into the network. The AdamW optimizer is used for training, with the batch size set to 16 and the number of iterations set to 150.
[0094] 4. Improved YOLOv8 network
[0095] The improved YOLOv8 network is based on the YOLOv8 network structure, and introduces the MBConv module, PConv module and RFCBAMConv module with the ECA attention mechanism to improve the YOLOv8 model. The improved model is as follows Figure 7 shown.
[0096] The structure of the MBConv module is as follows Figure 8 As shown in Figure 2, the core of the MBConv module is the combination of the reverse residual structure and the depth-wise separable convolution. The MBConv module consists of a 1×1 dimensionality-increasing convolution, a 3×3 depth-wise separable convolution, a SE attention module, a 1×1 dimensionality-reducing convolution, and a Drop Path.
[0097] In the SE (Squeeze-and-Excitation) attention mechanism module, the dimensionality reduction operation may bring some side effects. The SE module captures the dependencies between all channels, which is inefficient and may be unnecessary in some cases. To solve this problem, the present invention removes the original SE attention mechanism in the module and introduces the Efficient Channel Attention (ECA) attention mechanism. The overall structure of the ECA_MBConv module is as follows: Fig. 9 As shown in the figure. Compared with the SE attention mechanism, the ECA attention mechanism replaces two fully connected layers with a one-dimensional convolution of size K, thereby avoiding dimensionality reduction operations, achieving local cross-channel interactions, reducing the complexity of the model, and using fewer parameters to improve the inference speed. This improvement makes the network lighter and more efficient while maintaining performance, which is conducive to ensuring the real-time performance of the robotic arm gesture interaction in this article.
[0098] Use the ECA_MBConv module to reconstruct the C2f module and obtain the C2f_EMBC module. The C2f_EMBC module structure is as follows: Fig.10 As shown. Compared with the residual module of Bottleneck, the reverse residual structure uses a 1×1 convolution to increase the dimension before the depthwise separable convolution, and then uses a 1×1 convolution to reduce the dimension after the depthwise convolution. The main reason for this design is that the depthwise separable convolution cannot change the number of its own channels, and it is difficult to obtain a good feature representation of gestures when the input dimension is low. The reverse residual structure can solve the problem of information loss of gesture images caused by too low input dimension. The use of depthwise separable convolution instead of traditional 3×3 convolution not only increases the dimension of the feature map, but also effectively reduces the number of parameters of the feature extraction network, ensuring the lightweight of the model.
[0099] The structure diagram of PConv module is as follows Fig.11As shown. It operates by dividing the input into two parts by channel. Among them, one part undergoes ordinary convolution operation, while the other part remains unchanged. Then, the two parts are spliced by channel to form the final output. This module can reduce redundant calculations and memory accesses at the same time, successfully making up for the low FLOPS efficiency caused by ordinary convolution and deep convolution, and at the same time has the advantages of few model parameters and high computational efficiency. In the robotic arm gesture interaction system, embedded devices with small computational load are usually used as the control unit of the system, which puts forward requirements on the size of the model. At the same time, due to human-computer interaction, real-time performance is often required to be high. To this end, the present invention designs a lightweight detection head based on the PConv module. Each detection head includes a regression branch and a classification branch. The regression branch consists of a PConv convolution, a 1×1 CBS convolution module, and a 1×1 convolution with an output channel number of 4*reg_max. The classification branch consists of a PConv convolution, a 1×1 CBS convolution module, and a 1×1 convolution with an output channel number equal to the number of categories. The structure diagram of the detection head is shown in Fig.12 Compared with the original detection head, the number of parameters of the detection head module in the model has been successfully reduced from 752092 to 301,276, which significantly reduces the size of the model and improves the detection efficiency of the model, ensuring the real-time performance of gesture interaction.
[0100] The network structure of RFCBAMConv is as follows Fig.13 As shown in the figure. The main advantage of this module is that it emphasizes the spatial features within the receptive field area. By adjusting the corresponding attention weights according to the features in each specific area, the large-size convolution kernel can process image information more effectively. During the robotic arm gesture interaction, the differences in the human bodies of the people performing gesture interaction and the distance from the camera cause the size and shape of their gestures to be different, making gesture recognition more difficult. This module combines spatial attention, receptive field features, and CBAM's own channel attention, which significantly improves the model's expressiveness and can adaptively adjust the size of the receptive field to better adapt to gesture recognition tasks of different scales. At the same time, the computational cost and parameter increment of this module are almost negligible, ensuring that the size of the model will not become very large due to the introduction of this module.
[0101] In the present invention, two RFCBAMConv modules are first used in the backbone network to perform initial extraction of image features. The main reason for this decision is that for gesture recognition tasks in complex environments, factors such as ambient light will affect the feature extraction of gestures. The first two convolutional layers of the backbone network play a key role in the initial stage of the network. They are responsible for processing the original image, extracting basic features, and helping to understand image information in a wider area by expanding the receptive field of the network, which is crucial for detecting objects of different sizes. The introduction of RFCBAMConv aims to enhance the capabilities of these primary convolutional layers, strengthen the feature extraction capabilities of gestures in complex environments, and thus improve the overall detection performance.
[0102] Experimental results and analysis
[0103] The recognition algorithm for robotic arm gesture interaction uses the improved YOLOv8 model. The experimental environment is the Ubuntu22.04 system. The algorithm programming environment is Python 3.8.18. The laboratory server graphics card NVIDIA A100-SXM4-80GB is used to accelerate the training process and conduct multiple improvement tests.
[0104] The final results and the comparison results with other models with similar functions are shown in Table 1. Some of the detection results are visualized as follows Fig.14 Compared with the original YOLOv8n model, the improved model of the present invention has 31% fewer parameters, 42% fewer GFLOPs, 34.2% higher FPS, and 1% higher detection accuracy, so that the algorithm improves detection accuracy while ensuring real-time performance, and is also competitive compared to other models with similar functions and better performance.
[0105] Table 1 Detection accuracy results on the Jacquard dataset
[0106] Model mAP50-95 / % Params(M) GFLOPs FPS YOLOv3-tiny 80.9 12.13 18.9 123 YOLOv5n 82.2 2.50 7.1 169 YOLOv6n 82.4 4.23 11.8 116 YOLOv8n 81.9 3.00 8.1 140 ours 82.9 2.06 4.7 188
Claims
1. A robotic arm gesture interaction method based on an improved YOLOv8 network model, characterized in that: The following steps are included: S1. Before the robot arm gesture interaction, adjust the distance between the depth camera and the gesture and the person so that the depth camera can capture the person's hand gesture, i.e., the human gesture, and obtain the RGB image of the human gesture through the depth camera; S2. Input the RGB image with human gestures into the pre-trained improved YOLOv8 model, and output the gesture recognition result image with target detection box and confidence. S3, obtaining corresponding gesture category information according to the output gesture recognition result image, and generating corresponding gesture interaction instructions according to the defined gesture interaction instruction table; S4, passing the generated gesture interaction command to the robot arm control cabinet or the gripper controller to control the robot arm to perform the interaction task; The improved YOLOv8 network model adds an MBConv module with an ECA attention mechanism to the YOLOv8 network structure to reconstruct the C2f module; uses the PConv module to design a lightweight detection head; and introduces RFCBAMConv.
2. According to claim 1, a robotic arm gesture interaction method based on an improved YOLOv8 network model is characterized in that: In step S2, four human gestures are defined: (1) Put your index finger up, put the other fingers together, and face the depth camera with your palm. (2) Open your palm, put your five fingers together, and face the depth camera with your palm facing the depth camera; (3) Open your palm with five fingers apart and the palm facing the depth camera; (4) Make a fist with your palm facing the depth camera.
3. According to claim 1, a robotic arm gesture interaction method based on an improved YOLOv8 network model is characterized in that: The steps to obtain the improved YOLOv8 model are as follows: The first step is to create a dataset containing four types of human gestures; The second step is to build and improve the YOLOv8 model; The third step is to train and optimize the network model The fourth step is to export the model to onnx format.
4. According to claim 1, a robotic arm gesture interaction method based on an improved YOLOv8 network model is characterized in that: In step S3, four gesture interaction instructions are defined: (1) one command: start the robotic arm; (2) stop command: stop the robot arm; (3) palm command: controls the opening of the gripper at the end of the robot arm; (4) Fist command: controls the opening and closing of the gripper at the end of the robot arm.
5. According to claim 1, a robotic arm gesture interaction method based on an improved YOLOv8 network model is characterized in that: The improved YOLOv8 network model includes: The backbone network, the neck network and the detection head are three parts; For the backbone network, the idea of cross-stage partial (CSP) is still adopted; it is mainly composed of two RFCBAMConv modules, three groups of C2f_EMBC modules and CBS convolution modules, as well as a C2f_EMBC module and an SPPF module; the C2f_EMBC module is composed of a series of ECA_MBConv modules and CBS modules; and the parameters of the ECA_MBConv module include: first, a point-by-point convolution with a step size of 1×1, followed by a BN module, and then a Relu6 activation function, followed by a depth convolution with a step size of 3×3, followed by a BN module, and then a Relu6 activation function, then an ECA module, followed by a point-by-point convolution with a step size of 1×1 and a BN module, and finally a residual connection; the CBS module is an ordinary convolution that is normalized and then passes through a SiLU activation function; For the neck network, it is constructed according to the FPN+PAN structure with 2 Upsample modules, 4 C2f_EMBC modules, 2 CBS modules with a step size of 3×3, and 4 concat operations; For the detection head part, it includes three lightweight decoupled detection heads; each detection head includes a regression branch and a classification branch; the regression branch consists of a PConv convolution, a 1×1 CBS convolution module, and a 1×1 convolution with an output channel number of 4*reg_max; the classification branch consists of a PConv convolution, a 1×1 CBS convolution module, and a 1×1 convolution with an output channel equal to the number of categories.
6. According to claim 5, a robotic arm gesture interaction method based on an improved YOLOv8 network model is characterized in that: When training the improved YOLOv8 network, the following evaluation indicators are used to measure the accuracy and speed of gesture recognition: (1) The average precision of all categories in the range of IOU between the predicted box and the actual target box from 0.5 to 0.95; the formula is: Where AP represents the average precision of IOU from 0.5 to 0.95 for each category, and N represents the number of categories; (2) The number of pictures predicted per second (FPS) is: Among them, t pre ,t infer and t post Respectively represent the pre-processing, inference and post-processing time of each image, all in milliseconds.
Citation Information
Patent Citations
Lightweight gesture recognition method based on deep learning
CN114529949A
Gesture recognition method based on multi-core dynamic attention mechanism
CN117152838A
Mechanical arm grabbing method based on deep learning
CN117315019A
Cited By
Gesture recognition algorithm and system based on color attention in AR operation environment
CN119356524A
Deep learning-based intersection traffic flow detection method and system in intelligent network connection vehicle
CN119541203A
Gesture recognition system and method based on LHGDet model
CN119672757A
Industrial scene gesture recognition method and system based on improved YOLOv8
CN121259929A
Gesture recognition method and system for industrial scene based on improved YOLOv8
CN121259929B
