Method, system and device for predicting trajectory of floating objects at sea based on machine learning

By using the long short-term memory network model in predicting the trajectories of floating objects at sea, the uncertainty and large amount of calculation caused by dynamic field factors in the existing technology are solved, and higher prediction accuracy and lightweight deployment are achieved, which is suitable for Lightweight computing platform.

CN118211178BActive Publication Date: 2024-10-29SHANTOU UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410378115.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2024-10-29
Estimated Expiration
2044-03-29

AI Technical Summary

Technical Problem

When predicting the trajectory of floating objects at sea, the existing technology causes uncertainty and a large amount of calculation due to dynamic field factors. It is difficult to deploy on a lightweight computing platform, and the prediction accuracy is insufficient.

Method used

Using a long short-term memory network model based on machine learning, by acquiring and preprocessing historical trajectory data of floating objects, the trained LSTM model is used to predict trajectory deviations. It is independent of the dynamic field and only relies on past trajectory data to predict future trajectories with different settings. The training parameter set is trained multiple times to improve prediction accuracy.

Benefits of technology

It improves the accuracy of predicting the trajectory of floating objects at sea, reduces the amount of model calculations, simplifies deployment, is suitable for lightweight computing platforms, and has good practicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118211178B_ABST
    Figure CN118211178B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and storage medium for predicting the trajectory of floating objects at sea based on machine learning, wherein the method comprises: obtaining a plurality of trajectory sets corresponding to a plurality of floating objects to be tested in a specific sea area in a historical time period, wherein the historical time period takes the current moment as the end point; preprocessing the plurality of trajectory sets to obtain a plurality of trajectory deviation sets corresponding to the plurality of floating objects to be tested; processing the plurality of trajectory deviation sets using a trained long short-term memory network model to obtain a plurality of predicted trajectory deviations corresponding to the plurality of floating objects to be tested at the next moment; and determining a plurality of predicted trajectory data corresponding to the plurality of floating objects to be tested at the next moment based on the plurality of trajectory sets and the plurality of predicted trajectory deviations. The present invention can more accurately realize the simultaneous prediction of the trajectories of a plurality of floating objects at sea, and the machine learning algorithm adopted is easy to be deployed on a lightweight computing platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, system, device and storage medium for predicting the trajectory of floating objects at sea based on machine learning. Background Art

[0002] As humans develop and utilize the ocean, marine environmental problems arise, such as harmful algal blooms, marine plastics, oil spills and floating damage, which damage the marine ecological environment, posing a serious threat to fishermen's livelihoods, wildlife and marine habitats. Whenever a marine environmental problem occurs, there can be hundreds or even thousands of floating objects at sea. How to more accurately predict the trajectories of multiple floating objects at sea is a key factor in reducing marine pollution and improving the efficiency of marine search and rescue. Summary of the invention

[0003] The present invention provides a method, system, device and storage medium for predicting the trajectory of floating objects at sea based on machine learning, so as to solve one or more technical problems existing in the prior art and at least provide a beneficial choice or create conditions.

[0004] In a first aspect, a method for predicting the trajectory of floating objects at sea based on machine learning is provided, comprising:

[0005] Acquire multiple trajectory sets corresponding to multiple floating objects to be detected in a specific sea area in a historical time period, where the historical time period takes the current time as the end point;

[0006] Preprocessing the multiple track sets to obtain multiple track deviation sets corresponding to the multiple floating objects to be detected;

[0007] The plurality of trajectory deviation sets are processed using a trained long short-term memory network model to obtain a plurality of predicted trajectory deviations corresponding to the plurality of floating objects to be detected at the next moment;

[0008] A plurality of predicted trajectory data corresponding to the plurality of detected floating objects at the next moment are determined according to the plurality of trajectory sets and the plurality of predicted trajectory deviations.

[0009] Further, the preprocessing of the plurality of trajectory sets to obtain a plurality of trajectory deviation sets corresponding to the plurality of floating objects to be detected comprises:

[0010] For any trajectory set of a floating object to be detected, the trajectory set includes a plurality of trajectory data of the floating object to be detected in the historical time period, and the time interval between each two adjacent trajectory data is equal;

[0011] Each two adjacent track data in the track set are subtracted to obtain a track deviation set of the floating object to be detected.

