Method, device, medium and product for processing a ship trajectory

By preprocessing and determining the repair method for ship trajectory data, the problem of incomplete trajectory data caused by AIS data transmission errors was solved, and efficient and accurate trajectory data repair was achieved.

CN118885547BActive Publication Date: 2026-11-27SHANGHAI MERCHANT SHIP DESIGN & RES INST
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410890844.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2026-11-27
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

In existing technologies, Automatic Identification System (AIS) data is prone to loss and errors during transmission, resulting in incomplete or duplicated received data, making it impossible to effectively repair trajectory data, especially for a large number of continuous location data anomalies and new route data.

Method used

By preprocessing the trajectory data to be processed, dividing it into segments and sub-segments, determining the repair method, and using reconnection or interpolation to repair adjacent sub-segment sequences, the target trajectory data is obtained.

Benefits of technology

It enables accurate restoration of ship trajectory data, improves the accuracy and cost of data restoration, and solves the problem of existing technologies relying on a large amount of historical trajectory data or being unable to restore new routes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885547B_ABST
    Figure CN118885547B_ABST
Patent Text Reader

Abstract

This invention discloses a method, device, medium, and product for processing ship trajectories. The method includes: determining at least one voyage segment corresponding to the trajectory data to be used based on the data content corresponding to the destination field in the trajectory data to be used; determining at least one sub-voyage segment to be processed associated with the voyage segment based on the time information of the trajectory data to be used within the voyage segment; processing two adjacent voyage data in the at least one sub-voyage segment to be processed to determine at least two sub-voyage segment sequences corresponding to the sub-voyage segments to be processed; determining a target repair method for the two adjacent sub-voyage segment sequences based on the voyage data with the smallest time interval among the two adjacent sub-voyage segment sequences; and repairing the two adjacent sub-voyage segment sequences based on the target repair method to obtain target trajectory data corresponding to the target ship. This invention achieves the technical effect of trajectory data repair.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer processing technology, and in particular to a method, device, medium, and product for processing ship trajectories. Background Technology

[0002] Automatic Identification System (AIS) is a commonly used digital navigation aid system for ships. This system obtains dynamic information such as a ship's position, speed, and course through GPS or BeiDou navigation systems, and transmits this information, along with static data such as the ship's name, call sign, and draft, via VHF broadcast to nearby vessels and shore stations according to International Telecommunication Union (ITU) standards. AIS can then be applied to scenarios such as channel correction, logistics tracking, route planning, collision avoidance at sea, and anomaly monitoring.

[0003] In theory, AIS dynamic data is transmitted at a rate ranging from once every 2 seconds to once every 3 minutes. However, due to obstacles at sea, electromagnetic environment, and issues with sensor components, AIS data is frequently lost or erroneous during transmission. This results in widespread incompleteness, loss, and duplication in the received data, rendering the raw AIS data unreliable. Directly using raw AIS data may introduce errors, making subsequent effective judgment impossible.

[0004] Currently, there are two main methods for processing AIS ship trajectory data:

[0005] The point-by-point discrimination method judges and repairs each trajectory point based on the ship's own position, speed and heading, but it cannot repair a large number of abnormal points in continuous position data.

[0006] Another approach is based on trajectory clustering: clustering analysis is performed on a large amount of historical trajectory data to identify and repair trajectory anomalies. However, this method relies heavily on a large amount of historical trajectory data and cannot repair data for new routes. Summary of the Invention

[0007] This invention provides a method, device, medium, and product for processing ship trajectories, achieving the technical effect of trajectory data repair.

[0008] According to one aspect of the present invention, a method for processing ship trajectories is provided, the method comprising:

[0009] By preprocessing the trajectory data to be processed corresponding to the target vessel, the trajectory data to be used is obtained;

[0010] Based on the data content corresponding to the destination field in the trajectory data to be used, at least one flight segment corresponding to the trajectory data to be used is determined, wherein the flight segment corresponds to at least one trajectory data to be used;

[0011] Based on the time information of the trajectory data to be used within the flight segment, at least one sub-segment to be processed associated with the flight segment is determined, and two adjacent trajectory data to be used in the at least one sub-segment to be processed are processed to determine at least two sub-segment sequences corresponding to the sub-segment to be processed.

[0012] For two adjacent sub-segment sequences, the target repair method for the two adjacent sub-segment sequences is determined based on the trajectory data to be used with the smallest time interval between the two adjacent sub-segment sequences.

[0013] Based on the target repair method, the sequences of the two adjacent sub-segments are repaired to obtain target trajectory data corresponding to the target vessel.

[0014] Furthermore, the process of preprocessing the trajectory data to be processed corresponding to the target vessel to obtain the trajectory data to be used includes:

[0015] The original trajectory data is sorted and processed based on the time information of the original trajectory data to obtain trajectory data to be processed; wherein, the trajectory data to be processed includes at least one of the following: the latitude and longitude values, heading angle, destination, ground speed, driving status, and ship name of the target ship;

