A trajectory prediction method and device for a marine floating target

By processing real-time environmental parameters through a conditional denoising diffusion model and combining multi-layer neural networks with noise feature fusion, high-precision trajectory prediction of floating targets at sea is achieved in complex wind, wave and current coupled environments, solving the problems of low accuracy and insufficient cross-scenario generalization in existing technologies.

CN123159060APending Publication Date: 2026-11-24CENT SOUTH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611080113.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-21
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing methods for predicting the trajectory of floating targets at sea have low accuracy in complex wind, wave and current coupled environments. In particular, the prediction error increases significantly in complex terrains such as nearshore areas and islands and reefs. Furthermore, data-driven models lack the ability to generalize across different scenarios.

Method used

A conditional denoising diffusion model is adopted. Real-time environmental parameters are obtained, preprocessed, and then input into a multi-layer neural network for nonlinear mapping. The latent representation structure and noise features in the diffusion process are fused, and the denoised flow field tensor is iterated to predict the trajectory.

Benefits of technology

It improves the accuracy and stability of trajectory prediction for floating targets at sea, enabling accurate trajectory prediction under complex sea conditions and enhancing cross-scenario generalization capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159060A_ABST
    Figure CN123159060A_ABST
Patent Text Reader

Abstract

This application provides a method and apparatus for predicting the trajectory of a floating target at sea. The method includes: preprocessing real-time environmental parameters into a physical condition vector, nonlinearly mapping it into a latent representation structure through a multi-layer neural network, fusing it with noise features in the diffusion process to form a noise feature tensor with physical condition information, inputting the tensor into a main diffusion network to output a predicted noise tensor, iteratively denoising the noisy flow field tensor based on the predicted noise tensor, so that each denoising step is constrained by physical conditions, and finally obtaining the denoised flow field tensor and determining the predicted trajectory, thereby improving the prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of maritime search and rescue technology, and in particular to a method and apparatus for predicting the trajectory of a floating target at sea. Background Technology

[0002] In maritime search and rescue and emergency response, predicting the drift trajectory of distressed targets such as people in the water and life rafts is a core technology for improving search and rescue efficiency and success rate. Existing trajectory prediction methods are mainly divided into two categories: empirical / semi-empirical physical models and data-driven models. Both have significant technical shortcomings: Empirical / semi-empirical physical models rely on dynamic equations or the superposition of velocity components. Their core parameters, such as wind-induced drift coefficient and drag coefficient, are highly dependent on limited experiments and empirical statistics. When environmental conditions, target status, or sea area characteristics change, systematic biases are easily generated. Furthermore, simplified assumptions cannot reflect the nonlinear, multi-scale, and time-varying coupling characteristics of the marine environment, leading to significantly increased prediction errors in complex topographical sea areas such as nearshore areas and island reefs. Existing data-driven models often treat prediction as a time-series regression problem, using discriminative deep learning models to directly learn the mapping from environmental variables to target positions. They can only output single or limited trajectories, failing to characterize the diversity and uncertainty of trajectory evolution. They are also highly sensitive to the distribution of training data, which is often limited to specific sea areas and seasons, resulting in insufficient cross-scenario generalization ability. Summary of the Invention

[0003] This application provides a method and apparatus for predicting the trajectory of floating targets at sea, which solves the problem of low accuracy in predicting the trajectory of floating targets at sea under complex wind, wave and current coupling environments.

[0004] The first aspect of this application provides a method for predicting the trajectory of a floating target at sea, the method comprising: The real-time environmental parameters of the target sea area are obtained, and the real-time environmental parameters are preprocessed to obtain a physical condition vector; The physical condition vector is input into the conditional denoising diffusion model, and the physical condition vector is nonlinearly mapped according to the multi-layer neural network of the conditional denoising diffusion model to obtain a potential representation structure with discriminative ability. The latent representation structure is fused with the noise features in the diffusion process to obtain a noise feature tensor with physical condition information; The noise feature tensor with physical condition information is input into the main diffusion network of the conditional denoising diffusion model, and the predicted noise tensor is output. The noisy flow field tensor of the initial flow field of the target is iteratively denoised based on the predicted noise tensor to obtain a denoised flow field tensor, and the predicted trajectory of the floating target at sea at a preset time is determined based on the denoised flow field tensor.

[0005] Optionally, in the first implementation of the first aspect of this application, the real-time environmental parameters include wind speed vector and gas phase density, and the step of obtaining the real-time environmental parameters of the target sea area and preprocessing the real-time environmental parameters to obtain the physical condition vector includes: Obtain the wind speed vector and gas density at a reference altitude in the target sea area; Based on the wind speed vector and the gas phase density, determine the wind stress vector acting on the water surface; The flow field velocity distribution and pressure distribution corresponding to the wind stress vector in the target sea area are determined based on the Reynolds mean momentum equation. The wind speed vector, the flow field velocity distribution, and the pressure distribution are spliced ​​together to generate a physical condition vector.

[0006] Optionally, in a second implementation of the first aspect of this application, the step of performing a nonlinear mapping on the physical condition vector based on the multilayer neural network of the conditional denoising diffusion model to obtain a potential representation structure with discriminative capability includes: The physical condition vector is input into a multi-layer neural network of the conditional denoising diffusion model, wherein the multi-layer neural network contains sequentially cascaded fully connected layers; The elements in the physical condition vector are weighted and summed and biased by the fully connected layer to obtain a weighted sum result. The weighted sum result is then nonlinearly transformed by an activation function to output an intermediate feature vector. The intermediate feature vector is input into the next fully connected layer, and the weighted summation, bias superposition and nonlinear transformation are repeatedly performed until all fully connected layers are passed, and the latent representation structure projected onto the high-dimensional feature space is obtained.

[0007] Optionally, in a third implementation of the first aspect of this application, the step of fusing the latent representation structure with the noise features in the diffusion process to obtain a noise feature tensor with physical condition information includes: Obtain an initial noise tensor sampled from a standard Gaussian distribution, and determine the current noisy flow field tensor corresponding to the main diffusion network during the diffusion process based on the initial noise tensor; The noise features of the current noisy flow field tensor are obtained by extracting features from the feature extraction layer of the main diffusion network. The latent representation structure and the noise features are concatenated in the channel dimension of the conditional denoising diffusion model to obtain a noise feature tensor with physical condition information.

[0008] Optionally, in the fourth implementation of the first aspect of this application, the step of inputting the noise feature tensor with physical condition information into the main diffusion network of the conditional denoising diffusion model and outputting the predicted noise tensor includes: The noise feature tensor with physical condition information is input into the main diffusion network of the conditional denoising diffusion model to obtain the encoded feature map output by each encoder layer in the main diffusion network. By using the cross-attention mechanism of the main diffusion network, the noise feature tensor with physical condition information is used as the query vector, and the latent representation structure is used as the key vector and value vector to determine the correlation weight between each spatial position in the encoded feature map and each feature dimension of the latent representation structure. The latent representation structure is weighted and aggregated according to the relevance weights to obtain attention-weighted features; The attention-weighted features are residually fused with the encoded feature map to generate an encoded feature map infused with physical condition information. The encoded feature map containing the injected physical condition information is input into the decoder layer corresponding to each encoder layer in the main diffusion network, and the decoder layer outputs the predicted noise tensor based on the encoded feature map containing the injected physical condition information.

