An intelligent food-taking system for dining-assisting robots based on point cloud technology
Through the intelligent feeding system based on point cloud technology, using depth cameras and point cloud processing algorithms, the problem of inaccurate position acquisition during the feeding process of the meal assistant robot is solved, achieving efficient and accurate food feeding, and improving the success of feeding. rate and data processing quality.
Patent Information
- Application Number
- CN202410082012.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-01-19
AI Technical Summary
It is difficult for existing food-assisted robots to accurately obtain the location of food during the food-taking process, resulting in a high food-taking failure rate.
An intelligent feeding system based on point cloud technology is adopted, including a depth camera to obtain point cloud images, and the optimal segmentation surface of food is obtained in real time through point cloud plane fitting, straight-through filtering, voxel filtering and point cloud segmentation algorithm based on region growing. and feeding sites.
It achieves real-time and accurate acquisition of food-taking locations, improves the success rate of food-taking by meal-assisted robots, reduces point cloud data complexity and noise, and improves processing efficiency and data quality.
Smart Images

Figure CN117644525B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robots, and in particular to an intelligent food-taking system for a dining-assisting robot based on point cloud technology. Background Art
[0002] As the aging trend in my country has become increasingly serious in recent years, the number of nursing staff is no longer proportional to the number of elderly people who need care. However, my country attaches great importance to the development of rehabilitation assistive devices, and rehabilitation service robots have received strong technical and economic support from the state and government. At the same time, with the rise of artificial intelligence technology, human willingness to use nursing robots to serve the elderly has also begun to increase.
[0003] Foreign dining assistance robots have been developed continuously since the first generation of dining assistance robots Handy1 in the 1990s. Commercial dining assistance robots include My Spoon from Japan and OBI from the United States, which can help the elderly and patients with upper limb function to eat independently. The emergence of dining assistance robots helps users complete the eating process independently and reduces dependence on caregivers, allowing caregivers to devote more time and energy to other important nursing work and improve the quality of care.
[0004] The development of meal-assistance robots in China started late, and there is currently no complete commercial meal-assistance robot. The development of artificial intelligence and intelligent visual interaction technology have been applied in meal-assistance robots. An intelligent meal-assistance robot that helps users obtain food independently can provide more sophisticated and intelligent services and improve the quality of life of the elderly.
[0005] The application of intelligent visual interaction technology in meal-assist robots is a very important development direction. With the continuous innovation and progress of technology, meal-assist robots will play an increasingly important role and become an indispensable part of the daily life of the elderly. The development of artificial intelligence and intelligent visual interaction technology are applied in meal-assist robots. An intelligent meal-assist robot that helps users obtain food independently can provide more sophisticated and intelligent services and improve the quality of life of the elderly. At the same time, the application of these technologies is also expected to promote the rapid development of the rehabilitation assistive device industry and provide the society with more high-quality nursing and care services.
[0006] Therefore, technicians in this field are committed to developing an intelligent food-taking system for dining-assisting robots based on point cloud technology, which can provide more sophisticated and intelligent services, improve the quality of life of users, promote the rapid development of the rehabilitation assistive device industry, and provide more high-quality nursing and care services for the society. Summary of the invention
[0007] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is to obtain the feeding position in real time and accurately, to ensure that the dining-assisting robot accurately takes the food in the bowl and to improve the feeding success rate.
[0008] To achieve the above objectives, the present invention provides an intelligent food-taking system for a dining-assisting robot based on point cloud technology, comprising a recognition module, a point cloud processing module and a calculation and analysis module, which uses point cloud technology to obtain a food-taking position.
[0009] Furthermore, the recognition module includes a depth camera to acquire a point cloud image.
[0010] Furthermore, the point cloud processing module includes point cloud plane fitting data removal, point cloud through filtering, point cloud voxel filtering, and point cloud segmentation based on region growing.
[0011] Furthermore, the calculation and analysis module obtains the optimal food segmentation surface and returns the feeding point.
[0012] Furthermore, the point cloud plane fitting data removal adopts a random sampling consistent model parameter estimation algorithm to perform plane fitting processing on the point cloud image to remove the plane point cloud data and reduce the amount of point cloud data.
[0013] Furthermore, the point cloud is directly filtered to remove noise and crop data.
[0014] Furthermore, the point cloud voxel filtering smoothes the data and reduces data complexity.
[0015] Furthermore, the point cloud segmentation based on region growing segments the stacked food to obtain the optimal feeding surface.
[0016] Further, the following steps are included:
[0017] Step 1: The depth camera obtains point cloud information;
[0018] Step 2: plane fitting to remove edge information;
[0019] Step 3: direct filtering;
[0020] Step 4: Voxel filtering;
[0021] Step 5: segment the point cloud based on region growing to obtain the optimal segmentation surface;
[0022] Step 6: Get the center feeding point of the segmentation surface.
[0023] Furthermore, it includes ROS robot operating system.
[0024] In the preferred embodiment of the present invention, the existing dining assistance robots mostly adopt fixed trajectories to pick up food, and the lack of precise feeding points often leads to feeding failures. The present invention uses point cloud technology to obtain the feeding position in real time and accurately. The 3D point cloud image of block food is obtained in real time through a depth camera, and a series of algorithms such as plane fitting, point cloud filtering and point cloud segmentation based on region growth are used to obtain a suitable food segmentation surface, and the optimal feeding point is calculated on the segmentation surface.
[0025] In view of the complex dining environment, it is necessary to remove the point cloud information outside the dining bowl. The present invention performs plane fitting processing on the complete point cloud image to remove the plane point cloud data and reduce the amount of point cloud data. The random sampling consensus (RANSAC) model parameter estimation algorithm is adopted to randomly select a group of points as the initial sample set, and fit the plane model according to the initial sample set. The point cloud information of the plane dining table part in the identification point cloud image is obtained by plane fitting, and then the fitting point cloud data of this part of the plane is removed, and the point cloud of the dining bowl and food part is retained to reduce the point cloud data.
[0026] The amount of point cloud data is too large, which leads to time-consuming calculations and large memory usage. The present invention uses point cloud direct filtering to remove noise and crop data; point cloud voxel filtering is used to smooth data and reduce data complexity. Use direct filtering to remove the range to read the point cloud data and create a point cloud object, set the filter range, and define a minimum and maximum value for each coordinate axis (x, y, z). Only points within this range will be retained. Create a direct filter object and set the filter range. Apply the direct filter to the point cloud object to remove points beyond the specified range and retain the feature information in the point cloud. Use voxel filtering to discretize the point cloud space according to the coordinate axis to form a three-dimensional grid structure, namely a voxel grid. In each voxel, a representative point is selected as the representative of the voxel. Usually, the center point or center of gravity of all points in the voxel is calculated. The representative points finally obtained constitute the point cloud after voxel filtering, which realizes downsampling and noise reduction of the point cloud data and quickly reduces the density of the point cloud.
[0027] The food stacked in the bowl is difficult to segment. The present invention uses a regional growing point cloud segmentation algorithm to segment the stacked food and obtain the optimal feeding surface. A point is selected from the preprocessed point cloud data as a seed point to start with to construct the initial region; starting from the seed point, the region is continuously expanded in an iterative manner until a certain stop condition is met. The growth criterion of the normal vector is adopted, and each point corresponds to a normal vector. Assuming that the normal vector of the current region is N1, and the normal vector of the new point to be added is N2, the following formula can be used to calculate their angle cos(θ): cos(θ) = N1·N2 / |N1||N2|. Among them, N1·N2 represents the dot product of N1 and N2, |N1| and |N2| represent the modulus lengths of N1 and N2 respectively, and if cos(θ) is less than or equal to the threshold, the new point is added to the current region; each region finally obtained is screened to obtain the most suitable feeding surface and returned for subsequent analysis and application.
[0028] Compared with the prior art, the present invention has the following obvious substantial features and significant advantages:
[0029] 1. The present invention obtains the coordinate points of the feeding position in real time and accurately, ensuring that the dining-assisting robot accurately takes the food in the bowl and improving the success rate of feeding.
[0030] 2. The present invention removes data points outside the specified range (such as the point cloud information of the flat dining table) and only retains data points that meet the conditions; this helps to reduce the density and complexity of the point cloud data and improve processing efficiency.
[0031] 3. The present invention realizes data smoothing and data downsampling, thereby improving data quality and facilitating subsequent point cloud analysis and application.
[0032] 4. The present invention segments the food point cloud information of the food stacked in the bowl based on the point cloud segmentation algorithm of region growth, so as to obtain different segmentation surfaces of the food and calculate the optimal feeding surface to facilitate the acquisition of the optimal feeding point and accurate and real-time feeding.
[0033] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a schematic diagram of a point cloud visual interaction system of a dining assistance robot according to a preferred embodiment of the present invention;
[0035] Figure 2 This is a flow chart of an intelligent food-taking system for a dining-assisting robot according to a preferred embodiment of the present invention;
[0036] Figure 3This is a schematic diagram of a scene in which a dining assistance robot assists in recognizing food according to a preferred embodiment of the present invention;
[0037] Figure 4 This is a flow chart of point cloud segmentation based on region growing according to a preferred embodiment of the present invention;
[0038] Figure 5 It is a flow chart of calculating and analyzing the optimal feeding surface and feeding point in a preferred embodiment of the present invention.
[0039] Among them, 11-recognition module, 12-point cloud processing module, 13-computing and analysis module, 31-robotic arm, 32-depth camera, 33-food in the bowl, 34-dining table. DETAILED DESCRIPTION
[0040] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.
[0041] In the drawings, components with the same structure are indicated by the same numerical reference numerals, and components with similar structures or functions are indicated by similar numerical reference numerals. The size and thickness of each component shown in the drawings are arbitrarily shown, and the present invention does not limit the size and thickness of each component. In order to make the illustration clearer, the thickness of the components is appropriately exaggerated in some places in the drawings.
[0042] An intelligent food-taking system for a dining-assisting robot based on point cloud technology, including a depth camera, a 3D point cloud module, a development board for deploying intelligent algorithms, a motor drive device and other components, through which the above devices can be used to obtain a real-time point cloud map and return the food-taking coordinate points in real time;
[0043] like Figure 1 The intelligent feeding system of a dining-assisting robot based on point cloud technology is shown, including a recognition module 11 for obtaining point cloud images with a depth camera, a point cloud processing module 12 including point cloud plane fitting data removal, point cloud through filtering, point cloud voxel filtering, and point cloud segmentation based on growth areas, and a calculation and analysis module 13 for optimal food segmentation surface and feeding point return. In the case of the dining-assisting robot feeding block food, the intelligent recognition and feeding method is as follows Figure 2 As shown, the specific steps are as follows:
[0044] Step 1: A schematic diagram of the implementation scenario of an intelligent feeding system for a dining robot based on point cloud technology is shown in the figure below. Figure 3As shown, a depth camera 32 located on the robotic arm 31 of the dining assistance robot takes real-time photos of the food 33 in the bowl to obtain a 3D point cloud image of the food. The point cloud image obtained in real time includes not only the bowl, but also the food point cloud information of the dining table 34 and various surrounding noise point cloud information. The point cloud image needs to be further processed.
[0045] Step 2: Perform plane fitting on the acquired complete point cloud image, and use the random sampling consensus (RANSAC) model parameter estimation algorithm to fit data containing noise or outliers. In the plane fitting problem, it is required to find a plane model that can best approximate the given point set and exclude possible outliers. Specifically, the plane can be expressed in the form of Ax+By+Cz+D=0, where A, B, C, and D are the parameters to be determined, and x, y, and z are the coordinates of the points.
[0046] The RANSAC plane fitting algorithm includes the following:
[0047] Random sampling: A certain number of points are randomly selected from the input point cloud. These points form an inward convex hull, that is, there are no other points in the area enclosed by these points. These points are called "inliers".
[0048] Parameter estimation: Calculate the plane parameters a, b, c and d based on the interior points, using methods such as the least squares method. Based on the set of interior points obtained by random sampling, the least squares method can be used to calculate the parameters of the fitting plane. For each interior point (xi, yi, zi), the equation can be constructed:
[0049] axi+byi+czi+d=0
[0050] Then, the distance Di from each inner point to the fitting plane and the fitting error can be calculated. For the plane fitting problem, each point (xi, yi, zi) can be substituted into the plane equation ax+by+cz+d=0 and its distance D to the plane can be calculated. i :
[0051]
[0052] The parameters a, b, c, and d are estimated by minimizing the sum of squares of the fitting errors and calculating the distance D from each inner point to the fitting plane. i Substitute this into the definition of the fitting error and then construct the minimization problem:
[0053]
[0054] Model verification: For all points in the point set, calculate the distance from the point to the fitting plane. If the distance from the point to the plane is less than the threshold T, the point is classified as an "inside point", otherwise it is classified as an "outside point". The threshold T can be determined based on the specific point cloud image information obtained;
[0055] Inlier screening: record the number of inliers under the current model. If the number of inliers is greater than the threshold K, the current model is considered reasonable and the model and the corresponding inliers are saved. Otherwise, start again from step 1 and randomly sample a new point set.
[0056] Model selection: The model with the most inliers is selected as the final model among all the obtained models;
[0057] It should be noted that the core idea of the RANSAC algorithm is to generate a hypothesis model through random sampling, and optimize and verify the model through iteration to obtain the optimal model. Since the algorithm can exclude some outliers, it has good robustness when processing data containing noise or outliers, and obtains plane point cloud information other than the bowl and food, such as Figure 3 As shown, the point cloud information of the dining table 34 can be obtained by plane fitting, and the point cloud data obtained by plane fitting is removed, and only the point cloud information of the food 33 in the bowl is retained.
[0058] Step 3: Filter the point cloud image obtained in step 2. First, use direct filtering to process the point cloud data simply and quickly. The steps of point cloud direct filtering are as follows:
[0059] Create an empty output point cloud object and take the point cloud data to be filtered as input;
[0060] Set the filter range, that is, specify an axis and a range, and set the minimum value (min_x, min_y, min_z) and maximum value (max_x, max_y, max_z) for each coordinate axis (x, y, z);
[0061] Traverse each point in the input point cloud;
[0062] For each point, check whether its value on the coordinate axis (x, y, z) is within the specified range (that is, whether it is between [min_x, max_x], [min_y, max_y] [min_z, max_z]);
[0063] If the coordinates of a point are within the specified range, the point is added to the output point cloud;
[0064] The final output point cloud is the result after straight-through filtering;
[0065] Through filtering can filter different axes according to different needs, limit the range of the Z axis in the acquired point cloud image, and can be used to remove abnormal points and extract point cloud data in the area of interest by performing through filtering on the point cloud image. It helps to filter out points in the point cloud except the dimensions of the bowl and the food therein, remove noise point clouds, and better focus on the point cloud area of interest.
[0066] Step 4: Based on the point cloud image processed in step 3, the voxel filtering method is continued to downsample the point cloud data, and the point cloud data is divided into voxels (or grid units), and the point cloud data in each voxel is represented by a representative point, so as to achieve the purpose of reducing the density of the point cloud data. The steps of point cloud voxel filtering include:
[0067] Create an empty output point cloud object and take the point cloud data to be filtered as input;
[0068] Set the size of the voxel. For each point (x, y, z) in the point cloud space, calculate the voxel grid coordinates (i, j, k) where it is located as follows:
[0069]
[0070] Where (x min, y min, z min ) is the minimum coordinate of the point cloud space, Δx, Δy, Δz are the sizes of the voxel grid.
[0071] The input point cloud data is divided into voxels, and the boundary of each voxel is determined by the size of the voxel;
[0072] For each voxel grid (i, j, k), take a point that represents the grid in the grid, calculate the average position of all points in the voxel, and use the average position as the representative point of the voxel;
[0073] Add representative points of all voxels to the output point cloud;
[0074] The final output point cloud is the result of voxel filtering. The density of the point cloud data is reduced while retaining the overall shape and structure.
[0075] Voxel filtering can effectively reduce the amount of point cloud data, reduce computing and storage overhead, and also help remove some noise points. It is used in the point cloud data preprocessing stage to improve the efficiency and stability of subsequent algorithms. The size of voxels is reasonably set according to actual needs to balance the relationship between the accuracy and density of point cloud data.
[0076] By dividing the point cloud data into a regular cubic network (voxels) and smoothing the point cloud according to the number of points in each voxel, the point cloud is more suitable for subsequent processing and analysis, and the point cloud is downsampled and denoised to maintain the overall shape and structural characteristics of the point cloud.
[0077] Step 5: After a series of point cloud data preprocessing, the processed point cloud image is segmented based on the region growing algorithm to obtain the segmentation surface of the block food in the bowl. The optimal segmentation surface obtained by segmentation is selected. The main idea of the point cloud segmentation algorithm based on region growing is to start from a seed point and gradually merge the points adjacent to the seed point until a certain stopping criterion is met, thereby obtaining different point cloud clusters.
[0078] Specifically, the point cloud segmentation algorithm of region growing is as follows Figure 4 As shown, the following steps can be followed:
[0079] Selection of seed points: After preprocessing the point cloud data, a point is selected from the preprocessed point cloud data as a seed point to construct the initial area;
[0080] Region growth: Starting from the seed point, the region is continuously expanded in an iterative manner until a certain stopping condition is met. The growth process usually uses the distance between points, normal vector and other attributes to determine whether to add new points to the current region. The normal vector growth criterion is used to add points whose normal vector angles with the points in the current region are less than the threshold to the region.
[0081] Among them, the normal vector criterion in region growing is to determine whether to add a new point to the region by calculating the angle between the normal vectors of the current point to be added and all the points in the current region. Specifically, each point corresponds to a normal vector. Assuming that the normal vector of the current region is N1 and the normal vector of the new point to be added is N2, the following formula can be used to calculate their angle cos(θ):
[0082] cos(θ)=N1·N2 / |N1||N2|
[0083] Where N1·N2 represents the dot product of N1 and N2, |N1| and |N2| represent the modulus lengths of N1 and N2 respectively. If cosθ is less than or equal to the threshold, the new point is added to the current region.
[0084] Post-processing: Some post-processing operations can be performed on each region obtained in the end to calculate the center, normal vector, area and other features of the region for subsequent analysis and application;
[0085] In general, the point cloud segmentation algorithm based on region growing starts from the seed point, gradually expands the region according to certain criteria, and merges the regions according to the similarity between regions, thereby dividing the point cloud into different regions. This method can effectively separate the point cloud data into regions with different attributes or belonging to different objects for further analysis and processing.
[0086] Step 6: Then get the center point on the optimal segmentation plane and return the six-dimensional coordinate point of the point, such as Figure 5 As shown, several segmentation surfaces are obtained by segmenting the point cloud, and each segmentation surface can be expressed in the form of Ax+By+Cz+D=0, where A, B, C and D are parameters of the segmentation surface;
[0087] First, traverse all the segmentation surfaces, find the point closest to the camera for each segmentation surface, and record the minimum distance and the corresponding segmentation surface. After the traversal is completed, the segmentation surface closest to the camera can be obtained;
[0088] Next, the six-dimensional coordinates of the dividing surface are returned. The six-dimensional coordinates usually include the three-dimensional spatial coordinates (x, y, z) of the nearest point and three attitude angles (roll, pitch, yaw). The motor drive device uses the end-effector tableware to clamp according to the returned optimal feeding coordinate point to achieve autonomous feeding.
[0089] The food processing detection system is mainly composed of depth cameras, embedded development boards, displays and other components. In addition to the construction of the detection system, the establishment of the software development environment of the detection system is also required to complete the intelligent food recognition and feeding system. The embedded development board uses the Linux-based Ubuntu operating system and builds the ROS robot operating system in it. The system is used to build the algorithm development environment and use the ROS publish-subscribe model to communicate with the control system of the robotic arm.
[0090] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. An intelligent food-taking system for a dining-assisting robot based on point cloud technology, characterized in that: It includes a recognition module, a point cloud processing module and a calculation and analysis module, and uses point cloud technology to obtain the feeding position; The recognition module includes a depth camera to obtain a point cloud image; the point cloud image includes point cloud information of the bowl, food, table, and various surrounding noises; The point cloud processing module includes point cloud plane fitting data removal, point cloud through filtering, point cloud voxel filtering, and point cloud segmentation based on region growth; the point cloud plane fitting data removal is used to obtain point cloud information of the dining table through plane fitting, remove the point cloud data obtained by plane fitting, and only retain the point cloud information of the food in the bowl; The point cloud segmentation based on region growing is used to segment the stacked food to obtain the optimal feeding surface, including: selecting a point in the point cloud data as a seed point to start with, for constructing an initial region; Starting from the seed point, the region is continuously expanded in an iterative manner, using the normal vector criterion; by comparing the similarities between different regions, the regions that meet the conditions are merged; and post-processing operations are performed on the regions; The calculation and analysis module obtains the optimal food segmentation surface and returns the feeding point.
2. The intelligent food-taking system for a dining-assisting robot based on point cloud technology according to claim 1, characterized in that: The point cloud plane fitting data removal adopts a random sampling consistent model parameter estimation algorithm to perform plane fitting processing on the point cloud image to remove the plane point cloud data and reduce the amount of point cloud data.
3. The intelligent food-taking system for a dining-assisting robot based on point cloud technology according to claim 1, characterized in that: The point cloud is directly filtered to remove noise and crop the data.
4. The intelligent food-taking system for a dining-assisting robot based on point cloud technology according to claim 1, characterized in that: The point cloud voxel filtering smoothes the data and reduces data complexity.
5. The intelligent food-taking system for a dining-assisting robot based on point cloud technology according to claim 1, characterized in that: The following steps are involved: Step 1: The depth camera obtains point cloud information; Step 2: plane fitting to remove edge information; Step 3: direct filtering; Step 4: Voxel filtering; Step 5: segment the point cloud based on region growing to obtain the optimal segmentation surface; Step 6: Get the center feeding point of the segmentation surface.
6. The intelligent food-taking system for a dining-assisting robot based on point cloud technology according to claim 1, characterized in that: Includes the ROS robot operating system.