[0016] The trajectory data to be processed that meets the preset conditions under the preset fields is taken as the trajectory data to be used;

[0017] The preset fields include ground speed, latitude and longitude, heading angle and driving status. The preset conditions include that the data content under the preset fields is not empty and that the data content under at least some of the preset fields meets the corresponding preset value range.

[0018] Furthermore, determining at least one flight segment corresponding to the trajectory data to be used, based on the data content corresponding to the destination field in the trajectory data to be used, includes:

[0019] Based on the time information of the trajectory data to be used, the data content corresponding to the target field in the trajectory data to be used is obtained sequentially;

[0020] Trajectory data with identical continuous data content are grouped into one flight segment.

[0021] Furthermore, determining at least one sub-segment to be processed associated with the flight segment based on the time information of the trajectory data to be used within the flight segment includes:

[0022] Based on the time information of the trajectory data to be used within the flight segment, the time difference between two adjacent trajectory data to be used is determined; based on the time difference and a preset time difference threshold, the flight segment is divided into multiple sub-segments to be processed.

[0023] Furthermore, the step of processing two adjacent trajectory data to be used in the at least one sub-segment to be processed, and determining at least two sub-segment sequences corresponding to the sub-segment to be processed, includes:

[0024] For the at least one sub-segment to be processed, the time difference and spherical distance between two adjacent trajectory data to be used are determined based on the time information corresponding to the trajectory data to be used.

[0025] Based on the time difference and the corresponding distance information, determine the average speed corresponding to the two trajectory data to be used by the necklace;

[0026] The average speed is iterated based on the time information, and the trajectory data to be used that is greater than a preset speed threshold is deleted until the last average speed is reached, so as to update the trajectory data to be used.

[0027] Repeat the steps of determining the average speed of the trajectory data to be used and iterating over the average speed based on time information until the average speed between any two adjacent trajectory data to be used is less than the preset speed threshold, to obtain the at least two sub-segment sequences.

[0028] Furthermore, determining the target repair method for the two adjacent sub-segment sequences based on the trajectory data with the smallest time interval among the two adjacent sub-segment sequences includes:

[0029] For two adjacent sub-segment sequences, the heading angle of the constant heading line is determined based on the first heading angle corresponding to the last time point in the preceding sub-segment sequence and the second heading angle corresponding to the first time point in the following sub-segment sequence.

[0030] When the first heading angle, the second heading angle, and the constant heading line heading angle meet the preset conditions, the target repair method is determined to be the reconnection repair method;

[0031] Accordingly, the step of repairing the sequences of the two adjacent sub-segments based on the target repair method to obtain target trajectory data corresponding to the target vessel includes:

[0032] The sub-segment sequences corresponding to the last time point and the first time point are reconnected to obtain the target trajectory data.

[0033] Furthermore, the method also includes:

[0034] When the first heading angle, the second heading angle, and the constant heading line heading angle do not meet the preset conditions, the target repair method is determined to be the interpolation repair method.

[0035] Accordingly, the step of repairing the sequences of the two adjacent sub-segments based on the target repair method to obtain target trajectory data corresponding to the target vessel includes:

[0036] Data samples are taken at the trajectory data to be used at the first and last time points, respectively;

[0037] Interpolation processing is performed on the sampled data to obtain an interpolation function between two adjacent sub-segment sequences. The interpolation function is then used to repair the data of the two adjacent sub-segments to obtain the target trajectory data.

[0038] According to another aspect of the present invention, a ship trajectory processing apparatus is provided, the apparatus comprising:

[0039] The trajectory data determination module is used to obtain the trajectory data to be used by preprocessing the trajectory data to be processed corresponding to the target vessel.

[0040] At least one flight segment determination module is used to determine at least one flight segment corresponding to the trajectory data to be used based on the data content corresponding to the destination field in the trajectory data to be used, wherein the flight segment corresponds to at least one trajectory data to be used;

[0041] The sub-segment sequence determination module is used to determine at least one sub-segment to be processed associated with the flight segment based on the time information of the trajectory data to be used within the flight segment, and to process two adjacent trajectory data to be used in the at least one sub-segment to be processed to determine at least two sub-segment sequences corresponding to the sub-segment to be processed.

[0042] The repair method determination module is used to determine the target repair method for two adjacent sub-segment sequences based on the trajectory data to be used with the smallest time interval between the two adjacent sub-segment sequences.

[0043] The trajectory repair module is used to repair the sequences of the two adjacent sub-segments based on the target repair method, so as to obtain target trajectory data corresponding to the target vessel.

[0044] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0045] At least one processor; and

[0046] A memory communicatively connected to the at least one processor; wherein,

[0047] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the ship trajectory processing method according to any embodiment of the present invention.

[0048] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the ship trajectory processing method according to any embodiment of the present invention.

[0049] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, characterized in that, when executed by a processor, the computer program implements the ship trajectory processing method as described in any one of the embodiments of the present invention.