[0009] Optionally, in the fifth implementation of the first aspect of this application, the step of iteratively denoising the noisy flow field tensor of the initial flow field of the target based on the predicted noise tensor to obtain a denoised flow field tensor, and determining the predicted trajectory of the floating target at a preset time based on the denoised flow field tensor, includes: Based on the noisy flow field tensor of the target initial flow field and the predicted noise tensor, the denoising update amount corresponding to the target initial flow field is determined; The noisy flow field tensor of the current denoising step is updated according to the denoising update amount to obtain the noisy flow field tensor of the current denoising step. The noisy flow field tensor of the current denoising step is used as the noisy flow field tensor of the next denoising step. The predicted noise tensor corresponding to the next denoising step is obtained. The steps of determining the denoising update amount and updating the noisy flow field tensor are repeated until the preset initial denoising step is reached. The denoised flow field tensor corresponding to the initial denoising step is obtained. The denoised flow field tensor corresponding to the initial denoising step is used as the predicted trajectory of the floating target at sea at a preset time.

[0010] A second aspect of this application provides a trajectory prediction device for a floating target at sea. The device is used to implement a trajectory prediction method for a floating target at sea, and includes: The acquisition module is used to acquire real-time environmental parameters of the target sea area and preprocess the real-time environmental parameters to obtain a physical condition vector. The mapping module is used to input the physical condition vector into the conditional denoising diffusion model, and perform nonlinear mapping on the physical condition vector according to the multi-layer neural network of the conditional denoising diffusion model to obtain a potential representation structure with discriminative ability. The fusion module is used to fuse the latent representation structure with the noise features in the diffusion process to obtain a noise feature tensor with physical condition information; The output module is used to input the noise feature tensor with physical condition information into the main diffusion network of the conditional denoising diffusion model and output the predicted noise tensor. The denoising module is used to iteratively denoise the noisy flow field tensor of the initial flow field of the target based on the predicted noise tensor to obtain a denoised flow field tensor, and to determine the predicted trajectory of the floating target at sea at a preset time based on the denoised flow field tensor.

[0011] A third aspect of this application provides an electronic device, including a memory and a processor, wherein the processor is configured to execute a computer program stored in the memory, and when the processor executes the computer program, it implements the steps in the trajectory prediction method for floating targets at sea provided in the first aspect of this application.

[0012] The fourth aspect of this application provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the steps in the trajectory prediction method for floating targets at sea provided in the first aspect of this application.

[0013] Compared with the prior art, this application has the following beneficial effects: By implementing the scheme of this application, real-time environmental parameters are preprocessed into physical condition vectors, nonlinearly mapped into a latent representation structure by a multi-layer neural network, and then fused with noise features in the diffusion process to form a noise feature tensor with physical condition information. This tensor is then input into the main diffusion network to output a predicted noise tensor. Based on the predicted noise tensor, the noisy flow field tensor is iteratively denoised, so that each denoising step is constrained by physical conditions. Finally, the denoised flow field tensor is obtained and the predicted trajectory is determined, thereby improving the prediction accuracy. Attached Figure Description

[0014] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 A flowchart illustrating the trajectory prediction method for floating targets at sea provided in this application embodiment; Figure 2 This is a schematic diagram of the physical guided diffusion model architecture provided in an embodiment of this application; Figure 3 A schematic diagram of the program modules of the trajectory prediction device for a floating target at sea provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0016] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0017] To address the low accuracy of trajectory prediction for floating targets at sea under complex wind, wave, and current coupling environments, embodiments of this application provide a trajectory prediction method for floating targets at sea, such as... Figure 1 This is a flowchart illustrating the trajectory prediction method for a floating target at sea provided in this embodiment. The trajectory prediction method for a floating target at sea includes the following steps: Step 110: Obtain the real-time environmental parameters of the target sea area and preprocess the real-time environmental parameters to obtain the physical condition vector.

[0018] Specifically, when acquiring real-time environmental parameters of a target sea area, basic physical quantities such as wind speed vector and gas phase density are usually provided by marine observation equipment or numerical weather prediction systems. The raw data is then processed for time synchronization and scale unification to ensure consistency of data from different sources at the same reference height and time base. Subsequently, the wind stress vector acting on the water surface is calculated by combining the momentum exchange relationship generated by wind speed at the air-sea interface. The flow state of the sea area is then equivalently described based on the Reynolds-mean momentum equation in fluid dynamics, thereby obtaining the flow field velocity distribution and pressure distribution information corresponding to the wind stress. Finally, the wind speed vector, flow field velocity distribution, and pressure distribution are feature-fused and spliced ​​to form a physical condition vector that can comprehensively reflect the local sea state dynamic characteristics.

[0019] Step 120: Input the physical condition vector into the conditional denoising diffusion model, and perform nonlinear mapping on the physical condition vector according to the multi-layer neural network of the conditional denoising diffusion model to obtain a potential representation structure with discriminative ability.

[0020] Specifically, when the physical condition vector is input into the conditional denoising diffusion model, a multi-layer neural network is typically used to perform layer-by-layer feature transformation on the input vector. The input features are linearly weighted and combined using a fully connected structure, and bias terms are superimposed. Then, a non-linear activation function is used to map the intermediate results, so that the low-dimensional physical description is gradually transformed into a high-dimensional expression, thereby forming a potential representation structure with discriminative capabilities. This structure can enhance the model's ability to distinguish between complex sea state differences, and map environmental information from the original physical quantity space to a feature space that is more suitable for generative models to process.

[0021] Step 130: Fuse the latent representation structure with the noise features in the diffusion process to obtain a noise feature tensor with physical condition information.

[0022] Specifically, when fusing the latent representation structure with the noise features in the diffusion process, an initial noise tensor is first sampled from a standard Gaussian distribution and formed into a noisy flow field or trajectory representation during the forward propagation of the diffusion network. At the same time, the noisy state is encoded by a feature extraction network to obtain a noise feature representation. Subsequently, the noise features and the latent representation structure are concatenated in the channel dimension, so that environmental condition information and random disturbance information are combined in the same feature space, thereby forming a joint noise feature tensor that includes physical constraints and random distribution characteristics.

[0023] Step 140: Input the noise feature tensor with physical condition information into the main diffusion network of the conditional denoising diffusion model, and output the predicted noise tensor.

[0024] Specifically, when the joint noise feature tensor is input into the main diffusion network, the encoder performs multi-scale convolution or feature transformation on the input features to extract spatial structure information. At the same time, a cross-attention mechanism is introduced, using noise features as query information and latent representation structure as key information. By calculating the correlation weights between features, the key environmental features are selectively enhanced. The weighted conditional features are then residually fused with the original encoded features, so that the physical condition information is strengthened during feature propagation. The decoder then reconstructs the output structure layer by layer to obtain the predicted noise tensor, which simultaneously satisfies data distribution constraints and environmental condition constraints.

[0025] Step 150: Iteratively denoise the noisy flow field tensor of the initial flow field of the target based on the predicted noise tensor to obtain the denoised flow field tensor, and determine the predicted trajectory of the floating target at the sea at the preset time based on the denoised flow field tensor.

[0026] Specifically, when iteratively updating the noisy flow field tensor based on the predicted noise tensor, the reverse generation mechanism based on the diffusion model is used to correct and denoise the current state at each time step using the predicted noise, thereby gradually reducing the random disturbance component and restoring the potential structure of the target trajectory. This process gradually approximates the real trajectory distribution through multiple iterations, causing the system state to gradually converge from the high-noise space to the low-noise space, and finally obtaining the trajectory representation result corresponding to the preset time, thus realizing the prediction output of the motion trajectory of the floating target at sea.

[0027] In one optional implementation, the real-time environmental parameters include wind speed vector and gas density. The steps of acquiring the real-time environmental parameters of the target sea area and preprocessing the real-time environmental parameters to obtain the physical condition vector include: acquiring the wind speed vector and gas density at a reference height in the target sea area; determining the wind stress vector acting on the water surface based on the wind speed vector and gas density; determining the flow field velocity distribution and pressure distribution in the target sea area corresponding to the wind stress vector based on the Reynolds-mean momentum equation; and performing feature concatenation of the wind speed vector, flow field velocity distribution, and pressure distribution to generate the physical condition vector.

