Ship autonomous collision avoidance method, device and equipment based on AIS credibility score
By using an AIS credibility scoring method to dynamically adjust the denoising steps and fusion weights of the diffusion model, and combining them with maritime collision avoidance rules, the adaptability and rule compliance issues of existing ship trajectory prediction systems in complex environments are solved, achieving efficient and accurate trajectory prediction and collision avoidance decision-making.
Patent Information
- Application Number
- CN202611449997.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-18
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2046-09-18
Smart Images

Figure CN122961441B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of ship navigation and trajectory prediction technology, and relates to a ship autonomous collision avoidance method, device, and equipment based on AIS credibility score. Background Technology
[0002] Ship trajectory prediction is a core auxiliary technology for realizing modern maritime port scheduling, waterway situational awareness, and intelligent collision avoidance decision-making. With the development of sensing technology, modern ships are generally equipped with multiple heterogeneous sensing channels (multimodal inputs), such as Automatic Identification Systems (AIS), radar, and visual / infrared sensors. In recent years, generative methods, represented by conditional diffusion models, have been widely introduced into this field due to their excellent multimodal data fitting and distribution representation capabilities.
[0003] In developing this invention, the inventors discovered that existing solutions still suffer from performance and robustness bottlenecks when facing complex and ever-changing real-world navigation environments. Specifically, existing diffusion-based prediction methods typically employ fixed operating strategies that are insensitive to observation quality. For example, their inverse denoising sampling step size and time step sequence are usually preset and uniform. When the observation environment is excellent, this fixed strategy may result in high computational overhead and time delay due to maintaining a long denoising computation chain; while when sea conditions are severe and uncertainties are extremely high, uniformly arranging denoising sampling points cannot concentrate computational resources in high-noise sections to characterize the macroscopic trajectory.
[0004] Meanwhile, for the fusion of multimodal data, existing solutions often rely on static networks to splice the features of each modality at once or perform simple external weighting before entering the diffusion denoising unit. When the signal of a certain modality suddenly deteriorates due to factors such as weather, obstruction, or deception, the noise or contaminated feature information introduced will still indiscriminately pollute the entire generation process.
[0005] Furthermore, compliance with the International Regulations for Preventing Collisions at Sea (COLREGs) is a rigid requirement for the application of trajectory prediction in safety scenarios. Existing technologies typically perform rule verification after trajectory generation to filter out non-compliant results, but their ability to preemptively suppress the tendency to violate regulations is limited, and it is difficult to directly use violation information as constraints for subsequent trajectory generation.
[0006] Therefore, how to effectively improve the adaptive robustness of prediction systems under unpredictable multimodal source degradation and severe sea conditions, and how to avoid trajectory repetition violations from a mechanism perspective while ensuring the real-time performance of inference, are the technical challenges that need to be solved in this field. Summary of the Invention
[0007] To address the aforementioned problems in existing technologies, namely the poor adaptability and weak rule-following ability of existing prediction models in complex environments, the first aspect of this application proposes a ship autonomous collision avoidance method based on AIS credibility scoring, used to predict ship trajectories in conjunction with maritime collision avoidance rules. The method includes the following steps: S100. Acquire multimodal input data, estimate the observation uncertainty tensor of the multimodal input data in real time, and extract the global uncertainty statistics and modal confidence components accordingly. S200. Based on the global uncertainty statistics, dynamically determine the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model; and update the fusion weights based on the modal confidence components. S300. Based on the reverse denoising time step sequence and the reverse denoising start time step, reverse denoising processing is performed through the diffusion model to generate candidate prediction trajectories. During the reverse denoising process, conditional cross-attention bias is applied to each input modal feature according to the modal confidence component, and modulation gating is applied to shrink it towards the cross-modal shared mean feature. S400. Perform compliance verification on the candidate predicted trajectory to obtain the verification result. If the verification result is compliant, the candidate predicted trajectory is taken as the final trajectory; otherwise, switch to the security degradation state, and the preset backup deterministic model outputs a conservative trajectory that meets the basic security baseline as the final trajectory; and feed the verification result back to the trajectory generation process of the next inference cycle to execute the generation constraints.
[0008] In some preferred embodiments, the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model are dynamically determined based on the global uncertainty statistics, specifically as follows: The corresponding distortion index is determined based on the global uncertainty statistics, and the corresponding inverse denoising time step sequence is constructed non-uniformly using the distortion index. When the global uncertainty statistic satisfies the preset warm start boundary and the output of the previous inference cycle is compliant, noise is added to the output trajectory of the previous inference cycle to construct the reverse denoising start time step of the current inference cycle; otherwise, the reverse denoising start time step is set as the maximum noise step of the forward diffusion process.
[0009] In some preferred embodiments, conditional cross-attention bias is applied to each input modal feature based on the modal-wise confidence component, and modulation gating is applied to shrink it towards the cross-modal shared mean feature, specifically: In the cross-attention layer of the diffusion model, a bias parameter is configured for each input modality that is inversely related to the modal confidence component. The bias parameter is dynamically adjusted during the denoising stage, and the penalty weight of the bias parameter is dynamically adjusted according to the remaining denoising steps during the denoising process. The modulation gating parameters are determined based on the modal confidence components, and are used to continuously and smoothly shrink the local modal features with decreasing confidence into the cross-modal shared mean features aggregated by external fusion weights.
[0010] In some preferred embodiments, when performing reverse denoising processing through the diffusion model, the method further includes taking over when a preset modal failure condition is met, specifically: When the observation interruption duration in any feature input channel exceeds the preset duration window or the observation distribution variance of this channel is greater than the preset safety threshold, the fusion weight of the corresponding channel is reset to zero in the current inference, and a mask is simultaneously implemented in the conditional cross-attention calculation so that the prediction can be performed by the other intact modes.
[0011] In some preferred embodiments, the candidate predicted trajectory is subjected to compliance verification to obtain a verification result. If the verification result is compliant, the candidate predicted trajectory is used as the final trajectory; otherwise, the system switches to a security degradation state, and a conservative trajectory that meets the basic security baseline is output by a preset backup deterministic model as the final trajectory. Specifically, this includes: Based on the cumulative frequency of trajectory rule violations, the global uncertainty statistics, and the system's available computing power margin, different weights are assigned to obtain a state decision score. Based on the comparison between the state decision score and the preset threshold, the control system performs global scheduling and flow between multiple working states, including network generation steady state, high-fidelity generation state, and security degradation state. Specifically, when there is a risk of physical collision, the system prioritizes switching to the safety degradation state; conversely, when the evaluated state tends to stabilize and drives the system to switch back from the safety degradation state, or jump upwards to switch into the high-fidelity generation state, it is configured to follow an asymmetric hysteresis damping strategy: under the premise of meeting the admission threshold of the state decision score, the system avoids triggering preset safety restrictions within a time-domain test window of a specified length.
[0012] A second aspect of this application proposes a ship autonomous collision avoidance device based on AIS credibility scoring, comprising: The data acquisition module is configured to acquire multimodal input data from heterogeneous sensing channels and perform spatiotemporal alignment processing; The calibration inference module is configured to estimate the observation uncertainty tensor of the multimodal input data in real time, and extract the global uncertainty statistics and modal confidence components accordingly. The scheduling and planning module is configured to dynamically determine the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model based on the global uncertainty statistics; and update the fusion weights based on the modal confidence components. The prediction and inference module, which is configured with the diffusion model, is configured to perform reverse denoising processing based on the reverse denoising time step sequence and the reverse denoising start time step through the diffusion model to generate candidate prediction trajectories; during the reverse denoising process, conditional cross-attention bias is applied to each input modal feature according to the modal confidence component, and modulation gating is applied to shrink it towards the cross-modal shared mean feature; The rule auditing module is configured to perform compliance verification on the candidate predicted trajectory to obtain the verification result, and determine the final trajectory based on the verification result for output. Specifically, if the verification result is compliant, the candidate predicted trajectory is used as the final trajectory; otherwise, it switches to a security degradation state, and a conservative trajectory that meets the basic security baseline is output by a preset backup deterministic model as the final trajectory. The verification result is then fed back to the trajectory generation process of the next inference cycle to execute generation constraints.
[0013] A third aspect of this application proposes an electronic device comprising: At least one processor; and a memory communicatively connected to at least one of the processors; The memory stores instructions that can be executed by the processor to implement the aforementioned ship autonomous collision avoidance method based on AIS credibility score.
[0014] Compared with the prior art, the technical solutions in the embodiments provided in this application have at least the following beneficial effects: 1) By introducing an uncertainty self-calibration module in the bypass of the diffusion core network, the environmental uncertainty tensor is extracted in real time and applied to the underlying denoising step scheduling and multimodal feature dual-layer modulation; at the same time, a multi-path data feedback mechanism is constructed by the pre-rule fast detection at the output end, which is operated in a coordinated manner by the state switching controller, so that uncertainty assessment, sampling construction and other links share the information source to form an internal feedback closed loop, ensuring the dynamic balance of the multimodal prediction system in three dimensions and avoiding system fragmentation and unexpected interference caused by the stacking of multiple modules.
[0015] 2) Based on the statistics of environmental uncertainty, the number of denoising steps is dynamically adjusted, and a non-uniform reverse denoising time step sequence is constructed. Combined with the historical compliance status, it is determined whether to perform warm start truncation sampling and adjust the randomness of denoising. This allows computing resources to be adaptively concentrated on the signal-to-noise ratio segment that needs to be reconstructed and modeled. This can reduce the computational overhead under good observation conditions, thereby achieving efficient inference under different sea conditions while adaptively concentrating computing resources.
[0016] 3) Combining global uncertainty statistics with dynamic redistribution of fusion weights for modal confidence components, an adaptive attention bias and feature shrinkage gating structure are set in the feature layer inside the denoiser. Coupled with the shielding and trial recovery mechanism for problem channels, low-confidence sensing features are effectively stripped away, distortion features during link degradation are smoothed and diluted, the continuity and noise robustness of feature extraction from heterogeneous sensing channels are ensured, and the generation trajectory is avoided from drastic spatial deformation caused by sudden occlusion or contamination.
[0017] 4) Map the violation parameters detected by the system to the front-end conditions and feed them back to the next inference cycle. In the current denoising generation process, introduce compliance cost gradient rejection guidance logic to allow hard rules and bottom lines to intervene in the evolution path of sampling results in the form of rejection potential field. This allows candidate trajectories to actively deviate from potential violation areas in the early stage, avoiding the safety hazard of the system repeatedly outputting violation and dangerous trajectories in multiple cycles under similar encounter scenarios. Attached Figure Description
[0018] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a flowchart of a ship autonomous collision avoidance method based on AIS credibility scoring provided in one embodiment of this application; Figure 2 This is a flowchart of the construction of a noiseless spatiotemporal tensor and its reverse denoising reconstruction provided in one embodiment of this application; Figure 3 This is a schematic diagram of conditional guidance and nautical kinematics constraint embedding provided in one embodiment of this application; Figure 4 This is a schematic diagram of the structure of a computer system used to implement the methods, apparatus, and electronic devices of this application. Detailed Implementation
[0019] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the invention. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.
[0020] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0021] To address the technical problems of poor adaptability and weak rule-following ability in complex environments, such as the degradation of observation quality and post-event correction caused by violations in existing ship navigation and trajectory prediction systems under complex sea conditions and the use of multiple modal sensors, this application provides a ship autonomous collision avoidance method based on AIS credibility scoring. This method achieves forward-looking generative network sampling configuration, internal and external dual-layer feature modulation, and closed-loop state machine verification and feedback constraints through comprehensive analysis of the quality of multimodal input data. The method includes: S100. Acquire multimodal input data, estimate the observation uncertainty tensor of the multimodal input data in real time, and extract the global uncertainty statistics and modal confidence components accordingly. S200. Based on the global uncertainty statistics, dynamically determine the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model; and update the fusion weights based on the modal confidence components. S300. Based on the reverse denoising time step sequence and the reverse denoising start time step, reverse denoising processing is performed through the diffusion model to generate candidate prediction trajectories. During the reverse denoising process, conditional cross-attention bias is applied to each input modal feature according to the modal confidence component, and modulation gating is applied to shrink it towards the cross-modal shared mean feature. S400. Perform compliance verification on the candidate predicted trajectory to obtain the verification result. If the verification result is compliant, the candidate predicted trajectory is taken as the final trajectory; otherwise, switch to the security degradation state, and the preset backup deterministic model outputs a conservative trajectory that meets the basic security baseline as the final trajectory; and feed the verification result back to the trajectory generation process of the next inference cycle to execute the generation constraints.
[0022] To more clearly explain the ship autonomous collision avoidance method based on AIS credibility scoring in this application, the following will combine... Figure 1 The steps in the embodiments of this application are described in detail.
[0023] The first embodiment of this application provides a ship autonomous collision avoidance method based on AIS credibility scoring, including steps S100-S400, used to predict ship trajectory in conjunction with maritime collision avoidance rules, such as... Figure 1 As shown, each step is described in detail below: S100. Multimodal spatiotemporal alignment and construction of noisy spatiotemporal tensor: Acquire multimodal input data and perform spatiotemporal alignment, estimate the observation uncertainty tensor of the multimodal input data in real time, and extract global uncertainty statistics and modal confidence components including AIS confidence score.
[0024] Preferably, within one control cycle, such as Figure 2 As shown, multimodal input data from heterogeneous sensors such as Automatic Identification System (AIS), radar, and vision are first acquired and then fed into an uncertainty self-calibration module that shares coding features with the backbone prediction network of the diffusion model. This module is configured to estimate the observation uncertainty tensor of the multimodal input data in real time and extract two key control signals based on this: a "global uncertainty statistic" reflecting the overall data quality, and a "modal reliability component" reflecting the reliability of each data stream. These two signals will serve as a unified source for all subsequent adaptive adjustments.
[0025] The observation uncertainty tensor refers to the tensor with the same dimension as the noise prediction model, output by the uncertainty self-calibration head (denoted as...). It quantitatively characterizes the data quality and noise variance distribution of each modal input data in the spatiotemporal dimension.
[0026] More preferably, a learnable time aligner and projection matrix are employed to unify the various modalities to a common time base and a common coordinate system (such as the ship's body frame or the Earth-Centered, Earth-Fixed coordinate system); missing frames are filled with learnable mask vectors. The aligned multimodal tensors are encoded into conditional sub-embeddings, each with its own availability tag. .
[0027] More preferably, the violation output from the previous inference cycle is embedded... With the above-mentioned conditional sub-sub- Embedded aggregation is the "total conditional embedding" for this period ", serves as the guiding input for the subsequent conditional diffusion backbone; among which, For batch size, For sequence length, As a feature dimension. In a preferred embodiment, the time alignment error is controlled within ≤20ms, and the extracted historical observation window The number of steps is typically 8 to 16, and the dimensions of each modality feature are typically 64 to 256.
[0028] In one specific embodiment, the uncertainty self-calibration module consists of 3 to 5 layers of lightweight convolutional or Transformer networks, which outputs in parallel an "observation uncertainty tensor" (denoted as ) with the same dimension as the subsequent noise prediction. ") and its "modal confidence component, denoted as the corresponding modal confidence component During the training phase, the module is jointly supervised by noise regression loss and uncertainty consistency loss (e.g., in the form of NLL (Negative Log-Likelihood)). During the inference phase, the spatiotemporal mean of this tensor is pruned by upper and lower bounds to calculate the "global uncertainty statistic (...)". and normalize Tensor. Smoothing is performed using an exponential moving average (EMA, with a smoothing coefficient typically between 0.1 and 0.3) to prevent false spikes. The statistical measure... and quantity Using the same source as the observation quality metric, the reverse denoising path reconstruction in step S2, the dual-layer endogenous modulation of the denoiser in step S3, and the state switching in step S4 are driven along the three paths respectively.
[0029] In one specific embodiment, the deterministic self-calibration module employs a joint training loss function to perform parallel optimization of its network parameters and the backbone network, including mean squared regression loss. Compared with form-based uncertainty loss : ; ; The two are weighted together to form the total loss function: ; in, use -NLL form; modal components Use the corresponding modal residuals for isomorphic supervision; This indicates stopping the gradient, used to prevent variance estimation from interfering with the convergence of the main trunk; For joint training weights; Represents the global variance tensor derived jointly; Represents the numerical stability constant, and >0; This represents the actual Gaussian noise added during the forward diffusion process. For shared backbone (parameters) ) in the Noise components predicted in the denoising step. Modal-wise confidence components. Its modal residuals are also subject to joint training supervision independently and equivalently according to the above formula.
[0030] By extracting the environmental uncertainty tensor in real time and applying it to the underlying denoising step scheduling and multimodal feature bilayer modulation, uncertainty assessment, sampling construction, feature fusion and security verification can share a single information source and form an internal feedback loop, overcoming the response conflict problem caused by different evaluation benchmarks used by each independent prediction module in the prior art.
[0031] S200. Establish a unified noise distribution representation: Based on the global uncertainty statistics, dynamically determine the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model; and update the fusion weights based on the modal confidence components.
[0032] S210. Based on the global uncertainty statistics, dynamically determine the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model, specifically as follows: S211. Non-uniform time step sequence scheduling: The global uncertainty statistic is input into a preset mapping function to obtain the distortion index, and a reverse denoising time step sequence is constructed based on the distortion index according to the non-uniform sampling rule; such that when the observation uncertainty tensor is high, the sampling points of the reverse denoising time step sequence are concentrated in the high noise segment, and when the observation uncertainty tensor is low, the sampling points of the reverse denoising time step sequence are concentrated in the low noise segment. S212, Adaptive Starting Point Decision and Warm Start: When the global uncertainty statistics meet the preset warm start boundary and the output of the previous inference cycle is compliant, noise is added to the output trajectory of the previous inference cycle to construct the reverse denoising starting time step of the current inference cycle; otherwise, the reverse denoising starting time step is set as the maximum noise step of the forward diffusion process. S213, Randomness Intensity Adjustment: In the reverse denoising process of the diffusion model, the randomness coefficient of each generation step is configured as a function of the decay ratio of the current step depth and the global uncertainty statistic.
[0033] More preferably, based on the global uncertainty statistic Three coupled decisions are made in each inference cycle: A) Dynamically determine the number of denoising steps: Set the uplink and downlink thresholds for the number of denoising steps. .when The encryption strategy is triggered at certain times, and the number of denoising steps is increased by a preset step size. ;when Time-triggered skipping strategy reduces the number of denoising steps. If centered, it remains unchanged. This allows the actual allocated computing resources to be dynamically matched with the current observation quality.
[0034] B) Non-uniform construction of time step sequence: Determine the number of denoising steps in the current inference cycle. Then, according to the distortion exponential function Non-uniformly construct the DDIM (Denoising Diffusion Implicit Models) inverse denoising time step subsequence, where j is the step index in the subsequence, ranging from 1 to K; the distortion exponent... , To predetermine the torsion intensity coefficient, the non-uniform construction of the time step sequence means that the step size interval between adjacent time steps is not equal in the reverse denoising sequence; in harsh environments, the sampling points are concentrated in the high-noise section by encryption.
[0035] C) Determine the inverse denoising start time step and truncation sampling: Employ a warm-start mechanism and set warm-start boundaries. (e.g., 0.8), the period Meet the conditions Furthermore, the output of the previous inference cycle (let's call it the nth cycle) has been verified to be compliant. Extract the output of the previous inference cycle and add noise to construct the starting state of the current (n+1th)th cycle.
[0036] Specifically, to clarify the inference nodes, the time-shifted extension result of the output trajectory of the previous inference cycle (the nth cycle) is denoted as... When the global uncertainty statistic for the current period (the (n+1)th period) When the warm start condition is met, calculate the inverse denoising start time step. Then, forward noise is added to construct the starting latent variable state for the (n+1)th cycle: ; in, The first one, constructed with added noise, represents the... Step-latency state tensor; This represents the maximum noise step, which is the longest limit number of steps in the physically defined diffusion and noise addition process of the system; Indicates the diffusion cumulative scaling factor; Gaussian noise representing a standard normal distribution; It is a proportionality coefficient function, monotonically decreasing. If the above preconditions for warm-start are not met (excessive uncertainty in the current period or a violation alarm in the previous period), the process will be reset. The generated model is forced to re-perform a full denoising process from pure Gaussian noise.
[0037] Furthermore, each denoising step in the generation process (let's call it the nth step) The randomness coefficient of the step is configured as a function relating the decay ratio of the current step depth to the global uncertainty statistic: ; in, The term is the preset maximum value of the randomness coefficient. This reflects the decay ratio of the current step depth, in order to increase the randomness of the trajectory exploration space when the uncertainty is high, and degenerate into deterministic sampling to ensure stable low latency when the uncertainty is low.
[0038] S220, such as Figure 3 As shown, the first Modal power availability tags And combined with the variance Calculate the redistribution weights to obtain the shared mean characteristic: ; in, Indicates the first External fusion weights for modality assignment; express Low-level feature representation of a modality; This represents the shared mean feature across modalities generated by aggregation. Unavailable modal settings. Not participating The calculation of the product sum; if an extreme condition occurs where no available mode is found (denominator is 0), the system directly switches to a safety degradation state handover.
[0039] The diffusion model can be, but is not limited to, various variants such as the Denoising Diffusion Probability Model (DDPM), the Denoising Diffusion Implicit Model (DDIM), or the Latent Diffusion Model. In this embodiment, DDIM is used to achieve faster inference speed.
[0040] S300, Conditional Guidance and Nautical Kinematic Constraints: Inverse Denoising and Reconstruction Based on the reverse denoising time step sequence and the reverse denoising start time step, reverse denoising processing is performed through the diffusion model to generate candidate prediction trajectories. During the reverse denoising process, conditional cross-attention bias is applied to each input modal feature according to the modal confidence component, and modulation gating is applied to shrink it towards the cross-modal shared mean feature.
[0041] Preferably, in a mode-by-mode manner As input, the outer layer updates the fusion weights according to inverse variance normalization. The inner layer is gradually modulated by the attention bias and gating of the implementation detail C to form a two-layer conditional modulation, and then calculates the set of candidate motion pose points in the bottom layer within the current control cycle, that is, generates the candidate predicted trajectory.
[0042] More preferably, conditional cross-attention bias is applied to each input modal feature based on the modal confidence component, and modulation gating is applied to shrink it towards the cross-modal shared mean feature, specifically: 1) Conditional cross-attention bias: In the cross-attention layer of the diffusion model, a bias parameter is configured for each input modality, which is dynamically adjusted during the denoising stage and is inversely related to the modal confidence component.
[0043] Specifically, the weight of the bias parameter is dynamically adjusted based on the depth of the current denoising step; when the remaining number of denoising steps is greater than a preset step threshold (in the early stages of extremely high noise), the bias parameter is used to adjust the weight of the modal confidence component. Below the benchmark value Cross-attention weight penalty is applied to the modal features to achieve attention suppression allocation; as the remaining denoising steps decrease in the denoising iteration process, the penalty value of the bias parameter is synchronously reduced according to the preset decay function to increase the proportion of suppressed modal features in feature fusion.
[0044] 2) Modulation gating: Based on the aforementioned mode-by-mode reliability components The parameters of the modulation gating are determined to continuously and smoothly shrink the local modal features with decreased confidence into the cross-modal shared mean features, so as to avoid the output trajectory from jumping when the modal weights fluctuate near the threshold.
[0045] In one specific embodiment, the computational hierarchy within the diffusion model (such as a Transformer denoiser) is based on... Synchronous fusion execution: Conditional cross-attention bias: for those belonging to the first The conditional tokens of the road mode impose a bias on the log-probability of cross-attention. ,in With noise reduction step Attenuation. This allows for strong suppression of low-confidence modes in the early high-noise stages, with the high-confidence modes guiding the structure, and then gradually releasing noise in the later low-noise stages to obtain detail gain. (Bias strength coefficient) (Typically, it ranges from 0.5 to 2.0). Modulation gating: Within each channel, the modulation gating section is synchronously implemented based on the mode-by-mode confidence component. , ; in, This represents the input feature representation after updating with safety contraction constraints. For dynamically modulated gating parameters (gating temperature parameters) that depend on the magnitude of uncertainty Typically, the variance is taken as 2 to 4 times the baseline variance. ), to proportionally reduce the distortion tributaries that worsen credibility decline. Smoothly move towards a stable and safe mean The process of regressing and approximating data points helps to suppress outliers (i.e., outlier data points) and eliminate feature mutations.
[0046] More preferably, when performing feature modulation in the inner feature modulation section, the method further includes taking over the control when a preset mode failure condition is met, specifically: Real-time monitoring: When the observation interruption duration in any feature input channel exceeds the preset duration window... (e.g., 0.5-2.0s) or the variance of the observation distribution in this channel exceeds the safety threshold. When the fusion weight of the corresponding channel is (e.g., 3-5 times the baseline), it will be applied in the current inference. Set to zero and simultaneously implement masking in the conditional cross-attention calculation so that the prediction can be left to the other intact modes.
[0047] By transforming external multimodal sensing data and historical experience into mathematical vectors and injecting them into the neural network of the diffusion model, conditional guidance is achieved, including multimodal feature fusion guidance, two-layer modulation guidance based on uncertainty scoring, and punitive violation feature guidance, thereby "guiding" noise points to evolve in the correct trajectory direction.
[0048] S400. Perform compliance verification on the candidate predicted trajectory to obtain the verification result. If the verification result is compliant, the candidate predicted trajectory is taken as the final trajectory; otherwise, switch to the security degradation state, and the preset backup deterministic model outputs a conservative trajectory that meets the basic security baseline as the final trajectory; and feed the verification result back to the trajectory generation process of the next inference cycle to execute the generation constraints.
[0049] Preferably, the candidate predicted trajectory is subjected to compliance verification to obtain a verification result. If the verification result is compliant, the candidate predicted trajectory is used as the final trajectory; otherwise, the system switches to a security degradation state, and a conservative trajectory that meets the basic security baseline is output by a preset backup deterministic model as the final trajectory. Specifically, this includes: Based on the cumulative frequency of trajectory rule violations, the global uncertainty statistics, and the available computing power of the system, different weights are assigned to obtain a state decision score as the basis for state switching decisions. Based on the comparison between the state decision score and the preset high-fidelity admission threshold and security degradation trigger threshold, the control system performs global scheduling and flow between multiple working states, including network generation steady state, high-fidelity generation state, and security degradation state. Specifically, when there is a risk of physical collision, the system prioritizes switching to the safety degradation state; conversely, when the evaluated state tends to stabilize and drives the system to switch back from the safety degradation state, or jump upwards to switch into the high-fidelity generation state, it is configured to follow an asymmetric hysteresis damping strategy: under the premise of meeting the admission threshold of the state decision score, the system avoids triggering preset safety restrictions within a time-domain test window of a specified length.
[0050] The system maps the violation parameters detected by the system to the previous conditions and feeds them back to the next inference cycle. In the current denoising and generation process, a rejection guidance logic based on the compliance cost gradient is introduced, which enables hard collision avoidance rules and geometric bottom lines to directly intervene and intervene in the evolution path of the sampling results in the form of a rejection potential field. This overcomes the decision-making bottleneck and repeated invalid recalculation problems caused by the existing solution that only uses rule verification as a post-event veto indicator. It ensures that the candidate trajectories generated by prediction can actively deviate from the potential violation waters in the early stage.
[0051] More preferably, compliance verification is performed on the candidate trajectories, and decisions are made based on the verification results, including the following steps: S410, Compliance Output: When the verification result is compliant, the candidate predicted trajectory is output as the final trajectory.
[0052] S420, Security Degradation: If the verification is non-compliant, the system switches to the preset "security degradation state" and outputs a conservative trajectory generated by the backup deterministic model as the final trajectory to ensure that no non-compliant results are output.
[0053] S430, Three-channel closed-loop feedback: Simultaneously, the verification results will be fed back to the subsequent trajectory generation process through at least one of the following methods, transforming the rule constraints from "post-event veto" to "process guidance": a) Feedback constraint path one (violation embedding): Extract violation information from the verification results, generate a "punitive feature vector", and inject it into the conditional embedding space of the next inference cycle to guide it to actively avoid violations.
[0054] b) Feedback constraint path two (repulsive force field): Based on a differentiable compliance penalty function, when a violation record is detected in the previous inference cycle, the gradient of the penalty function relative to the trajectory estimation is calculated in real time during the reverse denoising process of the current cycle, and the gradient is used to synthesize a "repulsive force field" and apply it to the denoising prediction term, thereby actively "pushing" the candidate trajectory away from the violation area during the generation process.
[0055] c) Feedback Constraint Path Three (Violation Source Tracing and Masking): Calculate the consistency residual between the observation data of each input mode and the back projection of the candidate trajectory. When the violation is identified as originating from a specific input mode (such as an AIS spoofing signal), the contribution of that specific input mode is temporarily masked in the two-layer conditional modulation, and a tentative reconnection is performed with limited weights after a preset masking period.
[0056] The conservative trajectory refers to a trajectory generated by a deterministic, low-computational-complexity backup algorithm, with the primary goal of maximizing safety margin. It does not pursue path optimality but guarantees compliance with basic navigation safety standards under all circumstances. The backup deterministic model itself can be implemented using techniques known in the art, such as models based on classic path planning algorithms like Dynamic Window (DWA) or Velocity Obstacle (VO).
[0057] More preferably, the verification result is fed back to the trajectory generation process in the next inference cycle, employing a violation embedding method, including: The violation information, including geometric boundary crossing categories with target interaction collision tendency, critical safety distance gaps, and collision orientation labels, is extracted from the current verification results. Corresponding punitive feature vectors are generated by mapping through a feedforward network, and the punitive feature vectors are injected into the conditional embedding space generated by the multimodal input data in the next inference cycle.
[0058] More preferably, the verification result is fed back to the trajectory generation process of the next inference cycle using a repulsive force field, including: Based on the minimum distance constraint deficit and the specific encounter sector violation items of the maritime collision avoidance rules, a differentiable compliance penalty cost function is constructed. Under the trigger condition of a violation record in the previous inference cycle, in the reverse denoising process of this cycle, the spatial gradient of the differentiable compliance penalty cost function relative to the currently back-inferred clean trajectory estimate variable is calculated online, and the corresponding repulsive force field is synthesized in reverse and applied to the corresponding reverse denoising spatial prediction term, thereby forcing the candidate trajectory generation direction to actively push away from the violation obstacle area. The clean trajectory estimation variable is the noise-free data predicted by the diffusion model after single-step denoising.
[0059] More preferably, the verification result is fed back to the trajectory generation process of the next inference cycle, employing violation tracing and blocking, including: For each input mode, calculate the cross-modal consistency residual between its observed data and the back projection of the candidate predicted trajectory; When the verification results indicate that the final trajectory is non-compliant, and the non-compliant final trajectory is traced back to the unreliable potential of a specific input mode through the cross-modal consistency residual, the contribution of that specific input mode is masked during the modulation process.
[0060] Optionally, after the preset masking period ends, cross-modal cross-attention features are calculated for the specific input modality with a restricted weight lower than the preset masking threshold.
[0061] In one specific embodiment, state regulation is performed based on a decision function: ; in, For the frequency of violations, Uncertainty This represents the computing power margin, and And a priority mechanism is adopted (rule security > observation confidence > computing power efficiency, i.e.) ), in the steady state of network generation Security Degradation Status High-fidelity generation Switching between them, specifically: If minimum distance or At that time, the system immediately enters a security degradation state within the current inference cycle. And it is not constrained by the hysteresis band; like and Computing power margin and Duration not less than Then, it enters the high-fidelity generation state. ; like and Duration not less than (or Exiting the network generates a steady state. ; like and And continuous Each cycle has no violations and the duration is no less than [number missing]. After that, Exit the network to generate a steady state.
[0062] Entering the degraded state takes effect immediately to ensure safety, while exiting the degraded state requires simultaneously satisfying three conditions: a decision function, continuous absence of violations, and a hysteresis band, to suppress high-frequency jitter. More preferably, different operational configurations are provided for different states. For example, in the high-fidelity state... Below, configure more denoising steps K and higher sampling randomness. In pursuit of ultimate precision; under degraded safety conditions If the following occurs, then the trajectory publishing of the diffusion model will be disabled, and the system will switch to the backup model, while maintaining the diffusion model at [previous state]. The system continuously simulates scenarios in the background, serving as a basis for assessing the state's recovery.
[0063] In a preferred embodiment, an example value is taken for the above threshold. Take 0.5 / 0.2, Take 200-500ms. Choose 3 to 5; state switching is evaluated by an independent thread at a cycle of 10 to 50 Hz.
[0064] In one specific embodiment, during the preparation phase of the (n+1)th cycle, a violation tuple is constructed using data extracted from the end of the nth cycle, including the geometric boundary violation category, critical safety distance gap, and collision orientation label. The feature vector is encoded into a penalized feature vector for the next cycle using a multilayer perceptron (MLP). This vector is then incorporated into the total condition tensor of the next cycle to explicitly penalize the features of the (n+1)th cycle in advance, preventing the network from avoiding verified violation patterns; if no violation is recorded, the vector is set to zero. This represents a feedforward nonlinear mapping.
[0065] In a specific embodiment, in feedback constraint path two, a differentiable compliance penalty cost function is constructed within each noise reduction iteration in week (n+1): ; The differentiable compliance penalty cost function combines the minimum distance deficit squared term and the collision avoidance encounter sector violation term; among them, the first term represents the error cost of the collision down-probing region ( (Indicates the minimum safety clearance). Indicates the extrapolated distance; the second term This relies on a specific intersection state read from the violation record. With conflict prevention angle Different sectors are penalized for the encounter / overtaking model; H is the total number of future time steps of the predicted trajectory.
[0066] The inverse gradient of this cost function actually constructs an 'artificial repulsive potential field' in the generation space, using the spatial constraints based on the repulsive force field and the COLREGs encounter sector constraints as nautical kinematic constraints. During the process of progressively reducing noise in the model to find the optimal trajectory manifold, a large gradient repulsive force is forcibly assigned to the trajectory generation directions that may cross the boundary, causing the inference process to actively deviate from the illegal waters from the network iteration stage, overcoming the defect that post-verification can only passively discard trajectories.
[0067] Given that a violation is declared during the verification in week n, lateral repulsion is generated synchronously at each sampling time step k in week (n+1), and its gradient is directly used to solve the inverse denoising problem: ; The adaptive exclusionary intervention coefficient is then linked to the severity of the default in period n: ; in, This represents the revised prediction noise value after being affected by the gradient intervention of the compliance penalty cost function. This represents the cumulative attenuation coefficient of the diffusion model. The count of attempted interventions to correct accumulated historical defaults is as follows: The default count threshold is used to control the gain of intervention intensity. The gap amount representing the minimum depth of security breach penetration. These are the initial baseline coefficients. By assigning sectors to adjacent sectors, the next generation is forced to be pushed away from the underlying network from the barrier sector at the very beginning.
[0068] In a specific embodiment, in feedback constraint path three, cross-modal consistency residual retrieval is performed based on verification and cross-channel data difference comparison; once the source tracing is located in the nth cycle of the evaluation, the... i If road modes (such as radar clutter) cause this severe adverse consequence, then the availability switch of the system is locked in the (n+1)th cycle. It will enter a 2-10 second unusable penalty period.
[0069] By introducing a three-state switching control architecture based on safety priorities, integrating computing power margin with system status to execute state transitions, and adopting an asymmetric control strategy of "triggering immediate degradation and exiting multiple lags," the deep prediction model can immediately call on backup safety rules to take over the output when it encounters extreme threats or computing power overload. This overcomes the trajectory fragmentation problem caused by deadlock or response lag that is very easy to occur in complex models under critical high-pressure conditions, ensuring the ultimate logical safety bottom line of the navigation control system and avoiding prediction oscillations and associated secondary risks caused by frequent state rebound switching under severe environmental fluctuations.
[0070] As an example, step, Categorized by scene, 10-100 m The typical value is 3.
[0071] More preferably, the denoising reconstruction results are compared with... The derived per-step confidence score is encapsulated as a standard trajectory sequence plus upper and lower bounds of the confidence interval, and output to downstream collision avoidance, situational awareness, or scheduling decision modules via a unified JSON / ROS / DDS interface; simultaneously, the status is output. Violation of counting Noise reduction steps Includes time step sequence summary, warm start flag, and masking status of each mode; in the preferred embodiment, Top- is also output. Multimodal candidates ( The softmax weights of the values facilitate worst-case planning downstream.
[0072] A second embodiment of this application proposes a ship autonomous collision avoidance device based on AIS credibility scoring, comprising: The data acquisition module is configured to acquire multimodal input data from heterogeneous sensing channels and perform spatiotemporal alignment processing; The calibration inference module is configured to estimate the observation uncertainty tensor of the multimodal input data in real time, and extract the global uncertainty statistics and modal confidence components accordingly. The scheduling and planning module is configured to dynamically determine the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model based on the global uncertainty statistics; and update the fusion weights based on the modal confidence components. The prediction and inference module, which is configured with the diffusion model, is configured to perform reverse denoising processing based on the reverse denoising time step sequence and the reverse denoising start time step through the diffusion model to generate candidate prediction trajectories; during the reverse denoising process, conditional cross-attention bias is applied to each input modal feature according to the modal confidence component, and modulation gating is applied to shrink it towards the cross-modal shared mean feature; The rule auditing module is configured to perform compliance verification on the candidate predicted trajectory to obtain the verification result, and determine the final trajectory based on the verification result for output. Specifically, if the verification result is compliant, the candidate predicted trajectory is used as the final trajectory; otherwise, it switches to a security degradation state, and a conservative trajectory that meets the basic security baseline is output by a preset backup deterministic model as the final trajectory. The verification result is then fed back to the trajectory generation process of the next inference cycle to execute generation constraints.
[0073] Preferably, the prediction and inference module integrates a diffusion model based on the Transformer architecture. This module receives the reverse denoising time step sequence and the reverse denoising start time step from the scheduling and planning module. Based on these parameters, the reverse denoising process of the diffusion model is initiated. In each denoising step, a dynamic bias is applied to the cross-attention layer within the model to calibrate the modal confidence component of the inference module. Specifically, for modalities with low confidence, their attention weights are suppressed. Simultaneously, modulation gating is activated, smoothly "pulling" the less reliable modal features towards a "shared mean feature" obtained by weighted fusion of all modalities, thereby ensuring the stability of the final decision. After a series of denoising and modulation steps, the prediction and inference module finally outputs one or more sets of candidate future trajectory point sequences and sends them to the rule auditing module for verification.
[0074] In another embodiment, the scheduling planning module can be further divided into a sampling strategy planning sub-module and a feature fusion weight update sub-module. The sampling strategy planning sub-module is configured to dynamically determine the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model based on the global uncertainty statistics. The feature fusion weight update sub-module is configured to dynamically update the external fusion weights based on the modal confidence components through variance redistribution.
[0075] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process and related descriptions of the system described above can be found in the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0076] It should be noted that the ship autonomous collision avoidance device based on AIS credibility scoring provided in the above embodiments is only an example of the division of the above functional units. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the modules or steps in the embodiments of this application can be further decomposed or combined. For example, the modules in the above embodiments can be merged into one module, or further divided into multiple sub-modules to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of this application are only for distinguishing the various modules or steps and are not considered as an improper limitation of this application.
[0077] An electronic device according to a third embodiment of this application includes: At least one processor; and a memory communicatively connected to at least one of the processors; The memory stores instructions that can be executed by the processor to implement the aforementioned ship autonomous collision avoidance method based on AIS credibility score.
[0078] A computer-readable storage medium according to a fourth embodiment of this application stores computer instructions that are executed by a computer to implement the above-described ship autonomous collision avoidance method based on AIS credibility score.
[0079] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process and related descriptions of the storage device and processing device described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0080] The following is for reference. Figure 4 It shows a schematic diagram of the structure of a computer system for implementing the methods, apparatus, and electronic devices of this application. Figure 4 The server shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0081] like Figure 4 As shown, the computer system includes a Central Processing Unit (CPU) 201, which can perform various appropriate actions and processes based on programs stored in Read Only Memory (ROM) 202 or programs loaded from storage into Random Access Memory (RAM) 203. The RAM 203 also stores various programs and data required for system operation. The CPU 201, ROM 202, and RAM 203 are interconnected via a bus 204. An Input / Output (I / O) interface 205 is also connected to the bus 204.
[0082] The following components are connected to I / O interface 205: an input section 206 including a keyboard, mouse, etc.; an output section 207 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 208 including a hard disk, etc.; and a communication section 209 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 209 performs communication processing via a network such as the Internet. A drive 210 is also connected to I / O interface 205 as needed. Removable media 211, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 210 as needed so that computer programs read from them can be installed into storage section 208 as needed.
[0083] Specifically, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 209, and / or installed from removable medium 211. When the computer program is executed by central processing unit (CPU) 201, it performs the functions defined in the methods of this application. It should be noted that the computer-readable medium described above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having 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 fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0084] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0085] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0086] The terms “first”, “second”, etc., are used to distinguish similar objects, not to describe or indicate a specific order or sequence.
[0087] The term "comprising" or any other similar term is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus / device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent in such process, method, article, or apparatus / device.
[0088] The technical solutions of this application have been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. Without departing from the principles of this application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of this application.
Claims
1. A ship autonomous collision avoidance method based on AIS credibility scoring, used to predict ship trajectories in conjunction with maritime collision avoidance rules, characterized in that, Includes the following steps: S100. Acquire multimodal input data, estimate the observation uncertainty tensor of the multimodal input data in real time, and extract the global uncertainty statistics and modal confidence components accordingly. S200. Based on the global uncertainty statistics, dynamically determine the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model; and update the fusion weights based on the modal confidence components. S300. Based on the reverse denoising time step sequence and the reverse denoising start time step, reverse denoising processing is performed through the diffusion model to generate candidate prediction trajectories. During the reverse denoising process, conditional cross-attention bias is applied to each input modal feature according to the modal confidence component, and modulation gating is applied to shrink it towards the cross-modal shared mean feature. S400. Perform compliance verification on the candidate predicted trajectory to obtain the verification result. If the verification result is compliant, the candidate predicted trajectory is taken as the final trajectory; otherwise, switch to the security degradation state, and the preset backup deterministic model outputs a conservative trajectory that meets the basic security baseline as the final trajectory; and feed the verification result back to the trajectory generation process of the next inference cycle to execute the generation constraints.
2. The ship autonomous collision avoidance method based on AIS credibility scoring according to claim 1, characterized in that, Based on the global uncertainty statistics, the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model are dynamically determined as follows: The corresponding distortion index is determined based on the global uncertainty statistics, and the corresponding inverse denoising time step sequence is constructed non-uniformly using the distortion index. When the global uncertainty statistic satisfies the preset warm start boundary and the output of the previous inference cycle is compliant, noise is added to the output trajectory of the previous inference cycle to construct the reverse denoising start time step of the current inference cycle; otherwise, the reverse denoising start time step is set as the maximum noise step of the forward diffusion process.
3. The ship autonomous collision avoidance method based on AIS credibility scoring according to claim 1, characterized in that, Based on the modal confidence component, a conditional cross-attention bias is applied to each input modal feature, and modulation gating is applied to shrink it towards the cross-modal shared mean feature, specifically as follows: In the cross-attention layer of the diffusion model, a bias parameter is configured for each input modality that is inversely related to the modal confidence component. The bias parameter is dynamically adjusted during the denoising stage, and the penalty weight of the bias parameter is dynamically adjusted according to the remaining denoising steps during the denoising process. The modulation gating parameters are determined based on the modal confidence components, and are used to continuously and smoothly shrink the local modal features with decreasing confidence into the cross-modal shared mean features aggregated by external fusion weights.
4. The ship autonomous collision avoidance method based on AIS credibility scoring according to claim 3, characterized in that, When performing inverse denoising processing through the diffusion model, the process also includes taking over when a preset modal failure condition is met, specifically: When the observation interruption duration in any feature input channel exceeds the preset duration window or the observation distribution variance of this channel is greater than the preset safety threshold, the fusion weight of the corresponding channel is reset to zero in the current inference, and a mask is simultaneously implemented in the conditional cross-attention calculation so that the prediction can be performed by the other intact modes.
5. The ship autonomous collision avoidance method based on AIS credibility scoring according to claim 1, characterized in that, The candidate predicted trajectory is subjected to compliance verification to obtain the verification result. If the verification result is compliant, the candidate predicted trajectory is taken as the final trajectory; otherwise, the system switches to a security degradation state and a conservative trajectory that meets the basic security baseline is output by a preset backup deterministic model as the final trajectory. Specifically, it includes: Based on the cumulative frequency of trajectory rule violations, the global uncertainty statistics, and the system's available computing power margin, different weights are assigned to obtain a state decision score. Based on the comparison between the state decision score and the preset threshold, the control system performs global scheduling and flow between multiple working states, including network generation steady state, high-fidelity generation state, and security degradation state. Specifically, when there is a risk of physical collision, the system prioritizes switching to the safety degradation state; conversely, when the evaluated state tends to stabilize and drives the system to switch back from the safety degradation state, or jump upwards to switch into the high-fidelity generation state, it is configured to follow an asymmetric hysteresis damping strategy: under the premise of meeting the admission threshold of the state decision score, the system avoids triggering preset safety restrictions within a time-domain test window of a specified length.
6. The ship autonomous collision avoidance method based on AIS credibility scoring according to claim 1, characterized in that, The trajectory generation process, which feeds back the verification results to the next inference cycle, includes: The violation information, including geometric boundary crossing categories with target interaction collision tendency, critical safety distance gaps, and collision orientation labels, is extracted from the current verification results. Corresponding punitive feature vectors are generated by mapping through a feedforward network, and the punitive feature vectors are injected into the conditional embedding space generated by the multimodal input data in the next inference cycle.
7. The ship autonomous collision avoidance method based on AIS credibility scoring according to claim 1, characterized in that, The trajectory generation process that feeds back the verification results to the next inference cycle includes: Based on the minimum distance constraint deficit term and the collision avoidance encounter sector violation term, a differentiable compliance penalty cost function is constructed; the collision avoidance encounter sector violation term is evaluated by penalizing different sectors according to the intersection state and conflict prevention angle read from the violation record; Under the trigger condition of a violation record in the previous inference cycle, in the reverse denoising process of this cycle, the spatial gradient of the differentiable compliance penalty cost function relative to the currently back-inferred clean trajectory estimate variable is calculated online, and the corresponding repulsive force field is synthesized in reverse and applied to the corresponding reverse denoising spatial prediction term, thereby forcing the candidate trajectory generation direction to actively push away from the violation obstacle area. The clean trajectory estimation variable is the noise-free data predicted by the diffusion model after single-step denoising.
8. The ship autonomous collision avoidance method based on AIS credibility scoring according to claim 3, characterized in that, The trajectory generation process that feeds back the verification results to the next inference cycle includes: For each input mode, calculate the cross-modal consistency residual between its observed data and the back projection of the candidate predicted trajectory; When the verification result indicates that the final trajectory is non-compliant, and the non-compliant final trajectory is traced back to a certain input mode through the cross-modal consistency residual, the contribution of that input mode is masked during the modulation process.
9. A ship autonomous collision avoidance device based on AIS credibility scoring, characterized in that, include: The data acquisition module is configured to acquire multimodal input data from heterogeneous sensing channels and perform spatiotemporal alignment processing; The calibration inference module is configured to estimate the observation uncertainty tensor of the multimodal input data in real time, and extract the global uncertainty statistics and modal confidence components accordingly. The scheduling and planning module is configured to dynamically determine the reverse denoising time step sequence and the reverse denoising start time step of the diffusion model based on the global uncertainty statistics. The fusion weights are updated based on the modal-by-modal confidence components. The prediction and inference module, which is configured with the diffusion model, is configured to perform reverse denoising processing based on the reverse denoising time step sequence and the reverse denoising start time step through the diffusion model to generate candidate prediction trajectories; during the reverse denoising process, conditional cross-attention bias is applied to each input modal feature according to the modal confidence component, and modulation gating is applied to shrink it towards the cross-modal shared mean feature; The rule auditing module is configured to perform compliance verification on the candidate predicted trajectory to obtain the verification result, and determine the final trajectory based on the verification result for output. Specifically, if the verification result is compliant, the candidate predicted trajectory is used as the final trajectory; otherwise, it switches to a security degradation state, and a conservative trajectory that meets the basic security baseline is output by a preset backup deterministic model as the final trajectory. The verification result is then fed back to the trajectory generation process of the next inference cycle to execute generation constraints.
10. An electronic device, characterized in that, include: At least one processor; and a memory communicatively connected to at least one of the processors; The memory stores instructions that can be executed by the processor to implement the autonomous collision avoidance method for ships based on AIS credibility scores as described in any one of claims 1-8.
Citation Information
Patent Citations
Track data synthesis method based on diffusion probability model and dynamic simulation application thereof
CN122452304A
Realistic, controllable agent simulation using guided trajectories and diffusion models
US20240160888A1