[0012] Further, determining a plurality of predicted trajectory data corresponding to the plurality of detected floating objects at the next moment according to the plurality of trajectory sets and the plurality of predicted trajectory deviations comprises:

[0013] For any trajectory set of the floating object to be detected, obtaining the trajectory data of the floating object to be detected at the current moment from the trajectory set;

[0014] The trajectory data of the floating object to be detected at the current moment and the predicted trajectory deviation at the next moment are added to obtain the predicted trajectory data of the floating object to be detected at the next moment.

[0015] Furthermore, the long short-term memory network model is trained in the following manner:

[0016] Obtaining a plurality of target trajectory sets corresponding to a plurality of target floating objects in any target sea area in a first historical time period;

[0017] Preprocessing the plurality of target trajectory sets to obtain a plurality of target trajectory deviation sets corresponding to the plurality of target floating objects;

[0018] Randomly dividing the plurality of target trajectory deviation sets into a training set and a test set;

[0019] Setting three different training parameter groups, and then using the training sets to train the constructed long short-term memory network model three times;

[0020] The prediction accuracy of the long short-term memory network model finally obtained by training is evaluated using the test set and the plurality of target trajectory sets.

[0021] Furthermore, the three training parameter groups with different settings include:

[0022] Set the first training parameter group, that is, set the learning rate to 0.001, the loss function to the mean square error loss function, the batch size to 64, and the training cycle to 6;

[0023] Set the second training parameter group, that is, set the learning rate to 0.001, the loss function to the given prediction loss function, the batch size to 128, and the training cycle to 8;

[0024] The third training parameter group is set, that is, the learning rate is set to 0.0001, the loss function is the prediction loss function, the batch size is set to 32, and the training cycle is set to 6.

[0025] Furthermore, the training of the constructed long short-term memory network model three times using the training set includes:

[0026] According to the first training parameter group, the constructed long short-term memory network model is trained for the first time using the training set, and then the first position where the model training stops is recorded;

[0027] According to the second training parameter group, starting from the first position, continuing to train the long short-term memory network model for a second time using the training set, and then recording the second position where the model training stops;

[0028] According to the third training parameter group, starting from the second position, the long short-term memory network model is continuously trained for a third time using the training set.

[0029] Further, for a target trajectory deviation set of any target floating object, the target trajectory deviation set includes multiple target trajectory deviations of the target floating object in the first historical time period, and each target trajectory deviation includes the longitude deviation and latitude deviation of the target floating object at a corresponding moment; the prediction loss function is:

[0030]

[0031] Where Δlon Pre To predict the longitude deviation, Δlat Pre To predict the latitude deviation, Δlon Ture is the actual longitude deviation, Δlat Ture is the actual latitude deviation.

[0032] In the second aspect, a system for predicting the trajectory of floating objects at sea based on machine learning is provided, comprising:

[0033] The first module is used to obtain a plurality of trajectory sets corresponding to a plurality of floating objects to be detected in a specific sea area in a historical time period, wherein the historical time period takes the current time as the end point;

[0034] The second module is used to pre-process the multiple track sets to obtain multiple track deviation sets corresponding to the multiple floating objects to be detected;

[0035] The third module is used to process the plurality of trajectory deviation sets using the trained long short-term memory network model to obtain a plurality of predicted trajectory deviations corresponding to the plurality of floating objects to be detected at the next moment;

[0036] The fourth module is used to determine a plurality of predicted trajectory data corresponding to the plurality of detected floating objects at a next moment according to the plurality of trajectory sets and the plurality of predicted trajectory deviations.

[0037] In a third aspect, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method for predicting the trajectory of floating objects at sea based on machine learning as described in the first aspect.

[0038] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for predicting the trajectory of floating objects at sea based on machine learning as described in the first aspect is implemented.

[0039] The present invention has at least the following beneficial effects: by introducing a long short-term memory network model, the trajectories of multiple floating objects at sea can be predicted simultaneously, and by introducing three different training parameter groups to train the pre-built long short-term memory network model three times, the prediction accuracy of the model can be improved; the adopted long short-term memory network model is independent of the power field, and only needs to use past trajectory data to predict future trajectory data, which can shorten the prediction time of the model, and is easy to be deployed on a lightweight computing platform for application, which can effectively solve the limitations of hardware facilities for going to sea and has good practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0041] Figure 1 is a flow chart of a method for predicting the trajectory of floating objects at sea based on machine learning in an embodiment of the present invention;

