Kinematically guided physical feature fusion ship collision risk prediction method and system
By constructing a kinematic physical baseline CRI_phys and incorporating soft reference features into a neural network, the accuracy degradation problem of data-driven ship collision risk early warning methods in long-term prediction is solved, achieving high-precision and interpretable ship collision risk prediction.
Patent Information
- Application Number
- CN202611038009.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-13
- Publication Date
- 2026-11-20
AI Technical Summary
Existing data-driven ship collision risk early warning methods suffer from a sharp decline in accuracy over long-term predictions. They fail to utilize the physical priors of ship motion, lack specificity in the fusion of physical information and neural networks, and have insufficient scale adaptability in collision risk labels.
By constructing a kinematic physical baseline CRI_phys, an interpretable kinematic risk prior is explicitly introduced and integrated into a temporal neural network in the form of soft reference features. Combined with a captain-corrected five-factor fuzzy CRI model, a scale-adaptive risk label is constructed for long-term prediction.
It significantly improves the accuracy of short- and medium-term forecasts, alleviates the degradation of long-term forecast accuracy, provides interpretable physical constraints, is suitable for single-source AIS data scenarios, and improves the reliability and accuracy of early warning.
Smart Images

Figure CN123138609A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of water traffic safety and data-driven risk early warning technology, specifically referring to a kinematically guided physical feature fusion method and system for predicting ship collision risks. Background Technology
[0002] With the growth of global trade and the continuous rise in demand for maritime transport, ship collisions have become a core issue of maritime traffic safety due to their frequency and serious consequences. The practical value of collision risk warning depends on the lead time: only by providing a reliable prediction well in advance can ships have sufficient leeway for avoidance. Automatic Identification System (AIS) data can provide dynamic information such as ship position, speed, and heading, and has been widely used for collision risk assessment and trajectory prediction. Existing ship collision risk-related technologies can be broadly classified into three categories: Collision avoidance decision-making and path planning methods. These methods use potential field methods, intelligent optimization algorithms (differential evolution, ant colony, genetic algorithms) or rule-based reasoning to solve for collision avoidance routes and maneuvering commands. They focus on "how to avoid risks after they are detected," and their premise is that the risk situation is known. They do not solve the problem of predicting the risk situation in advance.
[0003] Real-time situational awareness and multi-source fusion early warning. This type of method integrates information from multiple sources such as AIS, radar, vision, meteorology and hydrology, or uses digital twins, risk heat maps, and risk potential fields to quantify and warn of collision risks at the current moment. It focuses on real-time fusion and visualization of multi-source data and has a short prediction time domain.
[0004] Data-driven risk quantification and trajectory prediction methods. These methods quantify collision risk using index-based methods (DCPA, TCPA, maritime domain methods, etc.) or perform temporal prediction of ship trajectories and risks using recurrent neural networks (LSTM, GRU), Transformer, temporal convolutional networks, and graph convolutional networks. While these methods are closest to this invention, they still have the following prominent problems: (1) Accuracy degrades sharply with longer lead times, and the degradation mechanism is not utilized. Early warning of collision risk requires prediction over a certain time period in the future; pure data-driven models lack physical constraints when predicting at long distances and blindly extrapolate in the data space, and the accuracy decays more significantly with longer lead times. Experiments show that the high-risk prediction accuracy of recurrent neural networks can decrease from about 0.89 with short lead times (10 s) to about 0.79 with long lead times (300 s), and continues to decline with even longer lead times; while existing methods only address the issue by "changing to a stronger model" or "adding more data", without addressing the kinematic root cause of degradation, resulting in insufficient long-term prediction ability.
[0005] (2) Failure to utilize physical priors of ship motion. Ships approximately maintain their current velocity vector motion on short to medium time scales, and their future encounters with geometry and risks can be largely extrapolated from kinematics. Existing data-driven methods often directly input AIS motion parameters into neural networks for implicit learning, without explicitly constructing interpretable kinematic risk priors. This results in a loss of physical interpretability and leaves the model without constraints in high-risk extrapolation regions where samples are scarce.
[0006] (3) The integration of physical information with neural networks lacks targeted design. Even when physical quantities are introduced, whether they are used as hard constraints (such as using physical extrapolation values as strong anchors for the prediction output, with the network only learning to correct the residuals) or as soft references (as additional input features, with the network adaptively weighing the factors) has a significant impact on prediction accuracy. When physical extrapolation itself is distorted at long ranges, hard constraints will directly introduce physical errors into the prediction, thus degrading long-range accuracy. Existing work lacks systematic design and verification in this regard.
[0007] (4) Insufficient scale adaptability of collision risk labels. Collision risk is difficult to observe directly, and various encounter factors need to be quantified into a unified indicator as a monitoring label. Existing indicator models mostly use fixed safe encounter distance and membership parameters, which do not fully consider the differences in safe distance requirements of ships of different sizes, resulting in large deviations in risk labels in large ship encounter scenarios.
[0008] Therefore, how to explicitly construct interpretable kinematic risk priors and integrate them into temporal neural networks in an appropriate manner to alleviate the accuracy degradation under long lead time, while constructing scale-adaptive risk labels, are the key issues that urgently need to be addressed in current data-driven ship collision risk early warning systems. Summary of the Invention
[0009] To address the technical problems existing in the prior art, the present invention provides a kinematically guided physical feature fusion method and system for predicting ship collision risk, the technical solution of which is as follows: On the one hand, a kinematically guided physical feature fusion method for ship collision risk prediction is provided, which includes: S1. Sample data acquisition and preprocessing: Acquire sample data from the Automatic Identification System (AIS) and preprocess it to obtain a sequence of ship trajectories with uniform time intervals; S2. Ship trajectory pair extraction: Ship trajectories are divided based on the Maritime Mobile Service Identifier (MMSI) and time series, and ship trajectory pairs are extracted based on time and space constraints. S3. Collision Risk Index (CRI) Calculation: Based on the trajectory points at the same time in each ship trajectory pair, calculate the relative distance, relative speed, nearest encounter distance (DCPA), nearest encounter time (TCPA), and risk membership degree of the relative bearing to speed ratio, and sum them by weight to obtain the continuous collision risk index (CRI) as a monitoring label. In the risk membership degree function of the nearest encounter distance (DCPA) and the relative distance, respectively, a safe encounter distance correction term and a latest rudder application distance correction term related to the lengths of the two ships are introduced. S4. Calculation of Kinematic Physical Baseline CRI_phys: For each ship trajectory pair, take the plane position, ground speed and ground heading of the two ships at the end of the observation window. Based on the assumption of uniform linear motion, extrapolate the dead reckoning of the two ships to the extrapolation time corresponding to the future prediction lead, and obtain the extrapolation position of the two ships. Based on the extrapolation position of the two ships and the ground speed and ground heading that remain unchanged during the extrapolation, recalculate the collision risk index at the extrapolation time according to step S3, and use it as the kinematic physical baseline CRI_phys of each ship trajectory pair under the prediction lead. S5. Temporal Neural Network Prediction Model Training: Input the relative motion feature sequence of each ship trajectory pair within the observation window, the CRI_phys, and the supervision label together to train the temporal neural network prediction model. The CRI_phys is used as a soft reference feature and is adaptively weighted by the network to output the collision risk index (CRI) prediction value of each ship trajectory pair after the prediction lead. S6. Real-time data prediction: Use the trained temporal neural network prediction model to predict the real-time AIS data to be predicted.
[0010] On the other hand, a kinematically guided physical feature fusion ship collision risk prediction system is provided, the system comprising: Sample data acquisition and preprocessing module: used to acquire sample data from the Automatic Identification System (AIS) and preprocess it to obtain a sequence of ship trajectories with uniform time intervals; Ship trajectory pair extraction module: used to divide ship trajectories based on the ship maritime movement service identifier (MMSI) and time series, and extract ship trajectory pairs based on time and space constraints; Collision Risk Index (CRI) Calculation Module: This module calculates the relative distance, relative speed, nearest encounter distance (DCPA), nearest encounter time (TCPA), and risk membership degree of the relative bearing to speed ratio for each ship trajectory pair at the same time, and then sums them by weight to obtain a continuous collision risk index (CRI) as a monitoring label. The risk membership degree functions of the nearest encounter distance (DCPA) and the relative distance respectively incorporate a safe encounter distance correction term and a latest rudder application distance correction term related to the lengths of the two ships. The kinematic physical baseline CRI_phys calculation module is used to take the plane position, speed above ground and heading above ground of the two ships at the end of the observation window for each ship trajectory pair. Based on the assumption of uniform linear motion, dead reckoning is performed on the two ships and extrapolated to the extrapolated time corresponding to the future prediction lead. The extrapolated positions of the two ships are obtained. Based on the extrapolated positions of the two ships and the speed above ground and heading above ground that remain unchanged during the extrapolation, the collision risk index at the extrapolated time is recalculated according to step S3. This index is used as the kinematic physical baseline CRI_phys of each ship trajectory pair under the prediction lead. Temporal Neural Network Prediction Model Training Module: This module is used to input the relative motion feature sequence of each ship trajectory pair within the observation window, the CRI_phys, and the supervision label together to train the temporal neural network prediction model. The CRI_phys is used as a soft reference feature and is adaptively weighted by the network to output the collision risk index (CRI) prediction value of each ship trajectory pair after the prediction lead. Real-time data prediction module: Used to predict the AIS real-time data to be predicted using a trained temporal neural network prediction model.
[0011] On the other hand, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, which is loaded and executed by the processor to implement the aforementioned kinematically guided physical feature fusion ship collision risk prediction method.
[0012] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, the at least one instruction being loaded and executed by a processor to implement the above-described kinematics-guided physical feature fusion ship collision risk prediction method.
[0013] The beneficial effects of the technical solution provided by this invention include at least the following: (1) Explicitly construct the kinematic physical baseline to inject interpretable physical constraints into long lead prediction.
[0014] This invention extrapolates the motion states of the two ships at the end of the observation window as uniform linear motion, and recalculates the analytical collision risk CRI_phys based on the extrapolated encounter geometry, resulting in a risk reference that contains no trainable parameters and is entirely determined by kinematics. The error reduction of this baseline relative to the persistent baseline (predicted using CRI at the end of the observation window) increases with the lead time (approximately 69% lower at 100 s, approximately 72% lower at 300 s, and approximately 55% lower at 600 s; the magnitude is extremely small at 10 s, and the two are comparable). Its value lies in the medium-to-long lead time when the persistent assumption fails, providing a reliable physical anchor point for the data-driven model in the far-end extrapolation zone, fundamentally alleviating the long-range accuracy degradation caused by blind extrapolation from pure data models.
[0015] (2) Physical priors are injected by feature fusion, which significantly improves the accuracy of short and medium lead time.
[0016] This invention uses CRI_phys as a soft reference feature fed into a temporal neural network, where the network adaptively weighs its reliability. Experiments show that, within the full lead range of 10–600 s, the feature fusion prediction outperforms the strongest baseline GRU and all eight baselines throughout the entire prediction process, with particularly significant improvements in the short and medium ranges: a 7.8 percentage point improvement at 10 s (0.965 vs 0.887), a 5.0 percentage point improvement at 100 s, a 3.1 percentage point improvement at 300 s, and a 3.4 percentage point improvement at 500 s. Paired t-tests with 5-fold cross-validation show statistical significance in all cases ≤300 s (p<0.01).
[0017] (3) Reveal and adopt the optimal fusion method, soft features are better than hard residual anchoring.
[0018] This invention systematically compares two integration methods: feature fusion (soft reference) and residual anchoring (hard constraint). It finds and adopts the former: residual anchoring forces CRI_phys as the output anchor, and when uniform extrapolation gradually becomes distorted over medium to long ranges, it directly introduces physical errors into the prediction, resulting in a lower performance than pure GRU at ≥300 s (300 s residual 0.770 < GRU 0.783, further decreasing to approximately 0.50 at 600 s); while feature fusion only uses CRI_phys as the reference input, with adaptive weighting by the network, thus being more robust throughout. This choice of fusion method is a non-obvious, targeted design.
[0019] (4) Construct a five-factor fuzzy CRI model with length correction, where both risk labels and physical baselines are scale-adaptive.
[0020] This invention introduces a safe encounter distance correction term and a latest rudder application distance correction term related to the lengths of the two ships into the hazard membership function of DCPA and relative distance, and sets an upper limit, so that the risk label takes into account the safe distance requirements of ships of different sizes; the same set of membership degrees including ship length correction is also used for recalculation of kinematic physical baseline, ensuring that the label is consistent with the physical prior caliber.
[0021] (5) It relies solely on single-source AIS data, has strong interpretability, and is suitable for security-critical scenarios.
[0022] This invention does not rely on multi-source data such as radar, vision, and meteorology. It can construct a physical baseline and complete the prediction using only single-source AIS motion data. The physical baseline + neural network structure makes the prediction both data-driven flexibility and kinematic interpretability, which is suitable for collision avoidance warning with high interpretability requirements.
[0023] (6) Supports multiple lead time forecasts, and can be combined with high-risk sample balancing to further enhance long-term capabilities.
[0024] This invention outputs collision risks of different durations in the future by setting different prediction lead times; the kinematic physical prior and high-risk sample balance can be superimposed, and the feature fusion on the balanced training set is more effective than the unbalanced baseline (e.g., 300 s from 0.645 to 0.814). Attached Figure Description
[0025] 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.
[0026] Figure 1 This is a flowchart of a kinematically guided physical feature fusion method for predicting ship collision risk provided by an embodiment of the present invention; Figure 2 This is a general block diagram of a kinematically guided physical feature fusion method for predicting ship collision risk provided by an embodiment of the present invention; Figure 3 This is a flowchart of AIS data cleaning in step S1 of an embodiment of the present invention; Figure 4 This is a schematic diagram of the ship's relative motion parameters (relative distance, relative speed, relative heading, relative bearing, DCPA, TCPA) in step S3 of an embodiment of the present invention; Figure 5 This is a schematic diagram of the calculation principle of the kinematic physical baseline CRI_phys in step S4 of the embodiment of the present invention, showing the process of extrapolating the state of the two ships at the end of the observation window to the future time and recalculating the analytical CRI based on the extrapolated encounter geometry. Figure 6 This is a flowchart of step S4, the calculation of the kinematic physical baseline CRI_phys, in an embodiment of the present invention. Figure 7 A comparison of prediction errors between the kinematic physical baseline CRI_phys and the persistent baseline under different prediction lead amounts in an embodiment of the present invention; Figure 8 This is a structural diagram of the temporal neural network for physical feature fusion in step S5 of the embodiment of the present invention, showing that the kinematic physical baseline CRI_phys is used as a soft reference feature (additional input feature) and is then concatenated with the relative motion feature sequence and input into the GRU backbone; Figure 9 This is a comparison chart of the prediction accuracy of physical feature fusion and GRU baseline in high-risk intervals under different prediction lead times according to embodiments of the present invention; Figure 10This is a comparison chart of the prediction accuracy of the two integration methods of the present invention, physical feature fusion and residual anchoring, under different prediction lead amounts, showing that soft feature fusion is superior to hard residual anchoring throughout the process; Figure 11 This is a block diagram of a kinematically guided physical feature fusion ship collision risk prediction system provided in an embodiment of the present invention; Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0027] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.
[0028] This invention provides a kinematically guided physical feature fusion method for predicting ship collision risk. This method can be implemented by an electronic device, which can be a terminal or a server. Figure 1 The flowchart of this method is shown below. Figure 2 The diagram shown is an overall block diagram of the method. The processing flow may include the following steps: S1. Sample data acquisition and preprocessing: Acquire sample data from the Automatic Identification System (AIS) and preprocess it to obtain a sequence of ship trajectories with uniform time intervals; (1) Data source.
[0029] AIS data of ships were collected over several consecutive days in the coastal waters of the United States (approximately 168°W–60°W, 15°N–51°N) in January 2023. The raw fields included Maritime Mobile Service Identity (MMSI), collection time, longitude (LON), latitude (LAT), speed over land (SOG), heading over land (COG), navigation status (Status), length, and width.
[0030] (2) Data cleaning.
[0031] like Figure 3 As shown, the cleaning process follows these rules: only records in sailing status (Status=0) are retained; records with less than 9 MMSI digits are removed; records of small vessels with a length not exceeding 13 m or a beam not exceeding 3 m are removed; records with longitudes exceeding [-180°, 180°], latitudes exceeding [-90°, 90°], or headings exceeding [0°, 360°] are removed; records with a speed not exceeding 0.5 kn are removed; and records are sorted in ascending order by MMSI and time.
[0032] (3) Missing value resampling interpolation.
[0033] First, remove trajectories with fewer than 10 points; cut off and retain the continuous trajectory segment with the most points when the time difference between adjacent points is greater than 200 s; resample at a uniform time interval of 10 s, linearly interpolate longitude, latitude, speed, and heading, and forward fill for ship length and width.
[0034] (4) Mercator projection conversion of latitude and longitude.
[0035] The Mercator projection is used to convert latitude and longitude into plane coordinates:
[0036] In the formula, R is the Earth's radius, and λ is longitude. x and y are latitude, and x and y are planar coordinates (unit: n miles).
[0037] (5) Feature normalization.
[0038] Global minimax normalization is used to linearly map each feature to [0,1]:
[0039] Normalization can also be performed after trajectory pair extraction and CRI calculation are completed, but before model training, using the global maximum and minimum values of all samples.
[0040] S2. Ship trajectory pair extraction: Based on the Maritime Mobile Service Identifier (MMSI) and time series, ship trajectories are divided, and ship trajectory pairs (two ships that may meet) are extracted based on time and space constraints. Optionally, S2 specifically includes: S2.1 Trajectory Data Organization: Let the trajectory point be... These represent the vessel's maritime movement operation identifier, time, longitude, latitude, speed over land, heading over land, and length, respectively; the vessel's trajectory. ; S2.2 Time Constraints: Let the time intervals of the two ship trajectories be respectively. and The requirement is that the two intervals have an intersection, i.e. ; S2.3, Spatial Constraints: Let the sequence of relative distances between the two ships at each time point within the time intersection be denoted as . Maximum distance threshold (For example, you can set) (n mile), requiring any time within the time intersection. The calculation process is as follows: First, a spatial coarse screening is performed based on the minimum distance between the bounding boxes of each ship's trajectory latitude and longitude to reduce the computational cost of pairwise traversal: when the minimum distance between the bounding boxes of two ships is not less than If the two ships cannot meet, they are directly eliminated; otherwise, within the time intersection, align the trajectories of the two ships according to time, calculate the relative distance point by point, and only retain those less than [a certain value]. The merged trajectory is then sliced according to a 10-second time continuity, retaining the continuous segment with the most points to ensure time continuity; S2.4 Secondary screening: Further eliminate track pairs that do not conform to the actual navigation pattern: track pairs whose position remains basically unchanged throughout the entire journey (longitude and latitude ranges are both no greater than 0.01°); track pairs with abnormal records of speeds less than 0.5 kn or greater than 100 kn; and track pairs whose position remains basically unchanged (long-term stay) within a 20-minute sliding window.
[0041] This invention extracts 21,085 pairs of ship trajectory data that meet spatiotemporal constraints from multi-day AIS data. These are then divided into three independent, non-overlapping data pools: 8,681 pairs are randomly selected as a training data pool (4,087 of which contain high-risk data, accounting for 47.1%); 2,295 pairs are selected as a test data pool; and the remaining 10,109 pairs serve as a candidate data pool for subsequent data augmentation. The three pools are independent of each other, ensuring no data leakage occurs during subsequent evaluation.
[0042] S3. Collision Risk Index (CRI) Calculation: Based on the trajectory points at the same time in each ship trajectory pair, calculate the relative distance, relative speed, nearest encounter distance (DCPA), nearest encounter time (TCPA), and risk membership degree of the relative bearing to speed ratio, and sum them by weight to obtain the continuous collision risk index (CRI) as a monitoring label. In the risk membership degree function of the nearest encounter distance (DCPA) and the relative distance, respectively, a safe encounter distance correction term and a latest rudder application distance correction term related to the lengths of the two ships are introduced. Since collision risk is difficult to observe directly, this invention quantifies multiple encounter factors into a unified continuous collision risk index (CRI) as a supervision label for training subsequent temporal neural network prediction models.
[0043] Optionally, such as Figure 4 As shown, S3 specifically includes: Let the initial position of this ship be... Speed ,course Initial position of the target ship Speed ,course ; S31. Calculate the relative motion parameters: 1) Relative distance D: Calculated using the Haversine formula based on the latitude and longitude of the two ships; 2) Relative velocity :
[0044] 3) Relative heading : The angle between the relative velocity vector and the ship's heading (values [0°, 180°]):
[0045] 4) Relative bearing q: is the angle of the target ship relative to the bow direction of this ship, calculated from the positions of the two ships and the course of this ship; 5) The nearest DCPA will be encountered:
[0046] 6) The TCPA timeframe will be encountered soon:
[0047] S32. Calculate the hazard membership degree of each factor: 1) Membership degree u(DCPA):
[0048] In the formula, The DCPA is a preset absolute safe encounter distance (e.g., 1 nautical mile). When the DCPA is greater than this value, no collision risk is posed regardless of maneuvering. λ is a safe encounter distance correction term, which is twice the sum of the lengths of the two vessels with an upper limit. In order to take into account the impact of ships of different sizes; 2) Relative distance membership degree u(D):
[0049] In the formula, The arena distance is determined by the relative orientation q. This is the latest rudder application distance correction item, which is related to the ship's length and has an upper limit. ; 3) Membership degree u(TCPA):
[0050] In the formula:
[0051] 4) Relative orientation membership degree u(q):
[0052] 5) Velocity ratio membership u(k):
[0053] in For speed ratio, It is usually set to 1; S33, CRI weighted synthesis: The CRI is obtained by weighted summation of the hazard membership of the five factors:
[0054] The weights in the formula are determined based on relevant literature and actual navigation experience (in this embodiment of the invention, the weights are taken as follows). , , , , (The sum of the weights is 1, and the weights of DCPA and TCPA are greater than the other three items). S34. Risk Level and Label Classification: CRI values range from [0,1] and are divided into three risk levels: CRI ∈ [0.00, 0.33) is low risk (label 1), CRI ∈ [0.33, 0.66) is medium risk, CRI ∈ [0.66, 1.00] is high risk (label 3).
[0055] S4. Calculation of Kinematic Physical Baseline CRI_phys: For each ship trajectory pair, take the plane position, ground speed and ground heading of the two ships at the end of the observation window. Based on the assumption of uniform linear motion, extrapolate the dead reckoning of the two ships to the extrapolation time corresponding to the future prediction lead, and obtain the extrapolation position of the two ships. Based on the extrapolation position of the two ships and the ground speed and ground heading that remain unchanged during the extrapolation, recalculate the collision risk index at the extrapolation time according to step S3, and use it as the kinematic physical baseline CRI_phys of each ship trajectory pair under the prediction lead. This invention's embodiments reveal that the root cause of accuracy degradation under long lead time lies in the lack of physical constraints in the pure data model during far-end extrapolation. Since ships approximately maintain their current velocity vector motion on short-to-medium timescales, future geometry and risks can be estimated through uniform extrapolation, constructing a kinematic physical baseline without trainable parameters, such as... Figure 5 and Figure 6 As shown.
[0056] Optionally, the dead reckoning extrapolation in step S4, based on the assumption of uniform linear motion, specifically includes: Let the ship's longitude, latitude, speed to ground, and heading to ground at the end of the observation window be lon, lat, V, and C, respectively. Let the extrapolation time corresponding to the prediction lead be τ. Then, the ship's latitude after extrapolation is the equivalent distance term of lat + V·τ·cos C / (60·3600), and the ship's longitude after extrapolation is the equivalent distance term of lon + V·τ·sin C / (60·3600·cos lat). That is, the extrapolated distance is the nautical miles converted from V·τ. These are projected onto the latitude and longitude directions along the heading, respectively. The longitude direction is then divided by the cosine of the local latitude for scale correction. Specifically: For each pair of ship trajectories, take the latitude and longitude positions of the two ships, their speed on the ground V_i, and their heading on the ground C_i (i∈{this ship o, target ship t}) at the end of the observation window.
[0057] Let the prediction lead be ΔT steps and the resampling interval be 10 s, then the extrapolation time τ = ΔT × 10 s. Assuming both ships maintain their current velocity vectors and move at constant velocity (CVM) in the future, the extrapolated positions of the two ships at t+τ are calculated from dead reckoning:
[0058] In the formula, V_i is in kn (n mile / h), τ / 3600 is the extrapolated hour, V_i·(τ / 3600) is the extrapolated flight distance (n mile), which is divided by 60 to convert to latitude degrees; the longitude direction is then divided by the local latitude cosine cos(lat_i) for scale correction.
[0059] Both ships push outwards independently, maintaining their respective ground speed and heading during the outward push.
[0060] Optionally, in step S4, the collision risk index at the extrapolated time is recalculated based on the extrapolated positions of the two ships and their unchanged ground speed and heading during the extrapolation, according to step S3. This index serves as the kinematic physical baseline CRI_phys for each ship trajectory pair under this prediction lead. Specifically, it includes: What geometry will be encountered when recalculating from the extrapolated position? The positions of the two ships were pushed back from the outside (lo) _o,la _o), (lo _t,la Given the constant ground speed and heading, recalculate using the same formula in step S3: calculate the extrapolated relative distance from the two ships using the great circle distance formula, based on the extrapolated latitude and longitude. ; Calculate the relative bearing of the extrapolation based on the line connecting the extrapolation positions of the two ships. The relative speed is calculated by combining the ground speed and ground heading of the two ships, which remain constant during extrapolation. _r and relative heading _r; thus we get: ; Physical baseline synthesis: Substituting the extrapolated encounter geometry into the fuzzy membership function with ship length correction and the weighted synthesis formula in step S3, we obtain the kinematic physical baseline under the prediction lead ΔT:
[0061] The baseline contains no trainable parameters and is determined entirely by the kinematic state at the end of the observation window, where the velocity ratio K = V_t / V_o remains constant under uniform extrapolation.
[0062] Reasonableness verification (e.g.) Figure 7 (as shown) On high-risk samples in the test set, comparing CRI_phys with the persistence baseline (using the CRI at the end of the observation window as the future prediction): the error reduction of CRI_phys increases with the lead time (approximately 69% lower at 100 s, approximately 72% lower at 300 s, and approximately 55% lower at 600 s), while at very short lead times (10 s), the errors of both are minimal and essentially equivalent. This indicates that the value of kinematic extrapolation becomes more prominent with increasing lead time—at medium to long lead times where the persistence assumption fails, CRI_phys can still effectively predict future risk evolution, making it a reasonable and effective physical anchor for the data model. Its advantages vary depending on the situation; it is most kinematically driven when encountering a situation, followed by crossover, and least driven by overtaking.
[0063] Implementation details: The kinematic physical baseline is pre-calculated by CVM extrapolation from the original (unnormalized) motion state at the end of the observation window and aligned with the normalized feature sequence sample by sample in row order; individual samples whose original motion state cannot be obtained or whose extrapolation geometry degenerates are removed and do not participate in training and evaluation.
[0064] S5. Temporal Neural Network Prediction Model Training: Input the relative motion feature sequence of each ship trajectory pair within the observation window, the CRI_phys, and the supervision label together to train the temporal neural network prediction model. The CRI_phys is used as a soft reference feature and is adaptively weighted by the network to output the collision risk index (CRI) prediction value of each ship trajectory pair after the prediction lead. Optionally, such as Figure 8 As shown, the temporal neural network, with a gated recurrent unit (GRU) as its backbone, includes two stacked GRU layers (32 hidden dimensions) and a fully connected layer (100 neurons, ReLU) following them. The processing includes: The kinematic physical baseline CRI_phys and the relative motion feature sequence are concatenated along the feature dimension and then input into the GRU backbone step by step. The hidden state at the last time step is taken and the collision risk index prediction value is output through a fully connected layer. The CRI_phys is used as a soft reference feature, and its weight is adaptively determined by the network during training. The relative motion feature sequence includes seven features: relative distance, relative speed, speed ratio, relative heading, relative bearing, nearest encounter distance DCPA, and nearest encounter time TCPA.
[0065] Specifically: At time t, a seven-dimensional relative motion feature sequence X = [Y_{t-W+1},…,Y_t] (relative distance, relative velocity, velocity ratio, relative heading, relative bearing, DCPA, TCPA) is taken as input features for a continuous W=9 time points within the observation window. The kinematic physical baseline CRI_phys obtained in step S4 at the lead time ΔT is taken as a soft reference feature (additional input feature). The prediction target is the collision risk index CRI of this trajectory pair at time t+ΔT. Since the resampling interval is 10s, ΔT=1,5,10,… correspond to collision risk predictions for the next 10 s, 50 s, 100 s,… respectively, achieving multi-lead time prediction.
[0066] This invention compares two integration methods: (a) feature fusion, where CRI_phys is used as a soft reference feature (additional input feature); and (b) residual anchoring, where CRI_phys is used as the output anchor, the network only learns the residual, the predicted value = CRI_phys + g_θ(X), and the training objective is CRI - CRI_phys. Experiments show that feature fusion (a) is optimal throughout; residual anchoring (b) only improves in the short term (≤200 s), and in the medium to long term (≥300 s), it is inferior to pure GRU (300 s: residual 0.770 < GRU 0.783, decreasing to approximately 0.50 at 600 s). This is because residual anchoring forces CRI_phys as the output anchor, directly introducing physical errors into the prediction when CVM extrapolation gradually becomes distorted in the medium to long term; while feature fusion only serves as a reference input, and the network can adaptively weight it, thus being more robust. Therefore, this invention uses feature fusion (a) as the preferred implementation method.
[0067] Optionally, the method further includes: conditionalizing the prediction according to the encounter situation. Based on the median difference between the two ships' headings over the ground over the entire trajectory, the trajectory pairs are divided into three types of encounter situations: overtaking (ΔC≤22.5°), meeting (ΔC≥157.5°), and crossing (other). The embedding vector of the encounter situation is incorporated into the latent state of the temporal neural network at the last moment and then output as a predicted value through a fully connected layer.
[0068] In the embodiments of the present invention, explicit situational conditionation does not bring stable gains compared to simple feature fusion, and is therefore an optional implementation method.
[0069] Optionally, in step S5, different prediction lead times are set to predict the collision risk index (CRI) after multiple different lead times in the future; and the root mean square error (RMSE), mean absolute error (MAE), and high-risk interval prediction accuracy are used to evaluate the model performance. The high-risk interval prediction accuracy is determined by the complement of the mean absolute error of the samples whose actual CRI falls into the high-risk interval relative to the width of the interval.
[0070] Optionally, the training set used for training the temporal neural network in S5 is obtained by screening and expanding it with high-risk samples as follows: The length of data in each trajectory pair that falls into the high-risk level in the statistical training data pool is counted. Trajectory pairs whose high-risk data length is less than a set threshold are deleted. The number of deletions is recorded as M. From the candidate data pools that are independent of and do not overlap with the training data pool and the test data pool at the trajectory pair level, trajectory pairs with high-risk data lengths greater than the set threshold are selected, and the top M high-risk data pairs are added to the training data pool in descending order of high-risk data quantity, thereby increasing the proportion of high-risk samples while keeping the total number of trajectory pairs unchanged.
[0071] Parameter settings: This invention is implemented using PyTorch, optimized with Adam (learning rate 0.001), batch size 1024, a maximum of 60 training epochs with early stopping (validation set MSE as the standard, patience=6). Within the training pool, the training and validation sets are divided in a 7:3 ratio based on trajectory pairs (divided by pair rather than window to avoid cross-set leakage for adjacent windows of the same trajectory pair). The deep model uses three random seeds for repetition and reports the mean ± standard deviation.
[0072] Evaluation indicators: In this embodiment of the invention, RMSE and MAE are used to evaluate the overall accuracy; the accuracy Acc in the interval [a,b) is defined as 1-MAE_{[a,b)} / (ba), and the high-risk interval ba=0.34; and the accuracy of the high-risk interval is reported in a stratified manner according to the type of encounter.
[0073] Implementation results: (1) Effectiveness of the kinematic physical baseline ( Figure 7 ).
[0074] On high-risk samples in the test set, the error reduction of CRI_phys relative to the persistent baseline increased with the lead time (approximately 69% lower at 100s, approximately 72% lower at 300s, and approximately 55% lower at 600s; both were comparable at 10s), verifying the effectiveness of constructing physical anchors with uniform extrapolation at medium to long lead times, which is the foundation for physical feature fusion.
[0075] (2) Enhanced lead time of physical feature fusion ( Figure 9 ).
[0076] The following table compares the high-risk interval prediction accuracy of physical feature fusion with that of the strongest baseline GRU, after training on an enhanced training set and evaluating on a fixed high-risk test set (input window 90 s):
[0077] From the table above and Figure 9 , Figure 10 It can be seen that physical feature fusion is superior to pure GRU in terms of total lead time of 10–600 s and is superior to all eight baselines, with particularly significant improvements in the short and medium ranges (7.8 percentage points for 10 s, 5.0 percentage points for 100 s, 3.1 percentage points for 300 s, and 3.4 percentage points for 500 s); residual anchoring only shows improvement in the short range, while it is inferior to pure GRU in the medium and long ranges (≥300 s) – confirming that soft features are superior to hard anchoring.
[0078] (3) Robustness.
[0079] Five-fold cross-validation (by trajectory splitting): at 300 s, feature fusion was 0.825±0.004, and GRU was 0.789±0.011, consistent with the fixed split; paired t-test showed that the improvement of feature fusion relative to GRU was statistically significant at ≤300 s (10 sp<0.0001, 100 sp<0.001, 300 sp<0.01), and there was no significant difference at 600 s (physical gain narrows with lead).
[0080] (4) Explanation of the scope and limitations of application.
[0081] The kinematic physical baseline is based on the assumption of uniform velocity and is stable and effective with short to medium lead times (≤600 s). However, with longer lead times (>600 s), uniform extrapolation itself becomes significantly distorted, and the physical gain tends to disappear. This baseline can be used to define the effective lead time range of this method for practical deployment.
[0082] S6. Real-time data prediction: Use the trained temporal neural network prediction model to predict the real-time AIS data to be predicted.
[0083] like Figure 11As shown in the figure, this embodiment of the invention also provides a kinematically guided physical feature fusion ship collision risk prediction system, the system comprising: Sample data acquisition and preprocessing module 1110: used to acquire sample data from the Automatic Identification System (AIS) and preprocess it to obtain a sequence of ship trajectories with uniform time intervals; Ship trajectory extraction module 1120: used to divide ship trajectories based on the ship maritime movement service identifier (MMSI) and time series, and extract ship trajectory pairs based on time constraints and spatial constraints; Collision Risk Index (CRI) Calculation Module 1130: This module calculates the relative distance, relative speed, nearest encounter distance (DCPA), nearest encounter time (TCPA), and risk membership degree of the relative bearing to speed ratio for each ship trajectory pair at the same time, and then sums them by weight to obtain a continuous collision risk index (CRI) as a monitoring label. The nearest encounter distance (DCPA) and the relative distance risk membership degree function are respectively introduced with a safe encounter distance correction term and a latest rudder application distance correction term related to the lengths of the two ships. Kinematic physical baseline CRI_phys calculation module 1140: For each ship trajectory pair, it takes the plane position, ground speed and ground heading of the two ships at the end of the observation window, performs dead reckoning extrapolation of the two ships to the extrapolation time corresponding to the future prediction lead, and obtains the extrapolation position of the two ships. Based on the extrapolation position of the two ships and the ground speed and ground heading that remain unchanged during the extrapolation, it recalculates the collision risk index at the extrapolation time according to step S3, which is used as the kinematic physical baseline CRI_phys of each ship trajectory pair under the prediction lead. Temporal neural network prediction model training module 1150: is used to input the relative motion feature sequence of each ship trajectory pair within the observation window, the CRI_phys, and the supervision label together to train the temporal neural network prediction model, wherein the CRI_phys is used as a soft reference feature and is adaptively weighted by the network to output the collision risk index CRI prediction value of each ship trajectory pair after the prediction lead. Real-time data prediction module 1160: Used to predict the AIS real-time data to be predicted using a trained temporal neural network prediction model.
[0084] The kinematics-guided physical feature fusion ship collision risk prediction system provided in this embodiment of the invention has a functional structure that corresponds to the kinematics-guided physical feature fusion ship collision risk prediction method provided in this embodiment of the invention, and will not be described again here.
[0085] Figure 12This is a schematic diagram of the structure of an electronic device 1200 provided in an embodiment of the present invention. The electronic device 1200 may vary considerably due to different configurations or performance. It may include one or more central processing units (CPUs) 1201 and one or more memories 1202. The memory 1202 stores at least one instruction, which is loaded and executed by the processor 1201 to implement the steps of the above-mentioned kinematically guided physical feature fusion ship collision risk prediction method.
[0086] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions that can be executed by a processor in a terminal to complete the aforementioned kinematically guided physical feature fusion ship collision risk prediction method. For example, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device.
[0087] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A kinematically guided physical feature fusion method for predicting ship collision risk, characterized in that, The method includes: S1. Sample Data Acquisition and Preprocessing: Acquire sample data from the Automatic Identification System (AIS) and preprocess it to obtain a sequence of ship trajectories with uniform time intervals; S2. Ship trajectory pair extraction: Ship trajectories are divided based on the Maritime Mobile Service Identifier (MMSI) and time series, and ship trajectory pairs are extracted based on time and space constraints. S3. Collision Risk Index (CRI) Calculation: Based on the trajectory points at the same time in each ship trajectory pair, calculate the relative distance, relative speed, nearest encounter distance (DCPA), nearest encounter time (TCPA), and risk membership degree of the relative bearing to speed ratio, and sum them by weight to obtain the continuous collision risk index (CRI) as a monitoring label. In the risk membership degree function of the nearest encounter distance (DCPA) and the relative distance, respectively, a safe encounter distance correction term and a latest rudder application distance correction term related to the lengths of the two ships are introduced. S4. Calculation of Kinematic Physical Baseline CRI_phys: For each ship trajectory pair, take the plane position, ground speed and ground heading of the two ships at the end of the observation window. Based on the assumption of uniform linear motion, extrapolate the dead reckoning of the two ships to the extrapolation time corresponding to the future prediction lead, and obtain the extrapolation position of the two ships. Based on the extrapolation position of the two ships and the ground speed and ground heading that remain unchanged during the extrapolation, recalculate the collision risk index at the extrapolation time according to step S3, and use it as the kinematic physical baseline CRI_phys of each ship trajectory pair under the prediction lead. S5. Temporal Neural Network Prediction Model Training: Input the relative motion feature sequence of each ship trajectory pair within the observation window, the CRI_phys, and the supervision label together to train the temporal neural network prediction model. The CRI_phys is used as a soft reference feature and is adaptively weighted by the network to output the collision risk index (CRI) prediction value of each ship trajectory pair after the prediction lead. S6. Real-time data prediction: Use the trained temporal neural network prediction model to predict the real-time AIS data to be predicted.
2. The method according to claim 1, characterized in that, S2 specifically includes: S2.1 Trajectory Data Organization: Let the trajectory point be... These represent the vessel's maritime movement operation identifier, time, longitude, latitude, speed over land, heading over land, and length, respectively; the vessel's trajectory. ; S2.2 Time Constraints: Let the time intervals of the two ship trajectories be respectively. and The requirement is that the two intervals have an intersection, i.e. ; S2.3, Spatial Constraints: Let the sequence of relative distances between the two ships at each time point within the time intersection be denoted as . Maximum distance threshold The requirement is that at any point within the time intersection... The calculation process is as follows: First, a spatial coarse screening is performed based on the minimum distance between the bounding boxes of each ship's trajectory latitude and longitude to reduce the computational cost of pairwise traversal: when the minimum distance between the bounding boxes of two ships is not less than... If the two ships cannot meet, they are directly eliminated; otherwise, within the time intersection, align the trajectories of the two ships according to time, calculate the relative distance point by point, and only retain those less than [a certain value]. The part is then sliced according to the 10-second time continuity of the merged trajectory, retaining the continuous segment with the most points to ensure time continuity; S2.4 Secondary screening: Further eliminate track pairs that do not conform to the actual navigation pattern: track pairs whose position remains basically unchanged throughout the entire journey; track pairs with abnormal records of speeds less than 0.5 knots or greater than 100 knots; and track pairs whose position remains basically unchanged within a 20-minute sliding window.
3. The method according to claim 1, characterized in that, S3 specifically includes: Let the initial position of this ship be... Speed ,course Initial position of the target ship Speed ,course ; S31. Calculate the relative motion parameters: 1) Relative distance D: Calculated using the Haversine formula based on the latitude and longitude of the two ships; 2) Relative velocity : 3) Relative heading : The angle between the relative velocity vector and the ship's heading. 4) Relative bearing q: is the angle of the target ship relative to the bow direction of this ship, calculated from the positions of the two ships and the course of this ship; 5) The nearest DCPA will be encountered: 6) The TCPA timeframe will be encountered soon: S32. Calculate the hazard membership degree of each factor: 1) Membership degree u(DCPA): In the formula, The DCPA is a preset absolute safe encounter distance; if the DCPA is greater than this value, no collision risk will be posed regardless of maneuvering. λ is a safe encounter distance correction term, which is twice the sum of the lengths of the two vessels with an upper limit. In order to take into account the impact of ships of different sizes; 2) Relative distance membership degree u(D): In the formula, The moving boundary distance is determined by the relative orientation q: This is the latest rudder application distance correction item, which is related to the ship's length and has an upper limit. ; 3) Membership degree u(TCPA): In the formula: 4) Relative orientation membership degree u(q): 5) Velocity ratio membership u(k): in The speed ratio; S33, CRI weighted synthesis: The CRI is obtained by weighted summation of the hazard membership of the five factors: The weights in the formula are determined based on relevant literature and actual navigation experience; S34. Risk Level and Label Classification: CRI values range from [0,1] and are divided into three risk levels: CRI ∈ [0.00, 0.33) is low risk (label 1), CRI ∈ [0.33, 0.66) is medium risk, CRI ∈ [0.66, 1.00] is high risk (label 3).
4. The method according to claim 1, characterized in that, The dead reckoning extrapolation in S4, based on the assumption of uniform linear motion, specifically includes: Let the ship's longitude, latitude, speed to ground, and heading to ground at the end of the observation window be lon, lat, V, and C, respectively. Let the extrapolation time corresponding to the prediction lead be τ. Then, the ship's latitude after extrapolation is the equivalent distance term of lat + V·τ·cos C / (60·3600), and the ship's longitude after extrapolation is the equivalent distance term of lon + V·τ·sin C / (60·3600·cos lat). That is, the extrapolated distance is the nautical miles converted from V·τ. These are projected onto the latitude and longitude directions along the heading, respectively. The longitude direction is then divided by the cosine of the local latitude for scale correction. Both ships push outwards independently, maintaining their respective ground speed and heading during the push-out process.
5. The method according to claim 1, characterized in that, In step S4, the collision risk index at the extrapolated time is recalculated based on the extrapolated positions of the two ships and their unchanged ground speed and heading during the extrapolation, according to step S3. This index serves as the kinematic physical baseline CRI_phys for each ship trajectory pair under this prediction lead. Specifically, it includes: What geometry will be encountered when recalculating from the extrapolated position? The positions of the two ships were pushed back from the outside (lo) _o,la _o), (lo _t,la Given the constant ground speed and heading, recalculate using the same formula in step S3: calculate the extrapolated relative distance from the two ships using the great circle distance formula, based on the extrapolated latitude and longitude. ; Calculate the relative bearing of the extrapolation based on the line connecting the extrapolation positions of the two ships. The relative speed is calculated by combining the ground speed and ground heading of the two ships, which remain constant during extrapolation. _r and relative heading _r; thus we get: ; Physical baseline synthesis: Substituting the extrapolated encounter geometry into the fuzzy membership function with ship length correction and the weighted synthesis formula in step S3, we obtain the kinematic physical baseline under the prediction lead ΔT: The baseline contains no trainable parameters and is determined entirely by the kinematic state at the end of the observation window, where the velocity ratio K = V_t / V_o remains constant under uniform extrapolation.
6. The method according to claim 1, characterized in that, The temporal neural network, with a gated recurrent unit (GRU) as its backbone, includes two stacked GRU layers and a fully connected layer following them. The processing includes: The kinematic physical baseline CRI_phys and the relative motion feature sequence are concatenated along the feature dimension and then input into the GRU backbone step by step. The hidden state at the last time step is taken and the collision risk index prediction value is output through a fully connected layer. The CRI_phys is used as a soft reference feature, and its weight is adaptively determined by the network during training. The relative motion feature sequence includes seven features: relative distance, relative speed, speed ratio, relative heading, relative bearing, nearest encounter distance DCPA, and nearest encounter time TCPA.
7. The method according to claim 6, characterized in that, The method further includes: conditionalizing the prediction based on the encounter situation. Based on the median difference between the two ships' headings over the ground over the entire trajectory, the trajectory pairs are divided into three types of encounter situations: overtaking, meeting, and crossing. The embedding vectors of the encounter situations are incorporated into the latent state of the temporal neural network at the last moment and then output as predicted values through a fully connected layer.
8. The method according to claim 1, characterized in that, In step S5, different prediction lead times are set to predict the collision risk index (CRI) after multiple different lead times in the future; and the root mean square error (RMSE), mean absolute error (MAE), and high-risk interval prediction accuracy are used to evaluate the model performance. The high-risk interval prediction accuracy is determined by the complement of the mean absolute error of the samples whose actual CRI falls into the high-risk interval relative to the width of the interval.
9. The method according to claim 1, characterized in that, The training set used for training the temporal neural network in S5 was expanded by screening high-risk samples as follows: The length of data in each trajectory pair that falls into the high-risk level in the statistical training data pool is counted. Trajectory pairs whose high-risk data length is less than a set threshold are deleted. The number of deletions is recorded as M. From the candidate data pools that are independent of and do not overlap with the training data pool and the test data pool at the trajectory pair level, trajectory pairs with high-risk data lengths greater than the set threshold are selected, and the top M high-risk data pairs are added to the training data pool in descending order of high-risk data quantity, thereby increasing the proportion of high-risk samples while keeping the total number of trajectory pairs unchanged.
10. A kinematically guided physical feature fusion ship collision risk prediction system, characterized in that, The system includes: Sample data acquisition and preprocessing module: used to acquire sample data from the Automatic Identification System (AIS) and preprocess it to obtain a sequence of ship trajectories with uniform time intervals; Ship trajectory pair extraction module: used to divide ship trajectories based on the ship maritime movement service identifier (MMSI) and time series, and extract ship trajectory pairs based on time and space constraints; Collision Risk Index (CRI) Calculation Module: This module calculates the relative distance, relative speed, nearest encounter distance (DCPA), nearest encounter time (TCPA), and risk membership degree of the relative bearing to speed ratio for each ship trajectory pair at the same time, and then sums them by weight to obtain a continuous collision risk index (CRI) as a monitoring label. The risk membership degree functions of the nearest encounter distance (DCPA) and the relative distance respectively incorporate a safe encounter distance correction term and a latest rudder application distance correction term related to the lengths of the two ships. The kinematic physical baseline CRI_phys calculation module is used to take the plane position, speed above ground and heading above ground of the two ships at the end of the observation window for each ship trajectory pair. Based on the assumption of uniform linear motion, dead reckoning is performed on the two ships and extrapolated to the extrapolated time corresponding to the future prediction lead. The extrapolated positions of the two ships are obtained. Based on the extrapolated positions of the two ships and the speed above ground and heading above ground that remain unchanged during the extrapolation, the collision risk index at the extrapolated time is recalculated according to step S3. This index is used as the kinematic physical baseline CRI_phys of each ship trajectory pair under the prediction lead. Temporal Neural Network Prediction Model Training Module: This module is used to input the relative motion feature sequence of each ship trajectory pair within the observation window, the CRI_phys, and the supervision label together to train the temporal neural network prediction model. The CRI_phys is used as a soft reference feature and is adaptively weighted by the network to output the collision risk index (CRI) prediction value of each ship trajectory pair after the prediction lead. Real-time data prediction module: Used to predict the AIS real-time data to be predicted using a trained temporal neural network prediction model.
