A robotic arm intelligent control method based on tracking visual recognition algorithm
By using the tracking visual recognition algorithm and neural network model in the feeding robot, combined with the Kalman filter and the Hungarian algorithm, the intelligent control of the robotic arm is realized, which solves the problem of inaccurate feeding under facial movements and occlusion of the feeding object, and improves the efficiency of feeding. Feeding accuracy and flexibility.
Patent Information
- Application Number
- CN202210680349.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-15
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-06-15
AI Technical Summary
It is difficult for the existing feeding robot's mechanical arm to accurately position and feed based on the facial movements and occlusion of the feeding object, resulting in food spillage or inaccurate feeding.
The robot arm intelligent control method based on the tracking visual recognition algorithm is used to obtain the status of the feeding object in real time through the image acquisition unit and distance detection unit. The Kalman filter and neural network model are used to analyze the user's actions, and the Hungarian algorithm and deep belief network are combined to determine The user's facial status and occlusion condition control the robotic arm for automatic feeding.
It improves the accuracy and flexibility of feeding, reduces the misjudgment rate, can effectively solve the problem of multi-object occlusion, ensures accurate feeding of food, and improves the user experience.
Smart Images

Figure CN115056223B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of robot arm control, and in particular to a robot arm intelligent control method based on tracking visual recognition algorithm. Background Art
[0002] The human body needs to eat every day to absorb the nutrients in the food to supply itself. Although eating is a basic skill of the human body, there are still many people who cannot eat independently due to physical disabilities or age issues and need to be fed by others. With the development of science and technology, the technology of intelligent robotic arms is becoming more and more mature, and thus, feeding robots came into being.
[0003] The feeding robot is equipped with a robotic arm and a controller for controlling the movement of the robotic arm. The controller can control the movement of multiple robotic arms. The controller realizes the movement of the robotic arm through the user input device based on the input signal from the user. The controller receives various signals, processes these signals and provides output signals to control the robotic arm. However, there are some problems when using the feeding robot. Most robotic arms only follow the prescribed path and cannot accurately locate and identify as needed. When multiple robotic arms are controlled by the same operator, it is inevitable that during the feeding process, the face of a feeding object may be blocked, the head may be lowered, the head may be turned, the mouth may not be opened, etc. At this time, if the feeding robotic arm continues to feed according to the prescribed path, the food will be spilled on the table or even on the body of the object to be fed, and the user experience will be extremely poor. Summary of the invention
[0004] In order to solve the above problems, the present invention provides an intelligent control method of a robotic arm based on a tracking visual recognition algorithm, which can automatically capture facial movement information and occlusion conditions, and control the robotic arm to automatically feed.
[0005] To this end, the technical solution of the present invention is: a method for intelligently controlling a robotic arm based on a tracking visual recognition algorithm, comprising a robotic arm, a control system for controlling the movement of the robotic arm, and an operation interface, wherein the robotic arm is provided with an image acquisition unit and a distance detection unit, and the control system comprises an image recognition unit; the image acquisition unit is used to acquire a state image of a feeding object in real time, and send the state image to the image recognition unit, and the image recognition unit determines the state and occlusion of the feeding object in the state image based on the tracking visual recognition algorithm, and the tracking visual recognition algorithm can capture the user's face and specific movements to determine whether to feed;
[0006] The specific steps include:
[0007] 1) Enter the user's facial feature information into a database in advance, compare the acquired image information with the user's facial feature information in the database, and confirm the user's identity in the acquired image information;
[0008] 2) Use the Kalman filter to predict and analyze the user actions in the image, and fuse two sets of action data with different similarities into a reliable action prediction value, that is, the assignment problem maps the Kalman filter prediction to the newly arrived measurement value Z1, and uses the Hungarian algorithm to associate the image data one by one;
[0009] 3) Using the distance detection unit to detect the distance between the detection point where the user is located and the robotic arm;
[0010] 4) Build a neural network model to train and analyze the user's specific actions, such as opening the mouth or shaking the head;
[0011] 5) The control logic of the control system is:
[0012] ① The distance between the detection point and the robotic arm is less than or equal to the preset distance value, and the user's specific action is not captured. It is judged that the user is blocked and the robotic arm does not work;
[0013] ② The distance between the detection point and the robotic arm is less than or equal to the preset distance value, capturing the user's specific actions, such as opening the mouth or shaking the head, and judging that the user needs to be fed or stop feeding, and the robotic arm works normally or stops working;
[0014] ③ If the distance between the detection point and the robotic arm is greater than the preset distance value, the robotic arm will not work.
[0015] Preferably, after capturing the image information, the action instruction is compared to see if it matches the predicted value Z1, that is, the confidence interval is above 90% and the action delay signal is above 1.5s; at the same time, the image data association information is processed to obtain the scan value Z2, that is, the facial features are scanned to see if the contour boundaries overlap to determine whether the face is blocked, and the acquired image information is compared with the existing faces in the database. If the similarity is greater than 90%, it is determined to be normal recognition without occlusion. If it is found that the contour similarity ratio with the face information in the database is less than 90% or the contour information cannot be scanned, it is determined to be blocked, and the feeding operation is not performed at this time; the predicted value Z1 is compared with the image information scan value Z2 through the Hungarian algorithm, that is, when Z1≈Z2, it is determined to be normal, and the error interval is within 3%.
[0016] Preferably, in step 4), the neural network model is a deep belief network DBN, and a classifier is constructed to divide the recognized action information into two categories, opening the mouth and shaking the head; continuous training is performed to improve the recognition accuracy and speed at different distances, wherein the parameters in the mouth opening data set are set to A, {A1, A2, A3, ..., An}; the parameters in the shaking head data set are set to B, {B1, B2, B3, ..., Bn}, and the parameters A and B are combined to output a return value Z, that is, A+B=>Z, and Z is continuously optimized and trained; wherein the data sets of A and B are collected at different distances, and the deep belief network DBN is used for iteration to select the optimal distance value.
[0017] Preferably, the image acquisition unit is a camera, and the distance detection unit is a distance sensor.
[0018] Preferably, in step 1), when there is a single user in the acquired image information, the information in the database is compared to determine whether the user matches the user facial feature information entered in advance into the database, and a response is made; when there are multiple objects in the acquired image information, it is determined one by one whether they match the user facial feature information in the database. If there is a user in the acquired image who does not match the information in the database, a special calibration is performed, and at the same time, it is independently confirmed whether to add the user's facial feature information, and multiple users are fed in sequence according to the set value, and tracking feeding of multiple objects is performed.
[0019] Preferably, when the user's facial feature information already exists in the database and a new user is identified, whether a new member is added is confirmed on the operating interface of the control system and the user's facial feature information is entered; when there are multiple objects in the acquired image information, they are fed by default in the order of addition, or are fed by manually setting the priority; when there are multiple objects in the acquired image information, a single object tracking mode can be set to perform feeding operations on the specified user.
[0020] Preferably, in step 5), when the user makes an action command to open his mouth, the camera recognizes that he needs to be fed, and will automatically track the user's mouth, and the robotic arm will feed him; the camera continues to shoot, and when it recognizes that the user makes an action command to open his mouth again, it will feed him for the second time, and repeat the above actions; when the user issues a shaking head command, the camera recognizes it as an instruction to stop eating, and the robotic arm stops all actions and returns to its initial state.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] 1. Use Kalman filter to predict user actions. The predicted value and time scan value are associated through Hungarian algorithm, which effectively reduces the misjudgment rate. Use the user's specific actions to control the work of the robotic arm and improve the accuracy of feeding.
[0023] 2. It can effectively solve the problem of multiple objects being blocked, avoid feeding under blocked conditions, and use machine vision to control the movement of the robotic arm, which greatly enhances the flexibility of feeding. It can track and determine the user's status and feed the food reasonably. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The following is a further detailed description of the embodiments of the present invention in conjunction with the accompanying drawings.
[0025] Figure 1 It is a flowchart of the method of the present invention;
[0026] Figure 2This is the training accuracy curve of the neural network model;
[0027] Figure 3 This is the training loss curve of the neural network model. DETAILED DESCRIPTION
[0028] See the attached drawings. The intelligent control method of the robotic arm based on the tracking visual recognition algorithm described in this embodiment includes a robotic arm and a control system for controlling the movement of the robotic arm. The robotic arm is an existing feeding robotic arm on the market, and is provided with a control system. The feeding operation is controlled by the control system. A camera and a displacement sensor are provided on the robotic arm. The camera is used to capture the image of the user, and the displacement sensor is used to measure the distance between the user and the robotic arm. The control system includes an image recognition unit, which determines the state and occlusion of the feeding object in the state image based on the tracking visual recognition algorithm. The tracking visual recognition algorithm can capture the user's face and specific movements to determine whether to feed.
[0029] The specific steps include:
[0030] 1) Enter the facial feature information of all users into the database in advance so that the user's identity can be identified later to ensure that the food corresponds to the user and avoid mixing food and causing allergic reactions;
[0031] The camera captures the user's face in real time, compares the acquired image information with the user's facial feature information in the database, and confirms the user's identity in the acquired image information.
[0032] 2) Use the Kalman filter to predict and analyze the user actions in the image, and fuse two sets of action data with different similarities into a reliable action prediction value, that is, the allocation problem maps the Kalman filter's prediction to the newly arrived measurement value Z1, which is the normal unobstructed prediction value. The Hungarian algorithm is used to associate the image data one by one; adding other information such as motion and appearance parameters together with the association helps to better map, and unlikely associations can be eliminated by thresholding with a 95% confidence interval.
[0033] When the image information is captured, the action instruction is immediately compared to see if it matches the normal unobstructed predicted value Z1. The predicted value Z1 has a confidence interval of more than 90% and the action delay signal is more than 1.5s, so as to determine whether feeding is needed, thereby reducing the misjudgment rate;
[0034] At the same time, the image data association information is processed to obtain the scanning value Z2, and the facial features are scanned to see if the boundaries overlap to determine whether the face is blocked. The acquired image information is compared with the existing faces in the database. If the similarity is above 90%, normal recognition is performed without occlusion. If the contour similarity with the facial information in the database is less than 90% or the contour information cannot be scanned, it is considered to be blocked and no feeding operation is performed. Correspondingly, if the previous operation is a feeding operation, feeding will be stopped when occlusion is detected. The predicted value Z1 is compared with the image information scanning value Z2 through the Hungarian algorithm. When Z1≈Z2, it is determined to be normal and without occlusion, with an error range of less than 3%.
[0035] 3) Distance sensors can be used to sense the movement of a specific user's face or other body parts, detect the distance value between the user's detection point and the robotic arm, and use them as an interface (input) to control the movement of the robotic arm. These operations monitor the specific user's pre-programmed facial or other body movements to control the movement of the robotic arm.
[0036] 4) A neural network model is used to recognize specific actions of the user. When training the neural network, an appropriate dataset is prepared and a training-test split is performed based on the available data; a suitable network is designed or selected (in the case of transfer learning) for training; the validation loss is monitored throughout the training process so that a very small constant value is generated after a few epochs, if not, hyperparameter tuning is performed on the model to provide the lowest possible validation loss value. The model with the best validation loss is saved and tested on a real-world dataset. If decreasing precision and recall values are obtained for the new dataset, the model is considered good, otherwise the model needs to be trained on an enhanced dataset to improve performance,
[0037] The specific steps are as follows:
[0038] Facial recognition sensors include stereo cameras that continuously send information to the control system, which continuously recalculates the position of the user's mouth or transmission point to build a data set for training and thus enhance recognition.
[0039] The position of the user's mouth or feeding point continuously sends an output signal to the control system, which recalculates the control signal sent to the robotic arm so that the robotic arm can move according to the changes in the position of the user's mouth or feeding point.
[0040] The deep belief network DBN is selected as the model, and a classifier is constructed to classify the recognized action information into two categories, one is opening the mouth, and the other is shaking the head. The recognition accuracy and speed at different distances are continuously improved through training. The parameters in the mouth opening data set are set to A, with {A1, A2, A3, ..., An}; the parameters in the shaking head data set are set to B, with {B1, B2, B3, ..., Bn}. The series of parameters A and B are combined to output a return value and finally fed back to the app end, that is, A+B=>Z, and the result of training Z is continuously optimized. The data sets of A and B are collected at different distances and iterated through the deep belief network DBN. Finally, the optimal distance and action information with a response speed of less than 1s are optimized and saved as the best data set with a recognition rate of more than 90%, and the ideal state is within 0.6 meters.
[0041] The designed neural network was trained and tested, and the training accuracy and loss were obtained as follows Figure 2 and Figure 3 As shown. A training accuracy of 82% was obtained by training this model. The loss and accuracy are inversely proportional. As the number of epochs increases, the learning rate increases, so the loss decreases. Every time you run epochs, the model trains itself and the training accuracy is updated to a more accurate value.
[0042] 5) The control logic of the control system is divided into:
[0043] ① The distance between the detection point and the robotic arm is less than or equal to the preset distance value of 0.6 meters. The user's specific action is not captured, and the user is judged to be blocked, and the robotic arm stops feeding;
[0044] ② The distance between the detection point and the robotic arm is less than or equal to the preset distance value of 0.6 meters. The user's specific action is captured, the mouth is opened, and it is judged that the user needs to be fed, and the robotic arm works normally;
[0045] ③ The distance between the detection point and the robotic arm is less than or equal to the preset distance value of 0.6 meters. The user's specific action is captured, such as shaking the head, and it is determined that the user needs to stop feeding. The robotic arm stops working and returns to the initial state;
[0046] ④ If the distance between the detection point and the robotic arm is greater than the preset distance value of 0.6 meters, the robotic arm will not work.
[0047] In addition, user-specific actions include opening the mouth and shaking the head. When the user issues the action command of opening the mouth, the camera recognizes that it needs to be fed and will automatically track the user's mouth to feed. At the same time, after the user eats, the camera issues the command of opening the mouth for the second feeding, and repeats the above actions. When the user issues the command of shaking the head, the camera recognizes the command to stop eating, stops all action groups and returns to the initial state, such as folding the spoon. Regardless of whether there is food in the spoon, there will be an action mode of pouring, returning to the original position and folding. If there is food, it will be put back on the plate. When the user performs other gestures, the feeding command will not be triggered.
[0048] This embodiment also has single and multiple object tracking capabilities, uses YOLOv3 and deep learning methods to train the camera, and optimizes the success rate of the detector by testing the device's recognition of multiple faces on test data. It consists of six stages, such as loading the dataset, YOLOv3 design, training option configuration, object tracker training, and tracker evaluation.
[0049] The specific steps are as follows: The camera continuously transmits the two-dimensional image to the image recognition unit of the control system, performs facial recognition analysis, and processes the two-dimensional image of the user's face accordingly to locate the two-dimensional coordinates of the user's mouth. The distance sensor is used to determine the distance from the device to the user's mouth and provide this information to the image recognition unit. The image recognition unit finally determines the three-dimensional coordinates of the user's mouth by integrating the distance fixed-point coordinate information with the two-dimensional coordinates, and sends these three-dimensional coordinates to the control unit of the control system through output signals. The control unit uses the inverse motion process and generates a control signal through appropriate software and sends it to the robotic arm, so that the robotic arm moves to the three-dimensional coordinate target positioning point after the mechanical movement picks up the food, and delivers the food to the user's mouth or delivery point accordingly.
[0050] When a single object enters the area, the information in the database is compared to determine whether it is the user information entered in advance and respond. When multiple objects enter, the first thing to do is to determine whether the user exists in the library. If the user does not exist in the library, special calibration is performed. At the same time, the user independently confirms whether to add the member and labels it. Specific users will continue to be fed first according to the set value. After adding multiple users, they can be labeled and tracked and fed for multiple objects at the same time.
[0051] The details are as follows:
[0052] 1. When there are objects in the library and a new user is identified, the software sends a push to ask whether to add a new member and enter the information. When multiple objects appear in the working range at the same time, they are fed by default according to the order of addition, or they are fed by manually setting the priority.
[0053] 2. When multiple objects in the library are being tracked simultaneously, the instruction set can be used to stop the feeding work and switch to single object tracking.
[0054] 3. The dataset in the library will analyze and record the eating frequency of each user.
[0055] 4.YOLOv3 design will identify the target and divide the user calibration box to increase the accuracy of recognition when it is blocked
[0056] 5. The training option is to train the analysis data set to enhance the response speed and define the overall camera module and distance sensor as tracker autonomous optimization, and finally feedback high response evaluation data.
[0057] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A method for intelligent control of a robotic arm based on a tracking visual recognition algorithm, comprising a robotic arm, a control system for controlling the movement of the robotic arm, and an operation interface, characterized in that: The robotic arm is provided with an image acquisition unit and a distance detection unit, and the control system includes an image recognition unit; the image acquisition unit is used to acquire a state image of the feeding object in real time, and send the state image to the image recognition unit, and the image recognition unit determines the state and occlusion of the feeding object in the state image based on a tracking visual recognition algorithm, and the tracking visual recognition algorithm can capture the user's face and specific movements to determine whether to feed; The specific steps include: The user's facial feature information is entered into a database in advance, and the acquired image information is compared with the user's facial feature information in the database to confirm the user's identity in the acquired image information; The Kalman filter is used to predict and analyze the user actions in the image. Two sets of action data with different similarities are fused into a reliable action prediction value, that is, the assignment problem maps the Kalman filter prediction to the newly arrived prediction value Z1, and the Hungarian algorithm is used to associate the image data one by one. The distance detection unit is used to detect the distance between the detection point where the user is located and the robotic arm; Build a neural network model to train and analyze the user's specific actions, such as opening the mouth or shaking the head; The control logic of the control system is: ① The distance between the detection point and the robotic arm is less than or equal to the preset distance value, and the user's specific action is not captured. It is judged that the user is blocked and the robotic arm does not work; ② The distance between the detection point and the robotic arm is less than or equal to the preset distance value, capturing the user's specific actions, such as opening the mouth or shaking the head, and judging that the user needs to be fed or stop feeding, and the robotic arm works normally or stops working; ③The distance between the detection point and the robotic arm is greater than the preset distance value, and the robotic arm does not work; After capturing the image information, the action instruction is compared to see if it matches the predicted value Z1, that is, the confidence interval is above 90% and the action delay signal is above 1.5s; at the same time, the image data association information is processed to obtain the scan value Z2, that is, whether the contour boundaries of the facial features are overlapped to determine whether the face is blocked. The acquired image information is compared with the existing faces in the database. If the similarity is greater than 90%, it is determined to be normal recognition without occlusion. If the contour similarity with the facial information in the database is less than 90% or the contour information cannot be scanned, it is determined to be blocked, and the feeding operation is not performed at this time; the predicted value Z1 is compared with the image information scan value Z2 through the Hungarian algorithm, that is, when Z1≈Z2, it is determined to be normal, with an error interval of less than 3%.
2. The intelligent control method for a robotic arm based on a tracking visual recognition algorithm as claimed in claim 1, characterized in that: In step 4), the neural network model is a deep belief network DBN, and a classifier is constructed to classify the recognized action information into two categories, opening the mouth and shaking the head; continuous training is performed to improve the recognition accuracy and speed at different distances, wherein the parameters in the mouth opening data set are set to A, {A1, A2, A3, ..., An}; the parameters in the shaking head data set are set to B, {B1, B2, B3, ..., Bn}, and the parameters A and B are combined to output a return value Z, that is, A+B=>Z, and Z is continuously optimized and trained; wherein the data sets of A and B are collected at different distances, and the deep belief network DBN is used for iteration to select the optimal distance value.
3. The intelligent control method for a robotic arm based on a tracking visual recognition algorithm as claimed in claim 1, characterized in that: The image acquisition unit is a camera, and the distance detection unit is a distance sensor.
4. The intelligent control method for a robotic arm based on a tracking visual recognition algorithm as claimed in claim 1, characterized in that: In step 1), when there is a single user in the acquired image information, the information in the database is compared to determine whether the user matches the user facial feature information entered in advance into the database, and a response is made; when there are multiple objects in the acquired image information, each is determined to be consistent with the user facial feature information in the database. If there is a user in the acquired image that does not match the information in the database, a special calibration is performed, and at the same time, it is independently confirmed whether to add the user's facial feature information, and multiple users are fed in sequence according to the set value, and multi-object tracking feeding is performed.
5. The intelligent control method for a robotic arm based on a tracking visual recognition algorithm as claimed in claim 4, characterized in that: When the database already has user facial feature information and a new user is identified, confirm whether to add a new member and enter the user's facial feature information on the control system's operating interface; when the acquired image information contains multiple objects, they are fed by default in the order of addition, or they are fed by manually setting the priority; when the acquired image information contains multiple objects, a single object tracking mode can be set to feed the specified user.
6. The intelligent control method for a robotic arm based on a tracking visual recognition algorithm as claimed in claim 1, characterized in that: In step 5), when the user makes an action command to open the mouth, the camera recognizes that it needs to be fed, and will automatically track the user's mouth, and the robotic arm will feed the baby; the camera continues to shoot, and when it recognizes that the user makes an action command to open the mouth again, it will feed the baby for the second time, and repeat the above actions; when the user issues a command to shake his head, the camera recognizes it as an instruction to stop eating, and the robotic arm stops all actions and returns to its initial state.
Citation Information
Patent Citations
Multi-person abnormal behavior detection and recognition method based on machine vision
CN109522793A
Multi-camera linkage multi-target tracking method and system for smart community
CN110619657A
Control method of intelligent dining platform, intelligent dining platform and storage medium
CN110969229A
Meal assisting robot based on image processing and meal taking method thereof
CN113146650A
Monocular vision-based meal assisting robot control method
CN113601502A