[0028] In this embodiment, when acquiring the wind speed vector and gas phase density at a reference height in the target sea area, the observation area corresponding to the target sea area is first determined, and a unified reference height is selected as the environmental parameter acquisition location. The reference height is used to unify the measurement benchmark of wind speed data at different observation locations, making the wind field information acquired at different times comparable. The wind speed vector includes not only the wind speed magnitude but also the wind propagation direction, thus fully reflecting the air flow state. The gas phase density represents the mass of a unit volume of air, and its value determines the momentum transfer capability of air to the sea surface. Once the wind speed vector and gas phase density are determined, the wind stress vector acting on the water surface is calculated based on the coupling effect between them. The wind stress vector represents the force per unit area transferred by the air flow to the seawater. Its direction is consistent with the direction of the wind field, and its magnitude is affected by both the square of the wind speed and the air density, thus characterizing the ability of the wind field to drive sea surface movement. For example, during a search and rescue operation at sea, if a person who has fallen into the water is located in nearshore waters, and the wind direction continues to shift from southeast to northwest and the wind speed gradually increases, the wind stress vector will increase accordingly, which means that the sea surface will be subjected to a stronger pushing force, and the subsequent changes in the flow field will be more obvious.

[0029] After obtaining the wind stress vector, the corresponding velocity and pressure distributions of the flow field are calculated using the Reynolds-mean-momentum equation. The Reynolds-mean-momentum equation is a mathematical model derived from the fluid motion control equations by introducing time averaging. Its function is to divide seawater motion into an average flow component and a random turbulent fluctuation component. Turbulent fluctuations represent irregular motions within the seawater caused by eddies, waves, and local disturbances. Time averaging preserves the overall flow pattern, while Reynolds stress describes the additional influence of turbulence on the average flow, thus accurately describing fluid motion under complex sea conditions while ensuring computational efficiency. The velocity distribution represents the spatial distribution of seawater flow velocity and direction at various locations within the sea area, while the pressure distribution represents the changes in pressure exerted by the seawater at various locations within the sea area. Since velocity changes cause pressure changes, both together reflect the marine dynamic environment. For example, in the scenario of a person falling into the water, the flow velocity increases locally near the reef area due to changes in seabed topography, resulting in a decrease in pressure at the corresponding location. In contrast, the flow velocity is slower and the pressure distribution is more stable in the open sea area, ultimately forming a dynamic environment with spatial differences.

[0030] Wind speed vectors, flow velocity distributions, and pressure distributions are each converted into feature representations of a unified dimension, and then concatenated in a preset order to form a physical condition vector. This feature concatenation representation combines information from different sources that collectively describe the marine environment into a unified data representation, allowing the relationships between wind, flow, and pressure fields to be expressed in the same feature space. This provides complete environmental constraint information for subsequent conditional denoising and diffusion models, enabling the models to comprehensively utilize wind driving forces, flow motion states, and pressure variation patterns to learn the motion characteristics of floating targets at sea, thereby improving the accuracy and stability of trajectory prediction results under complex sea conditions.

[0031] It should be noted that the Reynolds-mean momentum equation is expressed as follows: , in, Represents the average velocity vector. For time, Indicates average pressure. For fluid density, For dynamic viscosity, is the Reynolds stress tensor, used to describe the additional effects of turbulence on mean flow. Expressed as gravitational acceleration, and These represent the gradient and Laplace operator, respectively. The Reynolds-mean momentum equation describes the momentum conservation relationship of seawater driven by wind stress. The left side of the equation represents the inertial force variation per unit volume of seawater, indicating the momentum change caused by the evolution of velocity of seawater particles over time and spatial migration during flow, reflecting the acceleration or deceleration process of the flow field under the coupling effect of wind, waves, and current. The right side of the equation represents, in order, the pressure gradient force, the viscous diffusion force, the turbulent additional force, and gravity.

[0032] The pressure gradient force, generated by the uneven pressure distribution within seawater, points from high-pressure areas to low-pressure areas. It is the primary driving force propelling seawater from high-pressure to low-pressure regions, directly influencing the redistribution of velocity in the flow field. Viscous diffusion force represents the shearing effect between adjacent flow layers due to relative motion. Its function is to reduce velocity differences in the flow field, smoothing the velocity distribution and reflecting the dissipative effect of seawater molecular viscosity on the flow state. Turbulent additional force corresponds to the Reynolds stress term, representing the additional effect of ocean turbulent fluctuations on the average flow. Its source is the contribution of random pulsating motion caused by eddies, wave breaking, and local disturbances within the seawater to the transfer of average momentum. This term allows turbulent energy to be transferred between flow structures of different scales, a key factor in the evolution of the flow field under complex sea conditions. Gravity is the volume force exerted by Earth's gravity on seawater particles, directed vertically downwards. In flows near the free surface, it influences wave formation and propagation, and together with the pressure gradient force, determines the hydrostatic equilibrium state of the seawater.

[0033] The aforementioned forces form a dynamic equilibrium in the equations: when wind stress is transmitted to the water body through the sea surface, the pressure gradient force drives the seawater to move along the direction of decreasing pressure, the viscous diffusion force inhibits local shearing due to excessive velocity gradients, the turbulent additional force transfers large-scale flow energy to small-scale turbulent fluctuations and ultimately dissipates it, and gravity maintains the vertical stratification and free surface morphology of the seawater. By providing the wind stress vector as the boundary condition of the sea surface, along with the sea topography and initial flow field state, numerically solving the equations yields the velocity and pressure distribution of the target sea area, allowing the driving effect of the wind field on the sea surface to be transmitted to the entire flow field through the coupling of the forces in the equations.

[0034] In one optional implementation, the step of performing a nonlinear mapping of the physical condition vector according to the multilayer neural network of the conditional denoising diffusion model to obtain a latent representation structure with discriminative capability includes: inputting the physical condition vector into the multilayer neural network of the conditional denoising diffusion model, wherein the multilayer neural network contains sequentially cascaded fully connected layers; performing weighted summation and bias superposition on each element in the physical condition vector through the fully connected layers to obtain a weighted summation result, and performing a nonlinear transformation on the weighted summation result through an activation function to output an intermediate feature vector; inputting the intermediate feature vector into the next level of fully connected layer, and repeating the weighted summation, bias superposition, and nonlinear transformation until all fully connected layers are passed to obtain a latent representation structure projected onto a high-dimensional feature space.

[0035] In this embodiment, the multilayer neural network consists of multiple sequentially connected fully connected layers. A fully connected layer means that each neuron in the current layer is connected to all neurons in the previous layer, thus fully integrating the correlation information between various environmental features in the physical condition vector, rather than being limited to changes in a single feature. Each element in the physical condition vector corresponds to environmental features extracted from wind field, flow field, and pressure field. When data enters the first fully connected layer, each input element is multiplied by its corresponding connection weight, and all products are summed, with a bias term added to obtain a weighted sum. The connection weights measure the importance of different environmental features for trajectory prediction, while the bias term adjusts the neuron output baseline, enabling the model to form more flexible feature representations based on different sea conditions. For example, in a maritime search and rescue scenario, when a person in the water is in a near-shore area, changes in flow velocity have a significant impact on the drift direction, while wind driving force is more prominent in the open sea. Learning the connection weights can automatically improve the contribution of the corresponding environmental features in the feature representation.

