A method for tracing ship tracks using ocean satellite AIS data

Through the preprocessing of ocean satellite AIS data and the adaptive track retracement method of the random forest model, the problem of data sparseness and long intervals is solved, efficient and accurate ship track retracement is achieved, and the robustness and reliability of the model are improved. Detection accuracy.

CN118194061BActive Publication Date: 2024-08-27DALIAN MARITIME UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410605394.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-27
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

The data intervals of ocean satellite AIS data are long and sparse, resulting in existing methods with low accuracy and low efficiency in the process of ship track retracement.

Method used

A marine satellite AIS data ship track retracement method is adopted, including data preprocessing, adaptive ship track retracement model construction and training based on the random forest model, and the use of kernel density analysis and clustering technology for track retracement and automated processing processes. , to avoid manual parameter selection.

Benefits of technology

It improves the accuracy and efficiency of track retracement, reduces costs, enhances the robustness of the model, and the error is smaller than traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118194061B
    Figure CN118194061B
Patent Text Reader

Abstract

The present invention provides a method for tracing the ship track of ocean satellite AIS data, which relates to the field of smart ocean technology, and includes the following steps: S1, obtaining the initial AIS data of the target area according to the specified time, longitude and latitude information; S2, forming standard AIS data and storing it in a database; S3, comparing the standard AIS data with the number threshold of track points to determine whether the target ship has sufficient data; S4, clustering the ship track using an experience-based adaptive ship track tracing model to obtain the ship track to be verified; S5, outputting the completed model; S6, inputting the point to be predicted into the completed model to trace back the ship track, clustering the target ship track, merging the clustered target ship tracks, and obtaining the track tracing result. The present invention can have both high accuracy and efficiency in tracing back the ship track of ocean satellite AIS data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart ocean technology, and more particularly to a method for tracing back the ship's track using ocean satellite AIS data. Background Art

[0002] The 21st century is the century of the ocean, which is rich in various resources. According to statistics, ports undertake more than 90% of the import and export cargo transportation volume. In order to improve the efficiency and safety of navigation, the International Maritime Organization has vigorously built the Automatic Identification System (AIS), which has achieved full coverage of AIS signals in key maritime waters and major ports, and can monitor ships in real time.

[0003] At present, ship managers process massive amounts of AIS data to mine required information to support maritime transport management. However, shore-based AIS data has many limitations, and currently public AIS data is only concentrated in the offshore areas of a small number of countries. Satellite AIS data has the advantage of being able to study the ocean or designated areas.

[0004] Currently, using ocean satellite AIS data to trace ship tracks still faces huge challenges. First, compared with shore-based AIS, ocean satellite AIS data has a longer data interval and is relatively sparse; second, the existing DBSCAN algorithm requires manual parameter selection and has poor migration, resulting in low accuracy and low efficiency in the track tracing process. Therefore, in order to solve the above technical problems, it is urgent to construct a method for tracking the track of ocean satellite AIS data. Summary of the invention

[0005] In view of this, the purpose of the present invention is to propose a method for tracing ship tracks using ocean satellite AIS data, so as to solve the problem that the existing methods for tracing ship tracks using ocean satellite AIS data have long data intervals and are relatively sparse.

[0006] The technical means adopted by the present invention are as follows:

[0007] A method for tracing a ship's track using ocean satellite AIS data comprises the following steps:

[0008] S1. Obtain the initial AIS data of the target area according to the specified time, longitude and latitude information;

[0009] S2, preprocessing the initial AIS data to remove redundant data and erroneous information, supplementing the initial AIS data with ship type and tonnage information, forming standard AIS data and storing it in the database;

[0010] S3. Compare the standard AIS data with the number threshold of the track points to determine whether there is sufficient data for the target ship. If there is sufficient data, the standard AIS data of the target ship is used as the target data. If the data is insufficient, the historical data of the same type of ship is used as the target data.

[0011] S4. Based on the target data, a random forest model is used to construct and train an experience-based adaptive ship track tracing model, and the ship tracks are clustered using the experience-based adaptive ship track tracing model to obtain the ship track to be verified;

[0012] S5, using the verification data to verify and evaluate the ship track to be verified, output the accuracy to be verified, if the accuracy to be verified does not meet the specified accuracy, return to S4 and retrain the model; if the accuracy to be verified meets the specified accuracy, the adaptive ship track backtracking model based on experience at this time is used as the completed model;

