A method, system, device and medium for completing agricultural machinery operation trajectories and reconstructing paths
By integrating GNSS, IMU and agricultural tool image data to identify the state of agricultural machinery operation, combined with interpolation and path reconstruction methods, the problem of incomplete trajectory in agricultural mechanization operations is solved, and trajectory reconstruction with high integrity and high reliability is achieved.
Patent Information
- Application Number
- CN202510694184.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2045-05-28
AI Technical Summary
The prior art has problems in the risk of operation monitoring interruption, GNSS signal instability, data discontinuity and lack of operation status judgment ability in agricultural mechanization operations, resulting in incomplete trajectory collection, incorrect remediation and omission.
The GNSS, IMU and agricultural tool image data are integrated, and the agricultural machinery operation status is identified through speed characteristics, IMU signals and image characteristics. Combined with interpolation and path reconstruction methods, the effective operation status is accurately identified and the trajectory is differentiated and the trajectory is missing.
It realizes high integrity and high reliability reconstruction of agricultural machinery operation trajectory, improves the purity and scientificity of trajectory data, adapts to diversified missing situations, and enhances the physical consistency of path reconstruction.
Smart Images

Figure CN120213012B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent agriculture, and specifically relates to a method, system, device and medium for completing agricultural machinery operation trajectories and reconstructing paths. Background Art
[0002] During the process of agricultural mechanization operations, accurately recording the operation trajectories of agricultural machinery is of great significance for farmland management, operation evaluation, and optimization of resource allocation. Currently, intelligent terminals are generally used to collect GNSS data to obtain operation trajectories, but this method faces multiple challenges in the actual field environment, mainly including:
[0003] (1) Risk of operation monitoring interruption: The monitoring application may be abnormally terminated due to system resource scheduling, misoperation, or background mechanisms, resulting in incomplete trajectory collection;
[0004] (2) Unstable GNSS signals: In the farmland environment, there are often trees, terrain undulations, or building obstructions, which can easily cause GNSS data loss or a decrease in positioning accuracy;
[0005] (3) Discontinuous collected data: Limited by terminal storage, caching, and network, etc., the time interval of sampling points may be uneven, resulting in discontinuous trajectories;
[0006] (4) Lack of operation status discrimination ability: Existing methods usually only complete trajectories based on position data, and it is difficult to effectively identify whether the agricultural machinery is in an effective operation state, resulting in problems such as miscompletion of non-operation trajectories and omission of operation segments.
[0007] Traditional trajectory completion methods usually ignore the differences in operation status, and it is easy to misjudge non-operation segments as areas to be completed, resulting in data pollution; In summary, there is an urgent need for a trajectory completion and path reconstruction method that can accurately identify the effective operation state, and also has the ability to determine the type of trajectory loss and the differential completion process, so as to achieve high-integrity and high-reliability reconstruction and completion of agricultural machinery operation trajectories. Summary of the Invention
[0008] In view of the deficiencies in the prior art, the present invention provides a method, system, device and medium for completing agricultural machinery operation trajectories and reconstructing paths, which can integrate multi-source perception information such as GNSS and IMU, accurately identify the effective operation state, and also have the ability to determine the type of trajectory loss and the differential completion process, so as to achieve high-integrity and high-reliability reconstruction and completion of agricultural machinery operation trajectories.
[0009] The present invention provides the following technical solutions:
[0010] In the first aspect, a method for completing agricultural machinery operation trajectories and reconstructing paths is provided, including the following steps:
[0011] S1: Collect multi-source data and preprocess it. The multi-source data includes GNSS positioning data, IMU data, and agricultural implement image data of agricultural machinery;
[0012] S2: Based on the multi-source data, identify the operation state of the agricultural machinery and perform confidence scoring on the original operation trajectory formed based on the GNSS positioning data through speed features, IMU signals, and image features;
[0013] S3: According to the operation state of the agricultural machinery, retain the valid operation trajectory in the original operation trajectory, and identify the length of the missing segment of the valid operation trajectory;
[0014] S4: Based on the confidence and length of the missing segment, select the interpolation completion method or the path reconstruction method to fill the missing segments of the valid operation trajectory in sequence. Among them, when selecting path reconstruction to fill the missing segment m for filling, the missing segment m is determined as an unreasonable missing trajectory through the dual judgment of operation time deviation and IMU spectrum features.
[0015] Optionally, the GNSS positioning data is spatial position coordinates including sampling timestamps; the IMU data includes: the three-axis acceleration of the agricultural machinery, the three-axis angular velocity of the agricultural machinery, and the heading angle including sampling timestamps; the preprocessing includes: timestamp alignment of multi-source data, filtering and denoising, and abnormal data elimination.
[0016] Optionally, step S2 specifically includes:
[0017] S21: Based on the trajectory point sequence of the original operation trajectory , generate a speed sequence regarding the speed between adjacent trajectory points, and filter the speed sequence. If the speed within consecutive N set time windows after filtering is within the set reasonable speed interval, the speed feature score of the current N set time window is 1, otherwise it is 0;
[0018] S22: Based on the continuous IMU time series formed by the IMU data, according to the set time window size, obtain the IMU signals within each time window, including the acceleration variance of the agricultural machinery along the driving direction, the acceleration peak , and the average angular velocity around the vertical axis. If and are satisfied, the acceleration vibration feature score of the current time window is 1, otherwise it is 0; if is satisfied, the IMU yaw angle feature score of the current time window is 1, otherwise it is 0, where , and respectively 、 and the corresponding set thresholds;
[0019] S23: Fuse the speed feature score, acceleration vibration feature score, and IMU yaw angle feature score within the current time window into the confidence score of the current time window according to the set weights α ;
[0020] S24: If the confidence score of the current time window α is within the set high-confidence interval, the agricultural machinery operation state of the current time window is an effective working state and high confidence;
[0021] If the confidence score of the current time window α is within the set low-confidence interval, further extract the image features of the implement image data and identify the implement opening state. If the output is that the implement is open, the agricultural machinery operation state of the current time window is an effective working state and low confidence. If the output is that the implement is closed, the agricultural machinery operation state of the current time window is a non-effective working state;
[0022] If the confidence score of the current time window α is lower than the set low-confidence interval, the agricultural machinery operation state of the current time window is a non-effective working state.
[0023] Optionally, step S3 is specifically as follows:
[0024] S31: Based on the trajectory point sequence of the original operation trajectory and the positioning data sampling timestamp, obtain the average sampling interval of the original operation trajectory , and set the first missing threshold and the second missing threshold and ;
[0025]
[0026]
[0027] wherein, is the total number of trajectory points of the original operation trajectory, is the sampling interval between any two trajectory points, and are respectively the sampling timestamps of the and th trajectory points;
[0028] S32: Retain the job trajectory in the effective working state as the effective job trajectory, and compare the sampling intervals of any two trajectory points in the effective job trajectory. , if , then there is a short missing segment between the current two trajectory points. If , then there is a long missing segment between the current two trajectory points.
[0029] Optionally, step S4 specifically includes:
[0030] S41: If the current missing segment has low confidence, no filling process is performed.
[0031] S42: If the current missing segment has high confidence and is a long missing segment, successively perform job time deviation judgment and IMU spectrum feature judgment on the current long missing segment. If both pass, it is a reasonable missing trajectory, and the interpolation and completion method is selected to complete the current missing segment. Otherwise, it is an unreasonable missing trajectory, and it is filled through path reconstruction.
[0032] S43: If the current missing segment has high confidence and is a short missing segment, select the interpolation and completion method to complete the current missing segment.
[0033] Among them, performing job time deviation judgment on the current long missing segment specifically means:
[0034] According to the GNSS positioning data corresponding to the effective trajectory curve, obtain the average speed of multiple uniform linear segments in the effective job trajectory. , and according to the distance between the start point and the end point of the long missing segment , obtain the expected job time of the long missing segment ; obtain the actual interval time between the start point and the end point of the long missing segment ; judge whether the difference between the expected job time and the actual interval time of the long missing segment meets the set threshold. If it meets, the job time deviation judgment is passed.
[0035] Performing IMU spectrum feature judgment on the current long missing segment specifically means:
[0036] Obtain the acceleration of the agricultural machinery along the driving direction of the long missing segment , perform FFT transformation on it to the frequency domain, and obtain the frequency-amplitude distribution curve; find the main peak frequency and amplitude of the frequency-amplitude distribution curve. If both meet the set threshold interval, the IMU spectrum feature judgment is passed.
[0037] Optionally, the method of interpolating and completing the missing segment specifically is:
[0038] According to the start and end position coordinates of the missing segment and , as well as the heading angles corresponding to the start and end points and , obtain the positions of two control points and respectively;
[0039]
[0040]
[0041] wherein, is the extension distance of the set control point;
[0042] Use the cubic Bezier curve as the basic form of the interpolation trajectory, and generate a complemented trajectory curve by using the start point, end point and positions of the two control points of the missing segment, and insert the complemented trajectory curve into the effective operation trajectory in the form of trajectory points.
[0043] Optionally, complement the missing segment by means of path reconstruction, specifically:
[0044] E1: Based on the start position of the missing segment , the IMU data of the missing segment and the sampling interval of the IMU data, obtain the position of each sampling point of the missing segment, and generate the first path curve ;
[0045]
[0046]
[0047]
[0048]
[0049] wherein, , , and are the speed, position coordinates and heading angle of the p th sampling point respectively, P is the total number of sampling points of the missing segment; is the sampling interval, and the initial speed is the average speed within the set time before the missing segment, and the initial heading angle is the heading angle corresponding to the start time of the missing segment; is the sampling timestamp corresponding to the agricultural machinery combined acceleration; , and are the The speed and position coordinates of the sampling points;
[0050] E2: Calculate the change in the heading angle between the starting point and the ending point of the missing segment ; If the change exceeds 150°, then use the set turning path template to generate several second candidate path curves ; If the change is less than 150°, then use the set forward path template to generate several second candidate path curves ;
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057] Among them, is the length of the second candidate path curve, , is the average speed of multiple uniform straight-line segments in the effective operation trajectory, T is the missing time; is the heading angle in the set forward path template, is the heading angle relative to the initial heading angle of the offset angle; D 1 and D 2 are respectively the forward path curve and the turning path curve of the second candidate path curve , and are respectively the set forward distance and the turning driving distance of the second candidate path curve ; and are respectively the set forward heading angle and the heading angle after turning of the second candidate path curve ; is the set of the set forward heading angle and the heading angle after turning of the second candidate path curve ;
[0058] E3: Using the minimum Euclidean distance integration error as the matching index, select the second candidate path curve with the smallest difference from the first path curve as the optimal second path curve ;
[0059] E4: Fuse and reconstruct the first path curve and the second path curve to generate a reconstructed path for the missing segment; specifically:
[0060] E41: Obtain the position coordinates of four control points , , and : and are the starting and ending positions of the missing segment; ; , where and are the points at 30% and 60% positions of the first path curve respectively, and are the points at 30% and 60% positions of the second path curve respectively;
[0061] E42: Use the Bezier curve formula to generate the reconstructed path , and insert the reconstructed path into the effective operation trajectory in the form of trajectory points;
[0062]
[0063] where is the parameter of the Bezier curve, representing the position ratio of the curve between the control points.
[0064] In a second aspect, a farm machinery operation trajectory completion and path reconstruction system is provided, including:
[0065] Acquisition module: Acquire multi-source data and preprocess it. The multi-source data includes GNSS positioning data, IMU data, and farm tool image data of the farm machinery;
[0066] Operation status recognition module: Based on the multi-source data, identify the operation status of the farm machinery and perform confidence scoring on the original operation trajectory formed based on the GNSS positioning data through speed characteristics, IMU signals, and image characteristics;
[0067] Missing segment recognition module: According to the operation status of the farm machinery, retain the effective operation trajectory in the original operation trajectory and identify the length of the missing segment in the effective operation trajectory;
[0068] Differentiated filling module: Based on the confidence and length of the missing segment, select the interpolation filling method or the path reconstruction method to fill the missing segments of the effective operation trajectory in sequence. Among them, when selecting path reconstruction to fill the missing segment m for filling, the missing segmentm It is determined as an unreasonable missing trajectory through the dual judgment of operation time deviation and IMU spectrum characteristics.
[0069] In a third aspect, a computer device is provided, including a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the steps of the agricultural machinery operation trajectory completion and path reconstruction method described in any item of the first aspect are implemented.
[0070] In a fourth aspect, a computer-readable storage medium is provided for storing a computer program; when the computer program is executed by a processor, the steps of the agricultural machinery operation trajectory completion and path reconstruction method described in any item of the first aspect are implemented.
[0071] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0072] (1) By introducing an agricultural machinery state recognition mechanism, a dual-criterion trajectory rationality analysis and an interpolation-reconstruction combination strategy, the present application solves the problem of incomplete trajectories caused by discontinuous and severely missing trajectory data and unclear operation states in agricultural operations; by fusing GNSS speed characteristics, IMU dynamic characteristics and image perception, the present application realizes the accurate elimination of trajectory data in non-effective working states, improving the purity of the trajectory. In addition, for large segments of missing trajectories, the present application proposes a "dual-criterion" judgment mechanism that combines operation time deviation and IMU spectrum characteristics, which can accurately judge whether the missing segment can be filled. For fillable segments, interpolation filling is used for filling, and for non-fillable segments, path reconstruction is used for path filling, enhancing the scientificity and robustness of path filling and completion.
[0073] (2) For small missing segments, the present application uses a cubic Bezier curve interpolation method based on heading control points to achieve path geometric continuity and direction consistency; for non-fillable segments, a template path and IMU path fusion reconstruction strategy is introduced to support multi-path generation and evaluation, adapting to diverse missing situations; in the process of path reconstruction, the present application fuses the IMU heading estimation results, on the one hand, to improve the accuracy of path direction selection, and on the other hand, to achieve a high degree of matching between the path geometric structure and the actual movement behavior of the agricultural machinery, enhancing the physical consistency of the reconstructed path. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 is a flowchart of the agricultural machinery operation trajectory completion and path reconstruction method of the present invention;
[0075] Figure 2 is a flowchart of the dual judgment of the missing segment by the operation time deviation and IMU spectrum characteristics of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0076] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention, and cannot be used to limit the protection scope of the present invention.
[0077] It should be noted that the terms "first", "second", etc. in the specification, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the term "including" and any variation thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0078] Embodiment 1
[0079] As Figure 1 shown, a method for completing the operation trajectory and reconstructing the path of agricultural machinery is provided, including the following steps:
[0080] S1: Collect multi-source data and preprocess it. The multi-source data includes GNSS positioning data, IMU data and agricultural implement image data of the agricultural machinery.
[0081] The GNSS positioning data is the spatial position coordinates including the sampling timestamp; the GNSS positioning data and IMU data can be collected in real time by the agricultural machinery carrying an intelligent terminal (such as a smart phone) through various built-in or external sensors; the GNSS positioning data optionally supports high-precision differential positioning or RTK solution; each GNSS data synchronously records the timestamp.
[0082] The IMU data includes: the three-axis acceleration of the agricultural machinery, the three-axis angular velocity of the agricultural machinery and the heading angle including the sampling timestamp, where xThe direction is the driving direction of the agricultural machinery. The attitude angle can be estimated by fusing the data provided by the triaxial accelerometer and gyroscope built into the smartphone through the Attitude and Heading Reference System (AHRS) algorithm to obtain continuous triaxial attitude angle information, including the heading angle, pitch angle, and roll angle. Among them, the heading angle: represents the angle between the current direction and the due north; the pitch angle: represents the front-back tilt angle of the agricultural machinery; the roll angle: represents the left-right tilt degree. The triaxial acceleration and triaxial angular velocity of the Inertial Measurement Unit (IMU) data are usually collected simultaneously. For specific reference to the prior art, the sampling frequency is usually set to 50 Hz to 100 Hz to ensure capturing the dynamic behavior changes of the agricultural machinery.
[0083] The agricultural implement image data is collected by the smartphone camera or an external industrial camera to obtain the video or still images of the agricultural implement during the operation process.
[0084] To ensure the accuracy and temporal consistency of subsequent data analysis, the original multi-source data needs to go through the following preprocessing steps:
[0085] S11: Timestamp alignment.
[0086] Based on the GNSS sampling frequency as the benchmark, unify the time axes of the IMU and image data to construct a unified time-series data sequence; if there are differences in the sampling rates of each data, linear interpolation or spline interpolation is used for data alignment.
[0087] S12: Filtering and denoising processing.
[0088] Apply sliding mean filtering to the acceleration and angular velocity data to remove high-frequency jitters; remove noise points (such as abrupt values and obviously non-physical change points).
[0089] S13: Abnormal data elimination.
[0090] Delete the pseudo points with a GNSS speed of 0 and a sudden change in position; eliminate the invalid data segments with abnormal timestamps and missing data.
[0091] S2: Based on the multi-source data, identify the operation state of the agricultural machinery and perform confidence scoring on the original operation trajectory formed based on the GNSS positioning data through speed characteristics, IMU signals, and image characteristics.
[0092] The original operation trajectory is the GNSS sampling trajectory points (after preprocessing). Although the agricultural machinery has continuous GNSS trajectory records during operation, its behavioral state may change frequently. For example, it turns around between operation rows; the operation equipment is not turned on but still moving; it is in a stationary state waiting for refueling / feeding; the agricultural machinery is moving forward without operation (empty vehicle transfer). The above states are manifested as continuous moving trajectories in the GNSS trajectory, but they do not represent the actual operation behavior. If not identified and filtered, it is easy to lead to misjudgment of key indicators such as operation area, coverage rate, and omission rate, thus affecting the accuracy of trajectory completion and data analysis.
[0093] To improve the expression ability of trajectory data for real operation behavior, the recognition and confidence scoring of the operation state of agricultural machinery are carried out on the original operation trajectory formed based on GNSS positioning data through speed characteristics, IMU signals, and image characteristics. Thus, the trajectory of the effective working state of the agricultural machinery is used as the pre-judgment basis for trajectory missing recognition and filling, significantly improving the effectiveness and completion quality of trajectory data; it should be noted that the operation states of the agricultural machinery in this application include: effective working state and non-effective working state. In this application, the effective working state means that the agricultural machinery is in effective operation processes such as sowing, spraying, fertilizing, etc., and the farming tools are in the working-on state; the non-effective working state includes non-operation state and stop state. The non-operation state is that the agricultural machinery is in a moving but non-operating state, such as moving between rows, turning around or making a U-turn; the stop state means that the agricultural machinery is in a stationary state or the equipment stops the effective working state.
[0094] Step S2 specifically includes the following sub-steps:
[0095] S21: Based on the sequence of trajectory points of the original operation trajectory , generate a speed sequence regarding the speed between adjacent trajectory points, and filter the speed sequence. If the speeds within consecutive N set time windows after filtering are all within the set reasonable speed interval, the speed feature score of the current N set time window is 1, otherwise it is 0.
[0096] Specifically, step S21 identifies whether the agricultural machinery is in the effective working state through speed characteristics. Through the analysis of the speed change between GNSS trajectory points, non-operation segments such as the stationary stage and abnormal short-distance jitters can be effectively screened out, providing an initial state framework for subsequent IMU dynamic analysis and image discrimination.
[0097] Based on the continuous sequence of trajectory points collected by the GNSS sensor , the speed between adjacent trajectory points is calculated using the following formula
[0098]
[0099] Among them, is the spatial position coordinate of the th trajectory point; is the corresponding timestamp; the speed is the average moving speed of the th segment, and the unit is usually meters per second (m / s) or kilometers per hour (km / h).
[0100] To improve the stability of speed estimation, the system uses a moving average filter to smooth the speed sequence, and the filter window size is set to 5 trajectory points. Optionally, the reasonable speed range set in this application is (0.2 m / s) and (3 m / s).
[0101] If the speeds within consecutive time windows all satisfy: , then the current time period is determined to be in a "stationary state" or a "non-operating state", that is, a non-effective working state, and the speed feature score is 0 at this time.
[0102] If the speeds within consecutive time windows are all stably maintained within a reasonable range (such as ), then the current time period is determined to be a suspected effective working state, and the speed feature score is 1 at this time.
[0103] If the speeds within consecutive time windows all satisfy: , then the current time period may be in a "transition state" or an "abnormally high moving segment", that is, the speed feature score is 0. Among them, both the "transition state" and the "abnormally high moving segment" are non-effective working states. In some other embodiments, according to actual needs, the "stationary state", "non-operating state", "transition state" or "abnormally high moving segment" can be further marked.
[0104] S22: Based on the continuous IMU time series formed by the IMU data, according to the set time window size, obtain the IMU signals within each time window, including the acceleration variance of the agricultural machinery along the driving direction , the acceleration peak , the average angular velocity around the vertical axis . If and are satisfied, then the acceleration vibration feature score of the current time window is 1, otherwise it is 0; if is satisfied, then the IMU yaw angle feature score of the current time window is 1, otherwise it is 0, where , and respectively 、 and corresponding set thresholds.
[0105] Specifically, step S22 analyzes the acceleration change and heading angle change characteristics in the forward direction of the agricultural machinery, combines time-domain statistics and frequency-domain vibration characteristics to identify whether the agricultural machinery is in an effective operation state.
[0106] Longitudinal acceleration : Represents the linear acceleration of the agricultural machinery along the driving direction, reflecting the forward rhythm and ground coupling characteristics.
[0107] Yaw angular velocity : Represents the angular velocity around the vertical axis, reflecting whether there is a change in the direction of the agricultural machinery (turning around, U-turn, turning).
[0108] Longitudinal acceleration and yaw angular velocity are sampled at a fixed frequency (such as 50 - 100 Hz), and are processed by time alignment and low-pass filtering in the preprocessing stage to form a continuous time series.
[0109] (I). Variance of the acceleration of the agricultural machinery along the driving direction : Used to measure the acceleration fluctuation degree of the agricultural machinery in the forward direction during this period, and is solved by the following formula:
[0110]
[0111] Criterion logic: If < : The vibration is stable, possibly in the operation section. On the contrary, the vibration is intense, possibly in the turning around or non-operation section. Threshold description: is the stability threshold, and the recommended initial value range is 0.02 - 0.1 (m / s 2 ) 2 , which can be adjusted according to the type of agricultural machinery or determined by historical trajectory fitting; is the average value of the acceleration along the driving direction of N sampling points.
[0112] (II). Acceleration peak value : The maximum absolute value within the time window , measuring the instantaneous intensity of vibration; the specific formula expression is:
[0113]
[0114] Criterion logic: If , there is significant longitudinal acceleration fluctuation during the current time period, which may be caused by the operation of work implements (such as the vibration of seeding devices and spraying pumps); then it is determined as an effective operation vibration section, otherwise it is a weak vibration or static section.
[0115] is the discrimination threshold of acceleration intensity, which represents the minimum instantaneous amplitude required to form an effective vibration behavior in the longitudinal acceleration signal. The initial value is 0.8 - 1.5 m / s 2 , and it should be specifically adaptively adjusted through historical sample fitting according to different agricultural machinery models and work tool characteristics.
[0116] (3). Mean angular velocity : Calculate the average value of the yaw angular velocity within the time window , which reflects the overall rotation trend. The specific formula is:
[0117]
[0118] Discrimination logic: If , it indicates that there is a continuous turning action and may be in a U-turn / turning state; if , then it is considered that the current direction is stable and in a straight-line operation state. Optionally, the threshold: is , and it can be flexibly adjusted within the interval according to the agricultural machinery structure and turning radius to adapt to different equipment configurations and operation scenarios.
[0119] At , the current time period is a "stable operation section", indicating that the agricultural machinery is performing an operation with significant vibration amplitude and stable direction;
[0120] At and the change of the heading angular velocity is not significant ( ), then the current time period is a "non-operation abnormal vibration section", and such a state may be caused by equipment looseness, rough ground or unclosed work implements;
[0121] When , regardless of whether the acceleration characteristics change significantly, the system determines that the current section is a "U-turn / turning section", and this state often appears in the in-row U-turn, U-turn or turning operation stages (all are non-effective working states) and needs to be excluded to avoid duplicate coverage.
[0122] S23: Integrate the speed feature score, acceleration vibration feature score and IMU yaw angle feature score within the current time window into the confidence score of the current time window according to the set weights α .
[0123] Specifically, the formula is:
[0124] Among them, is the speed feature score, is the acceleration vibration feature score, is the IMU yaw angle feature score, , and are respectively , and corresponding weights. Optionally, is 0.4, and are both 0.3.
[0125] S24: If the confidence score of the current time window α is within the set high confidence interval, the agricultural machinery operation state of the current time window is an effective working state and high confidence; if the confidence score of the current time window α is within the set low confidence interval, then further extract the image features from the implement image data and identify the implement opening state. If the output is that the implement is open, the agricultural machinery operation state of the current time window is an effective working state and low confidence. If the output is that the implement is closed, the agricultural machinery operation state of the current time window is a non-effective working state; if the confidence score of the current time window α is lower than the set low confidence interval, the agricultural machinery operation state of the current time window is a non-effective working state.
[0126] Optionally, the high confidence interval is: α > 0.8; the low confidence interval is 0.5 - 0.8; lower than the set low confidence interval is lower than 0.5.
[0127] When the agricultural machinery is at a stable speed, the acceleration is stable, and the direction is not deflected, but the operation implement is not opened (such as the sprinkler is not spraying, the seeder is not rotating). At this time, if only relying on GNSS and IMU signals, it is difficult to accurately identify whether it is an effective operation section; to improve the integrity and accuracy of state recognition, the present invention introduces image-assisted recognition as an optional enhanced channel of the state recognition system, and judges whether the implement is in the "open / closed" state based on visual perception to assist in confirming "whether it is operating". Extracting the image features from the implement image data and identifying the implement opening state can be carried out after training through existing neural network algorithms, and the feature extraction method and the opening state recognition method can refer to the prior art.
[0128] S3: According to the agricultural machinery operation state, retain the effective operation trajectory in the original operation trajectory and identify the length of the missing segment of the effective operation trajectory.
[0129] Step S3 specifically includes:
[0130] S31: Based on the sequence of trajectory points of the original operation trajectory and the positioning data sampling timestamps, obtain the average sampling interval of the original operation trajectory , and set a first missing threshold and a second missing threshold ; ;
[0131]
[0132]
[0133] Wherein, is the total number of trajectory points of the original operation trajectory, is the sampling interval between any two trajectory points, and are the sampling timestamps of the and th trajectory points respectively.
[0134] Optionally, set the first missing threshold and the second missing threshold to and respectively.
[0135] S32: Retain the operation trajectory in the effective working state as the effective operation trajectory, and compare the sampling intervals between any two trajectory points in the effective operation trajectory. If , then there is a short missing segment between the current two trajectory points. If , then there is a long missing segment between the current two trajectory points.
[0136] S4: Based on the confidence level and length of the missing segment, select an interpolation filling method or a path reconstruction method to fill the missing segments of the effective operation trajectory in sequence. Among them, when selecting path reconstruction to fill the missing segment m , the missing segment m is determined as an unreasonable missing trajectory through double judgment of operation time deviation and IMU spectrum characteristics.
[0137] Step S4 specifically includes:
[0138] S41: If the long missing segment of the current missing segment has a low confidence level, mark this long missing segment as an invalid trajectory and do not perform filling processing; if the current missing segment is a short missing segment and has a low confidence level, do not perform filling processing.
[0139] S42: If the current missing segment is a high-confidence and large missing segment, then perform job time deviation judgment and IMU spectrum feature judgment on the current large missing segment in sequence. If both pass, it is a reasonable missing trajectory, and the interpolation and completion method is selected to complete the current missing segment; otherwise, it is an unreasonable missing trajectory, and then it is filled by path reconstruction.
[0140] Among them, as Figure 2 shown, a: Perform job time deviation judgment on the current large missing segment, specifically:
[0141] a1: According to the GNSS positioning data corresponding to the effective trajectory curve, obtain the average speed of multiple uniform straight-line segments in the effective job trajectory , and according to the distance between the start point and the end point of the large missing segment , obtain the expected job time of the large missing segment .
[0142]
[0143]
[0144] Among them, is the total distance of multiple uniform straight-line segments, is the total duration of multiple uniform straight-line segments.
[0145] a2: Obtain the actual interval time between the start point and the end point of the large missing segment .
[0146]
[0147] The actual interval time is equivalent to the actual missing time of the missing segment. The distance between the two trajectory points at both ends of the missing segment is determined by the position coordinates of the start point and the end point of the missing segment, and the actual missing time is determined according to the sampling timestamps of the start point and the end point.
[0148] a3: Judge whether the difference between the expected job time of the large missing segment and the actual interval time meets the set threshold. If it meets, it passes the job time deviation judgment; otherwise, it is an unreasonable missing trajectory.
[0149]
[0150] As an option, set the error tolerance threshold to be 10% - 15% of the estimated time, or fixed at ±5 seconds.
[0151] b: Perform IMU spectrum feature judgment on the current large missing segment, specifically:
[0152] b1: Obtain the acceleration of the agricultural machinery in the driving direction for the large missing segment, perform FFT transformation on it to the frequency domain, and obtain the frequency-amplitude distribution curve. , and perform FFT transformation on it to the frequency domain to obtain the frequency-amplitude distribution curve.
[0153] Specifically, the fast Fourier transform (FFT) refers to the prior art.
[0154] Acceleration The frequency-amplitude distribution curve is:
[0155]
[0156] The spectrum range is generally set to 0~2 Hz, covering most of the conventional action frequencies of the agricultural machinery.
[0157] b2: Find the main peak frequency and amplitude of the frequency-amplitude distribution curve. If both meet the set threshold interval, judge through the IMU spectrum characteristics; otherwise, it is an unreasonable missing trajectory.
[0158] For typical behaviors of agricultural machinery such as turning around, spraying conversion, and left-right micro-swinging, their main frequencies are concentrated in 0.15~0.35 Hz; set the frequency matching interval as Hz; find the main peak frequency and its amplitude ; if it satisfies:
[0159]
[0160] That is, it is considered that this segment has the characteristics of operation behavior and is judged as "reasonable trajectory missing". Among them is the dynamically set energy threshold (such as more than 20% of the total energy of this segment, or 3 times the mean value).
[0161] The IMU spectrum feature judgment can be used to identify whether the missing segment of the trajectory conforms to the characteristics of typical agricultural machinery operation actions (such as turning around, uniform sowing, and micro-angle steering). During the actual operation of agricultural machinery, different actions will exhibit different inertial motion patterns. Specifically: when turning around, there will be periodic direction changes and acceleration oscillations; when driving in a straight line at a constant speed, the acceleration and angular velocity are relatively stable; when in a stationary or waiting state, the inertial signal fluctuations are weak; these motion characteristics can be manifested as different frequency energy distributions in the spectrum. In some scenarios, the duration of the missing segment of the trajectory is consistent with the historical operation rhythm, and the time criterion may pass, but the agricultural machinery is actually in a non-operating state (such as waiting, parking); or, the IMU signal spectrum of the missing segment conforms to the characteristics of the operation behavior, but the actual duration of this segment far exceeds the reasonable range, and there may be situations such as turning around or path deviation; if only relying on a single-dimensional criterion for judgment, it is easy to cause incorrect filling, overfilling, or wrong filling, affecting the overall accuracy of trajectory reconstruction. Therefore, to improve the accuracy and robustness of trajectory missing determination, this application incorporates a dual-criterion joint judgment mechanism that combines operation time deviation judgment and IMU spectrum feature judgment, so as to accurately understand the missing situation of the current missing segment and select a more accurate trajectory filling method.
[0162] S43: If the current missing segment is a high-confidence and small-segment missing segment, select the interpolation completion method to complete the current missing segment.
[0163] S431: Complete the missing segment by interpolation completion, specifically:
[0164] According to the starting and ending position coordinates of the missing segment and , and the heading angles corresponding to the starting and ending points and , respectively obtain the positions of two control points and ;
[0165]
[0166]
[0167] Among them, is the extended distance of the set control point; usually set to 20% - 30% of the Euclidean distance between the start and end points. This proportional range can effectively control the natural curvature of the path, so that the completed trajectory can avoid a rigid broken line of the line and will not have a sluggish or fluctuating deviation of the path.
[0168] Use the cubic Bezier curve as the basic form of the interpolation trajectory, and use the positions of the starting point, ending point, and two control points of the missing segment to generate the completed trajectory curve, and insert the completed trajectory curve into the effective operation trajectory.
[0169] The present invention uses the cubic Bezier curve as the basic form of the interpolation trajectory. The shape of the Bezier curve is determined by the starting point, the end point and two control points, and the position of the control point directly affects the bending direction and degree of the trajectory. In order to make the path transition in the trajectory completion process more natural and in line with the actual operation mode of agricultural machinery, the present invention uses the heading angle information to deduce the position of the two control points, thereby controlling the "starting direction" and "ending convergence direction" of the Bezier curve. Specifically, the control points of the trajectory are no longer automatically generated by the traditional average position or curve fitting, but are derived from the direction vectors of the starting and ending points. Taking the starting point as an example, the control point starts from the starting point and follows its heading angle. The first section of the direction guidance is formed by extending a certain distance d in the direction of This method forms a smooth curve in space with a connected start and end point and minimal curvature.
[0170] The Bezier path constructed in this application not only strictly satisfies positional boundary conditions but also achieves a natural transition between directional boundaries, resulting in a trajectory path with continuous curvature, no sudden changes, no reversals, and no unreasonable fluctuations. Subsequently, the number of sampling points on the generated curve is evenly divided by time (based on the time of missing trajectory and sampling frequency), and the complement point sequence is inserted into the original trajectory to fill the data gaps.
[0171] S432: Completing the missing segments by path reconstruction, specifically:
[0172] E1: Based on the starting position of the missing segment , the IMU data of the missing segment and the sampling interval of the IMU data, obtain the position of each sampling point of the missing segment, and generate the first path curve ;
[0173]
[0174]
[0175]
[0176]
[0177] in, 、 、 and Respectively p The speed, position coordinates and heading angle of each sampling point, P is the total number of sampling points in the missing segment; is the sampling interval, the initial speed is the average speed within the set time before the missing segment, and the initial heading angle is the heading angle corresponding to the starting time of the missing segment; is the sampling timestamp corresponding to the combined agricultural machinery acceleration, which is obtained by synthesizing the three-axis acceleration vectors of the agricultural machinery; 、 and are the speed and position coordinates of the th sampling point respectively.
[0178] E2: Calculate the change in the heading angle between the starting point and the ending point of the missing segment ; If the change exceeds 150°, then use the set U-turn path template to generate several second candidate path curves , if the change is less than 150°, then use the set forward path template to generate several second candidate path curves .
[0179] E2-1: Use the set forward path template to generate several second candidate path curves .
[0180] Starting from the starting point of the missing segment, emit direction lines along the direction, and each direction line is a second candidate path curve .
[0181]
[0182]
[0183]
[0184] Among them, is the length of the second candidate path curve, , is the average speed of multiple uniform straight-line segments in the effective operation trajectory, T is the missing time; is the heading angle in the set forward path template, is the heading angle relative to the initial heading angle offset angle.
[0185] E2-2: Use the set U-turn path template to generate several second candidate path curves ]>.
[0186] The change If it exceeds 150°, the agricultural machine has completed a U-turn operation in the missing section. At this time, in order to simulate the real turning behavior of the agricultural machine moving forward first and then making a U-turn, the second candidate path curve is divided into a forward section and a turning section .
[0187]
[0188]
[0189]
[0190]
[0191] Among them, D 1 and D 2 are respectively the forward path curve and the U-turn path curve of the second candidate path curve , and are respectively the set forward distance and the U-turn driving distance of the second candidate path curve ; As an option, it is ; and are respectively the set forward heading angle and the heading angle after U-turn of the second candidate path curve ; is the set of the set forward heading angle and the heading angle after U-turn of the second candidate path curve
[0192] E3: Using the minimum Euclidean distance integral error as the matching index, select the second candidate path curve with the smallest difference from the first path curve as the optimal second path curve .
[0193] Specifically, linearly resample a number of points in both the first path curve and the second candidate path curve to obtain two corresponding sets of points, and then calculate the matching degree between the first path curve and the second candidate path through the sum of squared Euclidean distances. The second candidate path curve with the smallest sum of squared Euclidean distances is taken as the second path curve.
[0194] E4: Fuse and reconstruct the first path curve and the second path curve to generate a reconstructed path for the missing section; Specifically:
[0195] E41: Obtain the position coordinates of four control points , , and : and are the starting and ending positions of the missing segment; ; , where and are the points at the 30% and 60% positions of the first path curve respectively, and are the points at the 30% and 60% positions of the second path curve respectively;
[0196] E42: Generate a reconstructed path using the Bezier curve formula , and insert the reconstructed path into the effective operation trajectory in the form of trajectory points;
[0197]
[0198] where is the parameter of the Bezier curve, representing the position ratio of the curve between the control points.
[0199] In this embodiment, the interpolated and completed path or the reconstructed path is evenly sampled into trajectory points according to the missing time period, and then these trajectory points are inserted into the effective operation trajectory to complete the effective operation trajectory.
[0200] Embodiment 2
[0201] An agricultural machinery operation trajectory completion and path reconstruction system, comprising:
[0202] Acquisition module: Acquire multi-source data and perform preprocessing on it. The multi-source data includes GNSS positioning data, IMU data, and agricultural implement image data of the agricultural machinery;
[0203] Operation status recognition module: Based on the multi-source data, identify the operation status of the agricultural machinery and perform confidence scoring on the original operation trajectory formed based on the GNSS positioning data through speed characteristics, IMU signals, and image characteristics;
[0204] Missing recognition module: According to the operation status of the agricultural machinery, retain the effective operation trajectory in the original operation trajectory, and identify the length of the missing segment of the effective operation trajectory;
[0205] Differentiated filling module: Based on the confidence and length of the missing segment, select the interpolation completion method or the path reconstruction method to fill the missing segments of the effective operation trajectory in sequence. Among them, when selecting path reconstruction to fill the missing segment m , the missing segment m is determined as an unreasonable missing trajectory through double judgment of operation time deviation and IMU spectrum characteristics.
[0206] For a more specific process of the above method, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be elaborated herein.
[0207] Embodiment 3
[0208] The present invention provides a computer device, including a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the steps of the above-mentioned agricultural machinery operation trajectory completion and path reconstruction method are implemented.
[0209] For a more specific process of the above method, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be elaborated herein.
[0210] Embodiment 4
[0211] The present invention provides a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the steps of the above-mentioned agricultural machinery operation trajectory completion and path reconstruction method are implemented.
[0212] For a more specific process of the above method, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be elaborated herein.
[0213] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the systems, devices, and storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
[0214] Those skilled in the art can clearly understand that the technologies in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solutions in the embodiments of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present invention.
[0215] The above are only the preferred embodiments of the present invention. The protection scope of the present invention is not limited to the above embodiments. All technical solutions falling within the idea of the present invention belong to the protection scope of the present invention. It should be noted that for those of ordinary skill in the art in this technical field, several improvements and refinements made without departing from the principle of the present invention should be regarded as within the protection scope of the present invention.
Claims
1. A method for completing the operation trajectory and reconstructing the path of agricultural machinery, characterized in that, Including the following steps: S1: Collect multi-source data and preprocess it. The multi-source data includes GNSS positioning data, IMU data, and farm tool image data of agricultural machinery; S2: Based on the speed characteristics, IMU signals, and image characteristics corresponding to the multi-source data, identify the operating state of the agricultural machinery and perform confidence scoring on the original operating trajectory formed based on the GNSS positioning data; S3: According to the operating state of the agricultural machinery, retain the valid operating trajectory in the original operating trajectory and identify the length of the missing segment of the valid operating trajectory; S4: Based on the confidence level and length of the missing segment, select the interpolation completion method or the path reconstruction method to fill the missing segment of the effective operation trajectory. When selecting path reconstruction to fill the missing segment, m the missing segment m has been double-determined as an unreasonable missing trajectory through the operation time deviation and the IMU spectrum characteristics; Step S2 specifically includes: S21: Trajectory point sequence based on the original operation trajectory , generate a speed sequence regarding the speed between adjacent trajectory points , and filter the speed sequence. If the speeds within consecutive N set time windows after filtering are all within the set reasonable speed interval, the speed feature score of the current N set time window is 1, otherwise it is 0; S22: Based on the continuous time series of IMU data formed, according to the set time window size, obtain the IMU signals within each time window, including the acceleration variance of the agricultural machinery along the driving direction , the acceleration peak , the average angular velocity around the vertical axis . If it satisfies and , then the acceleration vibration feature score of the current time window is 1, otherwise it is 0; if it satisfies , then the IMU yaw angle feature score of the current time window is 1, otherwise it is 0, where , and are respectively , and corresponding set thresholds; S23: Fuse the speed feature score, acceleration vibration feature score, and IMU yaw angle feature score within the current time window into the confidence score of the current time window according to the set weights α ; S24: If the confidence score of the current time window α is within the set high-confidence interval, the agricultural machinery operation status of the current time window is in an effective working state with high confidence; If the confidence score of the current time window α is within the set low-confidence interval, then further extract image features from the farm implement image data and identify the opening state of the farm implement. If the output is that the farm implement is open, the agricultural machinery operation state of the current time window is an effective working state with low confidence. If the output is that the farm implement is closed, the agricultural machinery operation state of the current time window is a non-effective working state; If the confidence score of the current time window α is lower than the set low confidence interval, the agricultural machinery operation status of the current time window is in a non-effective working state.
2. The method for completing the agricultural machinery operation trajectory and reconstructing the path according to claim 1, wherein The GNSS positioning data is spatial position coordinates including sampling timestamps; the IMU data includes: the three-axis acceleration of the agricultural machinery, the three-axis angular velocity of the agricultural machinery, and the heading angle, all including sampling timestamps; the preprocessing includes: timestamp alignment of multi-source data, filtering and denoising, and abnormal data elimination.
3. The method for supplementing agricultural machinery operation trajectories and reconstructing paths according to claim 1, characterized in that Step S3 is specifically: S31: Obtain the average sampling interval of the original operation trajectory based on the trajectory point sequence of the original operation trajectory and the positioning data sampling timestamp, and set a first missing threshold and a second missing threshold according to the average sampling interval; , and according to the average sampling interval set a first missing threshold and a second missing threshold ; wherein, is the total number of trajectory points of the original operation trajectory, is the sampling interval between any two trajectory points, and are respectively the sampling timestamps of the -th and the -th trajectory points; S32: Retain the job trajectory in the effective working state as the effective job trajectory, and compare the sampling intervals of any two trajectory points in the effective job trajectory , if , then there is a short missing segment between the current two trajectory points. If , then there is a long missing segment between the current two trajectory points.
4. The method for completing the agricultural machinery operation trajectory and reconstructing the path according to claim 1, wherein Step S4 specifically includes: S41: If the current missing segment has low confidence, no filling process is performed; S42: If the current missing segment has high confidence and is a large missing segment, successively perform judgment on the operating time deviation and IMU spectrum characteristics of the current large missing segment. If both pass, it is a reasonable missing trajectory, and the interpolation and completion method is selected to complete the current missing segment. Otherwise, it is an unreasonable missing trajectory, and it is filled by the path reconstruction method; S43: If the current missing segment has high confidence and is a small missing segment, the interpolation and completion method is selected to complete the current missing segment; Among them, performing judgment on the operating time deviation of the current large missing segment is specifically: Obtain the average speed of multiple uniform linear segments in the effective operation trajectory according to the GNSS positioning data corresponding to the effective trajectory curve , and according to the distance between the starting point and the ending point of the large missing segment , obtain the expected operation time of the large missing segment ; obtain the actual interval time between the starting point and the ending point of the large missing segment ; judge whether the difference between the expected operation time and the actual interval time of the large missing segment meets the set threshold. If it meets, judge through the operation time deviation; Performing judgment on the IMU spectrum characteristics of the current large missing segment is specifically: Obtain the acceleration of the agricultural machinery in the driving direction for the large missing segment , perform FFT transformation on it to the frequency domain, and obtain the frequency-amplitude distribution curve; find the main peak frequency and amplitude of the frequency-amplitude distribution curve. If both of them meet the set threshold interval, then judge through the IMU spectrum characteristics.
5. The method for completing the agricultural machinery operation trajectory and reconstructing the path according to claim 4, characterized in that Completing the missing segment by the interpolation and completion method is specifically: According to the starting and ending position coordinates of the missing segment and , as well as the course angles corresponding to the starting point and the ending point and , respectively obtain the positions of two control points and ; Among them, is the extension distance of the set control point; Using a cubic Bezier curve as the basic form of the interpolation trajectory, and using the positions of the starting point, ending point, and two control points of the missing segment to generate a completed trajectory curve, and inserting the completed trajectory curve into the valid operating trajectory in the form of trajectory points.
6. The method for completing the agricultural machinery operation trajectory and reconstructing the path according to claim 4, characterized in that Completing the missing segment by the path reconstruction method is specifically: E1: Based on the starting position of the missing segment , the IMU data of the missing segment, and the sampling interval of the IMU data, obtain the position of each sampling point of the missing segment and generate the first path curve ; Among them, , , and are the velocity, position coordinates and heading angle of the p th sampling point respectively; P is the total number of sampling points in the missing segment; is the sampling interval, and the initial velocity is the average velocity within the set time before the missing segment, and the initial heading angle is the heading angle corresponding to the starting time of the missing segment; is the sampling timestamp corresponding to the combined acceleration of the agricultural machinery; , and are the velocity and position coordinates of the th sampling point respectively; E2: Calculate the change in the heading angle between the starting point and the ending point of the missing segment ; If the change exceeds 150°, then use the set turning path template to generate several second candidate path curves ; If the change is less than 150°, then use the set forward path template to generate several second candidate path curves ; Among them, is the length of the second candidate path curve, , is the average speed of multiple uniform linear segments in the effective operation trajectory, T is the missing time; is the heading angle in the set forward path template, is the heading angle relative to the initial heading angle offset angle; D 1 and D 2 are respectively the forward path curve and the U-turn path curve of the second candidate path curve , and are respectively the set forward distance and the U-turn driving distance of the second candidate path curve ; and are respectively the set forward heading angle and the heading angle after U-turn of the second candidate path curve ; is the set of the set forward heading angle and the heading angle after U-turn of the second candidate path curve ; E3: Using the minimum Euclidean distance integration error as the matching index, select the second candidate path curve with the smallest difference from the first path curve as the optimal second path curve ; E4: Fuse and reconstruct the first path curve and the second path curve to generate a reconstructed path for the missing segment; specifically: E41: Obtain the position coordinates of four control points , , and : and are the starting and ending positions of the missing segment; ; , where and are the points at the 30% and 60% positions of the first path curve respectively, and are the points at the 30% and 60% positions of the second path curve respectively; E42: Generate a reconstructed path using the Bezier curve formula and insert the reconstructed path into the valid operation trajectory in the form of trajectory points; Among them, is the parameter of the Bessel curve, representing the position ratio of the curve between the control points.
7. An agricultural machinery operation trajectory completion and path reconstruction system, characterized in that, Including: Collection module: Collect multi-source data and preprocess it. The multi-source data includes GNSS positioning data, IMU data, and farm tool image data of agricultural machinery; Operating state identification module: Based on the speed characteristics, IMU signals, and image characteristics corresponding to the multi-source data, identify the operating state of the agricultural machinery and perform confidence scoring on the original operating trajectory formed based on the GNSS positioning data; Missing identification module: According to the operating state of the agricultural machinery, retain the valid operating trajectory in the original operating trajectory and identify the length of the missing segment of the valid operating trajectory; Differentiated filling module: Based on the confidence level and length of the missing segment, select the interpolation completion method or the path reconstruction method to fill the missing segment of the effective operation trajectory. Among them, when selecting path reconstruction to fill the missing segment m for filling, the missing segment m has been double-determined as an unreasonable missing trajectory through operation time deviation and IMU spectrum characteristics; Step S2 specifically includes: S21: Trajectory point sequence based on the original operation trajectory , generate a speed sequence regarding the speed between adjacent trajectory points, and filter the speed sequence. If the speeds within N consecutive set time windows after filtering are all within the set reasonable speed range, the speed feature score of the current N set time window is 1, otherwise it is 0; S22: Based on the continuous time series of IMU data formed, according to the set time window size, obtain the IMU signals within each time window, including the acceleration variance of the agricultural machinery along the driving direction , the acceleration peak , the average angular velocity around the vertical axis . If it satisfies and , then the acceleration vibration feature score of the current time window is 1, otherwise it is 0; if it satisfies , then the IMU yaw angle feature score of the current time window is 1, otherwise it is 0, where , and are respectively , and corresponding set thresholds; S23: Fuse the speed feature score, acceleration vibration feature score, and IMU yaw angle feature score within the current time window into the confidence score of the current time window according to the set weights α ; S24: If the confidence score of the current time window α is within the set high-confidence interval, the agricultural machinery operation status of the current time window is in an effective working state with high confidence; If the confidence score of the current time window α is within the set low-confidence interval, then further extract the image features of the farm implement image data and identify the opening state of the farm implement. If the output is that the farm implement is open, the agricultural machinery operation state of the current time window is an effective working state with low confidence. If the output is that the farm implement is closed, the agricultural machinery operation state of the current time window is a non-effective working state; If the confidence score of the current time window α is lower than the set low confidence interval, the agricultural machinery operation status of the current time window is in a non-effective working state.
8. A computer device, characterized in that, Including a processor and a memory; among them, when the processor executes the computer program stored in the memory, the steps of the method for completing and reconstructing the operating trajectory of agricultural machinery according to any one of claims 1-6 are implemented.
9. A computer-readable storage medium, characterized in that, For storing a computer program; when the computer program is executed by the processor, the steps of the method for completing and reconstructing the operating trajectory of agricultural machinery according to any one of claims 1-6 are implemented.
Citation Information
Patent Citations
Vehicle failure trajectory reconstruction method and equipment, and storage medium
CN112197771A
Ship route extraction and trajectory classification method based on AIS data
CN114647705A