[0050] The technical solution of this invention can first preprocess the acquired trajectory data to be processed within a certain time period to obtain the trajectory data to be used; further, the trajectory data to be used can be divided into at least one segment. Next, at least one sub-segment corresponding to each segment is determined, and at least one segment sequence corresponding to each sub-segment is determined. Further, the target repair method corresponding to the at least one segment sequence is determined, and the data corresponding to the at least one segment sequence is repaired according to the target repair method to obtain the target navigation trajectory corresponding to the target vessel. This solves the problem that the prior art cannot repair a large number of continuous position data anomalies, or that when relying on a large amount of historical trajectory data to repair navigation trajectory data, it cannot cope with the situation of repairing new route data. It achieves the effect of repairing data by only combining the navigation trajectory data itself, improving the accuracy and cost of data repair.

[0051] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a flowchart illustrating a method for processing ship trajectories according to an embodiment of the present invention;

[0054] Figure 2 This is a flowchart illustrating a method for processing ship trajectories according to an embodiment of the present invention;

[0055] Figure 3 This is a flowchart illustrating a method for processing ship trajectories according to an embodiment of the present invention;

[0056] Figure 4 This is a schematic diagram of the structure of a ship trajectory processing device according to an embodiment of the present invention;

[0057] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the ship trajectory processing method of the present invention. Detailed Implementation

[0058] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0059] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0060] Figure 1This is a flowchart illustrating a method for processing ship trajectories according to an embodiment of the present invention. This embodiment can be applied to any situation where navigation data needs to be repaired. The method for processing ship trajectories can be implemented by a ship trajectory processing device, which can be implemented in hardware and / or software. The hardware can be integrated into a computer device, which can be a mobile terminal or a PC, etc.

[0061] like Figure 1 As shown, the method includes:

[0062] S110. By preprocessing the trajectory data to be processed corresponding to the target vessel, the trajectory data to be used is obtained.

[0063] This system allows for the processing and repair of trajectory data from any vessel. The vessel currently undergoing trajectory repair can be designated as the target vessel. A data acquisition device can be installed on the target vessel to collect associated data generated during its navigation. Simultaneously, AIS-based associated data corresponding to the target vessel can be obtained. The raw data collected from the target vessel can be used as the trajectory data to be processed. The pre-processed trajectory data is then used as the trajectory data to be used.

[0064] Specifically, the system acquires trajectory data corresponding to the target vessel based on AIS. This trajectory data is then processed according to pre-set pre-processing rules to obtain usable trajectory data corresponding to the original trajectory data.

[0065] In this embodiment, the trajectory data to be used is obtained by preprocessing the trajectory data to be processed corresponding to the target vessel. This includes: sorting the original trajectory data according to the time information of generating the original trajectory data to obtain the trajectory data to be processed; wherein, the trajectory data to be processed includes at least one of the following: latitude and longitude values, heading angle, destination, ground speed, driving status, and vessel name of the target vessel; the trajectory data to be processed that meets the preset conditions under preset fields is taken as the trajectory data to be used; wherein, the preset fields include the ground speed field, latitude and longitude field, heading angle field, and driving status field, and the preset conditions include that the data content under the preset fields is not empty, and that the data content under at least some of the preset fields meets the corresponding preset value range.

[0066] The time information can be understood as either the time when the original trajectory data was generated or the time when the original trajectory data was generated. The original trajectory data can be sorted and processed according to the time information from early to late to obtain the trajectory data to be processed.

[0067] The trajectory data to be processed refers to the trajectory data corresponding to the target vessel's movement or stationary state. The trajectory data to be processed may include field content under multiple fields. These fields may include the target vessel's latitude and longitude, heading angle, destination, movement status, vessel name, and vessel number. Preset fields may include ground speed, latitude and longitude, heading angle, and movement status. Correspondingly, the trajectory data to be used may include the field content under the aforementioned fields. Preset conditions can be pre-set and used to filter out usable trajectory data from the trajectory data to be processed. Optionally, preset conditions include two aspects: firstly, the data content under preset fields must not be empty; secondly, the data content under certain preset fields must be within a preset numerical range.

[0068] For example, after obtaining the original trajectory data x1, x2, ..., x of the target vessel n Next, the original trajectory data can be sorted and processed based on the time information to obtain the trajectory data to be processed. The trajectory data to be processed is S={x1,x2,...,x n}, whose time series is t={t1,t2,...,t n}. x i This includes data content under the fields of latitude and longitude, heading angle, speed to ground, ship name, ship number, sailing status, and destination. After obtaining the trajectory data to be processed, it can be first determined whether the data content corresponding to the speed to ground, latitude and longitude, and heading angle under the preset fields is empty. If so, the trajectory data to be processed is considered empty. i If the preset conditions are not met, the trajectory data to be processed can be directly discarded. If the data content under the aforementioned preset field is not empty, it is determined whether the data content under the preset field meets the corresponding preset conditions. For example, the preset condition associated with the ground speed field is that the ground speed is less than a first ground speed and greater than a second ground speed. After obtaining the data content of the ground speed field, it is determined whether the data content meets the preset conditions. If it does, the trajectory data to be processed is retained; otherwise, it is deleted. Based on the above method, the trajectory data to be processed can be processed to obtain the trajectory data to be used.