[0013] S6. Input the points to be predicted into the completed model to trace back the ship tracks, cluster the target ship tracks, merge the clustered target ship tracks, and obtain the track tracing result.

[0014] Furthermore, the specific steps of S4 are as follows:

[0015] S41. Perform kernel density analysis on the target data to obtain a kernel density analysis graph, and divide the kernel density analysis graph into 10×10 sample blocks; the density calculation formula of the sample block (x, y) position is:

[0016]

[0017] Where i=1,…,n is the input AIS point; The population field value of point i, which is an optional parameter; is the distance between point i and (x, y), radius is the search radius;

[0018] S42, selecting the neighborhood distance threshold hyperparameter ε and the neighborhood sample number hyperparameter MinPts corresponding to the kernel density analysis graph to form historical data, and forming all the historical data into a data set; dividing the data set into a training set and a test set in a ratio of 7:3;

[0019] S43, build a random forest model, set random parameters, and get an accuracy of 0.8 by scoring the test set, proving that the model is reliable and can learn the corresponding parameters according to the data characteristics;

[0020] S44, using the random forest model to predict the AIS data to be traced back, to obtain the corresponding hyperparameters, namely, the neighborhood distance threshold hyperparameter ε and the neighborhood sample number hyperparameter MinPts, that is, to obtain an experience-based adaptive ship track traceback model;

[0021] S45, using the experience-based adaptive ship track backtracking model to scan all AIS data points to be backtracked, if the number of points within the radius of ε of a certain point is greater than or equal to MinPts, then it is included in the core point list, and the points directly accessible by the density form a corresponding temporary cluster;

[0022] S46, check whether each temporary cluster is a core point, if yes, merge the temporary cluster corresponding to the point with the current temporary cluster to obtain a new temporary cluster; repeat this operation until every point in the current temporary cluster is not in the core point list, or its density direct point is already in the temporary cluster, then the temporary cluster is upgraded to a cluster; continue to perform the same operation on the remaining temporary clusters until all temporary clusters are processed;

[0023] S47, all clusters obtained in S46 are fitted by polynomials to obtain the track of the ship to be verified.

[0024] Furthermore, the specific steps of S2 are as follows:

[0025] S21, removing duplicate values ​​and abnormal values ​​in the initial AIS data, wherein the duplicate values ​​include two identical initial AIS data, and the abnormal values ​​include initial AIS data whose MMSI is not 9 digits, sog is a negative number, cog value is greater than 360, and longitude and latitude are beyond the target area;

[0026] S22. According to the MMSI information of the AIS data processed by S21, the type and tonnage information of the ship is supplemented to form standard AIS data and store it in the database.

[0027] Furthermore, the number threshold of the trajectory points in S3 is 600.

[0028] Furthermore, S5 specifically includes the following steps:

[0029] S51, the track of the ship to be verified and the shore-based AIS data are combined using MSE and R 2 The two standards are used to evaluate whether the ship track tracing results meet the accuracy evaluation threshold. If the accuracy evaluation threshold cannot be reached, the parameters are adjusted and training continues. The calculation formula of MSE is:

[0030]

[0031] R 2 The calculation formula is:

[0032]

[0033] in, is the shore-based AIS data value, is the track tracing result value, is the average value of shore-based AIS data;

[0034] S52. When the ship track tracing results simultaneously reach the accuracy evaluation threshold, the completed model is obtained.

[0035] The present invention also provides a storage medium, which includes a stored program, wherein when the program is run, any of the above-mentioned methods for tracing ship tracks using ocean satellite AIS data is executed.

[0036] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes any of the above-mentioned methods for tracing the ship's track using ocean satellite AIS data through the computer program.

[0037] Compared with the prior art, the present invention has the following advantages:

[0038] Ocean satellite AIS data is different from shore-based AIS data. It has ocean track points, but the data is relatively sparse and cannot be directly traced back. The present invention makes full use of ocean satellite AIS data, solves the limitation of previous technologies that rely on shore-based AIS data, and reduces the cost of track tracing.

[0039] The present invention selects ship data of the same type and similar tonnage for clustering, avoiding interference from the same longitude and latitude and adjacent routes, and improving the accuracy of track tracing.

[0040] The present invention uses random forest to construct an experience-based adaptive ship track backtracking model without manual parameter selection, establishes an automated processing flow, improves the robustness of the model, and is superior to traditional methods in terms of error repair, interpolation, and track fitting effects, with an error smaller than that of traditional methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0042] Figure 1 It is a schematic diagram of the process of the present invention;