[0036] The weighted summation result is input into an activation function for nonlinear transformation. The activation function represents a nonlinear mapping mechanism that transforms linear calculation results into new features with complex changing capabilities, enabling the network to learn the nonlinear coupling relationships between environmental factors. These nonlinear coupling relationships indicate that the combined effects of multiple physical quantities are not a simple superposition of their individual influences, but rather exhibit complex correlations with environmental changes. For example, increased wind speed not only alters the force on the sea surface but also further affects the local flow field distribution, ultimately leading to continuous changes in the motion state of floating targets at sea. Linear calculations alone cannot accurately express this type of relationship. After processing by the activation function, an intermediate feature vector is formed. This intermediate feature vector represents a new feature that integrates multiple environmental information; it no longer corresponds to a specific physical quantity but is an abstract representation that comprehensively reflects the current sea state dynamic characteristics.

[0037] After obtaining the intermediate feature vector, it is input into the next fully connected layer, where weighted summation, bias stacking, and nonlinear mapping are performed again, allowing different layers to gradually extract deeper environmental feature relationships. As the number of network layers increases, the model gradually transitions from learning local environmental information to learning the overall relationships between multiple dynamic factors under complex sea conditions. For example, in the same maritime search and rescue scenario, the first layer of the network can identify the basic relationship between wind speed changes and current speed changes. Subsequent layers further learn the drift trends formed by pressure changes near the shore and reefs, current field turning, and wind field effects, enabling a unified high-level semantic expression among different environmental factors.

[0038] After processing by all fully connected layers, a potential representation structure projected onto a high-dimensional feature space is obtained. The high-dimensional feature space represents a mathematical representation space composed of a large number of abstract features. It does not directly correspond to actual physical coordinates, but uses more feature dimensions to jointly describe the dynamic state in a complex marine environment. This allows the originally dispersed wind, flow, and pressure field information to form an environmental representation with holistic semantics. This provides stable conditional feature inputs for the conditional denoising diffusion model to accurately perceive complex sea state constraints during the generation process, and improves the environmental representation capability of trajectory prediction under complex wind, wave, and current coupling environments.

[0039] In one optional implementation, the step of fusing the latent representation structure with noise features in the diffusion process to obtain a noise feature tensor with physical condition information includes: obtaining an initial noise tensor sampled from a standard Gaussian distribution, and determining the current noisy flow field tensor of the main diffusion network in the diffusion process based on the initial noise tensor; extracting features from the noisy flow field tensor through the feature extraction layer of the main diffusion network to obtain the noise features of the current noisy flow field tensor; and concatenating the latent representation structure and the noise features in the channel dimension of the conditional denoising diffusion model to obtain a noise feature tensor with physical condition information.

[0040] In this embodiment, when obtaining the initial noise tensor, noise data consistent with the target flow field dimension is first generated by random sampling from a standard Gaussian distribution. The standard Gaussian distribution represents a probability distribution with a mean of zero and a variance of one. Its characteristic is that the randomly generated data is symmetrically distributed around zero and has stable statistical properties. Therefore, it can provide a unified random initial state for the diffusion model, allowing different prediction tasks to learn the evolution law of the target data from the same data distribution. The noise tensor represents a multi-dimensional data structure organized according to spatial location and feature dimensions. Each location corresponds to a local region in the flow field, and each feature dimension is used to describe the random perturbation information contained in that region. When the initial noise tensor is input into the main diffusion network, a correspondence is established between the random noise and the target flow field state based on the time step corresponding to the diffusion process, thereby forming the current noisy flow field tensor. The noisy flow field tensor represents an intermediate state after superimposing a certain degree of random perturbation on the real flow field. It retains the overall spatial structure of the original flow field while containing noise components of different intensities, used to simulate the gradual degradation state of the real flow field during the diffusion process.

[0041] For example, in maritime search and rescue scenarios, the sea area where a person has fallen overboard originally has a continuously changing flow field distribution. When random perturbations are added, the direction and magnitude of the flow velocity in local areas shift to varying degrees, but the overall ocean current direction still maintains its continuously changing characteristics. This allows the model to learn the process of gradually recovering the true flow field structure from a random state. Subsequently, the noisy flow field tensor enters the feature extraction layer of the main diffusion network for spatial feature encoding. The feature extraction layer represents a network structure used to identify the local structure and overall spatial relationship of the flow field. It can extract high-level semantic information formed by velocity changes, direction changes, and spatial distribution patterns in the flow field, transforming the original noisy data into more compact and discriminative noise features. The noise features do not represent random noise itself, but rather the feature expression formed by the spatial structure information and random perturbation information retained in the noisy flow field. Therefore, it can reflect the degree of difference between the current flow field state and the true flow field at the diffusion stage. For example, in the same maritime search and rescue scenario, the feature extraction layer can still identify the continuous structure formed by local flow direction changes in the area near the shore reef due to the large changes in the current velocity gradient, even with the addition of random disturbances. In contrast, the current velocity changes more slowly in the open sea area, and the extracted features show a smoother spatial distribution.

[0042] After obtaining the noise features, the latent representation structure generated by the preceding network is concatenated with the noise features according to the channel dimension. The channel dimension represents different feature sets corresponding to the same spatial location. Each channel stores different types of information, so the spatial location remains unchanged, only the number of features carried at each location increases. Through channel-dimensional concatenation, environmental condition information and the spatial structure information contained in the noisy flow field can be established at the same location, so that each spatial location simultaneously has marine dynamic environment characteristics and diffusion state characteristics. For example, the location of the person who fell into the water not only contains the spatial information of the current local flow field after random disturbance, but also simultaneously contains the environmental constraint information formed by the wind field, flow field and pressure field. This allows the subsequent main diffusion network to recover the real flow field evolution law based on the spatial structure characteristics and marine dynamic conditions, and finally form a noise feature tensor with physical condition information, providing a unified and environmentally constrained input feature for the generation of subsequent predicted noise tensors.

[0043] In one optional implementation, the step of inputting a noise feature tensor with physical condition information into the main diffusion network of a conditional denoising diffusion model and outputting a predicted noise tensor includes: inputting the noise feature tensor with physical condition information into the main diffusion network of the conditional denoising diffusion model to obtain the encoded feature maps output by each encoder layer in the main diffusion network; using the cross-attention mechanism of the main diffusion network, using the noise feature tensor with physical condition information as a query vector and the latent representation structure as a key vector and value vector, determining the correlation weights between each spatial location in the encoded feature map and each feature dimension of the latent representation structure; performing weighted aggregation on the latent representation structure according to the correlation weights to obtain attention-weighted features; performing residual fusion of the attention-weighted features and the encoded feature map to generate an encoded feature map injected with physical condition information; inputting the encoded feature map injected with physical condition information into the decoder layer corresponding to each encoder layer in the main diffusion network, and having the decoder layer output the predicted noise tensor based on the encoded feature map injected with physical condition information.

[0044] In this embodiment, the noise feature tensor containing physical condition information is input into the main diffusion network and then sequentially encoded through multiple encoder layers within the network. The encoder layers are used to extract spatial structural features from the noisy flow field layer by layer, gradually expanding the perceptual range of the features as the network depth increases, enabling the simultaneous expression of local flow field changes and the overall dynamic distribution of the sea area. The encoded feature map represents the multidimensional feature data output by the encoder, where each spatial location corresponds to a local region in the target sea area, and each feature channel describes the flow field structure information contained at that location. Therefore, the encoded feature map not only preserves spatial positional relationships but also retains the spatial semantic information formed by the evolution of the flow field at different scales. For example, in a maritime search and rescue scenario, the sea area near a person who has fallen overboard forms a complex flow region due to the combined effects of reefs, water flow convergence, and wind, while the flow field changes more gently in areas far from the shoreline. After extraction by the encoder, different regions form spatial features with distinct characteristics.

