A method for quickly filtering and grouping Beidou agricultural machinery operation trajectories
Through the rapid filtering and grouping method of Beidou agricultural machinery operation trajectories, instantaneous speed and trajectory point information are used to remove parking noise and road driving trajectories from agricultural machinery trajectories, which solves the problems of slow calculation speed and poor non-operating trajectory elimination effect, and improves the agricultural machinery management platform. automation processing efficiency.
Patent Information
- Application Number
- CN202211070483.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-02
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-09-02
AI Technical Summary
The existing technology has problems such as slow calculation speed and poor non-operating trajectory elimination effect in the calculation of agricultural machinery operation trajectory area, resulting in low efficiency of Beidou agricultural machinery management automation processing.
The Beidou agricultural machinery operation trajectory fast filtering and grouping method is used to load trajectory point data in batches, perform rough classification based on instantaneous speed, eliminate zero speed, low speed, normal speed and high speed trajectory points, perform road driving grouping and parking noise filtering, and finally carry out head and tail analysis. Non-job trajectories are filtered to obtain the final job trajectory.
It achieves the rapid elimination of parking noise and road driving trajectories in agricultural machinery trajectories without using auxiliary data, improves the grouping efficiency of operation trajectories and the accuracy of area calculation, reduces the amount of calculation, and improves the efficiency of the Beidou agricultural machinery management platform. Automated processing capabilities.
Smart Images