[0069] The advantage of determining the trajectory data to be used in the above manner is that the correct trajectory data can be analyzed and processed so that data modification can be performed based on the accurate trajectory data, thereby improving the accuracy and effectiveness of data repair.

[0070] S120. Based on the data content corresponding to the destination field in the trajectory data to be used, determine at least one flight segment corresponding to the trajectory data to be used.

[0071] As described above, the trajectory data to be used includes data content under multiple fields, and this data content meets preset conditions. At this point, the data content corresponding to the destination field in the trajectory data to be used can be obtained. Based on the data content under the destination field, at least one flight segment corresponding to the trajectory data to be used can be determined. That is, the flight segment corresponds to at least one trajectory data point to be used.

[0072] Specifically, after obtaining the trajectory data to be used, the flight segment corresponding to the trajectory data can be determined based on the data content in the destination field. If the destination field contains multiple different pieces of information, it indicates that there are multiple flight segments. Based on the time information, trajectory data belonging to the same destination are identified as one flight segment.

[0073] In this embodiment, determining at least one flight segment corresponding to the trajectory data to be used based on the data content corresponding to the destination field in the trajectory data to be used includes:

[0074] Based on the time information of the trajectory data to be used, the data content corresponding to the target field in the trajectory data to be used is obtained sequentially; the trajectory data to be used with the same continuous data content are classified into one flight segment.

[0075] This can be understood as follows: based on the time information of the trajectory data to be used, the data content under the destination field in the trajectory data can be read sequentially. Trajectory data with continuous time and identical data content are grouped into one segment. The specific number of segments is related to the data content of the destination field.

[0076] For example, AIS data may span a long period and include multiple flight segments, in which case it can be reasonably segmented. Optionally, segmentation can be based on the destination field. If the data content under the destination field in two consecutive trajectory data sets is the same, it means they belong to the same flight segment; if the data content under the destination field in two consecutive trajectory data sets is different, it means they do not belong to the same flight segment.

[0077] S130. Based on the time information of the trajectory data to be used within the flight segment, determine at least one sub-segment to be processed associated with the flight segment, and process two adjacent trajectory data to be used in the at least one sub-segment to determine at least two sub-segment sequences corresponding to the sub-segment to be processed.

[0078] The number of at least one sub-segment to be processed can be one or more, with the specific number matching the actual situation. For each sub-segment to be processed, the trajectory data to be used is analyzed and processed to obtain at least two sub-segment sequences corresponding to each sub-segment.

[0079] The following details how to determine the fields to be processed. Optionally, based on the time information of the trajectory data to be used within the flight segment, at least one sub-segment to be processed associated with the flight segment is determined, including:

[0080] Based on the time information of the trajectory data to be used within the flight segment, the time difference between two adjacent trajectory data to be used is determined; based on the time difference and a preset time difference threshold, the flight segment is divided into multiple sub-segments to be processed.

[0081] This can be understood as follows: For any two adjacent trajectory data sets to be used in terms of time, determine the time difference between the two trajectory data sets. That is, determine the time difference between two adjacent trajectory data sets. If this time difference is greater than a preset time difference threshold, it indicates that there is a data transmission interruption. Based on this, each flight segment can be divided into multiple sub-segments to be processed.

[0082] S140. For two adjacent sub-segment sequences, determine the target repair method for the two adjacent sub-segment sequences based on the trajectory data with the smallest time interval between the two adjacent sub-segment sequences.

[0083] In this context, the trajectory data with the smallest time interval between two sub-segment sequences can be understood as the last trajectory data to be used in the preceding sub-segment sequence and the first trajectory data to be used in the following sub-segment sequence. Based on the information from these two trajectory data, the target repair method for the two sub-segment sequences can be determined.

[0084] It should be noted that these two sub-segment sequences may have originally belonged to the same sub-segment, or they may not have originally belonged to the same sub-segment.

[0085] S150. Based on the target repair method, repair the sequences of the two adjacent sub-segments to obtain target trajectory data corresponding to the target vessel.

[0086] This can be understood as follows: After determining the target repair method, trajectory repair processing can be performed on two adjacent sub-segment sequences to obtain the target trajectory data corresponding to the target vessel.

[0087] The technical solution of this invention can first preprocess the acquired trajectory data to be processed within a certain time period to obtain the trajectory data to be used; further, the trajectory data to be used can be divided into at least one segment. Next, at least one sub-segment corresponding to each segment is determined, and at least one segment sequence corresponding to each sub-segment is determined. Further, the target repair method corresponding to the at least one segment sequence is determined, and the data corresponding to the at least one segment sequence is repaired according to the target repair method to obtain the target navigation trajectory corresponding to the target vessel. This solves the problem that the prior art cannot repair a large number of continuous position data anomalies, or that when relying on a large amount of historical trajectory data to repair navigation trajectory data, it cannot cope with the situation of repairing new route data. It achieves the effect of repairing data by only needing to combine the navigation trajectory data itself, improving the accuracy and cost of data repair.