[0045] After obtaining the encoded feature maps output by each encoder layer, the main diffusion network utilizes a cross-attention mechanism to model the association between environmental condition information and encoded features. The cross-attention mechanism represents a method of establishing interrelationships using two sets of features from different sources. The query vector represents the feature information whose expressive power needs to be enhanced, the key vector provides an index of matching environmental features, and the value vector provides the environmental feature content that ultimately participates in the fusion. Therefore, the noisy feature tensor with physical condition information is used as the query vector, and the latent representation structure is used as the key and value vectors. By calculating the similarity between the query vector and the key vector, the relevance weights of different environmental features corresponding to each spatial location in the encoded feature map are obtained. The relevance weights represent the degree of attention different spatial locations pay to each dimension of the environmental features; the larger the weight value, the greater the contribution of the corresponding environmental information to the current location's flow field recovery. For example, in the same maritime search and rescue scenario, areas near the shore reefs have more pronounced local pressure changes, resulting in a higher correlation between the corresponding spatial location and pressure features. In contrast, open sea areas are more driven by wind fields, leading to a greater correlation weight between the corresponding spatial location and wind field features.

[0046] The latent representation structure is weighted and aggregated based on relevance weights, recombining different environmental features according to their corresponding importance to form attention-weighted features. Weighted aggregation adjusts the contribution ratio of each environmental feature to the final output using relevance weights, strengthening environmental information more closely related to the current location while suppressing less relevant information, thereby improving the utilization efficiency of environmental constraint information. Then, the attention-weighted features are residually fused with the encoded feature map. Residual fusion retains the original encoded features while superimposing new environmental feature information, allowing the added information to supplement the original features without overwriting the already learned spatial structure representation. Therefore, it maintains the spatial continuity of the flow field while enhancing the environmental constraint capability, ultimately generating an encoded feature map infused with physical condition information.

[0047] After environmental information injection, the encoded feature maps generated by each encoder layer are passed to the decoder layer corresponding to the main diffusion network. The decoder layer recovers the flow field features layer by layer based on the spatial structure information retained in the encoding stage, and continuously corrects the random disturbances in the noisy flow field by combining the injected environmental constraints, so that the recovery result gradually approaches the real flow field state, and finally outputs the predicted noise tensor. The predicted noise tensor represents the noise estimation result corresponding to the current diffusion time step. It describes the random disturbance information that still needs to be removed from the current noisy flow field, and provides a basis for gradually recovering the real flow field and predicting the trajectory of floating targets at sea during the subsequent back diffusion process.

[0048] In one optional implementation, the step of iteratively denoising the noisy flow field tensor of the initial flow field of the target based on the predicted noise tensor to obtain a denoised flow field tensor, and determining the predicted trajectory of the floating target at a preset time based on the denoised flow field tensor, includes: determining the denoising update amount corresponding to the initial flow field of the target based on the noisy flow field tensor and the predicted noise tensor; updating the noisy flow field tensor of the current denoising step based on the denoising update amount to obtain the noisy flow field tensor of the current denoising step; using the noisy flow field tensor of the current denoising step as the noisy flow field tensor of the next denoising step, obtaining the predicted noise tensor corresponding to the next denoising step, and repeatedly executing the steps of determining the denoising update amount and updating the noisy flow field tensor until a preset initial denoising step is reached, obtaining the denoised flow field tensor corresponding to the initial denoising step, and using the denoised flow field tensor corresponding to the initial denoising step as the predicted trajectory of the floating target at a preset time.

[0049] In this embodiment, when the back-diffusion process begins based on the noisy flow field tensor corresponding to the initial target flow field and the predicted noise tensor, the denoising update amount corresponding to the current time step is calculated based on the predicted noise tensor. The predicted noise tensor represents the estimation result of the random disturbance component in the current noisy flow field by the main diffusion network, reflecting the noise intensity and distribution still contained at each spatial location. The denoising update amount represents the disturbance information that needs to be eliminated from the noisy flow field during the current back-diffusion process. Essentially, it uses the predicted noise to correct the current state, making the noisy flow field gradually move closer to the direction of the actual flow field evolution. Since the diffusion model adopts a generation method that gradually restores the data distribution, each update only removes a portion of the random disturbance corresponding to the current time step, rather than restoring the complete flow field structure at once, thereby ensuring the continuity and stability of the restoration process. For example, in a maritime search and rescue scenario, the sea area where a person falls into the water is affected by the combined effects of wind field, flow field and pressure field. In the initial noisy flow field, the flow direction in some areas has been shifted due to random disturbances. The predicted noise tensor can identify the degree of disturbance at the corresponding location and generate the corresponding noise reduction update, so that the local flow field can gradually be restored to a state that conforms to the real marine dynamic environment.

[0050] After obtaining the denoising update, the noisy flow field tensor corresponding to the current denoising stage is updated. The updated noisy flow field tensor represents the new flow field state after one random disturbance correction, where the proportion of random noise is further reduced compared to the previous stage, while the original flow field spatial structure is further enhanced. Therefore, the updated flow field can more accurately represent the velocity distribution characteristics in the real ocean environment. Subsequently, the updated noisy flow field tensor is used as the input for the next denoising stage, and is again input into the main diffusion network to obtain the predicted noise tensor for the corresponding time step. The corresponding denoising update is then calculated based on the new predicted noise, allowing the back-diffusion process to continuously cycle. As the time step gradually decreases, each predicted noise is estimated based on the remaining random disturbances, thus continuously reducing the noise component in the flow field while the ocean current spatial structure is continuously restored.

[0051] For example, in the same maritime search and rescue scenario, the initial stage is characterized by high noise levels and blurred flow field boundaries near the shore reefs. After multiple reverse updates, the high-speed flow areas, backflow areas, and slow-flow areas in the open sea near the shore reefs gradually form clear spatial distributions, making the flow field structure gradually approach the actual sea conditions. This continues until the reverse diffusion process reaches the preset initial denoising stage, at which point random disturbances have been largely eliminated, yielding the corresponding denoised flow field tensor. The denoised flow field tensor represents the target flow field state after complete reverse diffusion recovery. It not only maintains the continuous changing characteristics of the ocean flow field but also incorporates the dynamic information formed by environmental constraints, thus accurately reflecting the flow state of the target sea area at the preset time. Since the trajectory of a floating target at sea is continuously driven by the flow field's motion laws, the recovered denoised flow field tensor corresponds to the floating target's motion trend throughout the entire prediction time range. Therefore, the flow field evolution result corresponding to the denoised flow field tensor is used as the predicted trajectory of the floating target at the preset time, enabling the trajectory prediction result to simultaneously reflect the constraints of the marine dynamic environment and the generation capability of the diffusion model, improving the accuracy and stability of the trajectory prediction for floating targets at sea under complex sea conditions.

[0052] It should be noted that the mathematical essence of the backdiffusion process is a conditional probability model that gradually removes random perturbations. For example... Figure 2 As shown, let the noisy flow field tensor of the current denoising step be... The pre-diffusion process represents the actual flow field. arrive The noise diffusion process, the predicted noise tensor output by the main diffusion network is ,in, For physical condition vectors (including) Figure 2 of ), For the current time step, The parameters of the main diffusion network. The goal of each inverse denoising step is to estimate the noisy flow field tensor from the previous denoising step. Within the framework of probabilistic models, In the current state and environmental conditions Under the premise that it follows a Gaussian distribution: , This expression represents The value of is in Centered on It is obtained by random sampling from a Gaussian distribution with variance denoted as . Let covariance matrix be the variance matrix. The variance value is preset. It is the identity matrix. for The conditional distribution mean is determined by the main diffusion network based on the current noisy flow field state. Current time step and environmental conditions The following was jointly determined: , in, and The preset diffusion variance scheduling parameters, , The cumulative diffusion coefficient represents the distance from the initial time step to the current time step. t all The product of parameters, This is the predicted noise tensor output by the main diffusion network. The physical meaning of this mean expression is: [The expression is incomplete and requires further context to be fully translated.] After scaling by a preset ratio, from the current state Subtract from the middle to eliminate a portion of the random disturbance corresponding to the current time step. The preset variance parameter is used to control the magnitude of random fluctuations in each update step, so that... The sampling process is random, and the introduction of this variance term makes... Not by Instead of being uniquely determined, it varies randomly within a certain range centered on the predicted mean, thus giving the generation process the ability to be expressed probabilistically.