Figure CN115436973B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a field, and in particular to a Beidou agricultural machinery operation track rapid filtering and grouping method. Background Art
[0002] In order to ensure stable operation, high-precision agricultural machinery operation monitoring terminals are equipped with built-in battery power supply, which generally include two positioning modes, namely high-precision differential Beidou positioning when powered by external power supply and ordinary Beidou positioning when powered by built-in battery. During agricultural machinery operation, it is basically difficult for the operator to turn on the Beidou monitoring terminal only during the field operation according to the operation specifications. Therefore, the agricultural machinery tracks transmitted back to the platform include a large number of noise tracks when the agricultural machinery is stopped, and road driving tracks when transferring between operation plots. These redundant tracks will bring a lot of calculation interference to the judgment of the agricultural machinery operation area and the calculation of the operation area.
[0003] According to the plan, in the next 3-5 years, the number of agricultural machinery managed by the Beidou agricultural machinery platform will be expanded to 1 million. By then, according to the peak calculation requirements of the busy farming season, the platform will need to be able to process at least about 100,000 operation trajectories every day. Therefore, the rapid filtering and processing of agricultural machinery trajectories is an important processing technology for Beidou agricultural machinery management automation. Summary of the invention
[0004] In view of this, in view of the defects of existing agricultural machinery operation track area calculation, such as slow calculation speed and poor non-operation track elimination effect, the present invention provides a Beidou agricultural machinery operation track fast filtering and grouping method, which specifically includes the following steps:
[0005] S1: Batch load the reported point data of agricultural machinery trajectory operation to obtain the trajectory points of agricultural machinery operation;
[0006] S2: Based on the instantaneous speed of the trajectory point, the trajectory point is roughly classified according to the preset low-speed and high-speed thresholds to obtain zero-speed trajectory points, low-speed trajectory points, normal-speed trajectory points and high-speed trajectory points, which are stored in an array to maintain the time sequence of the trajectory points;
[0007] S3: grouping the normal speed trajectory points into road driving trajectories to obtain grouped trajectories excluding the main road driving;
[0008] S4: filtering the grouped trajectories through parking noise to obtain parking-filtered trajectories;
[0009] S5: filtering the non-operating trajectories at the head and tail of the trajectory after parking filtering to obtain the final output trajectory;
[0010] S6: Apply the output trajectory to the operation trajectory verification and area calculation.
[0011] The beneficial effect provided by the present invention is that: without using auxiliary data, only the time, longitude and latitude and instantaneous speed information reported by the operation trajectory points are used to eliminate the parking noise trajectory, road driving trajectory, etc. in the agricultural machinery trajectory with a small amount of calculation, and the final operation trajectory is grouped, and the grouped trajectories are provided for use in operation trajectory verification and area calculation, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a schematic flow chart of the method of the present invention;
[0013] Figure 2 This is an example diagram of the trajectory connection of 200,000 agricultural machinery trajectory points loaded normally.
[0014] Figure 3 This is a partially enlarged rendering of the trajectory lines connecting the agricultural machinery trajectory points.
[0015] Figure 4 It is the distribution map of the constant speed points extracted by the agricultural machinery trajectory points after speed classification
[0016] Figure 5 This is the effect of agricultural machinery tracks after road filtering and grouping.
[0017] Figure 6 This is the effect of the agricultural machinery trajectory after filtering the parking noise trajectory.
[0018] Figure 7 This is the effect diagram of the agricultural machinery trajectory after filtering the non-operating trajectories at the head and tail of the trajectory. DETAILED DESCRIPTION
[0019] To make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0020] Please refer to Figure 1 , Figure 1 : is a flow chart of the method of the present invention; a Beidou agricultural machinery operation track rapid filtering and grouping method provided by the present invention specifically comprises the following steps:
[0021] S1: Batch load the reported point data of agricultural machinery trajectory operation to obtain the trajectory points of agricultural machinery operation; clear reference Figure 2-Figure 3 , Figure 2 This is a normal loading of 200,000 agricultural machinery trajectory points. Figure 3 This is a partially enlarged rendering of the trajectory lines connecting the agricultural machinery trajectory points.
[0022] S2: Based on the instantaneous speed of the trajectory point, the trajectory point is roughly classified according to the preset low-speed and high-speed thresholds to obtain zero-speed trajectory points, low-speed trajectory points, normal-speed trajectory points and high-speed trajectory points, which are stored in an array to maintain the time sequence of the trajectory points;
[0023] Please refer to Figure 4 , Figure 4 It is the distribution map of constant speed points extracted from the agricultural machinery trajectory points after speed classification;
[0024] Specifically, the classification process of step S2 is as follows:
[0025] S21: According to the statistics of a large number of trajectory points, set the low speed threshold V min and high speed threshold V max , where low speed V min The recommended value range is [0.2,0.5], the default value is 0.2, high speed V max The recommended value range is [8.5,12], the default value is 9.5, the speed unit is km / h, and the instantaneous speed of the trajectory points is compared in turn to classify the trajectory points.
[0026] S22: For trajectory points with instantaneous speed V=0, they are classified into zero-speed point group G zero , and keep the time order of each point.
[0027] S23: For the instantaneous velocity of the trajectory point V≤V min , classified into low-speed point group G low , and keep the time sequence of each point. In order to reduce the amount of calculation, the low-speed point group does not participate in the subsequent calculation and is directly filtered out.
[0028] S24: For the instantaneous velocity of the trajectory point V ≥ V min And V≤V max , classified into the constant speed point group G normal , and keep the time order of each point.
[0029] S25: For the instantaneous velocity of the trajectory point V>V max , classified into high-speed point group G high , and keep the time sequence of each point. In order to reduce the amount of calculation, the high-speed point group does not participate in the subsequent calculation and is directly filtered out.
[0030] Therefore, in the subsequent calculation process, only the constant speed trajectory points are involved in the calculation.
[0031] S3: Perform road driving grouping on the constant speed trajectory points to obtain grouping trajectories without the main roads; please refer to Figure 5 , Figure 5 This is the effect of the agricultural machinery trajectory after road filtering and grouping;
[0032] It should be noted that in step S3, the road driving grouping trajectory includes three grouping methods, namely: grouping based on the distance between adjacent points, grouping based on the time interval threshold, and grouping based on the number of points around the trajectory point. The following will introduce them one by one.
[0033] For the constant speed trajectory point G normal Eliminate road travel trajectories and realize grouped trajectories;
[0034] In the specific implementation, the minimum threshold value can be set for the trajectory points in the grouped trajectory, of course, it can also be set, which depends on the actual needs. In this application, according to the statistical situation, in the grouping process, the minimum number of trajectory points for each group is PtNum min , the default value is 30, for the number of trajectory points PtNum n <PtNum min , directly delete the group of trajectory points.
[0035] First, we introduce the grouping based on the distance between adjacent points: normal Perform spatial distance threshold segmentation and regrouping of adjacent points.
[0036] S311: Calculate trajectory point P n Longitude and latitude coordinates (Lon n , Lat n ), in the CGCS2000 Gauss projection coordinates, take the longitude Lon1 of the first point of the constant speed trajectory as the central meridian of the calculation, and calculate each trajectory point P in turn n Gauss plane projection coordinates (X n , Y n ).
[0037] S312: According to the statistics, the maximum spatial distance between adjacent points in the same group is set to D max , where D max The recommended value range is [70, 200] when the reporting frequency is 5 seconds. The default value is 80, in meters.
[0038] S313: Passing through trajectory point P n Projection coordinates (X n , Y n ) Calculate the spatial distance D of N adjacent points on the trajectory n .
[0039] S314: Compare and calculate in sequence, for D n ≥D max Under the condition, set point N to new group G new Starting point, previous group G pre , the number of points PtNum, execute step 3.1 to judge, if not satisfied, group G pre Add to the new grouping results;
[0040] Next, we introduce the grouping based on time interval threshold: the grouped trajectory points are divided and grouped based on the time interval threshold of adjacent points;
[0041] S321: According to the statistics, the maximum time interval between adjacent points in the same group is set to ΔT max , ΔT max In actual statistical data, the recommended value range is [600, 7200], the default value is 600, and the unit is seconds, that is, 10 minutes to 2 hours.
[0042] S322: Calculate the time interval ΔT between N adjacent points on the trajectory n .
[0043] S323: Compare and calculate in sequence, for ΔT n ≥ΔT max Under the condition, set point N to new group G new Starting point, previous group G pre , the number of points PtNum, execute step 3.1 to judge, if not satisfied, group G pre Add to the new grouping results;
[0044] Finally, we introduce the grouping based on the threshold value of the number of points around the trajectory points: the grouped trajectory points are segmented and grouped according to the threshold value of the number of adjacent points.
[0045] S331: In grouping track G i In the example, set the trajectory point P n (X n , Y n ) as the center, and obtain the buffer radius D buffer Circle O n , and find the outer rectangle R of the circle n , count the group trajectory, contained in the rectangle R n The number of track points within
[0046] S332: Set the surrounding point number segmentation threshold to The default value is 5.
[0047] S333: Under the condition, set point N to new group G new Starting point, previous group G pre , the number of points PtNum pre , execute step 3.2 to judge, if it does not meet the requirements, group G pre Add to the new grouping results.
[0048] S4: Filter the grouped trajectories by parking noise trajectories to obtain the trajectories after parking filtering; please refer to Figure 6 , Figure 6 This is the effect diagram of the agricultural machinery trajectory after filtering the parking noise trajectory;
[0049] It should be noted that in step S4, the parking noise trajectory filtering uses two indicators, namely, the trajectory average direction change value and the number of zero-speed points in the trajectory, to form a combined judgment to filter the parking noise trajectory.
[0050] First, we introduce the solution process of the average direction change value of the trajectory:
[0051] S411: Grouping trajectory G i Inner track point P n (X n , Y n ) and trajectory point P n+1 (X n+1 , Y n+1 ), calculate the line segment P n P n+1 The direction angle α n , α n Belongs to [0~2π], calculate the line segment P n P n+1 and P n+1 P n+2 The direction change angle Δα n ;
[0052] S412: The direction change value Δα of the last point of the trajectory end , directly assigned to the direction change value Δα of the second-to-last point end-1 ;
[0053] S413: Calculate the group G i Average direction change
[0054] Next, the calculation process of the number of zero-speed points in the trajectory is introduced. The calculation process of the number of zero-speed points in the trajectory is as follows:
[0055] S421: Obtaining group trajectory G i The time T1 of the first trajectory point P1 and the time T2 of the last trajectory point P end Time T end ;
[0056] S422: Traverse zero speed point group G zero Point P in n , get its time T n ;
[0057] S423: When the condition T n ≥T1 and T n ≤T end When group G i The number of zero-speed points Z i Increment by 1;
[0058] S424: When the condition Tn >T end When group G i Zero speed point group G zero The traversal ends; at this time, group G is obtained i The number of zero-speed points is Z i .
[0059] Finally, the process of combining the two indicators for judgment is introduced. In the embodiment of the present invention, the number of zero-speed points and the average direction change value of each group of trajectories are used to filter the parking noise trajectory of the operating trajectory; through the statistical analysis of the parking noise data, the following execution situations exist.
[0060] S431: Grouping tracks G i The average direction change And the number of zero points in this group is Z i >Z threshold1 , where Δα threshold1 The threshold setting range is [1.15, 2.2], the default value is 1.2, Z threshold1 The threshold setting range is [40, +∞], and the default value is 50. This group of trajectories is likely to be parking noise trajectories. i Add parking noise trajectory set {G noise}.
[0061] S432: Grouping tracks G i The average direction change And the number of zero points in this group is Z i >Z threshold2 , where Δα threshold2 The threshold setting range is [0.92, Δα threshold1 ], the default value is 0.95, Z threshold2 The threshold setting range is [800, +∞], and the default value is 800. This group of trajectories is likely to be parking noise trajectories. i Add parking noise trajectory set {G noise}.
[0062] S433: Grouping tracks G i The average direction change And the number of zero points in this group is Z i >Z threshold3 , where Δα threshold3 The threshold setting range is [0.78, Δα threshold2 ], the default value is 0.8, Z threshold2 The threshold setting range is [1300, +∞], and the default value is 1500. This group of trajectories has a high probability of being parking noise trajectories. i Add parking noise trajectory set {Gnoise}.
[0063] As an extension, the grouping trajectory G i The degree of overlap between the outer rectangle of the high-probability parking noise trajectory determined in steps 4.3.1, 4.3.2, and 4.3.3 is β i , if β i Reach the preset value and the average direction change value where Δα threshold4 The threshold setting range is 0.62, Δα threshold3 ], the default value is 0.65, then this group of trajectories is likely to be parking noise trajectories, and the grouped trajectory G i Add parking noise trajectory set {G noise}.
[0064] In the actual implementation process, in order to screen the most likely parking noise trajectory, it is recommended to repeat the operation of outer rectangle overlap 1-2 times.
[0065] S5: Filter the non-operating trajectories at the head and tail of the trajectory after parking filtering to obtain the final output trajectory; please refer to Figure 7 , Figure 7 This is the effect diagram of the agricultural machinery trajectory after filtering the non-operating trajectories at the head and tail of the trajectory.
[0066] Step S5 is specifically as follows:
[0067] S51: Grouping track G i In the example, set the trajectory point P n (X n , Y n ) as the center, and obtain the buffer radius D buffer Circle O n , and find the outer rectangle R of the circle n , count the group trajectory, contained in the rectangle R n The number of track points within
[0068] S52: Grouping tracks G i In the above example, all trajectory points P1 to P end , construct the polyline of the trajectory i ;
[0069] S53: Calculate trajectory G i The normal segments of each trajectory point and the trajectory line Polyline i The number of intersections;
[0070] It should be noted that the number of intersections is calculated as follows:
[0071] S531: Loop through track G i Each trajectory point P n , get the trajectory point P n The results calculated in step 5.1
[0072] S532: When the point in The reference value is [15,50], the default value is 20, then the normal segment of the point and the trajectory line Polyline i The number of intersections Assignment You can refer to the fixed value [10, +∞], the default value is 100.
[0073] S533: When the point When P n is the midpoint, and its length is 2*D buffer , perpendicular to P n P n+1 NormalLine n .
[0074] S534: Calculate the normal line segment NormalLine through spatial intersection operation n and track polyline i The number of intersections
[0075] S54: filtering the head non-operation track according to the number of intersection points;
[0076] It should be noted that the specific process of filtering the head non-operation track is as follows:
[0077] S541: Track G i Each trajectory point in the loop starts from the starting point and obtains the number of intersection points calculated in step 5.3
[0078] S542: When When The recommended value of is [4,5], and the default value is 4, which marks the point as a non-operating point at the beginning of the grouped trajectory.
[0079] S543: When When , the loop stops and goes to the next step.
[0080] S55: Filter the tail non-operation trajectory according to the number of intersection points, and output the final operation trajectory.
[0081] It should be noted that the specific process of filtering the tail non-operation tracks is as follows:
[0082] S551: Track G i Each trajectory point in the loop starts from the end and gets the number of intersection points calculated in step 5.3
[0083] S552: When , the point is marked as a non-operating point at the end of the grouped trajectory.
[0084] S553: When When , the loop stops and goes to the next step.
[0085] According to the trajectory group G i The non-operating points marked in the figure are removed to generate a new trajectory group
[0086] S6: Apply the output trajectory to the operation trajectory verification and area calculation.
[0087] As an embodiment, in step S1, the reported point data of the agricultural machinery track operation is loaded in batches through the data loading interface. The point data generally includes information such as time, longitude, latitude, speed, etc. The number of track points loaded in batches is 200,000, and the reporting frequency is 5 seconds;
[0088] As an embodiment, the trajectory points are roughly classified based on the instantaneous speed of the trajectory points, including zero-speed points, low-speed points, normal-speed points and high-speed points. The low-speed threshold is set to 0.2 km / h, and the high-speed threshold is set to 9.5 km / h. The trajectory points between the zero-speed trajectory point and the normal speed [0.2, 9.5] are retained, and the other classified trajectory results are discarded.
[0089] It should be noted here that the zero-speed point generally represents the parking point of agricultural machinery, the low-speed point and the normal-speed point generally represent the operation trajectory points of agricultural machinery, and the high-speed point generally represents the kilometer-long driving trajectory points of agricultural machinery. In routine operations, the speed of agricultural machinery is less than 10km / h. Eliminating low-speed points is to reduce unnecessary calculations, and eliminating high-speed points is actually to eliminate highway driving trajectory points.
[0090] In step S3, the road travel trajectories of the constant speed trajectory points are eliminated to achieve trajectory grouping;
[0091] In step 3, the distance threshold of adjacent track points is set to 80 meters. After Gaussian projection, the distance between adjacent track points is calculated. If the distance between two points is greater than 80 meters, the point is set as the break point of the track grouping. If the number of track points in the group is less than 30 points, the track group is deleted.
[0092] It should be noted that: in step 2, the distance between the deleted high-speed points and the two trajectory points turned on at different time points is greater than the threshold. Grouping can be performed through judgment, which can effectively realize the trajectory grouping after filtering the road trajectory points.
[0093] In step 3, the maximum time interval between two adjacent points is set to 600 seconds, that is, 10 minutes.
[0094] In the embodiment, the three grouping methods can be used in sequence to traverse in sequence, that is, the three methods are combined to perform grouping step by step, or the groups can be selected separately. In this application, the grouping results generated in step 3.1 are traversed in sequence, and each group of trajectories is regrouped by using the time interval judgment, and the grouping is continued in this way. Similarly, for all the final groups, if the number of trajectory points in the group is less than 30 points, the group of trajectories will be deleted.
[0095] It should be noted that: since 200,000 track points are obtained at one time, the track point set contains the operation tracks of multiple days and multiple plots of land, and the track points contain the actual stop operation intervals.
[0096] In step 3, the radius of the adjacent points of the track point is set to 10 meters. For each track point in a group, when the number of its adjacent points is less than 5, the point is set as the segmentation point of the group of tracks and regrouped. Similarly, for all the final groups, if the number of track points in the group is less than 30 points, the group of tracks will be deleted.
[0097] It should be noted that due to the different driving behaviors of different drivers, the trajectory points on the road may be between 5 and 9.5 km / h. After filtering the results based on the distance between adjacent points and the time interval, a large number of road trajectories may still be retained. In the same trajectory group, since there are only very few adjacent trajectory points around the road trajectory, this method uses this principle to further eliminate road trajectory points.
[0098] In step S4, the grouped trajectories are filtered for parking noise trajectories;
[0099] In the calculation of the average direction change value of the trajectory, the direction change between each trajectory point and the next trajectory point is calculated, and the average direction change value of the trajectory points in each group is calculated. The unit is radian value, and the value range is [0~π].
[0100] In the calculation of the number of zero-speed points, the start and end time of each group of trajectories are obtained. In the zero-speed point set obtained in step 2, the number of zero-speed points in each group of trajectories is counted by comparing the time values.
[0101] In the judgment of the combination of two indicators, the three types of trajectory groups in the marked trajectory group are: ① the number of zero-speed points is greater than 50 and the average direction change is greater than 1.2, ② the number of zero-speed points is greater than 1500 and the average direction change is greater than 0.8, and ③ the number of zero-speed points is greater than 900 and the average direction change is greater than 0.95, which are marked as high-probability parking noise trajectories.
[0102] After obtaining the high-probability parking noise trajectory, group the other trajectories, and mark them as high-probability parking noise trajectories if the average direction change is greater than 0.65 and the overlap with the outer rectangle of the high-probability parking noise trajectory is greater than 0.15. Repeat the above cycle judgment once.
[0103] Delete the trajectory group marked as parking noise and generate a new trajectory group.
[0104] It should be noted that when the agricultural machinery is parked, a large number of zero-speed trajectory points will be generated due to the continuous operation of the Beidou positioning terminal, and because of the multi-path effects of the Beidou signal, the trajectory points will randomly change around the parking point, making the continuous trajectory very messy. In actual agricultural machinery generation operations, the average direction change value of the trajectory is generally less than 0.45, and the average direction change value when parking is generally greater than 0.8.
[0105] In step S5, filtering of the head and tail non-operation trajectories of the grouped trajectories is completed;
[0106] It should be noted that: after completing steps S1 to S4, the road driving trajectories and parking noise trajectories in the trajectory grouping are basically eliminated, but there are still a small number of non-operation trajectories between the trajectory entering the plot operation and the trajectory leaving the plot, which need to be filtered out.
[0107] In step S51, in each trajectory group, for each trajectory point, the number of adjacent trajectory points within a 10-meter range is counted.
[0108] In step S52, the points in each group of trajectories are used to construct trajectory lines in time sequence.
[0109] In step S53, for each track point in each track group, if the number of adjacent track points of the track point is less than 20, a normal line segment with the point as the center and a length of 20 meters is constructed, and the number of intersections between the normal line segment and the own track line is calculated. If the number of adjacent track points is greater than 20, the number of intersections is directly set to 100.
[0110] It should be noted that: in this step, since calculating the intersection point is a very time-consuming operation, the adjacent trajectory points are used for screening to reduce unnecessary calculations. By default, for trajectories with many adjacent points, their intersection points are directly assigned a value of 100.
[0111] In step S54, the judgment is performed from the beginning of each group of trajectories in turn. When the number of intersection points is less than 4, the point is marked as a non-operation point to be deleted. When the number of intersection points is greater than or equal to 4, the judgment is stopped.
[0112] In step S55), the judgment is performed in reverse from the end of each group of trajectories. When the number of intersections is less than 4, the point is marked as a non-operation point to be deleted. When the number of intersections is greater than or equal to 4, the judgment is stopped.
[0113] Traverse each group of trajectories in turn, delete non-operating points, and generate new trajectory groups. For all final groups, if the number of trajectory points in the group is less than 10 points, delete the group of trajectories. Output all final trajectory groups as the final filtering results for use in operating trajectory verification and area calculation.
[0114] The most obvious feature of the present invention is that it utilizes three pieces of information, namely, spatial point coordinates, time and speed. Different from the conventional spatial clustering analysis method, it only utilizes basic quantity statistics and rectangular spatial range judgment, as well as a very small amount of line segment intersection calculations, and can quickly realize the rapid filtering and grouping of complex trajectories. Through calculation, for a conventional agricultural machinery trajectory of 200,000 points, the processing time is less than 10 seconds.
[0115] In summary, the beneficial effects of the present invention are as follows: the present invention can quickly filter out road driving trajectories, parking noise trajectories and other non-operation trajectories of high-precision Beidou agricultural machinery operation trajectory data, and the processing effect is good, which reduces the efficiency of operation trajectory validity verification and operation area calculation, and improves the automation management capability of the Beidou agricultural machinery management platform.
[0116] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A Beidou agricultural machinery operation track rapid filtering and grouping method, characterized by: The following steps are involved: S1: Batch load the reported point data of agricultural machinery trajectory operation to obtain the trajectory points of agricultural machinery operation; S2: Based on the instantaneous speed of the trajectory point, the trajectory point is roughly classified according to the preset low-speed and high-speed thresholds to obtain zero-speed trajectory points, low-speed trajectory points, normal-speed trajectory points and high-speed trajectory points, which are stored in an array and the time sequence of the trajectory points is maintained; S3: grouping the normal speed trajectory points into road driving trajectories to obtain grouped trajectories excluding the main road driving; In step S3, the road driving grouping trajectory adopts three grouping methods in sequence, namely: grouping based on the distance between adjacent points, grouping based on the time interval threshold, and grouping based on the number of points around the trajectory point. S4: filtering the grouped trajectories through parking noise to obtain parking-filtered trajectories; In step S4, the parking noise trajectory is filtered by using two indicators, namely, the average direction change value of the trajectory and the number of zero-speed points in the trajectory, to form a combined judgment to filter the parking noise trajectory; The calculation process of the trajectory average direction change value is as follows: S411: Grouping trajectory G i Inner track point P n (X n , Y n ) and trajectory point P n+1 (X n+1 , Y n+1 ), calculate the line segment P n P n+1 The direction angle α n , α n Belongs to [0~2π], calculate the line segment P n P n+1 and P n+1 P n+2 The direction change angle Δα n ; S412: The direction change value Δα of the last point of the trajectory end , directly assigned to the direction change value Δα of the second-to-last point end-1 ; S413: Calculate the group G i Average direction change The calculation process of the number of zero-speed points in the trajectory is as follows: S421: Obtaining group trajectory G i The time T1 of the first trajectory point P1 and the time T2 of the last trajectory point P end Time T end ; S422: Traverse zero speed point group G zero Point P in n , get its time T n ; S423: When condition T n ≥T1 and T n ≤T end When group G i The number of zero-speed points Z i Increment by 1; S424: When the condition T n >T end When group G i Zero speed point group G zero The traversal ends; at this time, group G is obtained i The number of zero-speed points is Z i ; The average direction change value of the trajectory and the number of zero-speed points in the trajectory form a combined judgment, specifically: Grouping trajectory G i The average direction change And the number of zero points in this group is Z i >Z threshold1 , then the group trajectory G i Add parking noise trajectory set {G noise }; Grouping trajectory G i The average direction change And the number of zero points in this group is Z i >Z threshold2 , then the group trajectory G i Add parking noise trajectory set {G noise }; Grouping trajectory G i The average direction change And the number of zero points in this group is Z i >Z threshold3 , then the group trajectory G i Add parking noise trajectory set {G noise }; Among them, Δα threshold1 >Δα threshold2 >Δα threshold3 , Z threshold1 >Z threshold2 >Z threshold3 And the threshold parameters are all preset values; S5: filtering the non-operating trajectories at the head and tail of the trajectory after parking filtering to obtain the final output trajectory; In step S5, the non-operating trajectories of the head and tail are filtered, and the number of intersections of the normal segments of the number of points around the trajectory points after parking filtering and the self-trajectory line are used as the threshold to filter the non-operating trajectories of the head and tail; Step S5 performs filtering of the head and tail non-operation tracks, and the specific process is as follows: S51: Grouping track G i In the example, set the trajectory point P n (X n , Y n ) as the center, and obtain the buffer radius D buffer Circle O n , and find the outer rectangle R of the circle n , count the group trajectory, contained in the rectangle R n The number of track points within S52: Grouping track G i In the process, all trajectory points P1 to P end , construct the polyline of the trajectory i ; S53: Calculate trajectory G i The normal segments of each trajectory point and the trajectory line Polyline i The number of intersections; S54: filtering the head non-operation track according to the number of intersection points; S55: filtering the tail non-operation trajectory according to the number of intersection points, and outputting the final operation trajectory; S6: Apply the output trajectory to the operation trajectory verification and area calculation.
2. A Beidou agricultural machinery operation track rapid filtering and grouping method as claimed in claim 1, characterized in that: The grouping based on the distance between adjacent points is as follows: S311: Calculate the constant speed trajectory point P n The longitude and latitude coordinates (lon n ,lat n ), take the longitude lon1 of the first point as the central meridian of calculation, and calculate each track point P in turn n Gauss plane projection coordinates (X n ,Y n ); S312: Set the maximum spatial distance between adjacent points in the same group to D max , passing through the trajectory point P n The spatial distance D of adjacent points N under the projection coordinates of the trajectory is calculated n ; S313: If D n <D max , then the trajectory point P n With the previous trajectory point P n-1 grouped together, otherwise, the trajectory point P n First, create a new group until all trajectory points are traversed and the final grouped trajectory is obtained.
3. A Beidou agricultural machinery operation track rapid filtering and grouping method as claimed in claim 2, characterized in that: The grouping based on the time interval threshold is as follows: S321: Set the maximum time interval between adjacent points in the same group to ΔT max , calculate the time interval ΔT between adjacent points Pn-1 and Pn of the trajectory n ; S312: If ΔT n <ΔT max , then the trajectory point P n With the previous trajectory point P n-1 grouped together, otherwise, the trajectory point P n First, create a new group until all trajectory points are traversed and the final grouped trajectory is obtained.
4. A Beidou agricultural machinery operation track rapid filtering and grouping method as claimed in claim 3, characterized in that: The grouping based on the threshold value of the number of points surrounding the trajectory point is as follows: S331: Set the trajectory point P n (X n , Y n ) as the center, and obtain the buffer radius D bnffer Circle O n , and find the outer rectangle R of the circle n , count the group trajectory, contained in the rectangle R n The number of track points within S332: Set the surrounding point number segmentation threshold to like Then the trajectory point P n With the previous trajectory point P n-1 grouped together, otherwise, the trajectory point P n First, create a new group until all trajectory points are traversed and the final grouped trajectory is obtained.
Citation Information
Patent Citations
Agricultural machinery vehicle parking identification method
CN111340055A
Agricultural machine operation area calculation method based on spatial-temporal characteristics of BDS / GPS positioning data
CN113010567A