[0042] Figure 2 It is a schematic diagram of some prediction effects of the long short-term memory network model after training in an embodiment of the present invention;

[0043] Figure 3 is another schematic diagram of prediction effect of the long short-term memory network model after training in an embodiment of the present invention;

[0044] Figure 4 1 is a schematic diagram of the composition of a marine floating object trajectory prediction system based on machine learning in an embodiment of the present invention;

[0045] Figure 5 It is a schematic diagram of the hardware structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below 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 used to limit the present invention.

[0047] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the system or the order in the flow chart. The terms "first", "second", "third", "fourth", etc. in the specification of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, such as processes, methods, systems, products or devices that include a series of steps or units, which are not necessarily limited to those steps or units clearly listed, but may include other steps or units inherent to these processes, methods, products or devices that are not clearly listed.

[0048] In the prior art, the ocean circulation-Lagrangian particle tracking coupling model is usually used to predict the trajectory of floating objects in different marine environments. It is necessary to first determine the initial position of a floating object and its corresponding initial time, and then use the Lagrangian velocity of the flow field at each time step to describe the floating object moving forward or backward from the initial position to predict the future position of the floating object; however, the uncertainty caused by factors such as time resolution, spatial resolution, waves, wind forcing, water mixing and tides in this model will affect the accuracy of trajectory prediction, and it cannot be deployed on a lightweight computing platform due to the large amount of calculation. Based on this, the embodiment of the present invention provides a method, system, device and storage medium for predicting the trajectory of floating objects at sea based on machine learning. By introducing a long short-term memory network model, the accuracy of trajectory prediction can be better improved, and the amount of model calculation can be effectively reduced.

[0049] First, some of the terms involved in the present invention are explained as follows:

[0050] The Long Short-Term Memory (LSTM) model is a variant of the traditional Recurrent Neural Network (RNN) model. It can effectively solve the problem that the Recurrent Neural Network model is difficult to implement artificially extended time tasks. At the same time, it can effectively capture the semantic associations between time series and alleviate the gradient disappearance or explosion phenomenon of the Recurrent Neural Network model.

[0051] Please refer to Figure 1 , Figure 1 1 is a flow chart of a method for predicting the trajectory of floating objects at sea based on machine learning provided by an embodiment of the present invention, the method comprising the following steps:

[0052] Step S110, obtaining a plurality of trajectory sets corresponding to a plurality of floating objects to be detected in a specific sea area in a historical time period, wherein the historical time period takes the current time as an end point;

[0053] Step S120, preprocessing the multiple track sets to obtain multiple track deviation sets corresponding to the multiple floating objects to be detected;

[0054] Step S130, using the trained long short-term memory network model to process the plurality of trajectory deviation sets to obtain a plurality of predicted trajectory deviations corresponding to the plurality of floating objects to be detected at the next moment;

[0055] Step S140: determining a plurality of predicted trajectory data corresponding to the plurality of detected floating objects at the next moment according to the plurality of trajectory sets and the plurality of predicted trajectory deviations.

[0056] In some embodiments of the present invention, taking any one of the floating objects to be tested as an example, the trajectory set of the floating object to be tested includes a number of trajectory data of the floating object to be tested in the historical time period, each trajectory data includes the actual latitude value and the actual longitude value of the floating object to be tested at the corresponding moment, and the time interval between every two adjacent trajectory data is equal.

[0057] In some embodiments of the present invention, taking any one of the floating objects to be detected as an example, the implementation process of the above step S120 includes but is not limited to the following:

[0058] Step S121, obtaining the trajectory set of the floating object to be detected, which is recorded as:

[0059] Traj={Traj 1 ,Traj 2 ,Traj 3 ,…,Traj T},

[0060] Traj t =(lon t ,lat t ),t=1,2,3,…,T;

[0061] Step S122: performing a subtraction operation on every two adjacent trajectory data in the trajectory set to obtain a trajectory deviation set of the floating object to be detected, which is recorded as:

[0062] ΔTraj={ΔTraj 2 ,ΔTraj 3 ,…,ΔTraj T},

[0063] ΔTraj t =(Δlon t ,Δlat t ),t=2,3,…,T,

[0064] Δlon t =lon t -lon t-1 ,Δlat t =lat t -lat t-1 ;

