Humanoid robot visual identification and action control method based on machine learning
Through the machine learning-based humanoid robot visual recognition and action control method, the three-dimensional environment model and machine learning are used to analyze obstacles and select the appropriate control mode, which solves the problem of high real-time computing power in the existing technology and achieves cost reduction and mobility. Improved stability.
Patent Information
- Application Number
- CN202411221604.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-10-22
AI Technical Summary
In the existing technology, robots based on visual recognition have high requirements for real-time computing capabilities, which leads to high cost when applied in large quantities.
Using a machine learning-based visual recognition and action control method for humanoid robots, the visual acquisition unit is used to obtain environmental data to build a three-dimensional environment model. The machine learning model is used to analyze the shape of obstacles, select an appropriate control mode, and lower the humanoid robot in feedback adjustment mode. The height of the center of gravity reduces real-time computing requirements.
It reduces the cost of mass use of humanoid robots, reduces the requirements for real-time computing power, and improves the stability and efficiency of robot movement in complex environments.
Smart Images

Figure CN118809622A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of robot control technology, and in particular to a humanoid robot visual recognition and motion control method based on machine learning. Background Art
[0002] Humanoid robots have similar structures and movement behaviors to the human body, so they can adapt to many tools or working environments specially designed for the human body. They are currently the most ideal form of robot to replace human work.
[0003] In mining operations, there are a large number of obstacles that affect movement or operation in underground or open-pit mines. In particular, there are a large number of potholes and water accumulation on the road surface during walking, which brings great difficulties to the movement of robots. Robots need to accurately perceive the environment, especially the information on the ground, to make accurate movements to smoothly and quickly complete the movement. For example, CN117863190A discloses a mobile control method and a footed robot for a legged robot. This patent abandons the machine learning method and enables the robot to establish a fusion map that can represent the environment based on the visual map, tactile map and rigid body map, and then control the movement of the foot.
[0004] Although the above patent has low development cost and strong portability, it requires each robot to have strong real-time computing capabilities, so the cost is not low when such robots are used in large quantities. Summary of the invention
[0005] The embodiments of the present application provide a humanoid robot visual recognition and motion control method based on machine learning, so as to solve the problem that robots that only use visual recognition in the prior art have high requirements for real-time computing capabilities.
[0006] The present application embodiment provides a humanoid robot visual recognition and motion control method based on machine learning, including:
[0007] Using a visual acquisition unit to acquire environmental data, and establishing a three-dimensional environmental model based on the environmental data, wherein the three-dimensional environmental model has multiple obstacles;
[0008] Use machine learning models to analyze the shape of obstacles and determine the types of obstacles;
[0009] Select the corresponding control mode according to the type of obstacle;
[0010] In the selected control mode, obtain real-time height data of the foot;
[0011] Compare the real-time height data with the standard height data corresponding to the obstacle type to determine whether the real-time height data reaches the standard height data, and if the real-time height data reaches the standard height data, obtain the contact data of the foot;
[0012] Determine whether the foot is in contact with the ground based on the contact data. If not, enter the feedback adjustment mode. In the feedback adjustment mode, the lower limbs in a stable state lower their height to lower the center of gravity of the humanoid robot. At the same time, the foot continues to descend, and the foot data is continuously acquired during the descent until the foot touches the ground.
[0013] The humanoid robot visual recognition and motion control method based on machine learning in this application has the following advantages:
[0014] Combining machine learning with the local processing of the humanoid robot, a pre-trained machine learning model is used to identify obstacles in order to select the appropriate control mode. During the execution of the control mode, the local processing capabilities of the humanoid robot are used to perform refined motion control. The real-time computing capabilities of the humanoid robot are not required to be high, thus reducing the cost of using the humanoid robot in large quantities. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 A flowchart of a humanoid robot visual recognition and motion control method based on machine learning provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0018] Figure 1 Flow chart of a humanoid robot visual recognition and motion control method based on machine learning provided in an embodiment of the present application. An embodiment of the present application provides a humanoid robot visual recognition and motion control method based on machine learning, including:
[0019] S100, using a visual acquisition unit to acquire environmental data, and establishing a three-dimensional environmental model according to the environmental data, wherein the three-dimensional environmental model has a plurality of obstacles.
[0020] For example, the visual acquisition unit used in the embodiment of the present application is a laser radar. The laser radar emits lasers in multiple directions at the same time during operation and receives lasers reflected by obstacles. The emission time and reflection time of the lasers will be recorded. The distance of the obstacle can be determined by calculating the difference between the emission time and the reflection time, that is, the environmental data is data representing the distance between the humanoid robot and the environmental point. After obtaining the environmental data, the storage unit of the humanoid robot saves the distance data of each environmental point for use in establishing a three-dimensional environmental model.
[0021] After obtaining the distance data, when establishing a three-dimensional environment model, you need to first establish a robot coordinate system with the humanoid robot as the origin. In this robot coordinate system, the vertical direction is the Z axis, the front-to-back direction is the Y axis, and the left-to-right direction is the X axis. The humanoid robot mainly moves in the Y axis direction. When adjusting the moving direction, it needs to move in the X axis direction, and it will also move in the Z axis direction with the ups and downs of the ground. After establishing the robot coordinate system, multiple environmental points corresponding to the distance data can be drawn in the robot coordinate system, and the formed three-dimensional point cloud is the three-dimensional environment model. It should be understood that when the laser radar emits laser, each laser beam has a certain direction, so each environmental point has direction information determined by the humanoid robot. This direction information combined with the distance data can obtain the coordinates of each environmental point in the robot coordinate system.
[0022] Furthermore, after obtaining the three-dimensional environment model in the form of a three-dimensional point cloud, triangles are constructed between adjacent points in the point cloud to form a three-dimensional environment model in the form of a curved surface. This three-dimensional environment model is closer to the real three-dimensional environment.
[0023] S110, analyzing the shape of the obstacle using a machine learning model to determine the type of the obstacle.
[0024] Exemplarily, the machine learning model is a convolutional neural network model. The machine learning model is pre-trained using training data. The machine learning model extracts shape data, size data, and position data of the obstacle, compares the shape data, size data, and position data with known obstacle categories, and takes the obstacle category with the highest similarity as the type of obstacle.
[0025] The convolutional neural network model includes an input layer, a hidden layer and an output layer. The hidden layer is used to extract the shape data, size data and position data of each object in the three-dimensional environment model, and then compare them with the shape, size and position of known obstacle categories to classify each object in the three-dimensional environment model.
[0026] Specifically, the three-dimensional environment model is a continuous surface or point cloud, and there is no very obvious boundary between multiple different objects. In order to accurately and quickly separate different objects, a camera for collecting visible light band images can be integrated on the humanoid robot. These images contain color information of multiple objects in the environment, and there is a corresponding relationship between the image and the three-dimensional environment model, that is, the position of an object in the image is the same as the position of the object in the three-dimensional environment model. Therefore, the present application can use the color information of different objects in the image to distinguish different objects, and obtain the position of each object in the image. The position will correspond to the three-dimensional environment model. After the three-dimensional environment model is decomposed according to the position of each object, the three-dimensional data corresponding to each object can be obtained. These three-dimensional data include the above-mentioned shape data, size data and position data.
[0027] The storage unit of the humanoid robot pre-stores the characteristic information of obstacles of all known obstacle categories, including the shape, size and position of the obstacles. The shape data, size data and position data of each object are compared with the shape, size and position of each known obstacle category, and the similarity of each item in shape, size and position is obtained. The obstacle category with the highest comprehensive similarity and each similarity exceeding the threshold is taken as the obstacle category. In the embodiment of the present application, the types of obstacles include machinery and equipment, personnel, walls, ground potholes, ground protrusions, etc.
[0028] Furthermore, the machine learning model includes multiple parameters, and the parameters are obtained using a federated machine learning method.
[0029] Specifically, federated machine learning is also called federated learning. The connection status between the input layer, hidden layer and output layer in the convolutional neural network model is represented by multiple parameters. These parameters mainly include connection weights and biases. Once the structure and parameters of the convolutional neural network are determined, the same output results will be obtained after processing the same input data. In the embodiment of the present application, when the structure of the convolutional neural network remains unchanged, when different mines use the same model of humanoid robots, a mine can determine the parameters of the convolutional neural network model after completing local training, and then share the parameters to other mines through the Internet. By sharing only parameters but not data in this way, the data privacy of the mine is effectively protected, while also improving the use value of the data and avoiding the generation of data islands.
[0030] S120: Select a corresponding control mode according to the type of obstacle.
[0031] Exemplarily, the control mode includes an obstacle avoidance mode and a crossing mode. When there is a passable area other than the obstacle, the control mode selects the obstacle avoidance mode. When there is no passable area other than the obstacle, the control mode selects the crossing mode. Real-time height data of the foot is obtained in the crossing mode.
[0032] Specifically, by establishing a three-dimensional environment model, the humanoid robot can determine whether there is enough space to pass in front. When judging, after determining the types of various obstacles, these types must include the ground, and other obstacles are above the ground. If there is a space above the ground whose width and height are greater than the width and height of the humanoid robot, then there is a passable area on the ground, otherwise there is no passable area. If there is a passable area, the humanoid robot can bypass the obstacle by changing the path, that is, the above-mentioned obstacle avoidance mode. If there is no passable area, it is necessary to determine whether to enter the crossing mode according to the specific situation. If the width of the space above the ground is less than the width of the humanoid robot, the humanoid robot cannot pass through anyway, so it will not enter the crossing mode. If the width of the space above the ground is sufficient, but the height of the obstacle is greater than the maximum crossing height of the humanoid robot, the humanoid robot cannot pass through it either, and will not enter the crossing mode. Only when the width of the space above the ground is greater than the width of the humanoid robot, and the height of the obstacle is less than or equal to the maximum crossing height of the humanoid robot, will it enter the crossing mode. It should be understood that obstacles on the ground are divided into two types: protrusions and potholes. The height of a protrusion obstacle is the vertical dimension of the part above the ground, while the height of a pothole obstacle is the vertical dimension of the part below the ground.
[0033] In the crossing mode, the movement speed of the humanoid robot will be reduced to avoid falling due to a higher movement speed. In addition, the height of the lower limbs of the humanoid robot will be greater than the height of the obstacle so that the two lower limbs can cross the obstacle one after another.
[0034] Furthermore, after the control mode is selected, the control mode is also sent to other humanoid robots within a certain range, and other humanoid robots determine whether to execute the control mode according to their current positions.
[0035] Specifically, there may be multiple humanoid robots operating simultaneously in the same area. After the humanoid robot at the front in the moving direction selects a control mode, the control mode is also applicable to other humanoid robots at the rear. Sharing the control mode with other humanoid robots can effectively improve the utilization of data. After other humanoid robots obtain the control mode, they will also obtain the mode execution position from the front humanoid robot, that is, the position of the front humanoid robot. After other humanoid robots obtain the mode execution position, they calculate the distance between the mode execution position and the current position. If the distance is less than the distance threshold, the humanoid robot will also execute the control mode.
[0036] Furthermore, in addition to the humanoid robot selecting the control mode by itself, there may also be people in the working area where the humanoid robot is located. When the people and the humanoid robot move in the same direction on the same path, the movements of the people have a high reference value. Therefore, when the humanoid robot determines that the obstacle contains people, it will further determine whether the movement direction of the people is the same as its own. If the same, it will further collect the movement image of the people through the camera on the basis of collecting environmental data through the laser radar and establishing a three-dimensional environmental model. By combining the three-dimensional environmental model and the movement image, the three-dimensional state of the movement data can be obtained. The movement data includes the swing angle and swing height of the upper and lower limbs of the people. After obtaining the movement data, the humanoid robot can use it as its own control data, and then make the same movement as the people, thereby improving the efficiency of movement.
[0037] S130, obtaining real-time height data of the foot in the selected control mode.
[0038] Exemplarily, the real-time height data of the foot is determined according to the length of the lower limbs and the angles of each joint of the humanoid robot.
[0039] Specifically, the storage unit of the humanoid robot pre-stores the length data of each part, and the rotation angle data of the motor on each joint will also be transmitted to the processing unit. The processing unit combines these rotation angle data to determine the posture of each part of the humanoid robot, especially the thigh, calf and foot in the lower limbs, and then combines the length data of these structures to determine the real-time height data of the foot.
[0040] S140, comparing the real-time height data with the standard height data corresponding to the obstacle type to determine whether the real-time height data reaches the standard height data, and if the real-time height data reaches the standard height data, obtaining foot contact data.
[0041] Exemplarily, each obstacle has a typical height. For example, the track laid on the ground has a certain height. The height of the track may vary in different areas, but the difference will not be very large. Therefore, the maximum height of the track on the ground can be taken as the standard height data. Some obstacles are temporary or sudden and do not have a fixed height. In this case, it is necessary to extract the height data from the three-dimensional environment model as the standard height data. The present application uses a pre-set height or a height extracted from a three-dimensional environment model as standard height data for different types of obstacles, eliminating the work of extracting data of obstacles of known height from the three-dimensional environment model and reducing the workload of data processing.
[0042] S150, determining whether the foot is in contact with the ground based on the contact data, and if not, entering the feedback adjustment mode. In the feedback adjustment mode, the lower limbs in a stable state lower their height to lower the center of gravity of the humanoid robot, while the foot continues to descend, and the foot data is continuously acquired during the descent until the foot touches the ground.
[0043] For example, in an embodiment of the present application, a plurality of pressure sensors are provided on the foot, and the contact data is the pressure data collected by the pressure sensors. The plurality of pressure sensors are respectively provided at the front, middle and rear of the bottom surface of the foot, and the foot is considered to be in contact with the ground only if the pressure sensors collecting the pressure data include the pressure sensors respectively located at the front, middle and rear, and the pressure data collected by each pressure sensor exceeds the pressure threshold.
[0044] If the real-time height data has reached the standard height data, but the foot has not yet touched the ground, it means that there is a difference between the theoretically calculated height and the actual obstacle height, and the feedback adjustment mode will be entered at this time. In the feedback adjustment mode, the lower limbs that have been in contact with the ground are controlled to bend for the purpose of ensuring the stability of the humanoid robot, so as to lower the overall center of gravity height of the humanoid robot and improve stability. At the same time, the lower limbs that are already in the process of falling will continue to unfold, but the unfolding speed will be further reduced compared to the speed before entering the feedback adjustment mode, so as to avoid high-speed collisions between the feet and the ground or obstacles caused by the higher unfolding speed. Under the dual effects of the lowering of the center of gravity of the humanoid robot and the continuous descent of the falling feet, not only the stability of the humanoid robot is ensured, but also the risk of the humanoid robot falling due to collision is reduced.
[0045] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0046] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A humanoid robot visual recognition and motion control method based on machine learning, characterized in that: include: Acquire environmental data using a visual acquisition unit, and establish a three-dimensional environmental model according to the environmental data, wherein the three-dimensional environmental model has a plurality of obstacles; Analyzing the shape of the obstacle using a machine learning model to determine the type of the obstacle; Select a corresponding control mode according to the type of the obstacle; In the selected control mode, obtaining real-time height data of the foot; comparing the real-time height data with standard height data corresponding to the obstacle type to determine whether the real-time height data reaches the standard height data, and if the real-time height data reaches the standard height data, acquiring contact data of the foot; Determine whether the foot is in contact with the ground based on the contact data. If not, enter a feedback adjustment mode. In the feedback adjustment mode, the lower limbs in a stable state lower their height to lower the center of gravity of the humanoid robot. At the same time, the foot continues to descend, and the foot data is continuously acquired during the descent until the foot touches the ground.
2. The humanoid robot visual recognition and motion control method based on machine learning according to claim 1 is characterized in that: The visual acquisition unit is a laser radar, and the environmental data is data representing the distance between the humanoid robot and the environmental point. When establishing the three-dimensional environmental model, a robot coordinate system is established, and the environmental point is drawn at a position corresponding to the environmental data in the robot coordinate system to form the three-dimensional environmental model.
3. The humanoid robot visual recognition and motion control method based on machine learning according to claim 1 is characterized in that: The machine learning model is a convolutional neural network model, which is pre-trained using training data. The machine learning model extracts shape data, size data and position data of the obstacle, compares the shape data, size data and position data with known obstacle categories, and takes the obstacle category with the highest similarity as the type of the obstacle.
4. The humanoid robot visual recognition and motion control method based on machine learning according to claim 3 is characterized in that: The machine learning model includes multiple parameters, and the parameters are obtained using a federated machine learning method.
5. The humanoid robot visual recognition and motion control method based on machine learning according to claim 1, characterized in that: The control mode includes an obstacle avoidance mode and a crossing mode. When there is a passable area outside the obstacle, the control mode selects the obstacle avoidance mode. When there is no passable area outside the obstacle, the control mode selects the crossing mode. In the crossing mode, the real-time height data of the foot is obtained.
6. The humanoid robot visual recognition and motion control method based on machine learning according to claim 1, characterized in that: The real-time height data of the foot is determined according to the length of the lower limbs of the humanoid robot and the angles of each joint.
7. The humanoid robot visual recognition and motion control method based on machine learning according to claim 1, characterized in that: The foot is provided with a plurality of pressure sensors, and the contact data is pressure data collected by the pressure sensors.
8. The humanoid robot visual recognition and motion control method based on machine learning according to claim 1, characterized in that: After the control mode is selected, the control mode is also sent to other humanoid robots within a certain range, and the other humanoid robots determine whether to execute the control mode according to their current positions.
Citation Information
Cited By
Multi-degree-of-freedom robot control method and system
CN120347783A
