Nut green peel fruit picking control method based on equivalent dynamic model and data fusion mechanism
Through the equivalent dynamic model and data fusion technology, the automatic identification and picking of nut green peel fruits is realized, which solves the problems of low picking efficiency and fruit tree damage in the existing technology, improves picking efficiency and accuracy, and reduces costs.
Patent Information
- Application Number
- CN202410812959.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-23
- Publication Date
- 2024-10-22
AI Technical Summary
The existing green-skin fruit picking technology has low efficiency, and the vibration machinery consumes a lot of energy, easily damages the roots of the fruit trees, and cannot realize automatic identification and automatic picking.
Adopting a green nut picking control method based on equivalent dynamic models and data fusion mechanisms, data are obtained through video acquisition devices and array phased radar recognition devices, image recognition and three-dimensional position modeling are performed, and robot picking routes are planned to achieve automated picking. .
It improves picking efficiency and accuracy, reduces picking costs, avoids wasting time of the robot moving back and forth, and ensures the safety of fruit trees.
Smart Images

Figure CN118809587A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of nut green-skin fruit picking control, and in particular to a nut green-skin fruit picking control method based on an equivalent dynamic model and a data fusion mechanism. Background Art
[0002] At present, domestic fruit picking operations are basically carried out manually. Fruit picking operations are highly seasonal, labor-intensive, and expensive, so ensuring timely and rapid fruit harvesting and reducing harvesting costs are issues that fruit farmers need to solve urgently to increase their income.
[0003] As the final actuator of the interaction between the nut picker and the external environment, the nut picking actuator has always attracted the attention of researchers. Especially in the field of agricultural robot research, due to the particularity of the robot's operating object, the research on the picking actuator has become one of the key technologies of the fruit picking robot.
[0004] At present, foreign countries adopt the structure of vibration picking machinery, which generally develops from a single fixed-stroke push-shaking machine to various types of orchard picking machinery such as inertial shaking machines and pneumatic shaking machines. However, its shaking method is single, and sufficient vibration force needs to be generated to shake the fruits off the branches of fruit trees, which often consumes a lot of energy and is not efficient. Its clamping position is at the bottom of the trunk, close to the roots of the fruit trees. Due to the large vibration power, it is easy to damage the roots of the fruit trees.
[0005] A Chinese patent with announcement number CN109548488B discloses a torsion-type nut picking robot and a nut picking method. This method uses a handheld device for picking, but still cannot achieve automatic detection and automatic picking, and the picking efficiency is low. Therefore, it is necessary to design a nut green-skin fruit picking control method based on an equivalent dynamic model and a data fusion mechanism for automatic identification and automatic picking. Summary of the invention
[0006] The purpose of the present invention is to provide a nut green-skin fruit picking control method based on an equivalent dynamic model and a data fusion mechanism, so as to solve the technical problem of low efficiency of existing nut green-skin fruit picking.
[0007] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0008] A method for picking green-skinned nuts based on an equivalent dynamic model and a data fusion mechanism comprises the following steps:
[0009] Step 1: Set up a video acquisition device and an array phased radar recognition device to collect data from the nut tree;
[0010] Step 2: Extract images from the collected video data and put the images into a two-dimensional coordinate system;
[0011] Step 3: Put the image with coordinate data into the equivalent dynamic model to identify the green-skinned nut and obtain the recognition result data;
[0012] Step 4: Fusing the recognition result data with the recognition data of the array phased radar recognition device to obtain a three-dimensional position model of the green-skinned nut;
[0013] Step 5: Plan a picking route for the robot based on the data of the three-dimensional position of the green-skinned nut in the plane;
[0014] Step 6: The controller controls the manipulator to pick the green-skinned nuts according to the route map;
[0015] Step 7: After picking some green nuts, the recognition video area moves and then the new area image is recognized to obtain the recognition result of the new area;
[0016] Step 8: Control the robot arm to continuously pick until all the green nuts on the tree are picked, and then pick another one.
[0017] Furthermore, in step 1: the video acquisition device and the array phased radar recognition device are both installed on a nut green fruit picking robot. After the picking robot arrives at the front of the nut tree, the video acquisition device and the array phased radar recognition device are turned on at the same time to collect data on the nut tree in front of the robot.
[0018] Furthermore, in step 2, the collected video data is cut into a plurality of images, and then the images are standardized, and the images are fused with two-dimensional coordinates to achieve coordinate marking for each pixel point of the image.
[0019] Furthermore, in step 3, the equivalent dynamic model includes a radar chart similarity algorithm preliminary recognition model and an improved LSTM neural network model. The radar chart similarity algorithm preliminary recognition model and the improved LSTM neural network model simultaneously recognize the image data, and the recognition results are complemented to obtain the final recognition result.
[0020] Furthermore, in step 4, the recognition result data is two-dimensional data coordinate data, which is then fitted with the three-dimensional data result data of the array phased radar recognition device. The two-dimensional coordinates of the recognition result data are fitted with the two-dimensional coordinates of a plane of the three-dimensional data result, and then the coordinate positions of the nuts and green fruits are adjusted to unify the coordinate positions of the two data results. The result data of the equivalent dynamic model recognition is used as the basis, and the other axial position is based on the result of the array phased radar recognition device recognition, to obtain the three-dimensional coordinate position of each nut and green fruit.
[0021] Furthermore, in step 5, when picking, the position point closest to the robot arm in the identification area is taken as the first picking point. Then, after picking, the position point closest to the first point is identified, and the position of the next picking point is calculated. Then all the picking points are connected, and each point is marked with a serial number to realize the picking route planning.
[0022] Furthermore, in step 6, the robot transfers the picked nuts to a nut storage box through a conveyor tube. After picking a nut, the robot does not need to be retracted, but moves directly to the next picking point for picking, thereby increasing the picking rate and avoiding wasting time by moving the robot back and forth.
[0023] Furthermore, in step 7, after some nuts in the identified area are picked, the picking robot moves with the video acquisition device and the array phased radar recognition device, and a new area will appear in the identified area. The video acquisition device and the array phased radar recognition device identify the position of the green nuts in the new area during the picking process, and add picking routes at the same time. The controller controls the robot to continue, and the picking order of the identification data of the new area is behind the previous identification data to avoid missing nuts and not picking them.
[0024] The present invention has the following beneficial effects due to the adoption of the above technical solution:
[0025] (1) The present invention integrates the equivalent dynamic model and phased radar recognition to make the recognition result more accurate, providing precise data support for picking nuts. At the same time, the recognized data is three-dimensional data. During the picking process, the position of the manipulator and the nuts is displayed in real time. The picking route is planned before picking to avoid omissions during the picking process. The picking efficiency is higher, the effect is better, and the cost of picking is reduced.
[0026] (2) Through environmental perception, deep reinforcement learning is used to establish an equivalent dynamic model and data fusion mechanism of green fruit and background leaves based on environmental characteristics, and to determine the optimal recognition strategy for green fruit. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of the control method of the present invention.
[0028] Figure 2 It is a flow chart of constructing an equivalent dynamic model of the present invention.
[0029] Figure 3 It is a structural principle diagram of the improved LSTM neural network model of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and preferred embodiments. However, it should be noted that many details listed in the specification are only for the purpose of enabling the reader to have a thorough understanding of one or more aspects of the present invention, and these aspects of the present invention can be implemented even without these specific details.
[0031] like Figure 1 As shown, a nut green-skin fruit picking control method based on an equivalent dynamic model and a data fusion mechanism is shown. The picking device of this method is a manipulator installed on a movable tracked trolley. The manipulator is a retractable structure, and the front end of the manipulator is a rotatable structure. After the nuts are rotated to remove them from the branches, they are lifted up, and the nuts flow along the pipeline to the storage device.
[0032] The method comprises the following steps:
[0033] Step 1: Set up a video acquisition device and an array phased radar recognition device to collect data from the nut tree. Both the video acquisition device and the array phased radar recognition device are installed on the nut green fruit picking robot. After the picking robot arrives at the front of the nut tree, the video acquisition device and the array phased radar recognition device are turned on at the same time to collect data from the nut tree in front of the robot. The video acquisition device uses a pan-tilt camera, and the array phased radar recognition device uses a CCD phased device for collection.
[0034] Step 2: Extract images from the collected video data and put the images into a two-dimensional coordinate system. The collected video data is cut into several images, and then the images are standardized and merged with the two-dimensional coordinates to achieve coordinate marking for each pixel in the image.
[0035] Step 3: Put the image with coordinate data into the equivalent dynamic model to identify the green-skinned fruit and obtain the recognition result data. The equivalent dynamic model includes the radar chart construction similarity algorithm preliminary recognition model and the improved LSTM neural network model. The radar chart construction similarity algorithm preliminary recognition model and the improved LSTM neural network model recognize the image data at the same time, and the recognition results are complemented to obtain the final recognition result.
[0036] like Figure 2 As shown in Figure 2, the process of constructing the equivalent dynamic model is:
[0037] Step 3.1: Obtain the three-dimensional data of individual nuts. Pick nuts of different sizes, use a video acquisition device to collect 360° stereo video data of the nuts, and establish three-dimensional coordinates. Put the acquired stereo video data of the nuts on the three-dimensional coordinates, add three-dimensional coordinate annotations to the stereo video data of the nuts, and then extract the stereo video data frame by frame to obtain a full range of characteristic coordinate image sets of the nuts. By obtaining the three-dimensional data of multiple nuts, try to obtain nuts of different sizes and structures when obtaining nuts, so as to achieve richer data and provide an accurate data source for later identification.
[0038] Step 3.2: Obtain data from all directions where the nuts and green peel fruits and the leaves of nuts branches and leaves block each other. The leaves of nuts branches and leaves are composed of several leaf branches, and each leaf branch has at least 2 leaves. According to the principle of step 1, collect the three-dimensional coordinate image set of each branch leaf and the characteristic coordinate image set of nuts and green peel fruits, put several three-dimensional coordinate images of branch leaves and the characteristic coordinate image of nuts and green peel fruits into the same three-dimensional coordinate, select an end face, and then randomly move and rotate the characteristic coordinate image of nuts and green peel fruits and several three-dimensional coordinate images of branch leaves to simulate the scene of nuts and green peel fruits hanging on the tree, provided that the characteristic coordinate image of nuts and green peel fruits can be seen on the end face or the coordinates of the characteristic coordinate image of nuts and green peel fruits are not completely blocked, and use each changing scene as the data source and case data source for the actual scene training of nuts and green peel fruits.
[0039] In the leaves of nut branches, generally a leaf is obtained separately. There are generally more than two leaves on the branches, for example, one part contains two leaves, one part contains three leaves, and one part contains four leaves, etc. The leaves are obtained according to the actual situation of the nut leaves, and the three-dimensional model data of multiple branches and leaves with different numbers of leaves are obtained. Then, the data of each different nut green fruit model in step 1 is used with the model data of all nut branches and leaves to simulate the actual situation of the nut green fruit hanging on the branch, so that the initial training and case data are increased by computer, and the scene image is quickly acquired, which greatly reduces the workload of manual actual image collection. At the same time, through data transformation simulation, the data source is enriched, providing more data sources for the later stage, which is incomparable to manual collection.
[0040] Step 3.3: Build a preliminary recognition model based on the radar chart by constructing a similarity algorithm. Perform feature recognition on each case data source, represent the feature data of each case data source as a case, standardize the feature data, and visualize the case. The specific process is as follows:
[0041] Step 3.3.1: For feature data X o The standardized formula is as follows:
[0042]
[0043] Where o = 1, 2, ..., θ, X′ o represents the normalized data, X o Represents the original value of each feature data;
[0044] Step 3.3.2: Consider each scene image as an evaluation index, and make each index evenly distributed on the radar chart, with X′ o As the evaluation index value, a radar chart is constructed, o = 1, 2, ..., θ;
[0045] Step 3.3.3: Summarize the feature data to obtain a case library. Use the statistical method to first count the frequency of each feature in the case library, then generate the order of scene image indicators in the radar chart in descending order of frequency, and then draw the features of each scene image in a counterclockwise uniform arrangement to obtain the scene image radar chart;
[0046] Step 3.3.4, grayscale the generated radar image based on OpenCV, denoted as I (i) , the formula is as follows:
[0047] I (i) (px,py)=0.299×R(px,py)+0.587×G(px,py)+0.114×B(px,py)
[0048] Where (px,py) represents the pixel position, R(px,py), G(px,py), and B(px,py) represent the pixel values of the red channel, green channel, and blue channel at the position (px,py), respectively;
[0049] Step 3.3.5: Use Otsu's adaptive thresholding method to binarize the image, denoted as Here’s how:
[0050] Calculate the normalized histogram of a grayscale image:
[0051] h(i′)=n i′ / N′
[0052] Where i′ represents the gray level 0, 1, 2, ..., L-1, L represents the gray level, the default is 256; n i′ is the number of pixels with gray value i′ in the image, N′ is the total number of pixels, that is, N′ is equal to N×N;
[0053] The mean grayscale value of the image foreground is u1, and the background is u2:
[0054]
[0055] Where t is the threshold, w1(t) and w2(t) are the weights of the foreground and background categories, respectively, and are defined as follows:
[0056]
[0057] Calculate the inter-class variance of the image foreground and background, that is, the square of the difference between the means of the two categories:
[0058] σ 2 (t)=w1(t)·w2(t)·(μ1(t)-μ2(t)) 2
[0059] Select the optimal threshold, among all possible gray levels i′, so that the between-class variance σ 2 (t) The maximum gray level is taken as the optimal threshold t:
[0060] t=argmax(σ 2 (t))
[0061] Use the optimal threshold t to transform the grayscale image I (i) Perform binarization to obtain a binary image
[0062]
[0063] in, Represents the pixel value at the position (px,py) in the binary image, I (i) (px,py) represents the pixel value at the corresponding position in the original grayscale image, and t is the selected threshold;
[0064] Step 3.3.6: Calculate the final difference between the two scene image radar images. Suppose any two binary scene image radar images are The difference is calculated as:
[0065]
[0066] Step 3.3.7: Generate a binary scene image radar map image from the collected image, and then compare it with the scene image radar map in the model library to obtain a comparison result.
[0067] The preliminary identification model is a fast preliminary identification of the collected data in the form of case comparison. The comparison speed is fast and the results are accurate. The overall result data is compared as a whole to achieve rapid output of comparison results.
[0068] Step 3.4: Input the collected data into the random process model to perform random data prediction and increase the data set. The collected data enters the random process model, and according to the linear principle, it is predicted to expand several extended data, and then the extended data and the collected data are mapped. Then the extended data and the collected data are summarized as the data to be identified, and the result weight of each data is set. The collected data is amplified to make the comparison results uniform, so as to avoid a special feature recognition falling into a special recognition result. By amplifying the recognition data, the output result data is homogenized, making the results more accurate, and can effectively filter out the situation where the green leaves block the green skin of the nuts.
[0069] Step 3.5: Design an improved and efficient LSTM neural network model for data recognition to avoid data gradient explosion. Figure 2 As shown, the LSTM neural network model includes a data input module, a data processing module, a data output module and an output data feature recognition module. The output end of the data input module is connected to the data processing module, the output end of the data processing module is connected to the data output module, the data output module is connected to the data processing module of t+1, the data output module is connected to the output data feature recognition module, and the input end of the output data feature recognition module is connected to the data processing module of t+2. The data processing module is used to memorize and forget information, and the output data feature recognition module is used to extract feature values from the output vector of the data processing module at time t, and then input it into the data processing module of t+2 to realize the re-memory of the processed data and improve the data processing efficiency.
[0070] The calculation process of the data processing module is:
[0071]
[0072] h t =o t *tanh(c t ) (6)
[0073] Among them, x t represents the input at time t, h t represents the hidden state value at time t, W with different subscripts represents the weights of different input values, and b with different subscripts represents the bias of different inputs. represents the cell state of the current input memory information, σ represents the gated activation function sigmoid, h′ t-2 Represents the feature of the hidden unit value at time t-2, W h-2 , b h-2 They represent the parameters and bias of the hidden unit value at time t-2 respectively. The improved LSTM neural network model can prevent the gradient from disappearing, has a faster convergence speed, and has stronger feature extraction and representation capabilities.
[0074] Step 3.6: Design the data acquisition input terminal, which is connected to the preliminary recognition model and the random process model respectively, and the output terminal of the random process model is connected to the improved and efficient LSTM neural network model to complete the model construction. The data acquisition input terminal is connected to the image acquisition terminal of the nut and green fruit picking equipment to obtain the collected data in real time.
[0075] Step 4: Fusion the recognition result data with the recognition data of the array phased radar recognition device to obtain a three-dimensional position model of the nut green fruit. The recognition result data is two-dimensional data coordinate data, and then it is fitted with the three-dimensional data result data of the array phased radar recognition device, and the two-dimensional coordinates of the recognition result data are fitted with the two-dimensional coordinates of a plane of the three-dimensional data result, and then the coordinate position of the nut green fruit is adjusted to unify the coordinate positions of the results of the two data, and the result data of the equivalent dynamic model recognition is used as the standard, and the other axial position is based on the result of the array phased radar recognition device recognition, and the three-dimensional coordinate position of each nut green fruit is obtained.
[0076] Step 5: Plan the route map for the robot to pick the fruit based on the three-dimensional position data of the green fruit in the plane. When picking, identify the point closest to the robot in the area as the first point to be picked, then identify the point closest to the first point after picking, and calculate the position of the next picking point, then connect all the picking points, and mark each point with a serial number to realize the picking route planning.
[0077] Step 6: The controller controls the manipulator to pick the green nuts according to the route map. The manipulator transfers the picked nuts to the nut storage box through the conveyor tube. After picking a nut, the manipulator does not need to be retracted, but moves directly to the next picking point for picking, which increases the picking rate and avoids wasting time by moving the manipulator back and forth.
[0078] Step 7: After picking some green-skinned nuts, the recognition video area moves and the new area image is recognized to obtain the recognition result of the new area. After some nuts in the recognition area are picked, the picking robot moves with the video acquisition device and the array phased radar recognition device, and a new area will appear in the recognized area. The video acquisition device and the array phased radar recognition device identify the position of the green-skinned nuts in the new area during the picking process, and at the same time increase the picking route. The controller controls the robot to continue, and the picking order of the recognition data of the new area is after the previous recognition data to avoid missing nuts.
[0079] Step 8: Control the robot to continuously pick until all the green-skinned fruits on the tree are picked, and then pick another one. By establishing the modeling and data fusion mechanism of the equivalent dynamic model of green-skinned fruits and background leaves, a compact dynamic data model based on environmental characteristics is established to obtain the best recognition strategy for green-skinned fruits. A crawler-type travel mechanism suitable for gentle slopes in hilly areas is designed, and the automatic picking of fruits is completed using a robot arm and a transmission system.
[0080] By integrating the equivalent dynamic model and phased radar recognition, the recognition result is more accurate, providing precise data support for picking nuts. At the same time, the recognized data is three-dimensional data. During the picking process, the position of the robot and the nuts is displayed in real time. The picking route is planned before picking to avoid omissions during the picking process. The picking efficiency is higher, the effect is better, and the cost of picking is reduced.
[0081] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A nut green fruit picking control method based on an equivalent dynamic model and a data fusion mechanism, characterized in that: The method comprises the following steps: Step 1: Set up a video acquisition device and an array phased radar recognition device to collect data from the nut tree; Step 2: Extract images from the collected video data and put the images into a two-dimensional coordinate system; Step 3: Put the image with coordinate data into the equivalent dynamic model to identify the green-skinned nut and obtain the recognition result data; Step 4: Fusing the recognition result data with the recognition data of the array phased radar recognition device to obtain a three-dimensional position model of the green-skinned nut; Step 5: Plan a picking route for the robot based on the data of the three-dimensional position of the green-skinned nut in the plane; Step 6: The controller controls the manipulator to pick the green-skinned nuts according to the route map; Step 7: After picking some green nuts, the recognition video area moves and then the new area image is recognized to obtain the recognition result of the new area; Step 8: Control the robot arm to continuously pick until all the green nuts on the tree are picked, and then pick another one.
2. According to claim 1, a nut green-skin fruit picking control method based on an equivalent dynamic model and a data fusion mechanism is characterized in that: In step 1: the video acquisition device and the array phased radar recognition device are both installed on the nut green fruit picking robot. After the picking robot arrives at the front of the nut tree, the video acquisition device and the array phased radar recognition device are turned on at the same time to collect data on the nut tree in front of the robot.
3. According to claim 1, a nut green-skin fruit picking control method based on an equivalent dynamic model and a data fusion mechanism is characterized in that: In step 2, the collected video data is cut into several images, and then the images are standardized and fused with two-dimensional coordinates to achieve coordinate marking for each pixel in the image.
4. According to claim 1, a nut green-skin fruit picking control method based on an equivalent dynamic model and a data fusion mechanism is characterized in that: In step 3, the equivalent dynamic model includes a radar chart similarity algorithm preliminary recognition model and an improved LSTM neural network model. The radar chart similarity algorithm preliminary recognition model and the improved LSTM neural network model recognize the image data at the same time, and the recognition results are complemented to obtain the final recognition result.
5. The method for picking green-skinned nuts based on an equivalent dynamic model and a data fusion mechanism according to claim 1 is characterized in that: In step 4, the recognition result data is two-dimensional data coordinate data, which is then fitted with the three-dimensional data result data of the array phased radar recognition device. The two-dimensional coordinates of the recognition result data are fitted with the two-dimensional coordinates of a plane of the three-dimensional data result, and then the coordinate position of the nut green fruit is adjusted to unify the coordinate positions of the two data results. The result data of the equivalent dynamic model recognition is used as the basis, and the other axial position is based on the result of the array phased radar recognition device recognition, and the three-dimensional coordinate position of each nut green fruit is obtained.
6. The method for picking green-skinned nuts based on an equivalent dynamic model and a data fusion mechanism according to claim 1 is characterized in that: In step 5, when picking, the position point closest to the robot arm in the identification area is used as the first picking point. After picking, the position point closest to the first point is identified, and the position of the next picking point is calculated. Then all the picking points are connected, and each point is marked with a serial number to realize the picking route planning.
7. The method for picking green-skinned nuts based on an equivalent dynamic model and a data fusion mechanism according to claim 1 is characterized in that: In step 6, the robot transfers the picked nuts to the nut storage box through the conveyor tube. After picking a nut, the robot does not need to be retracted, but moves directly to the next picking point for picking, thereby increasing the picking rate and avoiding wasting time by moving the robot back and forth.
8. The method for picking green-skinned nuts based on an equivalent dynamic model and a data fusion mechanism according to claim 1 is characterized in that: In step 7, after some nuts in the identified area are picked, the picking robot moves with the video acquisition device and the array phased radar recognition device, and a new area will appear in the identified area. The video acquisition device and the array phased radar recognition device identify the position of the green-skinned fruits in the new area during the picking process, and add picking routes at the same time. The controller controls the robot to continue, and the picking order of the identification data of the new area is after the previous identification data to avoid missing nuts and not picking them.
Citation Information
Patent Citations
Intelligent agricultural robot and control method thereof
CN110692352A
State monitoring method and system for aircraft flap control system
CN111086646A
Mechanical arm fruit intelligent picking device based on radar array and RGB-D camera fusion positioning and control method of mechanical arm fruit intelligent picking device
CN116872207A
Fruit picking system based on ai technology
CN117044497A
Multi-angle picking head
CN211982676U
Cited By
Automatic and rapid picking method for nut green peel fruits in hilly areas
CN119344091A
Automatic and rapid picking method of nut green husk fruit in hilly area
CN119344091B