[0065] Wherein, Traj is the trajectory set of the floating object to be detected, Traj t is the trajectory data of the floating object to be tested at the tth moment, lon t is the longitude value of the floating object to be measured at the tth moment, lat t is the latitude value of the floating object to be detected at the tth moment, T is the number of time points included in the historical time period, Traj 3 It can be understood as the trajectory data of the floating object to be tested at the current moment, ΔTraj is the trajectory deviation set of the floating object to be tested, and ΔTraj t is the trajectory deviation of the floating object to be measured at the tth moment, Δlon t is the longitude deviation of the floating object to be measured at the tth moment, Δlat t is the latitude deviation of the floating object to be measured at the tth moment.

[0066] In general, the multiple trajectory sets need to be normalized before being input into the LSTM network model. Here, the present invention uses a simple subtraction operation to perform preprocessing operations on the multiple trajectory sets. The advantage is that it can ensure that the LSTM network model can have a faster gradient descent speed when analyzing the multiple trajectory deviation sets obtained through preprocessing, reduce the underflow problem that may occur during numerical calculation to improve numerical stability, and make the weights of the two features of longitude and latitude more balanced.

[0067] In some embodiments of the present invention, the long short-term memory network model mentioned in the above step S130 is built based on Keras, an open source artificial neural network library written in Python. The existing LSTM model framework is directly used here, mainly including an input layer, an LSTM (long short-term memory network) layer and an output layer, wherein:

[0068] The input layer is used to input a three-dimensional array related to all floating objects to be analyzed, and the three-dimensional array includes first dimensional data, second dimensional data and third dimensional data in sequence. The first dimensional data includes all track deviation sets associated with all floating objects in a period of time. The second dimensional data represents the number of all track deviations contained in each track deviation set, which can also be understood as the number of time points contained in the period of time. The third dimensional data represents the number of features contained in each track deviation (set to 2 in the present invention, i.e., longitude deviation and latitude deviation).

[0069] The LSTM layer (which is provided with 64 neurons and the activation function is set to the tanh function) is used to combine the memory unit and the gating mechanism to selectively retain and update information from each trajectory deviation set to achieve temporal feature perception;

[0070] The output layer is used to output a two-dimensional array related to all the floating objects, and the two-dimensional array includes first dimensional data and second dimensional data in sequence. The first dimensional data includes all predicted trajectory deviations associated with all the floating objects at the next moment, and the next moment is the moment after the period of time. The second dimensional data represents the number of features contained in each predicted trajectory deviation (set to 2 in the present invention, namely the predicted longitude deviation and the predicted latitude deviation).

[0071] In some embodiments of the present invention, taking any one of the floating objects to be detected as an example, the implementation process of the above step S140 includes but is not limited to the following:

[0072] Step S141, obtaining a trajectory set of the floating object to be detected, and then extracting the trajectory data of the floating object to be detected at the current moment from the trajectory set, that is, extracting the last trajectory data from the trajectory set;

[0073] Step S142, obtaining the predicted trajectory deviation of the floating object to be detected at the next moment, and then adding the predicted trajectory deviation to the trajectory data of the floating object to be detected at the current moment, so as to obtain the predicted trajectory data of the floating object to be detected at the next moment.

[0074] In some embodiments of the present invention, the training process of the long short-term memory network model mentioned in the above step S130 specifically includes the following:

[0075] Step S131, obtaining a plurality of target track sets associated with a plurality of target floating objects in any target sea area in a first historical time period, wherein the first historical time period should be earlier than the historical time period;

[0076] Specifically, taking any one of the target floating objects as an example, the target trajectory set of the target floating object includes a plurality of target trajectory data of the target floating object in the first historical time period, each target trajectory data includes an actual latitude value and an actual longitude value of the target floating object at a corresponding moment, and the time intervals between every two adjacent target trajectory data are equal;

[0077] Step S132, performing a preprocessing operation on the plurality of target trajectory sets to obtain a plurality of target trajectory deviation sets associated with the plurality of target floating objects;

[0078] Specifically, taking any one of the target floating objects as an example, a target trajectory deviation set of the target floating object is obtained by performing a subtraction operation on every two target trajectory trajectories that are adjacent to each other in the target trajectory set of the target floating object;

[0079] Step S133, randomly dividing the plurality of target trajectory deviation sets to obtain a training set and a test set;