[0043] Figure 2 This is a schematic diagram of the AIS data preprocessing process of the present invention;

[0044] Figure 3 It is a schematic diagram of clustering process of the adaptive ship track backtracking model based on experience in the present invention;

[0045] Figure 4 This is a cluster fitting effect diagram in this embodiment;

[0046] Figure 5 This is a clustering trajectory merging effect diagram in this embodiment;

[0047] Figure 6 This is a comparison chart between the track tracing result and the actual track in this embodiment. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0050] An embodiment of the present invention provides a method for tracing a ship's track using ocean satellite AIS data, the specific steps of which are as follows: Figure 1 As shown, obtain the AIS data of the target area, such as Figure 2 As shown, the data is preprocessed; according to the threshold, it is judged whether there is sufficient data for the ship. If the data is sufficient, the ship data is used; if the data is insufficient, the historical data of the same type of ships is used; Figure 3As shown, the ship tracks are clustered based on the experience-based adaptive ship track backtracking model; the ship tracks are backtracked using the verified and evaluated model to obtain track backtracking results. The method of the present invention can achieve higher accuracy and efficiency by using ocean satellite AIS data to perform track backtracking.

[0051] In order to achieve the above purpose, the present invention adopts the following technical solutions, please refer to Figure 1 , Figure 1 This is a flow chart of an embodiment of a method for tracing back the track of a ship using ocean satellite AIS data according to the present invention. The method comprises the following steps:

[0052] S1. Obtain AIS data of the target area according to time, longitude and latitude information;

[0053] Specifically, the South Atlantic region was selected, with vessel track information from June 1 to July 31, 2023, totaling more than 1.6 million AIS data items.

[0054] Please refer to Figure 2 , Figure 2 The AIS data preprocessing process of the present invention is shown in FIG. 1 , and the method comprises the following steps:

[0055] S2. Preprocess the data, remove redundant data and erroneous information, supplement the ship type and tonnage information, and organize and store them;

[0056] S21. Remove duplicate values ​​and outliers. Duplicate values ​​refer to two identical AIS data. Outliers refer to MMSI values ​​that are not 9 digits, sog values ​​that are negative, cog values ​​that are too large, and longitude and latitude values ​​that are out of range.

[0057] S22. Supplement the type and tonnage information of the vessel based on the MMSI information.

[0058] After obtaining the ocean satellite data, there is still a lot of redundant information in the data. Ocean satellite data is divided into 27 types of labels, each corresponding to a different data format, and must contain ship longitude and latitude and ground route data. Therefore, the first step in data preprocessing is to filter out the ship longitude and latitude and ground route data, and then deduplicate the data, delete error values ​​and redundant labels.

[0059] Due to the navigation of ships at sea, there are many ships appearing at the same longitude and latitude and adjacent routes. It is easy to cause ship tracking errors only through the longitude and latitude of the ship and the ground route, which increases the inaccuracy of ship navigation information. Therefore, only the longitude and latitude of the ship and the ground route and other information are far from enough. In the ocean satellite data, there is no ship type and tonnage data. It is necessary to match the corresponding ship type and tonnage data through the ship's MMSI number, and merge all the data and store them in the MySQL database.

[0060] S3. Determine whether there is sufficient data for the ship based on the threshold. If the data is sufficient, use the ship's data. If the data is insufficient, use the historical data of the same type of ship.

[0061] A threshold is set according to the route area. In the threshold area, it is queried whether there is sufficient historical data of the target ship. When the historical data of the same ship is greater than the threshold, it is used as a track supplement for the ship in the area. Otherwise, sufficient ship data of the same type and similar tonnage are selected.

[0062] Considering the sparsity of ocean satellite AIS data, this embodiment sets the threshold of track points to 600. If the number of track points of the target ship in the area is less than the threshold, the AIS data of the eight ships of the same ship type and the closest tonnage are obtained.

[0063] Please refer to Figure 3 , Figure 3 The schematic diagram of the clustering process of the adaptive ship track backtracking model based on experience in the present invention comprises the following steps:

[0064] S4. Using random forest to build an experience-based adaptive ship track tracing model, and clustering ship tracks using the experience-based adaptive ship track tracing model;

[0065] S41. Perform kernel density analysis on the preprocessed AIS data to obtain a kernel density analysis graph, which is then divided into 10×10 sample blocks. The density calculation formula at the (x, y) position is:

[0066]

