Momentum fitting and Kalman filtering fusion-based unmanned ship motion prediction method
By combining momentum fitting and Kalman filtering methods in unmanned ship motion prediction, and setting a fusion strategy based on motion scene division and prediction error, the problem of unmanned ship motion data lag is solved and higher prediction accuracy and Applicability, suitable for target motion state prediction in various environments.
Patent Information
- Application Number
- CN202410712715.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-17
AI Technical Summary
In the unmanned ship detection and sensing system, the time lag problem of motion data caused by network fluctuations and time-consuming processing brings real-time challenges to target positioning and tracking tasks.
A fusion method based on momentum fitting and Kalman filtering is adopted. By dividing different motion scenarios, the momentum fitting and Kalman filtering methods are used for prediction respectively, and the fusion weight is set according to the error of each method to achieve the prediction of the motion state of the unmanned ship. Weighted summation to improve forecast accuracy.
It improves the accuracy and applicability of unmanned ship motion prediction, and is suitable for motion state prediction of water, air and land targets. It fully considers the impact of turning angle on prediction, and achieves better prediction results through reasonable method fusion weights. .
Smart Images

Figure CN118654674A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of motion prediction, and in particular relates to an unmanned ship motion prediction method based on momentum fitting and Kalman filtering fusion. Background Art
[0002] In the unmanned ship detection and perception system, network fluctuations and time-consuming program processing may lead to the inability to receive the detected unmanned ship motion data in chronological order and the accumulation of motion data time lag. These problems will bring great challenges to tasks with high real-time requirements such as target positioning and target tracking. Summary of the invention
[0003] The purpose of the present invention is to provide an unmanned ship motion prediction method based on the fusion of momentum fitting and Kalman filtering, design a corresponding scene fusion strategy according to the prediction error of momentum fitting and Kalman filtering method in various motion scenes, and finally achieve better prediction accuracy.
[0004] In order to solve the above technical problems, the technical solution of the present invention is: an unmanned ship motion prediction method based on momentum fitting and Kalman filtering fusion, comprising the following steps:
[0005] S1. According to the turning angle of the unmanned ship during its movement, its movement process is divided into different movement scenes, and the historical track movement information of the unmanned ship under different movement scenes is collected respectively; the historical track movement information of the unmanned ship at least includes the longitude, latitude and timestamp of each historical track point of the unmanned ship;
[0006] S2. According to the historical track motion information of the unmanned ship under different motion scenarios, a first time-longitude model and a first time-latitude model are modeled by a momentum fitting method, and a first predicted speed of the unmanned ship is predicted, and a first predicted longitude and longitude and a first predicted heading of the unmanned ship are calculated; wherein the predicted speed includes the speed of the unmanned ship in the longitude and latitude directions;
[0007] S3. According to the historical track motion information of the unmanned ship under different motion scenes, a second time-longitude model and a second time-latitude model are modeled by the Kalman filtering method, and a Kalman filter is set in the second time-longitude model and the second time-latitude model respectively, and a second predicted longitude and latitude of the unmanned ship is obtained by motion fitting after linear interpolation calculation by the Kalman filtering method, and a second predicted speed and a second predicted heading of the unmanned ship are calculated;
[0008] S4. According to the prediction errors of momentum fitting and Kalman filtering, the fusion weights of the prediction results are set respectively, and the motion state prediction values of the unmanned ship under different motion scenarios are weightedly summed according to the fusion weights of momentum fitting and Kalman filtering to obtain the final prediction result; the motion state prediction value and prediction result of the unmanned ship include the predicted longitude and latitude, predicted speed and predicted heading of the unmanned ship.
[0009] S2 is specifically:
[0010] S21, calculating the speed of each historical track point of the unmanned ship in the latitude and longitude directions under different motion scenarios;
[0011] S22. According to the speed and timestamp of each historical track point of the unmanned ship in the latitude and longitude directions under different motion scenarios, the time interval Δt of the prediction time is introduced, and the first time-longitude model and the first time-latitude model are modeled by the momentum fitting method. The first predicted speed of the unmanned ship is predicted by the first time-longitude model and the first time-latitude model, and the first predicted longitude and latitude and the first predicted heading of the unmanned ship are calculated. The calculation method is:
[0012]
[0013] in, are the latitude and longitude prediction values obtained based on the momentum fitting method, are the latest latitude and longitude records of the unmanned ship, are the velocity values in the latitude and longitude directions obtained based on the momentum fitting method, Δt is the time interval of the prediction time, dir monen is the momentum fitting heading prediction value, f calculate_dir It is the latitude and longitude speed-heading conversion formula.
[0014] S21 is specifically as follows: for an unmanned ship, assuming that there are n historical track points in the historical track motion information of the unmanned ship, the historical track motion information of the unmanned ship is expressed as:
[0015] (lat1,lon1,t1),(lat2,lon2,t2),...,(lat n ,lon n ,t n )
[0016] Among them, lat and lon are the latitude and longitude of a historical track point, and t is the timestamp of the historical track point, that is, lat n is the latitude of the nth historical track point, lon n is the longitude of the nth historical track point, t n The timestamp of the nth historical track point;
[0017] According to the historical track movement information of the unmanned ship, the speed of each historical track point in the latitude and longitude direction is calculated, and the calculation method is expressed as:
[0018]
[0019] Among them, v i lat and v i lon are the velocities of the i-th historical track point in the latitude and longitude directions, i∈[1,n], f d is the distance conversion function, k is the number of interval points between historical track points when calculating the speed of historical track points in the latitude and longitude directions, and k=0 means that the speed is calculated by difference between adjacent historical track points.
[0020] In S22, the time interval of the prediction time is introduced, and the first time-longitude model and the first time-latitude model are modeled by the momentum fitting method. The calculation method of the first predicted speed of the unmanned ship predicted by the first time-longitude model and the first time-latitude model is expressed as follows:
[0021]
[0022] Among them, V t is the first predicted speed, expressed as the exponentially weighted average speed value at the tth moment; β is a hyperparameter, which determines the smoothness of the prediction curve; Δt1~Δt t-1 are the time intervals from the first moment to the prediction time of the t-1th moment; v1~v t are the actual values of the speed from the first moment to the tth moment respectively.
[0023] S3 is specifically:
[0024] According to the historical track motion information of the unmanned ship in different motion scenes, the second time-longitude model and the second time-latitude model are modeled by the Kalman filtering method, and a Kalman filter is set in the second time-longitude model and the second time-latitude model respectively. A discrete linear motion system model is set in the Kalman filter, which is expressed as:
[0025]
[0026] The following linear interpolation calculation is performed and then motion fitting is performed to obtain the second predicted longitude and latitude of the unmanned ship:
[0027]
[0028] Among them, x k is the true value of the system state, zk System state observation, A is the state transfer matrix, B is the control input matrix, H is the state observation matrix, ω k-1 is the process noise, v k is the observation noise, is the predicted value of the system state, is the optimal estimate of the state, and P k are the covariances between the true value and predicted value of the motion state, and between the true value and the optimal estimated value of the motion state; Q and R are the covariances of process noise and observation noise in the discrete linear motion system model, and the ratio of model prediction error to measurement error in the process of optimal estimation of the K state;
[0029] The second predicted speed and the second predicted heading of the unmanned ship are calculated according to the second predicted longitude and latitude of the unmanned ship, and the calculation method is:
[0030]
[0031] Among them, v kalman is the speed prediction value of Kalman filter, are the latitude and longitude prediction values of the Kalman filter, are the longitude and latitude records of the unmanned ship in a calculation cycle, and f d is the distance conversion formula, are the speed prediction values in latitude and longitude of Kalman filter, dir kalman is the Kalman filter heading prediction value, f calculate_dir It is the latitude and longitude speed-heading conversion formula.
[0032] The calculation method for setting the fusion weights in S4 according to the prediction errors of momentum fitting and Kalman filtering is:
[0033]
[0034] Among them, w momen is the fusion weight of the momentum fitting calculation result to the prediction result, w kalman is the fusion weight of the Kalman filter calculation result to the prediction result, e momen is the prediction error of the momentum fitting calculation result, e kalman The fusion weight of the Kalman filter calculation results on the prediction results.
[0035] The prediction results are expressed as:
[0036]
[0037] in, are the fusion speeds in latitude and longitude, respectively. are the predicted depths in latitude and longitude directions based on the momentum fitting method, are the predicted depths in latitude and longitude directions based on the Kalman filter method, dir is the heading prediction value, and f calculate_dir It is the latitude and longitude speed-heading conversion formula.
[0038] The motion scene is divided into at least a small-angle turning motion scene, a medium-angle turning motion scene and a large-angle turning motion scene, corresponding to the turning angles of the unmanned ship of [0°, 60°), [60°, 120°) and [120°, 180°) respectively.
[0039] A computer device is also provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the computer program.
[0040] A computer-readable storage medium is also provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] The present invention divides the motion scenes and designs corresponding scene fusion strategies according to the prediction errors of momentum fitting and Kalman filtering methods in each motion scene, thereby ultimately achieving better prediction accuracy.
[0043] Specifically, the present invention has strong applicability and can be used to predict the motion status of aerial, underwater and land targets in addition to the water surface domain.
[0044] The present invention fully considers the influence of the turning angle on the prediction accuracy during the target movement process, divides different movement scenes and designs corresponding scene strategies accordingly.
[0045] The present invention reasonably sets the weight of method fusion based on the separate motion prediction errors of momentum fitting and Kalman filtering methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a schematic diagram of the motion prediction process of the momentum fitting method in an embodiment of the present invention;
[0047] Figure 2 A schematic diagram of a motion prediction process of a Kalman filter method according to an embodiment of the present invention;
[0048] Figure 3 Schematic diagram of prediction error of the fusion prediction algorithm in an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0050] The technical solution of the present invention is:
[0051] Firstly, different motion scenes are divided according to the turning angle during the movement of the unmanned ship: small-angle turning (0-60°), medium-angle turning (60-120°) and large-angle turning (120-180°). Then, the historical track motion information of the unmanned ship in the three scenes is collected respectively.
[0052] Then, the motion prediction performance of momentum fitting and Kalman filtering methods is evaluated respectively using the historical track motion information of unmanned ships in different scenarios, and the prediction errors of longitude and latitude, speed and heading are calculated. Finally, the fusion weight of momentum fitting-Kalman filtering for each scenario is set based on the prediction errors of momentum fitting and Kalman filtering for each scenario. The larger the prediction error, the smaller the corresponding fusion weight. Its implementation method and features are:
[0053] (1) Use the momentum fitting method to model and predict the speed in the longitude and latitude directions respectively, and then calculate the predicted longitude and latitude and the predicted heading of the unmanned ship target, such as Figure 1 shown.
[0054] For an unmanned ship target, its historical track contains n historical track points, and the motion state information of the historical track is expressed as follows:
[0055] (lat1,lon1,t1),(lat2,lon2,t2),...,(lat n ,lon n ,t n ) (1)
[0056] Among them, lon and lat are the latitude and longitude of a historical track point, and t is the timestamp of the historical track point. First, calculate the latitude and longitude speed of each historical track point. For a historical track point P i The speed calculation method in the longitude and latitude directions is as follows:
[0057]
[0058] Among them, v i lat and vi lon are the speeds of the unmanned ship target at the latitude and longitude directions of the i-th historical track point, respectively, and f d is the distance conversion function, k is the number of interval points between historical track points when calculating the latitude and longitude speed, and k = 0 means that the speed is calculated by difference between adjacent historical track points.
[0059] Assume that the predicted time is t n +Δt, for the traditional momentum fitting method, the exponentially weighted average of the velocity at time t can be calculated by the following formula:
[0060] V t =β×V t-1 +(1-β)×v t (3)
[0061] Where V t is the exponentially weighted average velocity at time t, v t is the actual value at time t, v t is the velocity vector, and β is a hyperparameter. The above formula can be further expanded:
[0062] V0=0,
[0063] V1=(1-β)*v1
[0064] V2=β(1-β)v1+(1-β)v2
[0065] V3=β 2 *(1-β)*v1+β*(1-β)*v2+(1-β)×v3
[0066] …
[0067] V t =β t-1 (1-β)v1+β t-2 (1-β)v2+…+(1-β)×v t (4)
[0068] The coefficient β determines the smoothness of the prediction curve and can effectively suppress jitter. However, the traditional momentum fitting method does not use the historical track point P. i Timestamp t i With the prediction time t n +Δt, so the predicted value obtained by traditional momentum fitting has nothing to do with the time interval. Therefore, considering introducing the time interval Δt from the historical track point timestamp to the predicted time into the momentum fitting method, that is, taking Δt as the exponent of β, the predicted value (exponentially weighted average fitting value) obtained by the improved momentum fitting method is as follows:
[0069]
[0070] Where Δt n is the historical track point P i Timestamp t i The time interval between the predicted time and the predicted time. The exponentially weighted average velocity value in the longitude and latitude direction at time n can be obtained by using the improved momentum fitting method. and When the prediction time interval Δt is short, and It can be approximately fitted into the predicted longitude and latitude speed, and then the predicted position and heading of the unmanned ship can be further calculated. The calculation method is:
[0071]
[0072] in, are the latitude and longitude prediction values obtained based on the momentum fitting method, are the latest latitude and longitude records of the unmanned ship, are the velocity values in the latitude and longitude directions obtained based on the momentum fitting method, Δt is the time interval of the prediction time, dir monen is the momentum fitting heading prediction value, f calculate_dir It is the latitude and longitude speed-heading conversion formula.
[0073] The use of momentum fitting method to predict the target motion state can ensure high real-time performance and can stably and effectively predict the speed and position of the unmanned ship target at each moment. The prediction flow chart based on momentum fitting is as follows: Figure 1 shown.
[0074] (2) Use the Kalman filter method to model the time-longitude / latitude model and predict the longitude and latitude at the future time, and then calculate the predicted speed and heading of the unmanned ship target, such as Figure 2 shown.
[0075] The core idea of Kalman filtering is to combine the actual motion data of the target with the predicted data, and continuously improve the accuracy of motion prediction in the process of iterative execution of "update" and "prediction".
[0076] Assume that the model of a discrete linear motion system is as follows:
[0077]
[0078] Among them, x k is the true value of the system state, z k System state observation, A is the state transfer matrix, B is the control input matrix, H is the state observation matrix, ω k-1 is the process noise, v kis the observation noise. For this discrete linear motion system, the Kalman filter method predicts the target motion state through the following five core formulas:
[0079]
[0080] in is the predicted value of the system state, is the optimal estimate of the state, and P k are the covariances between the true value of the motion state and the predicted value / optimal estimate, Q and R are the covariances of the process noise and observation noise in equation 6, and K is the ratio of the model prediction error to the measurement error in the state optimal estimation process. Equations 7 and 11 are used for single-step prediction of the motion state, and equations 8-10 update the filter parameters according to the actual observed values of the target motion state.
[0081] The present invention sets a Kalman filter for the two motion models of the time-longitude and time-latitude of the unmanned ship respectively, and performs motion fitting after linear interpolation of the historical data of the unmanned ship, so as to predict the future position of the unmanned ship. Finally, the speed, heading and other motion information of the unmanned ship are calculated based on the predicted longitude and latitude. The second predicted speed and second predicted heading of the unmanned ship are calculated according to the second predicted longitude and latitude of the unmanned ship. The calculation method is:
[0082]
[0083] in, are the fusion speeds in latitude and longitude, respectively.
[0084] are the predicted depths in latitude and longitude directions based on the momentum fitting method, are the predicted depths in latitude and longitude directions based on the Kalman filter method, dir is the heading prediction value, and f calculate_dir is the latitude and longitude speed-heading conversion formula, where the latitude and longitude speed-heading conversion formula is common knowledge.
[0085] (3) The motion scene is divided according to the turning angle of the unmanned boat, and the fusion weight is designed based on the prediction error of momentum fitting and Kalman filtering, such as Figure 3 Specific data are shown.
[0086] In the target motion state prediction task, the target motion trajectory has a great influence on the prediction accuracy, especially when the target performs large-angle maneuvers, its motion state will change significantly in a short time. Therefore, the prediction method proposed in the present invention fully considers the factor of the target motion angle, divides the motion scene according to the size of the motion angle, and designs different fusion strategies for different motion scenes.
[0087] For any motion scene, the fusion weights of momentum fitting and Kalman filtering are calculated by their respective prediction errors. Assuming that the prediction errors of the two methods in a certain type of motion scene are e momen 、e kalman , the fusion weights of momentum fitting and Kalman filtering are calculated as follows:
[0088]
[0089] Finally, based on the fusion weights of momentum fitting and Kalman filtering, the weighted sum of the respective motion state prediction values is obtained to obtain the final prediction result, which is expressed as:
[0090]
[0091] in, are the fusion speeds in latitude and longitude, respectively. are the predicted depths in latitude and longitude directions based on the momentum fitting method, are the predicted depths in latitude and longitude directions based on the Kalman filter method, dir is the heading prediction value, and f calculate_dir It is the latitude and longitude speed-heading conversion formula.
[0092] The motion information of the unmanned boat is as follows: For the three types of motion scenes, 30°, 90°, and 180° are selected respectively.
[0093] The turning angle is a representative scene, and the acquisition frequency of motion information is 10 Hz. The motion information specifically includes the position (latitude and longitude) of the unmanned ship, speed, heading and timestamp.
[0094] First, the momentum fitting corresponding to K=10 (Formula 2) is selected as the prediction baseline method. What is slightly different from the proposed momentum fitting-Kalman filter fusion motion prediction method based on scene strategy is that the fusion prediction method of this example involves three momentum fitting methods and a Kalman filter method corresponding to K=5, K=15, and K=50. The three momentum fitting methods are weightedly fused according to Formula 12 based on their respective prediction errors, while the fused momentum fitting and Kalman filter methods are weightedly fused based on the average prediction errors of the three types of momentum fitting and the Kalman filter prediction error.
[0095] In this embodiment, three motion scenes predict the motion states of five future moments, Δt<1s, Δt=5s, Δt=10s, Δt=15s, and Δt=20s, respectively. In order to facilitate the comparison of prediction performance, the predicted moments are first divided into two categories, short time (Δt<1s) and long time (Δt=5s, Δt=10s, Δt=15s, Δt=20s), according to the scene. The average prediction error of all long time in the same scene is calculated, and finally the average error of the short time prediction and the long time prediction is calculated in the scene dimension. The prediction error of the position in the example is the distance error obtained by converting the longitude and latitude error. The prediction result is as follows: Figure 3 As shown (experimental conditions: 4 unmanned boats perform surface tasks, each boat is within the radar coverage of another boat, and the positioning and radar target data of each boat are collected separately. The fusion algorithm test training system is used to perform error testing on the fused target positioning).
[0096] It will be easily understood by those skilled in the art that 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 and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. The unmanned ship motion prediction method based on momentum fitting and Kalman filtering fusion is characterized by: The following steps are involved: S1. According to the turning angle of the unmanned ship during its movement, its movement process is divided into different movement scenes, and the historical track movement information of the unmanned ship under different movement scenes is collected respectively; the historical track movement information of the unmanned ship at least includes the longitude, latitude and timestamp of each historical track point of the unmanned ship; S2. According to the historical track motion information of the unmanned ship under different motion scenarios, a first time-longitude model and a first time-latitude model are modeled by a momentum fitting method, and a first predicted speed of the unmanned ship is predicted, and a first predicted longitude and longitude and a first predicted heading of the unmanned ship are calculated; wherein the predicted speed includes the speed of the unmanned ship in the longitude and latitude directions; S3. According to the historical track motion information of the unmanned ship under different motion scenes, a second time-longitude model and a second time-latitude model are modeled by the Kalman filtering method, and a Kalman filter is set in the second time-longitude model and the second time-latitude model respectively, and a second predicted longitude and latitude of the unmanned ship is obtained by motion fitting after linear interpolation calculation by the Kalman filtering method, and a second predicted speed and a second predicted heading of the unmanned ship are calculated; S4. According to the prediction errors of momentum fitting and Kalman filtering, the fusion weights of the prediction results are set respectively, and the motion state prediction values of the unmanned ship under different motion scenarios are weightedly summed according to the fusion weights of momentum fitting and Kalman filtering to obtain the final prediction result; the motion state prediction value and prediction result of the unmanned ship include the predicted longitude and latitude, predicted speed and predicted heading of the unmanned ship.
2. The unmanned ship motion prediction method based on momentum fitting and Kalman filtering fusion according to claim 1 is characterized in that: S2 is specifically: S21, calculating the speed of each historical track point of the unmanned ship in the latitude and longitude directions under different motion scenarios; S22. According to the speed and timestamp of each historical track point of the unmanned ship in the latitude and longitude directions under different motion scenarios, the time interval Δt of the prediction time is introduced, and the first time-longitude model and the first time-latitude model are modeled by the momentum fitting method. The first predicted speed of the unmanned ship is predicted by the first time-longitude model and the first time-latitude model, and the first predicted longitude and latitude and the first predicted heading of the unmanned ship are calculated. The calculation method is: in, are the latitude and longitude prediction values obtained based on the momentum fitting method, are the latest latitude and longitude records of the unmanned ship, are the velocity values in the latitude and longitude directions obtained based on the momentum fitting method, Δt is the time interval of the prediction time, dir monen is the momentum fitting heading prediction value, f calculate_dir It is the latitude and longitude speed-heading conversion formula.
3. The unmanned ship motion prediction method based on momentum fitting and Kalman filtering fusion according to claim 2 is characterized in that: S21 is specifically as follows: for an unmanned ship, assuming that there are n historical track points in the historical track motion information of the unmanned ship, the historical track motion information of the unmanned ship is expressed as: (lat1,lon1,t1),(lat2,lon2,t2),......,(lat n ,lon n ,t n ) Among them, lat and lon are the latitude and longitude of a historical track point, and t is the timestamp of the historical track point, that is, lat n is the latitude of the nth historical track point, lon n is the longitude of the nth historical track point, t n The timestamp of the nth historical track point; According to the historical track movement information of the unmanned ship, the speed of each historical track point in the latitude and longitude direction is calculated, and the calculation method is expressed as: Among them, v i lat and v i lon are the velocities of the i-th historical track point in the latitude and longitude directions, i∈[1,n], f d is the distance conversion function, k is the number of interval points between historical track points when calculating the speed of historical track points in the latitude and longitude directions, and k=0 means that the speed is calculated by difference between adjacent historical track points.
4. The unmanned ship motion prediction method based on momentum fitting and Kalman filtering fusion according to claim 3 is characterized in that: In S22, the time interval of the prediction time is introduced, and the first time-longitude model and the first time-latitude model are modeled by the momentum fitting method. The calculation method of the first predicted speed of the unmanned ship predicted by the first time-longitude model and the first time-latitude model is expressed as follows: Among them, V t is the first predicted speed, expressed as the exponentially weighted average speed value at the tth moment; β is a hyperparameter, which determines the smoothness of the prediction curve; Δt1~Δt t-1 are the time intervals from the first moment to the prediction time of the t-1th moment; v1~v t are the actual values of the speed from the first moment to the tth moment respectively.
5. The unmanned ship motion prediction method based on momentum fitting and Kalman filtering fusion according to claim 1 is characterized in that: S3 is specifically: According to the historical track motion information of the unmanned ship in different motion scenes, the second time-longitude model and the second time-latitude model are modeled by the Kalman filtering method, and a Kalman filter is set in the second time-longitude model and the second time-latitude model respectively. A discrete linear motion system model is set in the Kalman filter, which is expressed as: The following linear interpolation calculation is performed and then motion fitting is performed to obtain the second predicted longitude and latitude of the unmanned ship: Among them, x k is the true value of the system state, z k System state observation, A is the state transfer matrix, B is the control input matrix, H is the state observation matrix, ω k-1 is the process noise, v k is the observation noise, is the predicted value of the system state, is the optimal estimate of the state, and P k are the covariances between the true value and predicted value of the motion state, and between the true value and the optimal estimated value of the motion state; Q and R are the covariances of process noise and observation noise in the discrete linear motion system model, and the ratio of model prediction error to measurement error in the process of optimal estimation of the K state; The second predicted speed and the second predicted heading of the unmanned ship are calculated according to the second predicted longitude and latitude of the unmanned ship, and the calculation method is: Among them, v kalman is the speed prediction value of Kalman filter, are the latitude and longitude prediction values of the Kalman filter, are the longitude and latitude records of the unmanned ship in a calculation cycle, and f d is the distance conversion formula, are the speed prediction values in latitude and longitude of Kalman filter, dir kalman is the Kalman filter heading prediction value, f calculate_dir It is the latitude and longitude speed-heading conversion formula.
6. The unmanned ship motion prediction method based on momentum fitting and Kalman filtering fusion according to claim 1 is characterized in that: The calculation method for setting the fusion weights in S4 according to the prediction errors of momentum fitting and Kalman filtering is: Among them, w momen is the fusion weight of the momentum fitting calculation result to the prediction result, w kalman is the fusion weight of the Kalman filter calculation result to the prediction result, e momen is the prediction error of the momentum fitting calculation result, e kalman The fusion weight of the Kalman filter calculation results on the prediction results.
7. The unmanned ship motion prediction method based on momentum fitting and Kalman filtering fusion according to claim 6 is characterized in that: The prediction results are expressed as: in, are the fusion speeds in latitude and longitude, respectively. are the predicted depths in latitude and longitude directions based on the momentum fitting method, are the predicted depths in latitude and longitude directions based on the Kalman filter method, dir is the heading prediction value, and f calculate_dir It is the latitude and longitude speed-heading conversion formula.
8. The unmanned ship motion prediction method based on momentum fitting and Kalman filtering fusion according to claim 1 is characterized in that: The motion scene is divided into at least a small-angle turning motion scene, a medium-angle turning motion scene and a large-angle turning motion scene, corresponding to the turning angles of the unmanned ship of [0°, 60°), [60°, 120°) and [120°, 180°) respectively.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