[0080] Step S134, setting three different training parameter groups, and then training the pre-built long short-term memory network model three times using the training sets;

[0081] Step S135: Combine the target trajectory sets and the test set and use the following mathematical expression to evaluate the prediction accuracy of the trained LSTM network model:

[0082]

[0083] Where DE is the error distance. When the value of DE is smaller, the prediction accuracy of the model is higher. R is the radius of the earth, which is 6378 kilometers. Δlat 1 is the deviation between the predicted latitude value and the actual latitude value, lat Pre To predict the latitude value, lat Ture is the actual latitude value, Δlon 1 is the deviation between the predicted longitude value and the actual longitude value, lon Pre To predict the longitude value, lon Ture is the actual longitude value;

[0084] In the above mathematical expression, taking any target floating object associated in the test set as an example, assuming that the first historical time period contains K+1 time points, that is, the target trajectory set of the target floating object contains K+1 target trajectory data sorted from first to last according to the associated time, and the target trajectory deviation set of the target floating object contains K target trajectory deviations sorted from first to last according to the associated time; the first K-1 target trajectory deviations in the target trajectory deviation set are input into the long short-term memory network model after training to obtain the predicted target trajectory deviation; the last target trajectory data in the target trajectory set is recorded as (lon Ture ,lat Ture ); add the penultimate target trajectory data in the target trajectory set to the predicted target trajectory deviation to obtain the predicted target trajectory data and record it as (lon Pre ,lat Pre ).

[0085] More specifically, the implementation process of the above step S134 includes but is not limited to the following:

[0086] Step S134.1, setting a first training parameter group (i.e., setting the training period Epoch to 6, the batch size BatchSize to 64, the loss function to the mean square error (MSE) loss function, and the learning rate to 0.001), and then performing the first training on the pre-built long short-term memory network model through the training set, and after completing the first training, recording the place where the model training stops and defining it as the first position;

[0087] Step S134.2, setting a second training parameter group (i.e., setting the training period Epoch to 8, the batch size BatchSize to 128, the loss function to a pre-set prediction loss function, and the learning rate to 0.001), and then continuing the second training of the long short-term memory network model from the first position using the training set, and after completing the second training, recording the place where the model training stopped and defining it as the second position;

[0088] Step S134.3, set the third training parameter group (that is, set the training cycle Epoch to 6, the batch size BatchSize to 32, the loss function to the prediction loss function and the learning rate to 0.0001), and then continue the third training of the long short-term memory network model from the second position through the training set.

[0089] It should be noted that, in the process of performing any of the above training of the long short-term memory network model, the Adam optimizer is used to update the network parameters that affect the model training and model output so that they approach or reach the optimal value, and the accuracy is used as the model evaluation indicator.

[0090] The prediction loss function mentioned in the above step S134.2 and the above step S134.3 is:

[0091]

[0092] Among them, Myloss is the prediction loss function, Δlon Pre To predict the longitude deviation, Δlon Ture is the actual longitude deviation, Δlat Pre To predict the latitude deviation, Δlat Ture is the actual latitude deviation;

[0093] In the above mathematical expression, taking any target floating object associated in the training set as an example, assuming that the first historical time period contains K+1 time points, that is, the target trajectory deviation set of the target floating object contains K target trajectory deviations sorted from the first to the last according to the associated time, the first K-1 target trajectory deviations are input into the long short-term memory network model for training to obtain the predicted trajectory deviation and recorded as (Δlon Pre ,Δlat Pre ), and the last target trajectory deviation is recorded as (Δlon Ture ,Δlat Ture ), serving as model training labels.

[0094] In some embodiments of the present invention, the Six-Hourly Interpolated Drifter Data of the GDP Drift Data Assembly Center of NOAA (National Oceanic and Atmospheric Administration) is called to train the pre-built long short-term memory network model, and the corresponding description is as follows:

[0095] 11,200 first target track sets associated with 11,200 target floating objects in the North Pacific Ocean in a certain historical period are collected from Six-Hourly Interpolated Drifter Data; data cleaning tests are performed on each first target track set, i.e., data outlier identification and correction or deletion processing, data missing test and filling or deletion processing, data validity test and correction or deletion processing are performed, thereby obtaining 11,200 second target track sets associated with the 11,200 target floating objects; taking the time interval between every two adjacent data as equal as a standard, each second target track set is checked to interpolate data whose time interval does not meet the standard, thereby obtaining 11,200 target track sets associated with the 11,200 target floating objects;