[0088] Figure 2 This is a schematic flowchart of a ship trajectory processing method provided by an embodiment of the present invention. Based on the above embodiment, the following can be further refined: "processing two adjacent trajectory data to be used in the at least one sub-segment to be processed to determine at least two sub-segment sequences corresponding to the sub-segment to be processed". The specific training method can be found in the detailed description of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiment will not be repeated here.

[0089] like Figure 2 As shown, the method includes:

[0090] S210. For the at least one sub-segment to be processed, determine the time difference and spherical distance between two adjacent trajectory data based on the time information corresponding to the trajectory data to be used.

[0091] It should be noted that this embodiment is only an explanation of how to determine the sub-segment sequence, and its specific implementation is still based on the above technical solution.

[0092] Specifically, for two temporally adjacent trajectory data points, the time difference between the two data points can be determined. Simultaneously, the spherical distance between the two trajectory data points can also be determined.

[0093] S220. Based on the time difference and the corresponding distance information, determine the average speed corresponding to two adjacent trajectory data to be used.

[0094] For two time-adjacent trajectory data points, the corresponding travel distances can be calculated. Based on this travel distance and the time difference, the average speed corresponding to the two trajectory data points can be calculated.

[0095] S230. Based on the time information, the average speed is iterated, and the trajectory data to be used that is greater than a preset speed threshold is deleted until the last average speed is reached, so as to update the trajectory data to be used.

[0096] After determining the average speed corresponding to all two adjacent trajectory data to be used, the average speed can be traversed sequentially according to the time information corresponding to the trajectory data to be used, so as to update the traversal structure and update the trajectory data to be used.

[0097] In terms of time information, the system sequentially checks whether each average speed exceeds a preset speed threshold. If so, the two trajectory data points corresponding to that average speed are deleted until the last average speed has been traversed. After the traversal is complete, the average speeds corresponding to all remaining trajectory data points are re-determined.

[0098] S240. Repeat the steps of determining the average speed of the trajectory data to be used and iterating over the average speed according to the time information until the average speed between any two adjacent trajectory data to be used is less than the preset speed threshold, to obtain the at least two sub-segment sequences.

[0099] This can be understood as follows: after traversing the last average speed, that is, after updating the trajectory data to be used, steps S210 to S230 can be re-executed until the average speed between any two adjacent trajectory data to be used is less than a preset speed threshold. After processing in the above manner, at least two sub-segment sequences corresponding to each sub-segment to be processed can be obtained.

[0100] The technical solution provided by the embodiments of the present invention can analyze and process the trajectory data to be used in each sub-segment to be processed in the above manner to obtain the sub-segment sequence associated with the sub-segment to be processed. Then, when data processing is performed based on the trajectory data to be used in the sub-segment sequence, the efficiency and accuracy of data repair can be improved.

[0101] Figure 3 This is a schematic flowchart of a ship trajectory processing method provided by an embodiment of the present invention. Based on the above embodiment, the following can be further refined: "For two adjacent sub-segment sequences, determine the target repair method for the two adjacent sub-segment sequences based on the trajectory data with the smallest time interval between the two adjacent sub-segment sequences; repair the two adjacent sub-segment sequences based on the target repair method to obtain target trajectory data corresponding to the target ship". The specific training method can be found in the detailed description of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiment will not be repeated here.

[0102] like Figure 3 As shown, the method includes:

[0103] S310. For two adjacent sub-segment sequences, determine the heading angle of the constant heading line based on the first heading angle corresponding to the last time point in the preceding sub-segment sequence and the second heading angle corresponding to the first time point in the following sub-segment sequence.

[0104] This can be understood as follows: the heading angles of the two sub-segment sequences can be determined by analyzing and processing the first heading angle corresponding to the last time point in the previous sub-segment sequence and the second heading angle corresponding to the first time point in the subsequent sub-segment sequence.

[0105] In this embodiment, the method for determining the heading angle of the constant heading line can be:

[0106] Step 1: Select two trajectory data sets to be used: (φ1,λ1,t1) and (φ2,λ2,t2), where t represents the timestamp, t1 and t2 represent the time information corresponding to the two trajectory data sets, and t2>t1; φ represents latitude, φ1 and φ2 represent the dimension values ​​corresponding to the two trajectory data sets; λ represents longitude, λ1 and λ2 represent the latitude values ​​in the two trajectory data sets.

[0107] Step 2, first calculate the latitude asymmetry rate mp, the formula is as follows:

[0108]

[0109] Where e represents the first eccentricity of the ellipsoid model, which is a preset value;