[0053] Iterating the single-step update process from the initial time step T to the final time step 0, the complete back-diffusion process can be represented by the following joint probability form: , in, Standard Gaussian distribution This indicates that the initial state of the back diffusion is pure Gaussian noise; This indicates that a single-step denoising update is performed iteratively from T to 1. The joint probabilistic form shows that the backdiffusion process originates from pure Gaussian noise. Starting from this point, the sample is sequentially processed through a T-step conditional Gaussian distribution, ultimately generating a sample consistent with the actual flow field. This refers to the restored target flow field tensor. Since each update step includes a random sampling term, and random disturbances are gradually eliminated as the update steps progress, the entire back-diffusion process constitutes a probabilistic generation path from pure noise to the target flow field. This enables the model to generate multiple flow field restoration results with reasonable differences under the same environmental conditions, providing a predictive basis containing uncertain information for maritime search and rescue.

[0054] In one optional implementation, newly observed data of the target sea area is acquired, and incremental training samples are constructed based on the newly observed data. The incremental training samples are input into the conditional denoising diffusion model to determine the prediction error of the model under the new sea state environment. The parameters of the conditional denoising diffusion model are updated according to the prediction error, and the corresponding parameter constraint weights are determined according to the importance of the model's historical parameters. The parameter update process is subject to conditional constraints according to the parameter constraint weights, so that the model can maintain its trajectory prediction ability under the existing sea state environment while learning the new sea state features, thus obtaining the continuously learned conditional denoising diffusion model.

[0055] In this embodiment, after acquiring new observation data of the target sea area, the new sea state information is uniformly organized with historical training data to construct incremental training samples. New observation data represents marine environmental information continuously acquired in new time periods or new sea areas after the model completes its initial training. It includes not only environmental data such as wind fields, current fields, and pressure fields, but also the actual motion trajectory of floating targets at the corresponding time, thus accurately reflecting the evolution of target motion patterns under complex sea state changes. Incremental training samples represent a dataset composed of newly acquired environmental features and corresponding actual trajectories. Their function is to enable the model to learn newly emerging sea state features without retraining using all historical data. For example, in a maritime search and rescue scenario, the model initially completes training using only nearshore sea area data. When subsequent observation data from the outer affected area of ​​a typhoon are received, due to rapid changes in wind direction and more complex flow field structures, the newly acquired data constitutes new incremental training samples, used to describe sea state features not previously encountered during training.

[0056] Incremental training samples are input into the conditional denoising diffusion model, and the prediction error is determined based on the difference between the model's output trajectory and the actual trajectory. Prediction error represents the degree of deviation between the model's prediction and the actual observation, reflecting the model's adaptability to new sea state environments. A large prediction error indicates that the existing model has not fully learned the dynamic characteristics corresponding to the new sea state, requiring further adjustment of model parameters to improve prediction performance. When updating the parameters of the conditional denoising diffusion model based on the prediction error, not all network parameters are directly adjusted. Instead, the corresponding parameter constraint weights are determined by combining the importance of historical model parameters. Parameter importance indicates the contribution of a model parameter to the existing trajectory prediction capability. It can be evaluated based on the impact of parameter changes on the model output. A larger contribution indicates that the corresponding parameter has learned stable and representative ocean dynamic characteristics and should be kept as stable as possible; a smaller contribution indicates that the corresponding parameter has greater adjustment space and can be optimized using new data. Parameter constraint weights represent the strength of the constraints applied during the model parameter update process. A larger weight allows for a smaller range of parameter changes, while a smaller weight allows for more thorough updates based on new sea state information.

[0057] For example, in the same maritime search and rescue scenario, the model has already learned the formation patterns of nearshore backflow areas, and the corresponding parameters are of high importance. Therefore, when learning data from the outer sea areas of a typhoon, these parameters are updated with a smaller margin. Parameters describing the rapid changes in the wind field, however, are allowed to be adjusted more significantly based on new data since they have not yet been fully learned. Subsequently, the model parameter update process is limited by parameter constraint weights, ensuring that important parameters retain their original environmental characteristic representation capabilities. Simultaneously, new observation data is used to continuously optimize the remaining parameters, forming a model parameter distribution that balances historical and new knowledge. After continuous optimization, a conditionally denoised diffusion model is obtained after continuous learning. This model can maintain its flow field reconstruction and trajectory prediction capabilities under existing sea conditions, while gradually adapting to new dynamic characteristics under different and complex sea conditions. This avoids the model losing existing environmental knowledge during the learning of new sea conditions, improving the stability and generalization ability of trajectory prediction results in complex and variable marine environments.

[0058] In one optional implementation, real-time sea state information of the target sea area is acquired, and the trajectory deviation between the real-time sea state information and the predicted trajectory is determined; the model correction amount of the conditional denoising diffusion model is determined based on the trajectory deviation, and the physical condition vector and the input features of the conditional denoising diffusion model are updated based on the model correction amount; the trajectory prediction is re-executed using the updated physical condition vector to obtain the calibrated predicted trajectory; the real-time sea state information is acquired and the model calibration process is repeated until the predicted trajectory meets the preset error requirements.

[0059] In this embodiment, after trajectory prediction is completed, real-time sea state information of the target sea area is continuously acquired, and the real-time observation results are analyzed in correspondence with the current predicted trajectory to determine the trajectory deviation. Real-time sea state information represents the marine environmental state data continuously collected during the prediction process. It not only reflects the actual changes in the current wind field, current field, and pressure field, but also includes the real-time positional changes of the floating target at sea. Therefore, it can accurately reflect the difference between the predicted time and the actual sea state. Trajectory deviation represents the degree of positional deviation between the predicted trajectory and the actual trajectory. It not only reflects the error in the spatial position of the floating target at sea, but also reflects the cumulative impact of environmental changes on the target's movement trend. For example, in a maritime search and rescue scenario, the model predicts based on initial sea state that a person who has fallen into the water will drift to the north side of the target sea area two hours later. However, real-time observation reveals that due to increased local wind and current field, the actual position of the person has shifted to the northwest. This results in a trajectory deviation between the predicted and actual positions, reflecting a difference between the environmental information used by the current model and the actual sea state.

[0060] After obtaining the trajectory deviation, the model correction amount for the conditional denoising diffusion model is determined based on the trajectory deviation. The model correction amount represents the environmental correction information generated based on the trajectory deviation. Its function is to quantify the degree to which the prediction result deviates from the true trajectory and further determine the environmental features that need correction and the magnitude of the correction. This allows the model to dynamically adjust the prediction basis according to the actual sea conditions, rather than continuing to use the initial environmental conditions to complete subsequent predictions. Based on the model correction amount, the physical condition vector and the input features of the conditional denoising diffusion model are updated synchronously, so that the updated environmental features can more accurately reflect the current ocean dynamic state. Input feature updates involve using real-time observation information to correct the original environmental feature representation, ensuring that the representation of wind field, flow field, and pressure field in the feature space continuously approximates the actual sea conditions. For example, in the same maritime search and rescue scenario, when real-time observation detects the formation of a new backflow area in the nearshore region, the corresponding flow field velocity distribution changes. The model correction amount will increase the weight of the flow field features in the corresponding region in the physical condition vector, while adjusting the input features related to that region, allowing the diffusion model to re-perceive the new flow field structure, rather than relying on the original flow field for trajectory prediction.