[0096] A preprocessing operation is performed on the 11,200 target trajectory sets to obtain 11,200 target trajectory deviation sets associated with the 11,200 target floating objects; in this application example, the historical time period includes 30 time points, each target trajectory set includes 30 target trajectory data, and each target trajectory deviation set includes 29 target trajectory deviations;

[0097] The 11200 target trajectory deviation sets are randomly divided, 6720 target trajectory deviation sets (accounting for 60%) are used as training sets, 1120 target trajectory deviation sets (accounting for 10%) are used as test sets, and the remaining 3360 target trajectory deviation sets (accounting for 30%) are used as validation sets to evaluate the performance of the model during the model training process to ensure that the model does not have overfitting or underfitting problems;

[0098] The three originally planned training parameter groups were set, and the pre-built LSTM network model was trained three times using the training set. Then, the prediction accuracy of the trained LSTM network model was evaluated by combining the test set and its associated 1120 target trajectory sets.

[0099] In order to verify that the long short-term memory network model after training has good prediction accuracy, four target trajectory deviation sets associated with four target floating objects are randomly extracted from the test set, and four target trajectory sets associated with the four target floating objects are obtained at the same time;

[0100] For any one of the four target floats, the first 28 target trajectory deviations in the target trajectory deviation set of the target float are input into the trained long short-term memory network model for processing to obtain the predicted trajectory deviation of the target float; the predicted trajectory deviation is added to the penultimate target trajectory data (i.e., the 29th target trajectory data) in the target trajectory set of the target float to obtain the predicted trajectory data of the target float; the last target trajectory data (i.e., the 30th target trajectory data) in the target trajectory set of the target float is used as the actual trajectory data of the target float; the predicted trajectory data and the actual trajectory data of the target float are compared to see the prediction effect of the trained long short-term memory network model;

[0101] See also Figure 2 As shown, Figure 2 It is intuitively reflected that the LSTM network model after training has a good prediction effect on the trajectory of the four target floating objects. The solid dots represent the actual trajectory data of the target floating objects, and the hollow dots represent the predicted trajectory data of the target floating objects. It can be seen that the model prediction deviation is relatively small.

[0102] See also Figure 3 As shown, Figure 3 The statistical results of the prediction accuracy of the long short-term memory network model for the test set after training are intuitively reflected. It can be seen that the prediction deviation range of the model is 0-4km, and the maximum prediction deviation does not exceed 20km.

[0103] In an embodiment of the present invention, by introducing a long short-term memory network model, the trajectories of multiple floating objects at sea can be predicted simultaneously, and three different training parameter groups are introduced to train the pre-built long short-term memory network model three times, which can improve the prediction accuracy of the model; the adopted long short-term memory network model is independent of the power field, and only needs to use past trajectory data to predict future trajectory data, which can shorten the prediction time of the model, and is easy to be deployed on a lightweight computing platform for application, which can effectively solve the limitations of hardware facilities for going to sea and has good practicality.

[0104] Please refer to Figure 4 , Figure 4 : is a schematic diagram of the composition of a marine floating object trajectory prediction system based on machine learning provided by an embodiment of the present invention, the system comprising:

[0105] The first module 210 is used to obtain a plurality of track sets associated with a plurality of floating objects to be detected in a specific sea area in a historical time period; wherein the end time in the historical time period is the current time;

[0106] The second module 220 is used to pre-process the multiple track sets to obtain multiple track deviation sets associated with the multiple floating objects to be detected;

[0107] The third module 230 is used to input the plurality of trajectory deviation sets into the trained long short-term memory network model for processing, so as to obtain a plurality of predicted trajectory deviations associated with the plurality of detected floating objects at the next moment;

[0108] The fourth module 240 is used to determine a plurality of predicted trajectory data associated with the plurality of detected floating objects at a next moment according to the plurality of predicted trajectory deviations and the plurality of trajectory sets.

[0109] The contents of the above method embodiments are all applicable to the present system embodiments. The functions implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are the same as those of the above method embodiments, which will not be repeated here.