[0110] Then, determine the formula for calculating the arc length md of the meridian corresponding to the latitude of a point from the equator; the formula for calculating md is:

[0111]

[0112] in, A represents the semi-major axis of the ellipsoidal model;

[0113] Next, calculate the difference d in latitude gradient between the two points. mp The difference d between the arc length of the meridian corresponding to the first latitude point from the equator and the arc length of the meridian corresponding to the second latitude point from the equator. md ;

[0114] The calculation formula is d mp =mp1-mp2;d md =md1-md2;

[0115] Where mp1 represents the latitude asymmetry of the first point, and mp2 represents the latitude asymmetry of the second point;

[0116] md1 represents the arc length from the equator to the first latitude corresponding to the meridian circle, and md2 represents the arc length from the equator to the second latitude corresponding to the meridian circle.

[0117] Finally, the heading angle c of the constant-heading line corresponding to the two trajectory data to be used is obtained;

[0118] The calculation formula is

[0119]

[0120] Where, d φ =φ1-φ2; d λ =λ1-λ2.

[0121] S320. When the first heading angle, the second heading angle, and the constant heading line heading angle meet the preset conditions, the target repair method is determined to be the reconnection repair method.

[0122] This can be understood as follows: when the first heading angle, the second heading angle, and the constant heading angle meet the preset conditions, it means that the trajectory data to be used can be directly repaired, that is, the target repair method is the reconnection repair method.

[0123] After determining that the target repair method is the reconnection repair method, the method further includes: reconnecting the sub-segment sequences corresponding to the last time point and the first time point to obtain the target trajectory data.

[0124] This can be understood as: the trajectory data to be used corresponding to the last time point and the first time point can be directly reconnected, that is, the sub-segment sequence can be reconnected to obtain the target trajectory data.

[0125] Based on the above technical solution, when the first heading angle, the second heading angle, and the constant heading line heading angle do not meet the preset conditions, the target repair method is determined to be an interpolation repair method. Accordingly, the step of repairing the adjacent two sub-segment sequences based on the target repair method to obtain target trajectory data corresponding to the target vessel includes: sampling data at the trajectory data to be used corresponding to the first time point and the last time point, respectively; performing interpolation processing based on the sampled data to obtain an interpolation function between the adjacent two sub-segment sequences, and performing interpolation repair on the adjacent two sub-segment data based on the interpolation function to obtain the target trajectory data.

[0126] For example, n+1 points (including these two consecutive points) are sampled around the two adjacent trajectory data to be used. The latitude and longitude coordinates of each point i are (xi, yi), where x represents latitude and y represents longitude. Cubic spline interpolation requires that the left and right first derivatives and second derivatives at each point be equal, and the boundary condition is set as a natural boundary, that is, the second derivatives of the first and last points are 0. Based on the above constraints, the interpolation function corresponding to the two sub-segment sequences can be determined, and then the difference between the two trajectory data to be used is processed based on the interpolation function to obtain the target trajectory data.

[0127] The technical solution of this invention can first preprocess the acquired trajectory data to be processed within a certain time period to obtain the trajectory data to be used; further, the trajectory data to be used can be divided into at least one segment. Next, at least one sub-segment corresponding to each segment is determined, and at least one segment sequence corresponding to each sub-segment is determined. Further, the target repair method corresponding to the at least one segment sequence is determined, and the data corresponding to the at least one segment sequence is repaired according to the target repair method to obtain the target navigation trajectory corresponding to the target vessel. This solves the problem that the prior art cannot repair a large number of continuous position data anomalies, or that when relying on a large amount of historical trajectory data to repair navigation trajectory data, it cannot cope with the situation of repairing new route data. It achieves the effect of repairing data by only needing to combine the navigation trajectory data itself, improving the accuracy and cost of data repair.

[0128] Figure 4 This is a schematic diagram of a ship trajectory processing device provided in an embodiment of the present invention. The device includes: a trajectory data determination module 410, at least one segment determination module 420, a sub-segment sequence determination module 430, a repair method determination module 440, and a trajectory repair module 450.

[0129] The system includes: a trajectory data determination module 410, used to preprocess the trajectory data to be processed corresponding to the target vessel to obtain the trajectory data to be used; a segment determination module 420, used to determine at least one segment corresponding to the trajectory data to be used based on the data content corresponding to the destination field in the trajectory data to be used, wherein the segment corresponds to at least one trajectory data to be used; a sub-segment sequence determination module 430, used to determine at least one sub-segment to be processed associated with the segment based on the time information of the trajectory data to be used within the segment, and to process two adjacent trajectory data to be used in the at least one sub-segment to determine at least two sub-segment sequences corresponding to the sub-segment to be processed; a repair method determination module 440, used to determine a target repair method for two adjacent sub-segment sequences based on the trajectory data to be used with the smallest time interval between the two adjacent sub-segment sequences; and a trajectory repair module 450, used to repair the two adjacent sub-segment sequences based on the target repair method to obtain the target trajectory data corresponding to the target vessel.