[0067] Where i=1,…,n is the input AIS point; The population field value of point i, which is an optional parameter. is the distance between point i and (x, y), and radius is the search radius.

[0068] S42, the kernel density analysis graph is used to select the corresponding neighborhood distance threshold hyperparameter ε and neighborhood sample number hyperparameter MinPts through expert experience to form reliable historical data and form a data set. It is divided into a training set and a test set in a ratio of 7:3;

[0069] S43, build a random forest model and set random parameters. By scoring the test set, the accuracy is 0.8, which proves that the model is reliable and can learn the corresponding parameters according to the data characteristics;

[0070] The test set scoring method is as follows: RMSE is used for accuracy evaluation. , and the RMSE is less than 0.05.

[0071] Specifically, the random forest module uses the sklearn package of Python, and the random parameter is set to 0.3.

[0072] S44, using the model in S43 to predict the backtracked AIS data, obtain the corresponding hyperparameters, namely, the neighborhood distance threshold hyperparameter ε and the neighborhood sample number hyperparameter MinPts;

[0073] S45, scanning all AIS data points to be traced back, if the number of points within the radius of ε of a certain point is greater than or equal to MinPts, then the point is included in the core point list, and the points directly accessible by the point form a corresponding temporary cluster;

[0074] S46, check whether each temporary cluster is a core point, if so, merge the temporary cluster corresponding to the point with the current temporary cluster to obtain a new temporary cluster. Repeat this operation until each point in the current temporary cluster is either not in the core point list, or its density direct point is already in the temporary cluster, then the temporary cluster is upgraded to a cluster. Continue to perform the same operation on the remaining temporary clusters until all temporary clusters are processed.

[0075] S47, clustering the clusters through polynomial fitting to form tracks.

[0076] S5. Use the verification data to verify and evaluate the model. If the accuracy is not satisfied, return to S4 and retrain the model. If the accuracy is satisfied, execute step S6.

[0077] S51, compare the ship track tracing results with the shore-based AIS data using MSE and R 2 The two standards are used for evaluation to determine whether it meets the accuracy evaluation threshold. If it cannot meet the accuracy evaluation threshold, the parameters are adjusted (because the initially selected area may not cover a comprehensive range of scenarios, the adjustment here can be understood as adding more kernel density analysis graphs for more scenarios, and giving the neighborhood distance threshold hyperparameter ε and the neighborhood sample number hyperparameter MinPts through the so-called expert experience), and training continues; the MSE calculation formula is:

[0078]

[0079] R 2 The calculation formula is

[0080]

[0081] in is the shore-based AIS data value, is the track tracing result value, is the average value of shore-based AIS data;

[0082] S52: When the accuracy evaluation threshold is reached at the same time, a result model is obtained.

[0083] Specifically, using MSE and R 2 The two standards are used to evaluate whether it meets the accuracy evaluation threshold. If it cannot meet the accuracy evaluation threshold, the parameters are adjusted and training continues. The MSE threshold is generally set to 0.1, R 2 Set to 0.9, MSE is less than 0.1 and R 2 If it is greater than 0.9, it meets the standard. Otherwise, adjust the parameters and continue training.

[0084] S6. Use the verified and evaluated model to trace back the ship's track. The result is Figure 4 As shown, the clustered tracks are merged to obtain the track backtracking result. The result is Figure 5 shown. Figure 4 This is a cluster fitting effect diagram in this embodiment; Figure 5 This is a clustering trajectory merging effect diagram in this embodiment;

[0085] See also Figure 6 , Figure 6 By comparing the track tracing result with the actual track, it can be seen that the method for ship track tracing based on ocean satellite AIS data provided by the present invention can achieve higher detection accuracy and efficiency by performing ship track tracing based on ocean satellite AIS data.

[0086] Different from the prior art, the present invention provides a method for tracing the ship track of ocean satellite AIS data. By making full use of the historical AIS data in the region, the historical AIS data of ships of the same type and the same or similar tonnage in the region are selected between two points where supplementary data is required, and the adaptive ship track tracing model based on experience is constructed by using random forest to cluster the typical tracks of ships of this type or similar tonnage as a supplement to the data between the two points; the kernel density of the random forest model is used to automatically select parameters to improve the robustness of the model. The optimal model obtained by the method of the present invention can achieve higher detection accuracy and efficiency for tracing the ship track of ocean satellite AIS data.