[0110] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, a method for predicting the trajectory of floating objects at sea based on machine learning in the above embodiment is implemented. Wherein, the computer-readable storage medium includes but is not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. In other words, the storage device includes any medium that stores or transmits information in a readable form by a device (such as a computer, a mobile phone, etc.), which can be a read-only memory, a disk or an optical disk, etc.

[0111] also, Figure 5 3 is a schematic diagram of the hardware structure of a computer device provided in an embodiment of the present invention, wherein the computer device includes a processor 320, a memory 330, an input unit 340, a display unit 350 and other devices. Those skilled in the art can understand that Figure 5The device structure device shown does not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 330 can be used to store the computer program 310 and various functional modules, and the processor 320 runs the computer program 310 stored in the memory 330, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include an internal memory and an external memory. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a U disk, a magnetic tape, etc. The memory 330 disclosed in the embodiment of the present invention includes but is not limited to the above-mentioned types of memory. The memory 330 disclosed in the embodiment of the present invention is only an example and not a limitation.

[0112] The input unit 340 is used to receive the input of the signal and the keyword input by the user. The input unit 340 may include a touch panel and other input devices. The touch panel can collect the user's touch operation on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a playback control key, a switch key, etc.), a trackball, a mouse, a joystick, etc. The display unit 350 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 350 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 320 is the control center of the terminal device, which uses various interfaces and lines to connect various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 330, and calling data stored in the memory 330.

[0113] As an embodiment, the computer device includes a processor 320, a memory 330 and a computer program 310, wherein the computer program 310 is stored in the memory 330 and is configured to be executed by the processor 320, and the computer program 310 is configured to execute a method for predicting the trajectory of floating objects at sea based on machine learning in the above-mentioned embodiment.

[0114] Although the description of the present application has been quite detailed and specifically describes several described embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be regarded as providing a broad possible interpretation of these claims by reference to the attached claims, taking into account the prior art, so as to effectively cover the intended scope of the present application. In addition, the above description of the present application is based on the embodiments foreseeable by the inventor, and its purpose is to provide a useful description, and those non-substantial changes to the present application that have not yet been foreseen may still represent equivalent changes to the present application.

Claims

1. A method for predicting the trajectory of floating objects at sea based on machine learning, characterized in that: include: Acquire multiple trajectory sets corresponding to multiple floating objects to be detected in a specific sea area in a historical time period, where the historical time period takes the current time as the end point; Preprocessing the multiple track sets to obtain multiple track deviation sets corresponding to the multiple floating objects to be detected; The plurality of trajectory deviation sets are processed using a trained long short-term memory network model to obtain a plurality of predicted trajectory deviations corresponding to the plurality of floating objects to be detected at the next moment; Determining a plurality of predicted trajectory data corresponding to the plurality of detected floating objects at a next moment according to the plurality of trajectory sets and the plurality of predicted trajectory deviations; The long short-term memory network model is trained in the following way: Obtaining a plurality of target trajectory sets corresponding to a plurality of target floating objects in any target sea area in a first historical time period; Preprocessing the plurality of target trajectory sets to obtain a plurality of target trajectory deviation sets corresponding to the plurality of target floating objects; Randomly dividing the plurality of target trajectory deviation sets into a training set and a test set; Setting three different training parameter groups, and then using the training sets to train the constructed long short-term memory network model three times; Using the test set and the plurality of target trajectory sets to evaluate the prediction accuracy of the long short-term memory network model finally trained; The step of setting three different training parameter groups and then using the training set to train the constructed long short-term memory network model three times includes: Set the first training parameter group, that is, set the learning rate to 0.001, the loss function to the mean square error loss function, the batch size to 64, and the training cycle to 6; Set the second training parameter group, that is, set the learning rate to 0.001, the loss function to the given prediction loss function, the batch size to 128, and the training cycle to 8; Set the third training parameter group, that is, set the learning rate to 0.0001, the loss function to the prediction loss function, the batch size to 32, and the training cycle to 6; According to the first training parameter group, the constructed long short-term memory network model is trained for the first time using the training set, and then the first position where the model training stops is recorded; According to the second training parameter group, starting from the first position, continuing to train the long short-term memory network model for a second time using the training set, and then recording the second position where the model training stops; According to the third training parameter group, starting from the second position, continuing to train the long short-term memory network model for a third time using the training set; Wherein, for a target trajectory deviation set of any target floating object, the target trajectory deviation set includes multiple target trajectory deviations of the target floating object in the first historical time period, and each target trajectory deviation includes the longitude deviation and latitude deviation of the target floating object at the corresponding time. The prediction loss function is: In the formula, To predict the longitude deviation, To predict the latitude deviation, is the actual longitude deviation, is the actual latitude deviation.

