Intelligent agricultural machinery operation area measurement method based on Beidou positioning
Through the Beidou positioning system and vector buffer algorithm, the traditional manual measurement of agricultural machinery operating area is time-consuming and low-precision problems are solved, and accurate operating area calculation and driving trajectory optimization of irregular large-area farmland are achieved, improving the efficiency of agricultural production management. efficiency and quality.
Patent Information
- Application Number
- CN202410882882.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Traditional manual measurement of agricultural machinery operating area is time-consuming and has low accuracy. It is difficult to accurately calculate the operating efficiency of irregular large-area farmland, which affects agricultural production management.
The Beidou positioning system is used to record agricultural machinery trajectory data. Through path planning, preprocessing, rasterization and vector buffer algorithms, the agricultural machinery operating area, re-cultivation area and missed cropping area are calculated, and the driving trajectory is optimized to improve measurement accuracy.
It improves the accuracy of agricultural machinery operation area measurement, reduces labor intensity, improves operation quality and efficiency, and provides accurate operation paths and area calculations.
Smart Images

Figure CN118424167B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart agricultural technology, and in particular to a method for measuring the operating area of smart agricultural machinery based on Beidou positioning. Background Art
[0002] With the improvement of the domestic agricultural mechanization level and the expansion of agricultural machinery scale, agricultural machinery intelligent driving technology has been widely used in agricultural production, and the whole process of field operation has been basically mechanized. In field operation services, the agricultural machinery operation area is very important information, which is the basis for subsidy issuance, fee collection, efficiency evaluation, etc. The traditional manual measurement method has problems such as time-consuming, waste of manpower, low measurement accuracy, and difficulty in measuring large areas of irregular farmland. Accurate and effective calculation of the operation area is an urgent need for agricultural machinery management departments and agricultural machinery cooperative managers. In response to the problem of irregular large-scale operation of agricultural machinery, by carrying out measurement equipment, providing users with agricultural machinery operation trajectory information, restoring the actual driving trajectory of agricultural machinery in real time, and calculating the actual operation area, re-cropping area and missed cropping area of agricultural machinery, the operation efficiency of agricultural machinery is evaluated and guided by agricultural production operations. It is a problem that deserves attention and needs to be solved. Summary of the invention
[0003] The present invention overcomes the shortcomings of the prior art and provides a method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning.
[0004] To achieve the above object, the technical solution adopted by the present invention is:
[0005] The first aspect of the present invention provides a method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning, which specifically includes the following steps:
[0006] Path planning for irregular agricultural machinery operation areas;
[0007] Let the agricultural machinery drive along the planned trajectory and collect the agricultural machinery trajectory point data recorded by the Beidou satellite positioning system, and pre-process the collected agricultural machinery trajectory point data;
[0008] Constructing a ridge width track working surface according to the agricultural machinery operation track point data, rasterizing the agricultural machinery operation area, obtaining a grid matrix, and obtaining an overlay result of the ridge width working surface and the grid matrix based on the grid matrix and the ridge width track working surface;
[0009] The agricultural machinery operation area, the re-cropping area and the missed cropping area are calculated according to the superposition result of the ridge width operation surface and the grid matrix.
[0010] Furthermore, in this method, path planning is performed for irregular agricultural machinery operation areas, specifically including:
[0011] Determine the polygonal area of agricultural machinery operation, the driving direction, the longitude coordinates of the starting point, the latitude coordinates of the starting point, the longitude coordinates of the end point, and the latitude coordinates of the end point, and rotate the polygonal area of agricultural machinery operation clockwise according to the driving direction angle to generate a set of parallel lines with a spacing of one agricultural machinery operation width from the Y-axis direction;
[0012] Find the intersection of the parallel lines and the indented polygon, connect the intersections, and construct the driving trajectory. At the same time, introduce the hybrid A* algorithm and use it to optimize the U-turn trajectory. Discretize the feasible space into a grid space, use the RS curve or Dubins curve to connect the current node and the target node, and perform collision detection on the trajectory. If there is no collision, end the search; if there is a collision, abandon the curve, find the node again from the OpenList, continue searching, and obtain the optimized driving trajectory.
[0013] The Voronoi field value, obstacle distance penalty term, curvature penalty term and smoothness term of the path point are set, and a multi-objective function is constructed. The extreme value of the objective function is obtained by the gradient descent method, and the driving trajectory after secondary optimization is obtained, and the driving trajectory after secondary optimization is used as the final driving trajectory.
[0014] Furthermore, in this method, the multi-objective function satisfies the following relationship:
[0015] ;
[0016] In the formula, is the potential field value of each point in the Voronoi potential field diagram; is the maximum allowed curvature of the path (defined by the turning radius of the car); and is the penalty function; , , , is the weight; Represents the coordinate value of the i-th node; , ; represents the maximum distance affected by the Voronoi potential field, where ; is the optimized driving trajectory; Represents the coordinates of the nearest obstacle near the i-th node.
[0017] Furthermore, in this method, the collected trajectory point data is preprocessed, specifically including:
[0018] A Gauss-Krüger projection method is introduced to convert the collected trajectory point data into coordinates in a plane rectangular coordinate system, and a Kalman filter algorithm is used to filter the coordinates in the plane rectangular coordinate system;
[0019] When initializing state estimation, an initial state estimation vector and an initial state estimation covariance matrix are set, and a state estimation vector and a state estimation covariance matrix at the next moment are estimated by using a dynamic model in a Kalman filter algorithm according to the initial state estimation vector and the initial state estimation covariance matrix;
[0020] The measurement value of the system state is predicted using the observation matrix and the state estimation vector at the next moment. At the same time, the state estimation covariance matrix at the next moment and the measurement noise covariance matrix of the observation matrix are used to calculate the Kalman gain matrix.
[0021] Calculate the residual between the actual measurement value and the measurement value of the system state, obtain the observation residual, use the observation residual, the Kalman gain matrix and the measurement value of the system state to update the state value at the current moment, and update the covariance matrix of the system state to obtain the processed trajectory point data.
[0022] Furthermore, in this method, constructing a ridge width trajectory operation surface according to the agricultural machinery operation trajectory point data specifically includes:
[0023] A vector buffer algorithm is introduced, and the processed agricultural machinery operation trajectory point data is calculated by the vector buffer algorithm, and the agricultural machinery operation trajectory points are sequentially connected in chronological order to generate an operation trajectory line, and a primitive line segment set of the operation trajectory line is obtained;
[0024] Taking each primitive line segment in the primitive line segment set of the operation trajectory line as an axis, the buffer distance is translated vertically to both sides thereof to generate a local buffer zone of each primitive line segment. Except that the first and the last parts of the primitive line segment are fitted with a flat head, the starting points of the remaining primitive line segments are fitted with an arc, and the tails are fitted with a flat head;
[0025] The local buffers of the primitive line segments are intersected and merged in sequence to generate a complete agricultural machinery operation trajectory buffer, and the complete agricultural machinery operation trajectory buffer is output as a ridge width trajectory operation surface.
[0026] Furthermore, in this method, the agricultural machinery operation area is gridded to obtain a grid matrix, and the superposition result of the agricultural machinery ridge width operation surface and the grid matrix is obtained based on the grid matrix and the ridge width trajectory operation surface, specifically:
[0027] The working area is rasterized, and a grid matrix is used to represent the agricultural machinery working area. The grid matrix is obtained, and the agricultural machinery ridge width working surface and the grid matrix are overlaid and analyzed. The overlapping area and the non-overlapping area are assigned values to obtain the overlay result of the agricultural machinery ridge width working surface and the grid matrix.
[0028] Furthermore, in this method, the agricultural machinery operation area, the replanting area and the missed planting area are calculated according to the superposition result of the ridge width operation surface and the grid matrix, specifically:
[0029] The overlapping area and the non-overlapping area are counted according to the superposition result of the ridge width working surface and the grid matrix, and the agricultural machinery working area, the re-cropping area and the missed cropping area are calculated based on the overlapping area and the non-overlapping area.
[0030] The second aspect of the present invention provides an intelligent agricultural machinery operating area measurement system based on Beidou positioning, the system comprising a memory and a processor, the memory comprising an intelligent agricultural machinery operating area measurement method program based on Beidou positioning, and when the intelligent agricultural machinery operating area measurement method program based on Beidou positioning is executed by the processor, any step of the intelligent agricultural machinery operating area measurement method based on Beidou positioning is implemented.
[0031] The third aspect of the present invention provides an intelligent agricultural machinery operation area measuring device based on Beidou positioning, comprising:
[0032] Planning module, used for path planning in irregular agricultural machinery operation areas;
[0033] A preprocessing module is used to allow the agricultural machinery to travel according to the planned trajectory and collect the agricultural machinery trajectory point data recorded by the Beidou satellite positioning system, and preprocess the collected agricultural machinery trajectory point data;
[0034] An analysis module is used to construct a ridge width track working surface according to the agricultural machinery operation track point data, rasterize the agricultural machinery operation area, obtain a grid matrix, and obtain an overlay result of the ridge width working surface and the grid matrix based on the grid matrix and the ridge width track working surface;
[0035] The calculation module is used to calculate the agricultural machinery operation area, the re-cultivation area and the missed cultivation area according to the superposition result of the ridge width operation surface and the grid matrix.
[0036] The fourth aspect of the present invention provides a computer-readable storage medium, which includes a program for an intelligent agricultural machinery operating area measurement method based on Beidou positioning. When the program for the intelligent agricultural machinery operating area measurement method based on Beidou positioning is executed by a processor, the steps of any one of the methods for measuring the operating area of intelligent agricultural machinery based on Beidou positioning are implemented.
[0037] The present invention solves the defects existing in the background technology and has the following beneficial effects:
[0038] The intelligent agricultural machinery operating area measurement method based on Beidou positioning provided by the present invention can improve the accuracy of agricultural machinery operating area measurement by adopting the above-mentioned technical scheme, and can obtain relatively accurate operating paths and operating areas, which is conducive to reducing labor intensity, improving operation quality and improving labor efficiency, and provides certain technical guidance for future research and application. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, drawings of other embodiments can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A flow chart of a method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning provided by the present invention;
[0041] Figure 2 This is a flow chart of the path planning for the agricultural machinery operation area of the present invention;
[0042] Figure 3 This is a schematic diagram of the path planning results of the agricultural machinery operation area of the present invention;
[0043] Figure 4 A schematic diagram of a vector buffer algorithm of the present invention;
[0044] Figure 5 It is a schematic diagram of the partial superposition result of the present invention;
[0045] Figure 6 The system block diagram of the intelligent agricultural machinery operation area measurement system based on Beidou positioning is shown;
[0046] Figure 7 A schematic diagram of intelligent agricultural machinery operation area measurement equipment based on Beidou positioning is shown. DETAILED DESCRIPTION
[0047] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0048] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0049] The first aspect of the present invention provides a method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning, which specifically includes the following steps:
[0050] S102: Path planning for irregular agricultural machinery operation areas;
[0051] S104: allowing the agricultural machinery to travel along the planned trajectory and collecting the agricultural machinery trajectory point data recorded by the Beidou satellite positioning system, and pre-processing the collected agricultural machinery trajectory point data;
[0052] S106: constructing a ridge width track working surface according to the agricultural machinery operation track point data, rasterizing the agricultural machinery operation area, obtaining a grid matrix, and obtaining a superposition result of the ridge width working surface and the grid matrix based on the grid matrix and the ridge width track working surface;
[0053] S108: Calculate the agricultural machinery operation area, re-cropping area and missed cropping area based on the superposition result of the ridge width operation surface and the grid matrix.
[0054] It should be noted that, in step S102, specifically:
[0055] Indent the polygonal area for agricultural machinery operation, determine the driving direction and the latitude and longitude coordinates of the starting and ending points; rotate the indented polygonal area clockwise according to the driving direction angle; generate a set of parallel lines from the Y-axis direction with a spacing of one agricultural machinery operation width, and find the intersection points with the indented polygon, and connect the intersection points to form the driving trajectory; optimize and smooth the U-turn trajectory so that the curvature of each point of the trajectory meets the requirements of agricultural machinery vehicle dynamics; rotate the polygonal area counterclockwise according to the driving direction angle to reset it.
[0056] The method for determining the driving trajectory is as follows: When generating Start with a length of to , a set of parallel lines with a spacing of one agricultural machinery operation width. The intersection of the straight line and the boundary is the two endpoints of the straight line route. Connecting these endpoints forms a driving trajectory.
[0057] After the driving trajectory is initially formed, many sharp corners appear in the U-turn area. Most agricultural machinery has an Ackerman chassis, and turning is subject to a maximum turning angle constraint. This sharp-angle trajectory is not suitable for normal following of agricultural machinery, so hybrid A* is needed to optimize the trajectory.
[0058] The path obtained by the hybrid A* algorithm is often not optimal, and there are usually unnecessary turns. In order to obtain better expected driving behavior, trajectory smoothing is also required. The hybrid A* is used to optimize the U-turn trajectory, discretize the feasible space into a grid space, use the RS curve or Dubins curve to connect the current node and the target node, and perform collision detection on the trajectory. If there is no collision, the search ends; if there is a collision, the curve is abandoned, and the node is searched again from the OpenList, and the search continues to obtain the optimized driving trajectory.
[0059] The Voronoi field value, obstacle distance penalty term, curvature penalty term and smoothing term of the path point are set, and a multi-objective function is constructed. The extreme value of the objective function is obtained by the gradient descent method, and the driving trajectory after secondary optimization is obtained, and the driving trajectory after secondary optimization is used as the final driving trajectory. Among them, the multi-objective function satisfies the following relationship:
[0060] ;
[0061] In the formula, is the potential field value of each point in the Voronoi potential field diagram; is the maximum allowed curvature of the path (defined by the turning radius of the car); and is the penalty function; , , , is the weight; Represents the coordinate value of the i-th node; , ; represents the maximum distance affected by the Voronoi potential field, where ; is the optimized driving trajectory; Represents the coordinates of the nearest obstacle near the i-th node; is the coordinate value of the i+1th node, and so on.
[0062] In step S104, it specifically includes:
[0063] In this embodiment, when the agricultural machinery performs farmland operation management according to the planned path, regardless of whether the driving skills are proficient or not, there will inevitably be overlaps and omissions between ridges. Overlap refers to the repeated operation area between adjacent operation rows, and omission refers to the unoperated area between adjacent operation rows. Using Beidou satellite positioning signals, the position information of the agricultural machinery during the operation process can be accurately captured.
[0064] The collected Beidou satellite positioning data is converted into coordinates in a plane rectangular coordinate system through Gauss-Krüger projection. , and then use the Kalman filter algorithm to , The two values are filtered. Kalman filtering is an iterative process that gradually optimizes and corrects the estimated value through continuous prediction and update steps to reduce the uncertainty of the estimate and improve the accuracy. When processing Beidou satellite positioning data, it can effectively smooth the estimation of position and velocity and reduce the error caused by signal noise and interference.
[0065] In this embodiment, the longitude and latitude data collected from the Beidou satellite positioning system Convert to coordinates in plane rectangular coordinate system The Gauss-Krüger projection method is used:
[0066] The following relationship is satisfied:
[0067] In this embodiment, the longitude and latitude data collected from the Beidou satellite positioning system Convert to coordinates in plane rectangular coordinate system The Gauss-Krüger projection method is used:
[0068] ;
[0069] ;
[0070] Where: for The geodetic latitude of the point, in rad; for The longitude difference between a point and the central meridian. From the equator to latitude The meridian arc length is in . C can be calculated by the following formula:
[0071] ;
[0072] Where:
[0073] ;
[0074] Where: , , , is the correction factor; is the second eccentricity; is the radius of curvature of the normal section at the pole, in units of .when When calculated by this formula The accuracy is .
[0075] Among them, the Kalman filter algorithm is used to , Two values are filtered, and when initializing the state estimation, an initial state estimation vector and an initial state estimation covariance matrix are set, and the state estimation vector and the state estimation covariance matrix at the next moment are estimated by using the dynamic model in the Kalman filter algorithm according to the initial state estimation vector and the initial state estimation covariance matrix;
[0076] The measurement value of the system state is predicted using the observation matrix and the state estimation vector at the next moment. At the same time, the state estimation covariance matrix at the next moment and the measurement noise covariance matrix of the observation matrix are used to calculate the Kalman gain matrix.
[0077] Calculate the residual between the actual measurement value and the measurement value of the system state, obtain the observation residual, use the observation residual, the Kalman gain matrix and the measurement value of the system state to update the state value at the current moment, and update the covariance matrix of the system state to obtain the processed trajectory point data.
[0078] Coming soon , Two values are input to the algorithm, choosing the initial state estimate and the initial estimate error covariance , use the dynamic model of the system to estimate the state and error at the next moment.
[0079] Status prediction: ;
[0080] Error Covariance Forecast: ;
[0081] in, is the state vector of the system; is the estimated error covariance matrix; is the state transfer matrix; is the process noise covariance matrix, for The state vector at time, for The estimated error covariance at time t.
[0082] New observations are used to correct the forecasts, bringing the estimates closer to the actual state.
[0083] Observed residuals: ;
[0084] Residual covariance: ;
[0085] Kalman gain: ;
[0086] Status Update: ;
[0087] Estimated error covariance update: ;
[0088] Where: is the observation matrix; is the observation noise covariance matrix; is the actual observation value at the kth moment; is the Kalman gain; Represents the current time step. for The estimated error covariance at time , is the residual covariance.
[0089] Furthermore, in this method, constructing a ridge width trajectory operation surface according to the agricultural machinery operation trajectory point data specifically includes:
[0090] A vector buffer algorithm is introduced, and the processed agricultural machinery operation trajectory point data is calculated by the vector buffer algorithm, and the agricultural machinery operation trajectory points are sequentially connected in chronological order to generate an operation trajectory line, and a primitive line segment set of the operation trajectory line is obtained;
[0091] Taking each primitive line segment in the primitive line segment set of the operation trajectory line as an axis, the buffer distance is translated vertically to both sides thereof to generate a local buffer zone of each primitive line segment. Except that the first and the last parts of the primitive line segment are fitted with a flat head, the starting points of the remaining primitive line segments are fitted with an arc, and the tails are fitted with a flat head;
[0092] The local buffers of the primitive line segments are intersected and merged in sequence to generate a complete agricultural machinery operation trajectory buffer, and the complete agricultural machinery operation trajectory buffer is output as a ridge width trajectory operation surface.
[0093] In this embodiment, a vector buffer algorithm is designed based on the agricultural machinery operation trajectory. This algorithm is based on the spatial operation trajectory of the agricultural machinery, and adopts the trajectory line segmentation solution and then intersection and merging method to generate the agricultural machinery operation trajectory buffer. Figure 4 As shown in the figure, the spatial operation trajectory of agricultural machinery operation is composed of continuous straight line segments L. Then, the buffer zone of the agricultural machinery operation trajectory is for:
[0094] ;
[0095] in: For line segment The circumscribed rectangle of The two parallel line segments on the left and right sides are determined. In terms of spatial geometry, it can be represented by line segments Two parallel line segments and nodes on the left and right sides The semicircle at is determined, is the i-th straight line segment.
[0096] Among them, in step S106, the agricultural machinery operation area is rasterized, and then the ridge width operation surface formed by the agricultural machinery trajectory points is superimposed;
[0097] The working area is rasterized, and a grid matrix is used to represent the agricultural machinery working area. The grid matrix is obtained, and the agricultural machinery ridge width working surface and the grid matrix are overlaid and analyzed. The overlapping area and the non-overlapping area are assigned values to obtain the overlay result of the agricultural machinery ridge width working surface and the grid matrix.
[0098] In this embodiment, a grid matrix is used to represent the agricultural machinery operation area, wherein the grid corresponding to the agricultural machinery infeasible area is represented by 1, and the grid corresponding to the agricultural machinery feasible area is represented by 0. The agricultural machinery ridge width operation surface and the grid matrix are superimposed, and the attribute value of the cell occupied within the rectangular range is modified to 1, and 1 is added if there is overlap.
[0099] Among them, in step S108, the agricultural machinery operation area, the re-cropping area and the missed cropping area are calculated according to the superposition result of the agricultural machinery ridge width operation surface and the grid matrix.
[0100] In this embodiment, the partial superposition result is as follows Figure 5 As shown in the figure, the light grey cells are the areas where agricultural machinery is usually used, the dark grey areas are the areas where agricultural machinery is repeatedly used, and the light grey areas are the areas where agricultural machinery is not used. , the number of cells with attribute 1 is , the number of cells with attribute 2 is , the number of cells with attribute 0 is , then redo the area for:
[0101] ;
[0102] Leakage area for:
[0103] ;
[0104] Agricultural machinery operation area for:
[0105] ;
[0106] In addition, the method may further comprise the following steps:
[0107] Acquire information transmission delay characteristic data when information is transmitted between the Beidou positioning system and the agricultural machinery during the pesticide application process, set an information transmission delay characteristic threshold, and determine whether the information transmission delay characteristic data when information is transmitted between the Beidou positioning system and the agricultural machinery during the pesticide application process is greater than the information transmission delay characteristic threshold;
[0108] When the information transmission delay characteristic data when the Beidou positioning system and the agricultural machine transmit information during the pesticide application process is greater than the information transmission delay characteristic threshold, the sub-area corresponding to the agricultural machine in the corresponding pesticide application process is obtained;
[0109] Marking the sub-area corresponding to the agricultural machinery during the corresponding pesticide application process, obtaining the marked area, and updating the agricultural machinery operation area, re-cropping area and missed cropping area based on the marked area;
[0110] When the information transmission delay characteristic data between the Beidou positioning system and the agricultural machinery during the pesticide application process is not greater than the information transmission delay characteristic threshold, the agricultural machinery operation area, re-cropping area and missed cropping area are output.
[0111] It should be noted that since the information transmission between the Beidou positioning system and the agricultural machinery is affected by external factors, such as electromagnetic waves, temperature, humidity, etc., there will be a positioning error at this time, and the positioning error may cause the driving trajectory of the agricultural machinery during the application process to change. At this time, the agricultural machinery operating area, re-cropping area and missed cropping area may change. By marking the sub-areas corresponding to the agricultural machinery in the corresponding application process, the agricultural machinery operating area, re-cropping area and missed cropping area can be further analyzed. For example, due to the delay in information transmission, the operating area of the driving area is marked as the missed operation area, which can further and more accurately determine the agricultural machinery operating area, re-cropping area and missed cropping area.
[0112] In addition, the method may further include:
[0113] Obtaining a driving route of the agricultural machinery when applying pesticides, dividing the driving route of the agricultural machinery when applying pesticides to obtain a plurality of sub-routes, and obtaining positioning accuracy data between the Beidou positioning system and the agricultural machinery in the sub-routes by performing an information transmission test between the Beidou positioning system and the agricultural machinery on each sub-route;
[0114] Setting a positioning accuracy data threshold, determining whether there is a sub-route whose positioning accuracy data is lower than the positioning accuracy data threshold, introducing a genetic algorithm, and setting a genetic generation based on the genetic algorithm;
[0115] When there is a sub-route whose positioning accuracy data is lower than the positioning accuracy data threshold, the driving route of the agricultural machinery when applying pesticides is replanned based on the genetic algebra until there is no sub-route whose positioning accuracy data is lower than the positioning accuracy data threshold;
[0116] When the positioning accuracy data is lower than the sub-route of the positioning accuracy data threshold, the driving route of the agricultural machine when applying pesticides is output, and the agricultural machine is controlled to apply pesticides according to the driving route of the agricultural machine when applying pesticides.
[0117] It should be noted that in actual application, different areas are subject to different interferences, resulting in areas with poor positioning accuracy when agricultural machinery is traveling on the spraying route. This method can optimize the driving route of the agricultural machinery when applying pesticides, and can further improve the rationality of the spraying of agricultural machinery, so that the pesticide solution can be applied more accurately to the predetermined area.
[0118] In addition, the method may further comprise the following steps:
[0119] Acquire positioning accuracy feature change data information of agricultural machinery through big data, build a positioning accuracy feature prediction model based on a deep neural network, and input the positioning accuracy feature change data information of the agricultural machinery into the positioning accuracy feature prediction model for training;
[0120] Through training, a trained positioning accuracy feature prediction model is obtained, positioning accuracy feature change data information of each agricultural machine within a preset time is obtained, and the positioning accuracy feature change data information of each agricultural machine within the preset time is input into the positioning accuracy feature prediction model for prediction, and the positioning accuracy data information of each agricultural machine at the current timestamp is obtained;
[0121] Preset a positioning accuracy data threshold, and determine whether the positioning accuracy data information of the agricultural machinery at the current timestamp is greater than the positioning accuracy data threshold. When the positioning accuracy data information of the agricultural machinery at the current timestamp is greater than the positioning accuracy data threshold, obtain the agricultural machinery corresponding to the positioning accuracy data information of the agricultural machinery at the current timestamp that is greater than the positioning accuracy data threshold;
[0122] The agricultural machinery corresponding to the agricultural machinery whose positioning accuracy data information at the current timestamp is greater than the positioning accuracy data threshold is regarded as the agricultural machinery that can apply pesticides, and the agricultural machinery that can apply pesticides is assigned pesticide application work according to the pesticide application task.
[0123] It should be noted that due to the degradation of the equipment, the positioning accuracy of the agricultural machinery will degrade to a certain extent with the years of use. This method can further improve the rationality of pesticide application.
[0124] like Figure 6As shown, the second aspect of the present invention provides an intelligent agricultural machinery operating area measurement system 4 based on Beidou positioning, the system 4 includes a memory 41 and a processor 42, the memory 41 includes an intelligent agricultural machinery operating area measurement method program based on Beidou positioning, and when the intelligent agricultural machinery operating area measurement method program based on Beidou positioning is executed by the processor 42, any step of the intelligent agricultural machinery operating area measurement method based on Beidou positioning is implemented.
[0125] like Figure 7 As shown, the third aspect of the present invention provides an intelligent agricultural machinery operation area measuring device based on Beidou positioning, comprising:
[0126] The planning module 10 is used to plan the path for irregular agricultural machinery operation areas;
[0127] The preprocessing module 20 is used to make the agricultural machinery run according to the planned trajectory and collect the agricultural machinery trajectory point data recorded by the Beidou satellite positioning system, and preprocess the collected agricultural machinery trajectory point data;
[0128] The analysis module 30 is used to construct a ridge width track working surface according to the agricultural machinery operation track point data, grid the agricultural machinery operation area, obtain a grid matrix, and obtain an overlay result of the ridge width working surface and the grid matrix based on the grid matrix and the ridge width track working surface;
[0129] The calculation module 40 is used to calculate the agricultural machinery operation area, the re-cultivation area and the missed cultivation area according to the superposition result of the ridge width operation surface and the grid matrix.
[0130] The fourth aspect of the present invention provides a computer-readable storage medium, which includes a program for an intelligent agricultural machinery operating area measurement method based on Beidou positioning. When the program for the intelligent agricultural machinery operating area measurement method based on Beidou positioning is executed by a processor, the steps of any one of the methods for measuring the operating area of intelligent agricultural machinery based on Beidou positioning are implemented.
[0131] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0132] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0133] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0134] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0135] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0136] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning, characterized in that: The specific steps include: Path planning for irregular agricultural machinery operation areas; Let the agricultural machinery drive along the planned trajectory and collect the agricultural machinery trajectory point data recorded by the Beidou satellite positioning system, and pre-process the collected agricultural machinery trajectory point data; Constructing a ridge width track working surface according to the agricultural machinery operation track point data, rasterizing the agricultural machinery operation area, obtaining a grid matrix, and obtaining an overlay result of the ridge width working surface and the grid matrix based on the grid matrix and the ridge width track working surface; According to the superposition result of the ridge width working surface and the grid matrix, the agricultural machinery working area, the re-cultivated area and the missed cultivation area are calculated; Path planning for irregular agricultural machinery operation areas, including: Determine the polygonal area of agricultural machinery operation, the driving direction, the longitude coordinates of the starting point, the latitude coordinates of the starting point, the longitude coordinates of the end point, and the latitude coordinates of the end point, and rotate the polygonal area of agricultural machinery operation clockwise according to the driving direction angle to generate a set of parallel lines with a spacing of one agricultural machinery operation width from the Y-axis direction; Find the intersection of the parallel lines and the indented polygon, connect the intersections, and construct the driving trajectory. At the same time, introduce the hybrid A* algorithm and use it to optimize the U-turn trajectory. Discretize the feasible space into a grid space, use the RS curve or Dubins curve to connect the current node and the target node, and perform collision detection on the trajectory. If there is no collision, end the search; if there is a collision, abandon the curve, find the node again from the OpenList, continue searching, and obtain the optimized driving trajectory. The Voronoi field value, obstacle distance penalty term, curvature penalty term and smoothness term of the path point are set, and a multi-objective function is constructed. The extreme value of the objective function is obtained by the gradient descent method, and the driving trajectory after secondary optimization is obtained, and the driving trajectory after secondary optimization is used as the final driving trajectory.
2. According to claim 1, a method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning is characterized in that: in, The multi-objective function satisfies the following relationship: ; In the formula, is the potential field value of each point in the Voronoi potential field diagram; is the maximum allowed curvature of the path; and is the penalty function; , , , is the weight; Represents the coordinate value of the i-th node; , ; represents the maximum distance affected by the Voronoi potential field, where ; is the optimized driving trajectory; Represents the coordinates of the nearest obstacle near the i-th node.
3. The method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning according to claim 1 is characterized in that: Preprocess the collected trajectory point data, including: A Gauss-Krüger projection method is introduced to convert the collected trajectory point data into coordinates in a plane rectangular coordinate system, and a Kalman filter algorithm is used to filter the coordinates in the plane rectangular coordinate system; When initializing state estimation, an initial state estimation vector and an initial state estimation covariance matrix are set, and a state estimation vector and a state estimation covariance matrix at the next moment are estimated by using a dynamic model in a Kalman filter algorithm according to the initial state estimation vector and the initial state estimation covariance matrix; The measurement value of the system state is predicted using the observation matrix and the state estimation vector at the next moment. At the same time, the state estimation covariance matrix at the next moment and the measurement noise covariance matrix of the observation matrix are used to calculate the Kalman gain matrix. Calculate the residual between the actual measurement value and the measurement value of the system state, obtain the observation residual, use the observation residual, the Kalman gain matrix and the measurement value of the system state to update the state value at the current moment, and update the covariance matrix of the system state to obtain the processed trajectory point data.
4. The method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning according to claim 1 is characterized in that: The ridge width trajectory operation surface is constructed based on the agricultural machinery operation trajectory point data, including: A vector buffer algorithm is introduced, and the processed agricultural machinery operation trajectory point data is calculated by the vector buffer algorithm, and the agricultural machinery operation trajectory points are sequentially connected in chronological order to generate an operation trajectory line, and a primitive line segment set of the operation trajectory line is obtained; Taking each primitive line segment in the primitive line segment set of the operation trajectory line as an axis, the buffer distance is translated vertically to both sides thereof to generate a local buffer zone of each primitive line segment. Except that the first and the last parts of the primitive line segment are fitted with a flat head, the starting points of the remaining primitive line segments are fitted with an arc, and the tails are fitted with a flat head; The local buffers of the primitive line segments are intersected and merged in sequence to generate a complete agricultural machinery operation trajectory buffer, and the complete agricultural machinery operation trajectory buffer is output as a ridge width trajectory operation surface.
5. The method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning according to claim 1 is characterized in that: The agricultural machinery operation area is rasterized to obtain a grid matrix, and the superposition result of the agricultural machinery ridge width operation surface and the grid matrix is obtained based on the grid matrix and the ridge width trajectory operation surface, specifically: The working area is rasterized, and a grid matrix is used to represent the agricultural machinery working area. The grid matrix is obtained, and the agricultural machinery ridge width working surface and the grid matrix are overlaid and analyzed. The overlapping area and the non-overlapping area are assigned values to obtain the overlay result of the agricultural machinery ridge width working surface and the grid matrix.
6. The method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning according to claim 1 is characterized in that: According to the superposition result of the ridge width working surface and the grid matrix, the agricultural machinery working area, the re-cropping area and the missed cropping area are calculated, specifically: The overlapping area and the non-overlapping area are counted according to the superposition result of the ridge width working surface and the grid matrix, and the agricultural machinery working area, the re-cropping area and the missed cropping area are calculated based on the overlapping area and the non-overlapping area.
7. An intelligent agricultural machinery operation area measurement system based on Beidou positioning, characterized in that: The system includes a memory and a processor, wherein the memory includes a program for a method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning. When the program for measuring the operating area of intelligent agricultural machinery based on Beidou positioning is executed by the processor, the steps of the method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning as described in any one of claims 1 to 6 are implemented.
8. An intelligent agricultural machinery operation area measurement device based on Beidou positioning, characterized in that: include: Planning module, used for path planning in irregular agricultural machinery operation areas; A preprocessing module is used to allow the agricultural machinery to travel according to the planned trajectory and collect the agricultural machinery trajectory point data recorded by the Beidou satellite positioning system, and preprocess the collected agricultural machinery trajectory point data; An analysis module is used to construct a ridge width track working surface according to the agricultural machinery operation track point data, rasterize the agricultural machinery operation area, obtain a grid matrix, and obtain an overlay result of the ridge width working surface and the grid matrix based on the grid matrix and the ridge width track working surface; A calculation module, used for calculating the agricultural machinery operation area, the re-cultivation area and the missed cultivation area according to the superposition result of the ridge width operation surface and the grid matrix; Path planning for irregular agricultural machinery operation areas, including: Determine the polygonal area of agricultural machinery operation, the driving direction, the longitude coordinates of the starting point, the latitude coordinates of the starting point, the longitude coordinates of the end point, and the latitude coordinates of the end point, and rotate the polygonal area of agricultural machinery operation clockwise according to the driving direction angle to generate a set of parallel lines with a spacing of one agricultural machinery operation width from the Y-axis direction; Find the intersection of the parallel lines and the indented polygon, connect the intersections, and construct the driving trajectory. At the same time, introduce the hybrid A* algorithm and use it to optimize the U-turn trajectory. Discretize the feasible space into a grid space, use the RS curve or Dubins curve to connect the current node and the target node, and perform collision detection on the trajectory. If there is no collision, end the search; if there is a collision, abandon the curve, find the node again from the OpenList, continue searching, and obtain the optimized driving trajectory. The Voronoi field value, obstacle distance penalty term, curvature penalty term and smoothness term of the path point are set, and a multi-objective function is constructed. The extreme value of the objective function is obtained by the gradient descent method, and the driving trajectory after secondary optimization is obtained, and the driving trajectory after secondary optimization is used as the final driving trajectory.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a program for a method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning. When the program for the method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning is executed by a processor, the steps of the method for measuring the operating area of intelligent agricultural machinery based on Beidou positioning as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Agricultural machine operation area calculation method and system based on raster image
CN116205968A