[0061] After updating the input features, the trajectory prediction is re-executed using the updated physical condition vector, enabling the conditional denoising diffusion model to regenerate a predicted trajectory that conforms to the current sea state conditions. This re-prediction does not involve retraining the entire model; rather, it involves re-executing the diffusion generation process using the latest environmental constraints while maintaining stable model parameters, allowing the prediction results to quickly respond to real-time sea state changes. Subsequently, real-time sea state information is acquired for the next moment, the trajectory deviation is recalculated, and the model correction and trajectory update process is repeated, continuously correcting the predicted trajectory as the sea state changes.

[0062] This cyclic calibration process represents a continuous feedback mechanism between model prediction, real-time observation, and environmental correction. With each correction, the prediction result gets closer to the actual trajectory. When the trajectory deviation after continuous correction gradually decreases and falls below the preset error requirement, it indicates that the current predicted trajectory can accurately reflect the drift trend of the target in the real marine dynamic environment. At this point, the calibrated predicted trajectory is output, realizing the continuous injection of real sea state information and dynamic optimization of trajectory prediction results, thereby improving the accuracy, stability, and environmental adaptability of trajectory prediction for floating targets at sea under complex and variable sea conditions.

[0063] According to the trajectory prediction method for floating targets at sea provided in this application, by implementing the method, real-time environmental parameters are preprocessed into physical condition vectors, nonlinearly mapped into a latent representation structure by a multi-layer neural network, and then fused with noise features in the diffusion process to form a noise feature tensor with physical condition information. This tensor is then input into the main diffusion network to output a predicted noise tensor. Based on the predicted noise tensor, the noisy flow field tensor is iteratively denoised, so that each denoising step is constrained by physical conditions. Finally, the denoised flow field tensor is obtained and the predicted trajectory is determined, thereby improving the prediction accuracy.

[0064] Figure 3 This application provides a trajectory prediction device for a floating target at sea, which can be used to implement the trajectory prediction method for floating targets at sea in the aforementioned embodiments. For example... Figure 3 As shown, the trajectory prediction device for the floating target at sea mainly includes: The acquisition module 10 is used to acquire real-time environmental parameters of the target sea area and preprocess the real-time environmental parameters to obtain a physical condition vector. The mapping module 20 is used to input the physical condition vector into the conditional denoising diffusion model, and perform nonlinear mapping on the physical condition vector according to the multi-layer neural network of the conditional denoising diffusion model to obtain a potential representation structure with discriminative ability. The fusion module 30 is used to fuse the latent representation structure with the noise features in the diffusion process to obtain a noise feature tensor with physical condition information. Output module 40 is used to input the noise feature tensor with physical condition information into the main diffusion network of the conditional denoising diffusion model and output the predicted noise tensor. The denoising module 50 is used to iteratively denoise the noisy flow field tensor of the initial flow field of the target based on the predicted noise tensor, to obtain the denoised flow field tensor, and to determine the predicted trajectory of the floating target at sea at a preset time based on the denoised flow field tensor.

[0065] In one optional implementation, the mapping module 20 includes: an input unit for inputting the physical condition vector into a multi-layer neural network of a conditional denoising diffusion model, the multi-layer neural network comprising sequentially cascaded fully connected layers; and a processing unit for performing weighted summation and bias superposition on each element in the physical condition vector through the fully connected layers to obtain a weighted summation result, and performing a nonlinear transformation on the weighted summation result through an activation function to output an intermediate feature vector; inputting the intermediate feature vector into the next fully connected layer, and repeating the weighted summation, bias superposition, and nonlinear transformation until all fully connected layers are passed to obtain a latent representation structure projected onto a high-dimensional feature space.

[0066] In one optional implementation, the acquisition module is specifically used to: acquire the wind speed vector and gas density at a reference height in the target sea area; determine the wind stress vector acting on the water surface based on the wind speed vector and gas density; determine the flow field velocity distribution and pressure distribution in the target sea area corresponding to the wind stress vector based on the Reynolds-mean momentum equation; and perform feature splicing on the wind speed vector, flow field velocity distribution, and pressure distribution to generate a physical condition vector.

[0067] In one optional implementation, the fusion module is specifically used to: obtain an initial noise tensor sampled from a standard Gaussian distribution, and determine the current noisy flow field tensor corresponding to the main diffusion network during the diffusion process based on the initial noise tensor; extract features from the noisy flow field tensor through the feature extraction layer of the main diffusion network to obtain the noise features of the current noisy flow field tensor; and concatenate the latent representation structure and the noise features in the channel dimension of the conditional denoising diffusion model to obtain a noise feature tensor with physical condition information.

[0068] In one optional implementation, the output module is specifically used for: inputting a noise feature tensor with physical condition information into the main diffusion network of the conditional denoising diffusion model to obtain the encoded feature maps output by each encoder layer in the main diffusion network; using the cross-attention mechanism of the main diffusion network, using the noise feature tensor with physical condition information as a query vector and the latent representation structure as a key vector and value vector, determining the correlation weights between each spatial location in the encoded feature map and each feature dimension of the latent representation structure; performing weighted aggregation on the latent representation structure according to the correlation weights to obtain attention-weighted features; performing residual fusion between the attention-weighted features and the encoded feature map to generate an encoded feature map injected with physical condition information; inputting the encoded feature map injected with physical condition information into the decoder layer corresponding to each encoder layer in the main diffusion network, and having the decoder layer output a predicted noise tensor based on the encoded feature map injected with physical condition information.

[0069] In one optional implementation, the denoising module is specifically used to: determine the denoising update amount corresponding to the target initial flow field based on the noisy flow field tensor and the predicted noise tensor of the target initial flow field; update the noisy flow field tensor of the current denoising step based on the denoising update amount to obtain the noisy flow field tensor of the current denoising step; use the noisy flow field tensor of the current denoising step as the noisy flow field tensor of the next denoising step, obtain the predicted noise tensor corresponding to the next denoising step, and repeat the steps of determining the denoising update amount and updating the noisy flow field tensor until a preset initial denoising step is reached, obtain the denoised flow field tensor corresponding to the initial denoising step, and use the denoised flow field tensor corresponding to the initial denoising step as the predicted trajectory of the floating target at sea at a preset time.

[0070] According to the trajectory prediction device for floating targets at sea provided in this application, by implementing the present application, real-time environmental parameters are preprocessed into physical condition vectors, nonlinearly mapped into a latent representation structure by a multi-layer neural network, and then fused with noise features in the diffusion process to form a noise feature tensor with physical condition information. This tensor is then input into the main diffusion network to output a predicted noise tensor. Based on the predicted noise tensor, the noisy flow field tensor is iteratively denoised, so that each denoising step is constrained by physical conditions. Finally, the denoised flow field tensor is obtained and the predicted trajectory is determined, thereby improving the prediction accuracy.

[0071] According to the scheme provided in this application Figure 4 An electronic device is provided as an embodiment of this application. This electronic device can be used to implement the trajectory prediction method for floating targets at sea in the foregoing embodiments, and mainly includes: The system includes a memory 401, a processor 402, and a computer program 403 stored in the memory 401 and executable on the processor 402. The memory 401 and the processor 402 are connected via communication. When the processor 402 executes the computer program 403, it implements the trajectory prediction method for floating targets at sea as described in the foregoing embodiments. The number of processors can be one or more.

[0072] The memory 401 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk storage device. The memory 401 is used to store executable program code, and the processor 402 is coupled to the memory 401.