2. The method for predicting the trajectory of floating objects at sea based on machine learning according to claim 1, characterized in that: The preprocessing of the plurality of trajectory sets to obtain a plurality of trajectory deviation sets corresponding to the plurality of floating objects to be detected comprises: For any trajectory set of a floating object to be detected, the trajectory set includes a plurality of trajectory data of the floating object to be detected in the historical time period, and the time interval between each two adjacent trajectory data is the same; Each two adjacent track data in the track set are subtracted to obtain a track deviation set of the floating object to be detected.

3. The method for predicting the trajectory of floating objects at sea based on machine learning according to claim 1, characterized in that: The determining, according to the plurality of trajectory sets and the plurality of predicted trajectory deviations, a plurality of predicted trajectory data corresponding to the plurality of detected floating objects at the next moment comprises: For any trajectory set of the floating object to be detected, obtaining the trajectory data of the floating object to be detected at the current moment from the trajectory set; The trajectory data of the floating object to be detected at the current moment and the predicted trajectory deviation at the next moment are added to obtain the predicted trajectory data of the floating object to be detected at the next moment.

4. A marine floating object trajectory prediction system based on machine learning, characterized in that: include: The first module is used to obtain a plurality of trajectory sets corresponding to a plurality of floating objects to be detected in a specific sea area in a historical time period, wherein the historical time period takes the current time as the end point; The second module is used to pre-process the multiple track sets to obtain multiple track deviation sets corresponding to the multiple floating objects to be detected; The third module is used to process the plurality of trajectory deviation sets using the trained long short-term memory network model to obtain a plurality of predicted trajectory deviations corresponding to the plurality of floating objects to be detected at the next moment; A fourth module is used to determine a plurality of predicted trajectory data corresponding to the plurality of detected floating objects at a next moment according to the plurality of trajectory sets and the plurality of predicted trajectory deviations; The long short-term memory network model is trained in the following way: Obtaining a plurality of target trajectory sets corresponding to a plurality of target floating objects in any target sea area in a first historical time period; Preprocessing the plurality of target trajectory sets to obtain a plurality of target trajectory deviation sets corresponding to the plurality of target floating objects; Randomly dividing the plurality of target trajectory deviation sets into a training set and a test set; Setting three different training parameter groups, and then using the training sets to train the constructed long short-term memory network model three times; Using the test set and the plurality of target trajectory sets to evaluate the prediction accuracy of the long short-term memory network model finally trained; The step of setting three different training parameter groups and then using the training set to train the constructed long short-term memory network model three times includes: Set the first training parameter group, that is, set the learning rate to 0.001, the loss function to the mean square error loss function, the batch size to 64, and the training cycle to 6; Set the second training parameter group, that is, set the learning rate to 0.001, the loss function to the given prediction loss function, the batch size to 128, and the training cycle to 8; Set the third training parameter group, that is, set the learning rate to 0.0001, the loss function to the prediction loss function, the batch size to 32, and the training cycle to 6; According to the first training parameter group, the constructed long short-term memory network model is trained for the first time using the training set, and then the first position where the model training stops is recorded; According to the second training parameter group, starting from the first position, continuing to train the long short-term memory network model for a second time using the training set, and then recording the second position where the model training stops; According to the third training parameter group, starting from the second position, continuing to train the long short-term memory network model for a third time using the training set; Wherein, for a target trajectory deviation set of any target floating object, the target trajectory deviation set includes multiple target trajectory deviations of the target floating object in the first historical time period, and each target trajectory deviation includes the longitude deviation and latitude deviation of the target floating object at the corresponding time. The prediction loss function is: In the formula, To predict the longitude deviation, To predict the latitude deviation, is the actual longitude deviation, is the actual latitude deviation.

5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: The processor executes the computer program to implement the method for predicting the trajectory of floating objects at sea based on machine learning as described in any one of claims 1 to 3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for predicting the trajectory of floating objects at sea based on machine learning as described in any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Unpowered ship trajectory prediction method, device and equipment and storage medium

    CN114255616A