[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for tracing ship tracks using ocean satellite AIS data, characterized in that: The steps include: S1. Obtain the initial AIS data of the target area according to the specified time, longitude and latitude information; S2, preprocessing the initial AIS data to remove redundant data and erroneous information, supplementing the initial AIS data with ship type and tonnage information, forming standard AIS data and storing it in the database; S3. Compare the standard AIS data with the number threshold of the track points to determine whether there is sufficient data for the target ship. If there is sufficient data, the standard AIS data of the target ship is used as the target data. If the data is insufficient, the historical data of the same type of ship is used as the target data. S4. Based on the target data, a random forest model is used to construct and train an experience-based adaptive ship track tracing model, and the ship tracks are clustered using the experience-based adaptive ship track tracing model to obtain the ship track to be verified; S41. Perform kernel density analysis on the target data to obtain a kernel density analysis graph, and divide the kernel density analysis graph into 10×10 sample blocks; the density calculation formula of the sample block (x, y) position is: Where i=1,…,n is the input AIS point; The population field value of point i, which is an optional parameter; is the distance between point i and (x, y), radius is the search radius; S42, selecting the neighborhood distance threshold hyperparameter ε and the neighborhood sample number hyperparameter MinPts corresponding to the kernel density analysis graph to form historical data, and forming a data set with all the historical data; dividing the data set into a training set and a test set in a ratio of 7:3; S43, construct a random forest model, set random parameters, and obtain the accuracy by scoring the test set; S44, using the random forest model to predict the AIS data to be traced back, to obtain the corresponding hyperparameters, namely, the neighborhood distance threshold hyperparameter ε and the neighborhood sample number hyperparameter MinPts, that is, to obtain an experience-based adaptive ship track traceback model; S45, using the experience-based adaptive ship track backtracking model to scan all AIS data points to be backtracked, if the number of points within the radius of ε of a certain point is greater than or equal to MinPts, then it is included in the core point list, and the points directly accessible by the density form a corresponding temporary cluster; S46, check whether each temporary cluster is a core point, if yes, merge the temporary cluster corresponding to the point with the current temporary cluster to obtain a new temporary cluster; repeat this operation until every point in the current temporary cluster is not in the core point list, or its density direct point is already in the temporary cluster, then the temporary cluster is upgraded to a cluster; continue to perform the same operation on the remaining temporary clusters until all temporary clusters are processed; S47, fitting all clusters obtained in S46 by polynomials to obtain the track of the ship to be verified; S5, using the verification data to verify and evaluate the ship track to be verified, output the accuracy to be verified, if the accuracy to be verified does not meet the specified accuracy, return to S4 and retrain the model; if the accuracy to be verified meets the specified accuracy, the adaptive ship track backtracking model based on experience at this time is used as the completed model; S6. Input the points to be predicted into the completed model to trace back the ship tracks, cluster the target ship tracks, merge the clustered target ship tracks, and obtain the track tracing result.

2. The method for tracing the ship track of ocean satellite AIS data according to claim 1, characterized in that: The specific steps of S2 are as follows: S21, removing duplicate values ​​and abnormal values ​​in the initial AIS data, wherein the duplicate values ​​include two identical initial AIS data, and the abnormal values ​​include initial AIS data whose MMSI is not 9 digits, sog is a negative number, cog value is greater than 360, and longitude and latitude are beyond the target area; S22. According to the MMSI information of the AIS data processed by S21, the type and tonnage information of the ship is supplemented to form standard AIS data and store it in the database.

3. The method for tracing the ship track of ocean satellite AIS data according to claim 1, characterized in that: S3 The threshold value of the number of trajectory points is 600.

4. The method for tracing the ship track of ocean satellite AIS data according to claim 1, characterized in that: S5 specifically includes the following steps: S51, the track of the ship to be verified and the shore-based AIS data are combined using MSE and R 2 The two standards are used to evaluate whether the ship track tracing results meet the accuracy evaluation threshold. If the accuracy evaluation threshold cannot be reached, the parameters are adjusted and training continues. The calculation formula of MSE is: R 2 The calculation formula is: in, is the shore-based AIS data value, is the track tracing result value, is the average value of shore-based AIS data; S52. When the ship track tracing results simultaneously reach the accuracy evaluation threshold, the completed model is obtained.

5. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is run, the method for tracing the ship track using ocean satellite AIS data as described in any one of claims 1 to 4 is executed.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor executes the method for tracing the ship track using ocean satellite AIS data as described in any one of claims 1 to 4 by running the computer program.