[0130] The technical solution of this invention can first preprocess the acquired trajectory data to be processed within a certain time period to obtain the trajectory data to be used; further, the trajectory data to be used can be divided into at least one segment. Next, at least one sub-segment corresponding to each segment is determined, and at least one segment sequence corresponding to each sub-segment is determined. Further, the target repair method corresponding to the at least one segment sequence is determined, and the data corresponding to the at least one segment sequence is repaired according to the target repair method to obtain the target navigation trajectory corresponding to the target vessel. This solves the problem that the prior art cannot repair a large number of continuous position data anomalies, or that when relying on a large amount of historical trajectory data to repair navigation trajectory data, it cannot cope with the situation of repairing new route data. It achieves the effect of repairing data by only needing to combine the navigation trajectory data itself, improving the accuracy and cost of data repair.

[0131] Based on the above technical solution, the trajectory data determination module includes:

[0132] The trajectory data determination unit is used to sort and process the original trajectory data according to the time information of the original trajectory data to obtain the trajectory data to be processed; wherein, the trajectory data to be processed includes at least one of the following: the latitude and longitude values, heading angle, destination, ground speed, driving status and ship name of the target ship.

[0133] The trajectory determination unit is used to determine the trajectory data to be processed that meets the preset conditions under the preset fields as the trajectory data to be used.

[0134] The preset fields include ground speed, latitude and longitude, heading angle and driving status. The preset conditions include that the data content under the preset fields is not empty and that the data content under at least some of the preset fields meets the corresponding preset value range.

[0135] Based on the above technical solutions, the at least one flight segment determination module includes:

[0136] The data content acquisition unit is used to sequentially acquire the data content corresponding to the target field in the trajectory data to be used based on the time information of the trajectory data to be used.

[0137] The segment determination unit is used to group continuous trajectory data with the same content into one segment.

[0138] Based on the above technical solutions, the sub-segment sequence determination module includes:

[0139] The time difference determination unit is used to determine the time difference between two adjacent trajectory data to be used based on the time information of the trajectory data to be used within the flight segment.

[0140] The sub-segment determination unit is used to divide the segment into multiple sub-segments to be processed based on the time difference and a preset time difference threshold.

[0141] Based on the above technical solutions, the sub-segment sequence determination module includes:

[0142] The information determination unit is used to determine, for the at least one sub-segment to be processed, the time difference and spherical distance between two adjacent trajectory data to be used, based on the time information corresponding to the trajectory data to be used;

[0143] The average speed determination unit is used to determine the average speed corresponding to the two trajectory data to be used for the necklace based on the time difference and the corresponding distance information.

[0144] The data update unit is used to iterate through the average speed based on the time information, delete the trajectory data to be used that is greater than a preset speed threshold, until the last average speed is reached, so as to update the trajectory data to be used.

[0145] The sub-segment sequence determination unit is used to repeatedly execute the steps of determining the average speed of the trajectory data to be used and traversing the average speed according to the time information until the average speed between any two adjacent trajectory data to be used is less than the preset speed threshold, thereby obtaining the at least two sub-segment sequences.

[0146] Based on the above technical solutions, the repair method determination module includes:

[0147] The constant heading angle determination unit is used to determine the constant heading angle for two adjacent sub-segment sequences based on the first heading angle corresponding to the last time point in the previous sub-segment sequence and the second heading angle corresponding to the first time point in the subsequent sub-segment sequence.

[0148] The reconnection repair method determination unit is used to determine the target repair method as the reconnection repair method when the first heading angle, the second heading angle, and the constant heading line heading angle meet preset conditions.

[0149] Accordingly, the step of repairing the sequences of the two adjacent sub-segments based on the target repair method to obtain target trajectory data corresponding to the target vessel includes:

[0150] The sub-segment sequences corresponding to the last time point and the first time point are reconnected to obtain the target trajectory data.

[0151] Based on the above technical solutions, the device further includes:

[0152] The interpolation repair method determination module is used to determine the target repair method as the interpolation repair method when the first heading angle, the second heading angle, and the constant heading line heading angle do not meet the preset conditions.

[0153] Accordingly, the step of repairing the sequences of the two adjacent sub-segments based on the target repair method to obtain target trajectory data corresponding to the target vessel includes:

[0154] Data samples are taken at the trajectory data to be used at the first and last time points, respectively;

[0155] Interpolation processing is performed on the sampled data to obtain an interpolation function between two adjacent sub-segment sequences. The interpolation function is then used to repair the data of the two adjacent sub-segments to obtain the target trajectory data.

[0156] The ship trajectory processing device provided in this embodiment of the invention can execute the ship trajectory processing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.

[0157] Figure 5A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0158] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0159] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0160] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as methods for processing ship trajectories.

[0161] In some embodiments, the data processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the data processing method by any other suitable means (e.g., by means of firmware).