[0073] Furthermore, embodiments of this application also provide a computer-readable storage medium, which may be disposed in the electronic device described in the above embodiments, and the computer-readable storage medium may be as described above. Figure 4 The memory in the illustrated embodiment.

[0074] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the trajectory prediction method for floating targets at sea as described in the foregoing embodiments. Furthermore, the computer-readable storage medium can also be any medium capable of storing program code, such as a USB flash drive, external hard drive, read-only memory (ROM), RAM, magnetic disk, or optical disk.

[0075] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0076] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0077] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for predicting the trajectory of a floating target at sea, characterized in that, include: The real-time environmental parameters of the target sea area are obtained, and the real-time environmental parameters are preprocessed to obtain a physical condition vector; The physical condition vector is input into the conditional denoising diffusion model, and the physical condition vector is nonlinearly mapped according to the multi-layer neural network of the conditional denoising diffusion model to obtain a potential representation structure with discriminative ability. The latent representation structure is fused with the noise features in the diffusion process to obtain a noise feature tensor with physical condition information; The noise feature tensor with physical condition information is input into the main diffusion network of the conditional denoising diffusion model, and the predicted noise tensor is output. The noisy flow field tensor of the initial flow field of the target is iteratively denoised based on the predicted noise tensor to obtain a denoised flow field tensor, and the predicted trajectory of the floating target at sea at a preset time is determined based on the denoised flow field tensor.

2. The trajectory prediction method for floating targets at sea according to claim 1, characterized in that, The real-time environmental parameters include wind speed vector and gas phase density. The step of acquiring the real-time environmental parameters of the target sea area and preprocessing the real-time environmental parameters to obtain the physical condition vector includes: Obtain the wind speed vector and gas density at a reference altitude in the target sea area; Based on the wind speed vector and the gas phase density, determine the wind stress vector acting on the water surface; The flow field velocity distribution and pressure distribution corresponding to the wind stress vector in the target sea area are determined based on the Reynolds mean momentum equation. The wind speed vector, the flow field velocity distribution, and the pressure distribution are spliced ​​together to generate a physical condition vector.

3. The trajectory prediction method for floating targets at sea according to claim 1, characterized in that, The step of performing a nonlinear mapping on the physical condition vector based on the multilayer neural network of the conditional denoising diffusion model to obtain a latent representation structure with discriminative ability includes: The physical condition vector is input into a multi-layer neural network of the conditional denoising diffusion model, wherein the multi-layer neural network contains sequentially cascaded fully connected layers. The elements in the physical condition vector are weighted and summed and biased by the fully connected layer to obtain a weighted sum result. The weighted sum result is then nonlinearly transformed by an activation function to output an intermediate feature vector. The intermediate feature vector is input into the next fully connected layer, and the weighted summation, bias superposition and nonlinear transformation are repeatedly performed until all fully connected layers are passed, and the latent representation structure projected onto the high-dimensional feature space is obtained.

4. The trajectory prediction method for floating targets at sea according to claim 1, characterized in that, The step of fusing the latent representation structure with the noise features in the diffusion process to obtain a noise feature tensor with physical condition information includes: Obtain an initial noise tensor sampled from a standard Gaussian distribution, and determine the current noisy flow field tensor corresponding to the main diffusion network during the diffusion process based on the initial noise tensor; The noise features of the current noisy flow field tensor are obtained by extracting features from the feature extraction layer of the main diffusion network. The latent representation structure and the noise features are concatenated in the channel dimension of the conditional denoising diffusion model to obtain a noise feature tensor with physical condition information.

5. The trajectory prediction method for floating targets at sea according to claim 4, characterized in that, The step of inputting the noise feature tensor with physical condition information into the main diffusion network of the conditional denoising diffusion model and outputting the predicted noise tensor includes: The noise feature tensor with physical condition information is input into the main diffusion network of the conditional denoising diffusion model to obtain the encoded feature map output by each encoder layer in the main diffusion network. By using the cross-attention mechanism of the main diffusion network, the noise feature tensor with physical condition information is used as the query vector, and the latent representation structure is used as the key vector and value vector to determine the correlation weight between each spatial position in the encoded feature map and each feature dimension of the latent representation structure. The latent representation structure is weighted and aggregated according to the relevance weights to obtain attention-weighted features; The attention-weighted features are residually fused with the encoded feature map to generate an encoded feature map infused with physical condition information. The encoded feature map containing the injected physical condition information is input into the decoder layer corresponding to each encoder layer in the main diffusion network, and the decoder layer outputs the predicted noise tensor based on the encoded feature map containing the injected physical condition information.

6. The trajectory prediction method for a floating target at sea according to claim 4, characterized in that, The step of iteratively denoising the noisy flow field tensor of the initial flow field of the target based on the predicted noise tensor to obtain a denoised flow field tensor, and determining the predicted trajectory of the floating target at a preset time based on the denoised flow field tensor, includes: Based on the noisy flow field tensor of the target initial flow field and the predicted noise tensor, the denoising update amount corresponding to the target initial flow field is determined; The noisy flow field tensor of the current denoising step is updated according to the denoising update amount to obtain the noisy flow field tensor of the current denoising step. The noisy flow field tensor of the current denoising step is used as the noisy flow field tensor of the next denoising step. The predicted noise tensor corresponding to the next denoising step is obtained. The steps of determining the denoising update amount and updating the noisy flow field tensor are repeated until the preset initial denoising step is reached. The denoised flow field tensor corresponding to the initial denoising step is obtained. The denoised flow field tensor corresponding to the initial denoising step is used as the predicted trajectory of the floating target at sea at a preset time.

7. A trajectory prediction device for a floating target at sea, characterized in that, The trajectory prediction device for a floating target at sea is used to implement the trajectory prediction method for a floating target at sea as described in claim 1, and the trajectory prediction device for a floating target at sea comprises: The acquisition module is used to acquire real-time environmental parameters of the target sea area and preprocess the real-time environmental parameters to obtain a physical condition vector. The mapping module is used to input the physical condition vector into the conditional denoising diffusion model, and perform nonlinear mapping on the physical condition vector according to the multi-layer neural network of the conditional denoising diffusion model to obtain a potential representation structure with discriminative ability. The fusion module is used to fuse the latent representation structure with the noise features in the diffusion process to obtain a noise feature tensor with physical condition information; The output module is used to input the noise feature tensor with physical condition information into the main diffusion network of the conditional denoising diffusion model and output the predicted noise tensor. The denoising module is used to iteratively denoise the noisy flow field tensor of the initial flow field of the target based on the predicted noise tensor to obtain a denoised flow field tensor, and to determine the predicted trajectory of the floating target at sea at a preset time based on the denoised flow field tensor.

8. The trajectory prediction device for floating targets at sea according to claim 7, characterized in that, The mapping module includes: An input unit is used to input the physical condition vector into a multi-layer neural network of the conditional denoising diffusion model, wherein the multi-layer neural network comprises sequentially cascaded fully connected layers. The processing unit is configured to perform weighted summation and bias superposition on each element of the physical condition vector through the fully connected layer to obtain a weighted summation result, and perform a nonlinear transformation on the weighted summation result through an activation function to output an intermediate feature vector; input the intermediate feature vector into the next fully connected layer, and repeat the weighted summation, bias superposition and nonlinear transformation until all fully connected layers are passed to obtain the latent representation structure projected onto the high-dimensional feature space.

9. An electronic device, characterized in that, Includes memory and processor, of which: The processor is used to execute computer programs stored in the memory; When the processor executes the computer program, it implements the steps in the trajectory prediction method for a floating target at sea as described in any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps in the trajectory prediction method for a floating target at sea as described in any one of claims 1 to 6.