[0162] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0163] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0164] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0165] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0166] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0167] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0168] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0169] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for processing ship trajectories, characterized in that, include: By preprocessing the trajectory data to be processed corresponding to the target vessel, the trajectory data to be used is obtained; Based on the data content corresponding to the destination field in the trajectory data to be used, at least one flight segment corresponding to the trajectory data to be used is determined, wherein the flight segment corresponds to at least one trajectory data to be used; Based on the time information of the trajectory data to be used within the flight segment, at least one sub-segment to be processed associated with the flight segment is determined, and two adjacent trajectory data to be used in the at least one sub-segment to be processed are processed to determine at least two sub-segment sequences corresponding to the sub-segment to be processed. For two adjacent sub-segment sequences, the target repair method for the two adjacent sub-segment sequences is determined based on the trajectory data to be used with the smallest time interval between the two adjacent sub-segment sequences. Based on the target repair method, the sequences of the two adjacent sub-segments are repaired to obtain target trajectory data corresponding to the target vessel. The step of determining the target repair method for the two adjacent sub-segment sequences based on the trajectory data with the smallest time interval between the two adjacent sub-segment sequences includes: For two adjacent sub-segment sequences, obtain the first latitude and longitude value and the first heading angle corresponding to the last time point in the previous sub-segment sequence, and the second latitude and longitude value and the second heading angle corresponding to the first time point in the subsequent sub-segment sequence; Based on the first latitude and longitude value and the second latitude and longitude value, determine the constant-heading angle between the two time points; When the first heading angle, the second heading angle, and the constant heading line heading angle meet the preset conditions, the target repair method is determined to be the reconnection repair method; Accordingly, the step of repairing the sequences of the two adjacent sub-segments based on the target repair method to obtain target trajectory data corresponding to the target vessel includes: The sub-segment sequences corresponding to the last time point and the first time point are reconnected to obtain the target trajectory data; When the first heading angle, the second heading angle, and the constant heading line heading angle do not meet the preset conditions, the target repair method is determined to be the interpolation repair method. Accordingly, the step of repairing the sequences of the two adjacent sub-segments based on the target repair method to obtain target trajectory data corresponding to the target vessel includes: Data samples are taken at the trajectory data to be used at the first and last time points, respectively; Interpolation processing is performed on the sampled data to obtain an interpolation function between two adjacent sub-segment sequences. The trajectory data between the two adjacent sub-segment sequences is then interpolated and repaired based on the interpolation function to obtain the target trajectory data.

2. The method according to claim 1, characterized in that, The process of preprocessing the trajectory data to be processed corresponding to the target vessel to obtain the trajectory data to be used includes: The original trajectory data is sorted and processed based on the time information of the original trajectory data to obtain trajectory data to be processed; wherein, the trajectory data to be processed includes at least one of the following: the latitude and longitude values, heading angle, destination, ground speed, driving status, and ship name of the target ship; The trajectory data to be processed that meets the preset conditions under the preset fields is taken as the trajectory data to be used; The preset fields include ground speed, latitude and longitude, heading angle and driving status. The preset conditions include that the data content under the preset fields is not empty and that the data content under at least some of the preset fields meets the corresponding preset value range.

3. The method according to claim 1, characterized in that, The step of determining at least one flight segment corresponding to the trajectory data to be used, based on the data content corresponding to the destination field in the trajectory data to be used, includes: Based on the time information of the trajectory data to be used, the data content corresponding to the destination field in the trajectory data to be used is obtained sequentially. Trajectory data with identical continuous data content are grouped into one flight segment.

4. The method according to claim 1, characterized in that, The step of determining at least one unprocessed sub-segment associated with the flight segment based on the time information of the trajectory data to be used within the flight segment includes: Based on the time information of the trajectory data to be used within the flight segment, determine the time difference between two adjacent trajectory data to be used; Based on the time difference and the preset time difference threshold, the flight segment is divided into multiple sub-segments to be processed.

5. The method according to claim 1, characterized in that, The step of processing two adjacent trajectory data to be used in the at least one sub-segment to be processed, and determining at least two sub-segment sequences corresponding to the sub-segment to be processed, includes: For the at least one sub-segment to be processed, the time difference and spherical distance between two adjacent trajectory data to be used are determined based on the time information corresponding to the trajectory data to be used. Based on the time difference and the corresponding spherical distance, determine the average speed corresponding to two adjacent trajectory data to be used; The average speed is iterated based on the time information, and the trajectory data to be used that is greater than a preset speed threshold is deleted until the last average speed is reached, so as to update the trajectory data to be used. Repeat the steps of determining the average speed of the trajectory data to be used and iterating over the average speed based on time information until the average speed between any two adjacent trajectory data to be used is less than the preset speed threshold, to obtain the at least two sub-segment sequences.

6. An electronic device, characterized in that, The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements a method for processing ship trajectories as described in any one of claims 1-5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the ship trajectory processing method as described in any one of claims 1-5.

8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for processing ship trajectories as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Mass ship trajectory adaptive reconstruction method considering ship motion state

    CN117494017A