Sea wave spectrum parameter calculation method based on digital twinning

By using a digital twin framework and a physical information fusion network, combined with multi-scale dynamic constraints and virtual sensor calibration, the problems of inconsistent cross-scale dynamic processes and insufficient conservation constraints in the calculation of wave spectral parameters were solved, achieving higher accuracy and physical consistency in spectral parameter calculation.

CN122947652BActive Publication Date: 2026-11-24QINGDAO EKMAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611433199.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-16
Publication Date
2026-11-24
Estimated Expiration
2046-09-16

AI Technical Summary

Technical Problem

Existing technologies struggle to maintain physical consistency of multi-scale dynamic processes in wave spectral parameter calculations and cross-scale wave field extrapolation. Furthermore, the spectral parameter inversion process does not incorporate wave dynamic conservation constraints, leading to biased calculation results and insufficient reliability under complex sea conditions.

Method used

An initial field of multi-source ocean observation data is constructed using a digital twin framework. Candidate spectral states are generated through multi-scale dynamic constraint deduction. Spectral parameters are inverted using a physical information fusion network, and the final results are calibrated through virtual sensor responses.

Benefits of technology

It improves the accuracy and dynamic rationality of wave spectrum parameter calculation, especially in complex sea conditions, and can maintain consistency with physical laws, with the output spectrum parameters being closer to the real ocean conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122947652B_ABST
    Figure CN122947652B_ABST
Patent Text Reader

Abstract

This invention discloses a method for calculating wave spectrum parameters based on digital twins, belonging to the field of wave observation and numerical calculation technology. The method includes: acquiring multi-source ocean observation data of a target sea area; constructing a digital twin initial field containing dynamic features of the air-sea interface and a three-dimensional flow field structure; performing multi-scale dynamic constraint spectral state deduction on the digital twin initial field to generate a candidate wave spectrum state set; based on the candidate wave spectrum state set, using a physical information fusion network to perform spectral parameter inversion to determine the target wave spectrum parameters; driving the digital twin to perform virtual sensor response simulation based on the target wave spectrum parameters, adjusting the digital twin based on the difference between the simulated response and the measured response, and outputting the calibrated wave spectrum parameters. This method can improve the calculation accuracy and physical consistency of wave spectrum parameters under complex sea conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ocean wave observation and numerical calculation technology, specifically to a method for calculating ocean wave spectrum parameters based on digital twins. Background Technology

[0002] Calculation of wave spectral parameters is a fundamental requirement in marine engineering, navigation safety, and weather forecasting. Traditional methods typically rely on single-source buoy or satellite observation data, using empirical spectral formulas or simplified wave models to deduce parameters such as significant wave height and spectral peak period. These techniques treat sea surface fluctuations as a stationary and uniform process, employing fixed parameterization schemes, and lack effective descriptions of the dynamic coupling of the air-sea interface and the three-dimensional flow field structure. Under conditions of coexistence of swells and wind waves, significant flow field shear, or rapid changes in weather systems, the differences between observational information and model conditions are easily smoothed out or ignored, leading to systematic biases in spectral parameter estimation.

[0003] The shortcomings of existing technical solutions are as follows: On the one hand, wave field evolution essentially involves multi-level interactions from large-scale background currents and mesoscale wave groups to small-scale wind and wave breaking. Single-scale models cannot simultaneously capture energy transfer and phase coupling between different scales, resulting in spectral distortion. On the other hand, the spectral parameter inversion process usually relies only on statistical regression or purely data-driven networks without embedding wave dynamic conservation constraints. The inversion results may violate the basic laws of wave action conservation or energy conservation, and the generalization ability and reliability are insufficient when observations are sparse or noise is strong.

[0004] The problems to be solved in this application are how to maintain the physical consistency of multi-scale dynamic processes in cross-scale wave field inference and expand the coverage of candidate spectral states to real ocean states; and how to organically integrate the energy conservation and wave action conservation constraints of the wave spectrum into the feature encoding process in the spectral parameter inversion stage so that the inversion results remain consistent with physical laws under complex sea conditions. Summary of the Invention

[0005] This invention provides a method for calculating wave spectrum parameters based on digital twins. It aims to improve the accuracy and dynamic rationality of wave spectrum parameter calculation in complex marine environments by using a digital twin framework to realize spectral state deduction with multi-scale dynamic constraints and spectral parameter inversion through physical information fusion.

[0006] To achieve the above objectives, the present invention provides the following technical solution: a method for calculating wave spectrum parameters based on digital twins, comprising: Acquire multi-source ocean observation data of the target sea area, and construct a digital twin initial field that includes dynamic features of the air-sea interface and a three-dimensional flow field structure. The digital twin initial field serves as the initial state of the digital twin. Multi-scale dynamic constraint spectral state deduction is performed on the initial field of the digital twin to generate a candidate set of wave spectral states; Based on the candidate wave spectrum state set, the target wave spectrum parameters are determined by using a physical information fusion network to perform spectral parameter inversion. The digital twin is driven to simulate the virtual sensor response based on the target wave spectrum parameters, and the digital twin is adjusted based on the difference between the simulated response and the measured response to output the calibrated wave spectrum parameters.

[0007] This method constructs a digital twin initial field containing information on the dynamics of the air-sea interface and three-dimensional flow field from multi-source observations. After multi-scale dynamic deduction, candidate spectral states that conform to physical laws are obtained. Then, spectral parameters are extracted by fusion and inversion of physical information. Finally, high-precision and high-reliability calculation of wave spectral parameters is achieved through virtual-measured response comparison and ensemble Kalman filter calibration.

[0008] As a technical solution of the present invention, the step of acquiring multi-source ocean observation data of the target sea area and constructing a digital twin initial field containing dynamic features of the air-sea interface and a three-dimensional flow field structure specifically includes: The target sea area is divided into spatial grids, and a multi-layered nested dynamic grid system is established; Multi-source ocean observation data are spatiotemporally registered according to grid units to obtain the registered observation field; Extract the dynamic features of the air-sea interface and the three-dimensional flow field structure from the registered observation field; The dynamic features of the air-sea interface and the three-dimensional flow field structure are mapped to the corresponding grid nodes of the digital twin to generate the initial field of the digital twin.

[0009] By utilizing multi-layered nested dynamic grids and spatiotemporal registration, multi-source heterogeneous observation information can be accurately injected into a digital twin, enabling the initial field to truly reflect the complex state of the air-sea interface and three-dimensional flow field during the same period.

[0010] Preferably, the step of performing multi-scale dynamically constrained spectral state deduction on the initial field of the digital twin to generate a candidate set of wave spectral states specifically includes: The initial field of the digital twin is decomposed into a multi-scale field to obtain a large-scale background field, a mesoscale process field, and a small-scale turbulent fluctuation field. Dynamic constraints were performed on the large-scale background field, the mesoscale process field, and the small-scale turbulent fluctuation field to obtain candidate spectral components for each scale. Candidate spectral components at various scales are convolved and fused in the frequency domain to generate multiple candidate wave spectral states, forming a set of candidate wave spectral states.

[0011] Multi-scale decomposition and subscale extrapolation enable the independent characterization of wave evolution in different dynamic modes, while frequency domain convolution fusion enriches the diversity of candidate states, providing a more representative spectral state space for subsequent inversion.

[0012] Furthermore, the dynamic constraint derivation of the large-scale background field, mesoscale process field, and small-scale turbulent fluctuation field is performed respectively to obtain candidate spectral components at each scale, including: Based on the large-scale background field, the temporal evolution of the large-scale wave field spectrum components is deduced using the quasi-geotropic vortex equation constrained by the quasi-geotropic vortex equation. Based on the aforementioned mesoscale process field, the modulation instability of the mesoscale wave group is derived using the nonlinear Schrödinger equation as a constraint. Based on the small-scale turbulent fluctuation field, the small-scale wind-wave coupled spectrum components are derived using a turbulent closed model constraint. The inter-scale consistency of the extrapolation results at each scale is checked, and candidate components that do not meet the dynamic constraints are eliminated to obtain candidate spectral components at each scale.

[0013] By forcibly applying the dominant dynamic equations at different scales and performing consistency checks, non-physical spectral components can be effectively filtered out, ensuring the dynamic compatibility of candidate spectral components in cross-scale interactions.

[0014] As a preferred embodiment of the present invention, the step of determining the target wave spectrum parameters by performing spectral parameter inversion using a physical information fusion network based on the candidate wave spectrum state set specifically includes: A physical information fusion network is constructed, which includes a physical constraint coding layer, an attention fusion layer, and a spectral parameter output layer. Each candidate spectral state in the candidate wave spectral state set is input into the physical constraint coding layer to generate a corresponding physical feature vector. The attention fusion layer performs weighted aggregation on multiple physical feature vectors to generate a fused spectrum feature vector. The fused spectral feature vector is input into the spectral parameter output layer to output the target wave spectral parameters, which include the significant wave height, spectral peak period, spectral peak factor, and wave direction spread parameter.

[0015] The physical constraint coding layer incorporates the conservation law of wave dynamics during feature extraction, and the attention fusion layer adaptively integrates multiple candidate states, thereby improving both the physical interpretability and parameter estimation accuracy of the inversion process.

[0016] Further, the step of inputting each candidate spectral state in the candidate wave spectral state set into the physical constraint coding layer to generate a corresponding physical feature vector includes: The candidate spectrum state is discretized in the frequency domain using the physical constraint coding layer to obtain a discrete spectrum matrix; The discrete spectrum matrix is ​​input into the physical information neural network in the physical constraint coding layer for feature encoding. During the encoding process, the intermediate features are physically consistent with the wave spectrum energy conservation constraint and the wave action conservation constraint. The corrected intermediate features are flattened and their dimensionality reduced to generate physical feature vectors.

[0017] This encoding method actively corrects features while preserving spectral morphology information, ensuring that the basic features of subsequent attention fusion and parameter output strictly follow the conservation relationship between wave energy and wave action.

[0018] The step of weighted aggregation of multiple physical feature vectors through the attention fusion layer to generate a fused spectral feature vector includes: Calculate the attention score between each physical feature vector and the preset spectral state prototype vector; Based on the attention score, multiple physical feature vectors are weighted and summed to obtain a weighted aggregate vector; The weighted aggregation vector is input into a gated linear unit for nonlinear transformation to generate a fused spectral feature vector.

[0019] The attention mechanism based on spectral state prototypes can automatically highlight candidate features that are closest to the real ocean state. The gated linear transformation further refines the fusion representation, which is beneficial for capturing complementary information between different candidate spectral states.

[0020] In another preferred embodiment, the step of driving the digital twin to simulate the virtual sensor response based on the target wave spectrum parameters, adjusting the digital twin based on the difference between the simulated response and the measured response, and outputting the calibrated wave spectrum parameters specifically includes: A virtual sensor array is set up in the digital twin, and the layout of the virtual sensor array is consistent with that of the actual sensor array. Using the target wave spectrum parameters as the excitation condition for the digital twin, the digital twin simulation is run to obtain the virtual sensor response time series; The virtual sensor response time series is compared point by point with the measured sensor response time series, and the residual sequence is calculated. The state variables and spectral parameters of the digital twin are updated using an ensemble Kalman filter algorithm based on the residual sequence. The expected value is extracted from the updated posterior distribution of the spectral parameters as the calibrated wave spectral parameters.

[0021] By comparing the response with that of a virtual sensor array that is isomorphic to the actual measurement, and feeding the residuals back to the ensemble Kalman filter update framework, the state and spectral parameters of the digital twin can be corrected simultaneously, and the wave spectral parameters calibrated by observational consistency can be output.

[0022] Further, updating the state variables and spectral parameter posterior distributions of the digital twin based on the residual sequence using an ensemble Kalman filter algorithm includes: Construct a joint state vector containing state variables and spectral parameters, and generate initial set members; By using digital twins to predict each member of the set, the predicted set members are obtained; The observation increment is calculated based on the residual sequence, and each set member is updated by combining the covariance matrix of the forecast set members; Covariance inflation is applied to the updated set members to obtain the updated posterior distributions of the state variables and spectral parameters.

[0023] The joint state vector incorporates spectral parameters into the filter state space, and covariance inflation can prevent filter decay caused by insufficient set discreteness, ensuring the stability of the estimate after multiple updates.

[0024] The virtual sensor response time series includes a virtual height meter response sequence, a virtual velocity meter response sequence, and a virtual pressure sensor response sequence. The measured sensor response time series correspondingly includes a measured height meter response sequence, a measured velocity meter response sequence, and a measured pressure sensor response sequence. When calculating the residual sequence, the virtual height meter response sequence and the measured height meter response sequence are time-aligned to calculate the first residual subsequence. The virtual velocity meter response sequence and the measured velocity meter response sequence are time-aligned to calculate the second residual subsequence. The virtual pressure sensor response sequence and the measured pressure sensor response sequence are time-aligned to calculate the third residual subsequence. The first, second, and third residual subsequences are weighted and fused to generate the residual sequence.

[0025] By fusing residuals from multiple types of sensors, simulation bias can be comprehensively evaluated from different physical quantity dimensions, making the observed update signal more comprehensive and further improving the accuracy of the calibrated wave spectrum parameters.

[0026] The technical effects and advantages provided by the present invention in the above technical solution are as follows: A multi-scale dynamically constrained spectral state extrapolation scheme and its effects: From the initial field of a digital twin, a large-scale background field, a mesoscale process field, and a small-scale turbulent fluctuation field are decomposed. For each scale field, dynamic constraints are extrapolated using the quasi-geotropic vortex equation, the nonlinear Schrödinger equation, and a turbulent closure model, generating candidate spectral components for each scale. These components are then fused through frequency domain convolution to obtain multiple candidate wave spectral states. This scheme no longer treats the wave field as a single uniform process but explicitly analyzes cross-scale energy level string and wave group modulation instability. This allows the candidate spectral state set to cover multiple possible configurations from the low-frequency band of swells to the high-frequency band of wind waves, effectively reflecting the nonlinear transmission and feedback between different scales. In cases of significant flow field shear or rapid storm formation and dissipation, the extrapolated spectral states more closely resemble the multimodal characteristics of the actual physical state than schemes relying solely on single-scale parameterization. This provides a physically reasonable and broader search space for spectral parameter inversion, fundamentally reducing the deviation between model assumptions and the real ocean.

[0027] The scheme and effects of using a physical information fusion network for spectral parameter inversion: Candidate spectral states are discretized into spectral matrices and input into a physical information neural network for feature encoding. During the encoding process, wave spectrum energy conservation constraints and wave action conservation constraints are added to correct the physical consistency of intermediate features. The corrected physical feature vectors are then aggregated by an attention fusion layer based on their similarity to the prototype vectors of the spectral states. Finally, a gated linear unit is used to generate a fused spectral feature vector and output the spectral parameters. This scheme directly injects the inherent conservation laws of wave dynamics into the feature extraction process, enabling the network to output feature representations that satisfy physical laws even with limited training data and noisy observations, avoiding erroneous spectral parameter combinations that violate energy balance. The attention mechanism adaptively weights multiple candidate spectral states, highlighting the contribution of spectral states with higher matching degrees to the current actual sea state and suppressing interference from abnormal inference results. After combining physical constraints and attention fusion, under complex conditions such as swell and wind-wave mixing zones, bimodal spectral shapes, or rapid rotation of spectral peak directions, the inverted effective wave height, spectral peak period, spectral peak factor, and wave direction diffusion parameters exhibit higher time-varying tracking ability and physical self-consistency. Attached Figure Description

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

[0029] Figure 1 This is a flowchart of a wave spectrum parameter calculation method based on digital twins; Figure 2 This is a flowchart for generating a set of candidate wave spectrum states; Figure 3 This is a schematic diagram of the spatial distribution of nodes in a multi-layered nested dynamic grid system; Figure 4 This is a comparison chart of the virtual wave height meter response sequence and the measured wave height meter response sequence and their residual time series. Detailed Implementation

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

[0031] See Figure 1 This invention provides a method for calculating wave spectrum parameters based on digital twins, including: Acquire multi-source ocean observation data of the target sea area, and construct a digital twin initial field that includes dynamic features of the air-sea interface and three-dimensional flow field structure. This digital twin initial field serves as the initial state of the digital twin. Multi-scale dynamic constraint spectral state deduction is performed on the initial field of the digital twin to generate a candidate set of wave spectral states; Based on the candidate wave spectrum state set, the target wave spectrum parameters are determined by using a physical information fusion network to perform spectral parameter inversion. The digital twin is driven to simulate the virtual sensor response based on the target wave spectrum parameters, and the digital twin is adjusted based on the difference between the simulated response and the measured response to output the calibrated wave spectrum parameters.

[0032] In practice, the process of acquiring multi-source ocean observation data of the target sea area and constructing a digital twin initial field that includes dynamic features of the air-sea interface and a three-dimensional flow field structure is as follows.

[0033] The target sea area is spatially gridded to establish a multi-layered nested dynamic grid system. In implementation, the geographical extent and water depth distribution of the target sea area are first determined. Based on the water depth gradient and shoreline complexity, the target sea area is divided into coarse-grid regions and fine-grid regions. The coarse-grid regions use a base grid with a relatively coarse horizontal resolution, while the fine-grid regions nest higher-resolution sub-grids within the base grid, forming a multi-layered nested grid system consisting of an outer coarse grid, an intermediate transitional grid, and an inner fine grid. The positions of the grid nodes in the dynamic grid system are adaptively adjusted over time, based on wavefront displacement in the dynamic characteristics of the air-sea interface and velocity vectors in the three-dimensional flow field structure. Let S be the position vector of node i in the k-th layer grid at time t. k,i (t), the position update method is described as follows: Sk,i (t+Δt)=S k,i (t)+(u(S k,i (t),t)·Δt)·w k ; Among them, S k,i (t) represents the three-dimensional spatial position vector of node i at time t in the k-th layer dynamic mesh system, S k,i (t+Δt) represents the 3D spatial position vector of node i in the k-th layer dynamic mesh system after the update at time t+Δt, where Δt is the update time step of the dynamic mesh system, and t+Δt represents the update time. k,i (t),t) represents the spatial location S at time t. k,i The three-dimensional velocity vector at (t), w k Let w be the relaxation factor for the k-th mesh layer, where k is the mesh layer index and i is the mesh node index. k The value of w ranges from 0 to 1, and is close to the shore boundary and the inner fine mesh. k Take the smaller value, the outer coarse mesh's w k The larger value is selected, with the specific value determined by the normalized ratio of the distance between the grid layer and the nearest shoreline. This location update automatically refines the grid node distribution in areas with strong wave-current effects.

[0034] Multi-source ocean observation data is spatiotemporally registered according to grid cells to obtain the registered observation field. In practice, the multi-source ocean observation data includes satellite altimeter wave data, high-frequency ground wave radar sea surface current field data, buoy-measured wave height and wind speed data, and shore-based wave meter data. First, a unified time base is established for the observation data from each source, aligning the timestamps of all observation data to Coordinated Universal Time (UTC). The sampling intervals of each data source are interpolated or extracted to ensure that the temporal resolution matches the update time step of the dynamic grid system. In the spatial dimension, bilinear interpolation is used to interpolate the observation data from different spatial coordinate systems to each grid node of the dynamic grid system. During interpolation, confidence weights are assigned based on the uncertainty of the observation data to obtain the registered observation value at each grid node. The registered observation values ​​of all grid nodes constitute the registered observation field.

[0035] Dynamic features of the air-sea interface and the three-dimensional flow field structure are extracted from the registered observation field. In practice, the dynamic features of the air-sea interface include sea surface wave height distribution, wave direction distribution, and sea surface pressure field fluctuations. For sea surface wave height distribution, wave height time series at each grid node are directly extracted from the registered observation field, and wave energy components at each frequency and direction are obtained through spectral decomposition. For wave direction distribution, the wave direction is calculated using the wave height gradient to determine the normal direction of the wave crest line. For sea surface pressure field fluctuations, atmospheric model reanalysis data is fused with sea surface observations to interpolate sea surface pressure to the sea surface nodes of the dynamic grid system. The three-dimensional flow field structure includes surface flow field, mid-level flow field, and bottom flow field. The surface flow field is obtained by fusing high-frequency ground wave radar observations with satellite altimeter geostrophic flow. The mid-level and bottom flow fields are combined with ocean circulation model simulation results, and geostrophic adjustments are made using temperature and salinity profile data from the registered observation field to form a three-dimensional velocity distribution from the sea surface to the seabed.

[0036] The dynamic characteristics of the air-sea interface and the three-dimensional flow field structure are mapped to the corresponding grid nodes of the digital twin to generate the initial field of the digital twin. In specific implementation, the digital twin is a numerical model grid with the same grid topology as the dynamic grid system, and each grid node of the digital twin corresponds one-to-one with the grid node of the dynamic grid system. The mapping process assigns the extracted sea surface wave height distribution, wave direction distribution, and sea surface pressure field fluctuations to the surface grid nodes of the digital twin, and assigns the surface velocity, middle velocity, and bottom velocity in the three-dimensional flow field structure to the corresponding vertical layer nodes of the digital twin according to depth. During the assignment, the spatial gradient and continuity constraints of each physical quantity are maintained, and the assignment results are subjected to divergence correction and hydrostatic balance adjustment so that the mapped velocity field satisfies the incompressibility condition, and the mapped pressure field and density field satisfy hydrostatic balance. The set of physical quantities of all grid nodes after divergence correction and hydrostatic balance adjustment constitutes the initial field of the digital twin.

[0037] See Figure 3 The figure shows a two-dimensional distribution diagram of multi-layered nested dynamic grid nodes in the target sea area spatial grid system. The horizontal axis represents the distance to the east (unit: kilometers), and the vertical axis represents the distance to the north (unit: kilometers). Figure 3 Different symbols are used to distinguish the locations of the three layers of grid nodes: blue solid dots represent the outer coarse grid nodes, orange solid triangles represent the middle transition grid nodes, and red solid squares represent the inner fine grid nodes. The outer coarse grid nodes are mainly distributed along the edge of the target sea area, covering a wide area with relatively large node spacing. The nodes are distributed in a ring along the area boundary and are relatively sparse. The middle transition grid nodes are located between the outer coarse grid and the inner fine grid, forming a transition zone. They have a moderate node density and are distributed in a ring around the inner fine grid node area. The inner fine grid nodes are located in the central area of ​​the target sea area, with a dense node distribution and a smaller coverage area, forming the highest resolution area of ​​the grid system.

[0038] In specific implementation, please refer to Figure 2 The process of generating a candidate set of wave spectral states by performing multi-scale dynamic constraint spectral state deduction on the initial field of the digital twin is as follows.

[0039] The initial field of the digital twin is decomposed into three scales: a large-scale background field, a mesoscale process field, and a small-scale turbulent fluctuation field. In practice, the multi-scale decomposition employs a spatial bandpass filtering method, separating the initial field into three scale levels by setting different cutoff wavelengths. The large-scale background field corresponds to fluctuation components with wavelengths greater than a preset long-wavelength threshold, the mesoscale process field corresponds to fluctuation components with wavelengths between the preset long-wavelength threshold and the preset short-wavelength threshold, and the small-scale turbulent fluctuation field corresponds to fluctuation components with wavelengths less than the preset short-wavelength threshold. The preset long-wavelength threshold is set to 100 times the significant wave height, and the preset short-wavelength threshold is set to 10 times the significant wave height. Both thresholds are automatically updated based on the significant wave height values ​​extracted from the initial field of the digital twin. The filtering process uses a fast filtering algorithm based on spherical harmonics, decomposing the wave height distribution, wave direction distribution, and velocity distribution at each grid layer of the dynamic grid system, maintaining spatial consistency and mass conservation of the three scale fields at the grid nodes.

[0040] Dynamically constrained derivations were performed on the large-scale background field, mesoscale process field, and small-scale turbulent fluctuation field to obtain candidate spectral components for each scale. In practice, the temporal evolution of the large-scale wave field spectral components was constrained and derived using the quasi-geotropic vortex equation for the large-scale background field. The quasi-geotropic vortex equation includes planetary vorticity gradient terms, relative vorticity advection terms, and extended vorticity terms. During the derivation, the wave height distribution in the large-scale background field was transformed into a vorticity field, and the spectral component evolution equation was established in the frequency domain. A step-wise time integration scheme was used to advance the time step forward to obtain the predicted values ​​of the large-scale wave field spectral components. For the mesoscale process field, the modulation instability of the mesoscale wave group was constrained and derived using the nonlinear Schrödinger equation. The complex envelope variables of the nonlinear Schrödinger equation are composed of the wave height envelope and phase function of the mesoscale process field. The coefficients of the dispersion and nonlinear terms of the equation are determined by the water depth and background velocity of the grid nodes where the mesoscale process field is located. The nonlinear Schrödinger equation is solved in the frequency domain using the pseudospectral method to deduce the energy transfer and spectral broadening trends of the spectral components of the mesoscale wave group during time evolution. For the small-scale turbulent fluctuation field, a turbulent closure model is used to constrain and deduce the small-scale wind-wave coupled spectral components. The turbulent closure model uses a source function that combines the Miles shear instability mechanism and the Phillips resonance mechanism. The source function includes wind input terms, wave energy dissipation terms, and wave-wave nonlinear interaction terms. The source function is driven by the measured wind speed and the turbulent kinetic energy distribution in the digital twin initial field to calculate the growth rate and equilibrium spectrum of the small-scale wind-wave coupled spectral components in the frequency-direction space.

[0041] After completing the extrapolation at each scale, the results are checked for inter-scale consistency. Candidate components that do not meet the dynamic constraints are eliminated, resulting in candidate spectral components for each scale. In practice, inter-scale consistency checking is achieved by constructing a spectral-energy cross-constraint function. The spectral-energy cross-constraint function measures the difference in energy spectral density among large-scale wave field spectral components, mesoscale wave group spectral components, and small-scale wind-wave coupling spectral components within the overlapping frequency band. Let the frequency-direction overlap region be... The spectral energy cross-constraint function is defined as the ratio of the weighted integral of the energy spectral density within the overlapping region to the weighted integral of the total extrapolated energy spectral density, with an ideal value of 1. When the spectral energy cross-constraint function value of a candidate spectral component exceeds the preset tolerance range [0.85, 1.15], the candidate spectral component is determined to not meet the dynamic constraints and is removed from the candidate set. The upper and lower limits of the tolerance range are set according to the digital twin mesh resolution and the water depth measurement error. The lower limit of 0.85 corresponds to a 15% energy deviation allowed in deep water, and the upper limit of 1.15 corresponds to a 15% energy overshoot allowed in shallow water. The retained extrapolation results constitute large-scale candidate spectral components, medium-scale candidate spectral components, and small-scale candidate spectral components.

[0042] Candidate spectral components at various scales are convolved and fused in the frequency domain to generate multiple candidate wave spectral states, forming a candidate wave spectral state set. In specific implementation, convolutional fusion is performed in the two-dimensional frequency-direction domain. Large-scale, medium-scale, and small-scale candidate spectral components are represented as frequency-direction spectral matrices. Multiple convolutional operations couple the spectral components at the three scales into a full-band wave spectrum. Multiple convolutional operations are implemented using Fast Fourier Transform (FFT). The dimension of the fused spectral matrix is ​​consistent with the number of nodes in the innermost fine grid of the dynamic grid system. Each convolutional fusion result corresponds to a candidate wave spectral state. By changing the combination weights of the large-scale, medium-scale, and small-scale candidate spectral components in the convolution kernel, multiple different candidate wave spectral states are generated. The traversal range of the combination weights is 0.5 to 1.5, with a step size of 0.25, resulting in a total of 125 weight combinations and generating 125 candidate wave spectral states. These candidate wave spectral states constitute the candidate wave spectral state set.

[0043] In practice, the process of determining the target wave spectrum parameters by using a physical information fusion network to perform spectral parameter inversion based on the candidate wave spectrum state set is as follows.

[0044] A physical information fusion network is constructed, comprising a physical constraint encoding layer, an attention fusion layer, and a spectral parameter output layer. In the specific implementation, the physical constraint encoding layer consists of three stacked physical information neural networks. Each layer contains a fully connected hidden layer and a physical constraint residual module. The activation function of the fully connected hidden layer uses Gaussian error linear units. The physical constraint residual module corrects the output of the fully connected hidden layer by calculating the residuals of the wave spectrum energy conservation constraint term and the wave action conservation constraint term. The attention fusion layer consists of a scaled dot product attention module and a gated linear unit cascaded together. The scaled dot product attention module has 8 multi-head attention heads and an attention dimension of 128. The spectral parameter output layer consists of two fully connected layers connected in series. The first fully connected layer has 64 neurons, and the second has 4 neurons. It outputs four target wave spectrum parameters: effective wave height, spectral peak period, spectral peak factor, and wave direction spread parameter. The activation function of the spectral parameter output layer is a linear activation function. The training process of the physical information fusion network adopts a two-stage training strategy. In the first stage, supervised pre-training is performed using synthetic wave spectrum states constructed from historical wave observation data and corresponding spectral parameter labels. The loss function is the mean squared error loss function, the batch size is set to 64, the learning rate is set to 0.001, and the training epochs are set to 200. In the second stage, a physical constraint loss term is introduced for fine-tuning based on the supervised pre-training weights. The physical constraint loss term consists of the sum of squared residuals from the wave spectrum energy conservation constraint term and the wave action conservation constraint term. In this fine-tuning stage, the learning rate is set to 0.0001, and the training epochs are set to 100.

[0045] Each candidate wave spectral state in the candidate wave spectral state set is input into the physical constraint coding layer to generate a corresponding physical feature vector. In practice, the physical constraint coding layer performs frequency domain grid discretization on the candidate spectral states to obtain a discrete spectral matrix. Frequency domain grid discretization divides the candidate spectral states into 64 frequency intervals at equal logarithmic intervals in the frequency dimension and 36 directional intervals at equal angular intervals in the direction dimension, generating a 64-row, 36-column discrete spectral matrix. Each element of the discrete spectral matrix is ​​the integral value of the spectral energy density within the corresponding frequency and directional intervals. The discrete spectral matrix is ​​then input into the physical information neural network in the physical constraint coding layer for feature encoding. During the encoding process, physical consistency correction is performed on intermediate features using wave spectral energy conservation constraints and wave action conservation constraints. The physical information neural network performs three fully connected mappings and three physical consistency corrections on the discrete spectral matrix. Each fully connected mapping generates an intermediate feature vector with a dimension of 256. The wave spectrum energy conservation constraint term constructs the constraint residual by calculating the difference between the spectral energy density distribution reconstructed from the intermediate feature vector and the total energy of the input discrete spectral matrix. The wave action conservation constraint term constructs the constraint residual by calculating the flux divergence of the intermediate feature vector in the frequency-direction space. The weighted sum of the two constraint residuals is superimposed on the intermediate feature vector to achieve physical consistency correction. The weight coefficients of the wave spectrum energy conservation constraint term and the wave action conservation constraint term are both set to 0.5. The corrected intermediate features are flattened and dimensionality reduced to generate physical feature vectors. The flattening operation transforms the 64-row, 36-column matrix into a 2304-dimensional one-dimensional vector. The dimensionality reduction operation maps the 2304 dimensions to a 512-dimensional physical feature vector through a fully connected layer.

[0046] Multiple physical feature vectors are weighted and aggregated through an attention fusion layer to generate a fused spectral feature vector. In practice, an attention score is calculated between each physical feature vector and a preset spectral state prototype vector. The spectral state prototype vector is stored in a trainable embedding matrix of the attention fusion layer. The embedding matrix has dimensions of 128 rows and 512 columns, with each row corresponding to a spectral state prototype vector. The 128 rows of the spectral state prototype vector correspond to 128 typical spectral primitives. The preset spectral state prototype vector is automatically updated through backpropagation during the training of the physical information fusion network. The attention score is calculated by performing a dot product operation between the physical feature vector and each spectral state prototype vector. The dot product result is then normalized using softmax to obtain a 128-dimensional attention score vector. Each scalar value in the attention score vector represents the correlation between the physical feature vector and its corresponding spectral state prototype vector. Multiple physical feature vectors are then weighted and summed based on the attention scores to obtain a weighted aggregate vector. During the weighted summation, the weight of each physical feature vector is determined by the score value at the corresponding position in the attention score vector. The weighted aggregate vector has dimensions of 512. The weighted aggregated vector is input into a gated linear unit for nonlinear transformation to generate a fused spectral feature vector. The gated linear unit consists of two parallel fully connected layers. The first fully connected layer performs a linear mapping on the weighted aggregated vector, and the second fully connected layer performs a linear mapping on the weighted aggregated vector and then generates gating coefficients through a sigmoid activation function. The mapping results of the two fully connected layers are multiplied element-wise to output a 512-dimensional fused spectral feature vector.

[0047] The fused spectral feature vector is input into the spectral parameter output layer to output the target wave spectral parameters, which include significant wave height, spectral peak period, spectral peak factor, and wave direction spread parameter. In specific implementation, the fused spectral feature vector is mapped to a 64-dimensional intermediate representation through the first fully connected layer of the spectral parameter output layer, and then mapped to a 4-dimensional output vector through the second fully connected layer. The four components of the output vector correspond to the values ​​of significant wave height, spectral peak period, spectral peak factor, and wave direction spread parameter, respectively. The output range for significant wave height is 0.1 meters to 30 meters, for spectral peak period it is 1 second to 25 seconds, for spectral peak factor it is 1 to 10, and for wave direction spread parameter it is 0 degrees to 180 degrees. The output range is constrained by a piecewise linear mapping function at the end of the spectral parameter output layer.

[0048] For each candidate wave spectrum state in the candidate wave spectrum state set, the above steps are performed to generate a corresponding physical feature vector. All physical feature vectors are weighted and aggregated into a fused spectrum feature vector through an attention fusion layer. Finally, the spectrum parameter output layer outputs a set of target wave spectrum parameters based on the fused spectrum feature vector.

[0049] In practice, the process of driving the digital twin to simulate the virtual sensor response based on the target wave spectrum parameters, adjusting the digital twin based on the difference between the simulated response and the measured response, and outputting the calibrated wave spectrum parameters is as follows.

[0050] A virtual sensor array is set up in the digital twin, with a layout identical to the actual measured sensor array. In specific implementation, the actual measured sensor array includes N measured wave height meters, M measured current meters, and P measured pressure sensors, where N, M, and P are all positive integers. Each sensor in the actual measured sensor array has a defined spatial installation location coordinate and installation azimuth angle within the target sea area. In the dynamic mesh system of the digital twin, a corresponding virtual sensor instance is created for each actual measured sensor. Virtual wave height meters are set on the surface mesh nodes of the digital twin, virtual current meters are set on mesh nodes at a specified depth layer, and virtual pressure sensors are set on near-seabed mesh nodes. The spatial coordinates of each virtual sensor are identical to the spatial installation location coordinates of the corresponding actual measured sensor in a unified coordinate system. All virtual sensor instances in the virtual sensor array form a sensing network in the digital twin with a topology consistent with the actual measured sensor array.

[0051] The target wave spectrum parameters are used as excitation conditions for the digital twin, and the digital twin simulation is run to obtain the virtual sensor response time series. In specific implementation, the effective wave height, peak period, peak factor, and wave direction spread parameters from the target wave spectrum parameters are input into the wave generation module of the digital twin. The wave generation module converts the target wave spectrum parameters into a two-dimensional wave spectrum energy distribution based on the JONSWAP spectrum form, and then uses the random phase inverse Fourier transform method to generate a sea surface displacement field that satisfies the two-dimensional wave spectrum energy distribution. The wave surface displacement field is applied to the sea surface boundary conditions of the digital twin, and the wave propagation direction distribution is determined according to the wave direction spread parameters, driving the digital twin to perform numerical simulation. The time step of the numerical simulation is set to 0.1 seconds, and the total simulation time is 300 seconds. Within each time step, the digital twin solves the three-dimensional Navier-Stokes equations and the continuity equation, and outputs the wave surface displacement time series of the grid node where the virtual wave height meter is located, the three-dimensional velocity time series of the grid node where the virtual current meter is located, and the pressure time series of the grid node where the virtual pressure sensor is located. The wave surface displacement time series of the grid node where the virtual wave height meter is located constitutes the virtual wave height meter response sequence, the three-dimensional flow velocity time series of the grid node where the virtual velocity meter is located constitutes the virtual velocity meter response sequence, and the pressure time series of the grid node where the virtual pressure sensor is located constitutes the virtual pressure sensor response sequence. The three sequences are merged into the virtual sensor response time series.

[0052] The virtual sensor response time series is compared point-by-point with the measured sensor response time series to calculate the residual sequence. In the specific implementation, both the virtual and measured sensor response time series contain 3000 time sampling points with a sampling interval of 0.1 seconds. During the point-by-point comparison, the values ​​at each time sampling point of the virtual and measured sensor response time series are subtracted accordingly, and the difference constitutes the residual sequence. The length of the residual sequence is the same as the number of time sampling points, and each residual value retains its positive or negative sign to reflect the direction of deviation of the simulated response relative to the measured response.

[0053] The posterior distributions of the state variables and spectral parameters of the digital twin are updated using an ensemble Kalman filter algorithm based on the residual sequence. In the specific implementation, a joint state vector containing the state variables and spectral parameters is constructed, and initial ensemble members are generated. The state variables include the velocity component vectors and wavefront displacement scalars of all grid nodes in the digital twin, and the spectral parameters include the significant wave height, spectral peak period, spectral peak factor, and wave direction spread parameter. The joint state vector is formed by concatenating the state variables and spectral parameters, with a dimension of D, where D is equal to the sum of the dimensions of the state variables and the spectral parameters. The initial ensemble member number E is set to 100, generated by applying a Gaussian perturbation with zero mean and a covariance matrix equal to the preset background error covariance matrix to the joint state vector. The e-th initial ensemble member is represented as... The value of e ranges from 1 to E. A digital twin is used to predict each set member, resulting in a predicted set member. The prediction process extracts the spectral parameters from the e-th initial set member and inputs them into the digital twin wave generation module to drive the simulation. The simulation duration is equal to the sampling duration of the virtual sensor response time series (300 seconds). The prediction result is then combined with the state variable portion of the e-th initial set member to form the e-th predicted set member. The observation increment is calculated based on the residual sequence. The observation increment is the difference matrix between the measured sensor response time series and the virtual sensor response time series. The covariance matrix is ​​obtained by calculating the sample covariance from the state variable portions of the 100 predicted set members. Each set member is updated using the following formula: ; in, This represents the e-th updated member of the set. Let K represent the e-th member of the forecast set, where K is the Kalman gain matrix. Let H be the observation vector composed of the measured sensor response time series, H be the observation operator matrix, and η(e) be the e-th observation perturbation vector. The Kalman gain matrix K is calculated from the covariance matrices of the forecast set members, the observation operator matrix H, and the observation error covariance matrix. The diagonal elements of the observation error covariance matrix are set to the nominal measurement standard deviation of the measured sensor, and the off-diagonal elements are set to zero. The observation operator matrix H maps the state variables in the forecast set members to the virtual sensor response space by extracting the physical quantities corresponding to the grid nodes of the virtual sensor positions from the forecast set members. The observation perturbation vector η(e) is sampled from a multivariate Gaussian distribution with zero mean and a covariance matrix equal to the observation error covariance matrix, used to maintain the statistical consistency of the set. Covariance dilation is applied to the updated set members to obtain the updated posterior distributions of the state variables and spectral parameters. Covariance dilation is achieved using a covariance dilation factor. Achieve covariance inflation factor The calculation method is to take the square root of the ratio of the dispersion of the predicted set members relative to the set mean to the dispersion of the updated set members relative to the set mean, and then multiply it by the anomaly value of the updated set members and add it to the set mean, so that the standard deviation of the posterior set is not less than 0.9 times the standard deviation of the predicted set.

[0054] The expected values ​​are extracted from the updated posterior distribution of the spectral parameters as the calibrated wave spectral parameters. In practice, the updated posterior distribution of the spectral parameters consists of spectral parameter portions from 100 ensemble members. An arithmetic mean is calculated on these 100 spectral parameter samples. The result of the arithmetic mean includes four scalar values, corresponding to the calibrated expected significant wave height, the calibrated expected peak period, the calibrated expected peak factor, and the calibrated expected wave direction spread parameter. These four calibrated parameters together constitute the calibrated wave spectral parameters. The digital twin adjusts its internal parameters based on the calibrated wave spectral parameters, and the calibrated wave spectral parameters are then used as the output.

[0055] See Figure 4 , Figure 4 The horizontal axis represents time (in seconds), ranging from 0 to 50 seconds, and the vertical axis represents wavefront displacement / residual (in meters), ranging from -1.5 meters to 1.3 meters. Figure 4 The figure shows three curves: the virtual wave level indicator response sequence, the measured wave level indicator response sequence, and their residual sequences. The solid blue line represents the wavefront displacement response of the virtual wave level indicator in the digital twin, the dashed red line represents the wavefront displacement response of the measured wave level indicator, and the dotted green line represents the residual sequence formed by the difference between the virtual and measured wave level indicator response sequences.

[0056] from Figure 4As can be seen, the virtual wave height meter response sequence and the measured wave height meter response sequence basically match in overall trend and wave peak and trough positions. The wave surface displacement changes exhibit periodic fluctuations, with a maximum amplitude of approximately 1.2 meters and a minimum amplitude close to -1.5 meters. The peak and trough values ​​of the two response sequences within each fluctuation cycle correspond to highly consistent time points, indicating that the virtual sensor response generated by the digital twin driven by the target wave spectrum parameters can effectively simulate the characteristics of actual wave fluctuations.

[0057] The residual sequence is mainly distributed within ±0.1 meters, exhibiting random fluctuations, and shows no significant systematic deviation or trend change throughout the 50-second time period, indicating that the error between the virtual wave height meter response sequence and the measured response sequence remains at a low level. The mean of the residual sequence is close to zero, indicating that the digital twin can effectively capture the dynamics of the wave surface during the virtual sensor response simulation process by excitation based on the target wave spectrum parameters, and the residual error is mainly random noise.

[0058] In conjunction with the above embodiment, Figure 4 The data demonstrates a high degree of consistency between the simulated and measured responses of the virtual sensor, providing a reliable error feedback basis for the subsequent Kalman filter algorithm based on the residual sequence input set. Through the calculation and analysis of the residual sequence, the joint calibration of the digital twin's state variables and wave spectrum parameters can be effectively guided, improving the accuracy and dynamic response capability of the wave spectrum parameters.

[0059] In practical implementation, the virtual sensor response time series includes the virtual wave height meter response sequence, the virtual velocity meter response sequence, and the virtual pressure sensor response sequence. The actual sensor response time series correspondingly include the actual wave height meter response sequence, the actual velocity meter response sequence, and the actual pressure sensor response sequence. The virtual wave height meter response sequence is composed of the wave surface displacement values ​​output by the grid node containing the virtual wave height meter in the digital twin at each time step within the simulation period, arranged in chronological order. The virtual velocity meter response sequence is composed of the velocity scalar values ​​obtained by taking the modulus of the three-dimensional velocity vector output by the grid node containing the virtual velocity meter in the digital twin at each time step within the simulation period, arranged in chronological order. The virtual pressure sensor response sequence is composed of the pressure values ​​output by the grid node containing the virtual pressure sensor in the digital twin at each time step within the simulation period, arranged in chronological order. The measured wave height meter response sequence consists of wave surface displacement values ​​collected by the measured wave height meter in the target sea area within the same time period, arranged in chronological order. The measured current meter response sequence consists of scalar values ​​of the three-dimensional velocity vector after taking the modulus of the measured current meter in the target sea area within the same time period, arranged in chronological order. The measured pressure sensor response sequence consists of pressure values ​​collected by the measured pressure sensor in the target sea area within the same time period, arranged in chronological order.

[0060] The virtual wave height meter response sequence and the measured wave height meter response sequence are time-aligned to calculate the first residual subsequence. In the specific implementation, the timestamp of the virtual wave height meter response sequence is determined by the time step of 0.1 seconds in the digital twin simulation, and the timestamp of the measured wave height meter response sequence is determined by the sampling frequency of the measured wave height meter, which is 10 Hz. The timestamps of the two sequences are aligned point by point at the same starting time. If there is a slight clock drift that causes a timestamp deviation, a linear interpolation method is used to interpolate the timestamp of the measured wave height meter response sequence onto the timestamp of the virtual wave height meter response sequence. The interpolated measured wave height meter response sequence and the virtual wave height meter response sequence completely coincide on the time axis. Then, for each time sampling point, the value of the virtual wave height meter response sequence is subtracted from the value of the interpolated measured wave height meter response sequence, and the difference constitutes the first residual subsequence.

[0061] The virtual velocimeter response sequence is time-aligned with the measured velocimeter response sequence to calculate the second residual subsequence. In practice, the timestamps of the virtual velocimeter response sequence and the virtual wave height meter response sequence are strictly synchronized, both generated at a time step of 0.1 seconds in the digital twin simulation. The sampling frequency of the measured velocimeter response sequence is 8 Hz. A linear interpolation method is used to interpolate the measured velocimeter response sequence onto the timestamp of the virtual velocimeter response sequence. The interpolated measured velocimeter response sequence and the virtual velocimeter response sequence completely overlap on the time axis. Then, for each time sampling point, the value of the virtual velocimeter response sequence is subtracted from the value of the interpolated measured velocimeter response sequence, and the difference constitutes the second residual subsequence.

[0062] The virtual pressure sensor response sequence and the measured pressure sensor response sequence are time-aligned to calculate the third residual subsequence. In the specific implementation, the timestamp of the virtual pressure sensor response sequence is also generated at the time step of 0.1 seconds in the digital twin simulation. The sampling frequency of the measured pressure sensor response sequence is 4 Hz. A linear interpolation method is used to interpolate the measured pressure sensor response sequence to the timestamp of the virtual pressure sensor response sequence. The interpolated measured pressure sensor response sequence and the virtual pressure sensor response sequence completely coincide on the time axis. Then, for each time sampling point, the value of the virtual pressure sensor response sequence is subtracted from the value of the interpolated measured pressure sensor response sequence, and the difference constitutes the third residual subsequence.

[0063] The first, second, and third residual subsequences are weighted and fused to generate a residual sequence. In practice, the weighted fusion is calculated as follows: ; in, This indicates the weighted fusion residual sequence at time sampling point t. q The residual value at point q, where q is the index of the time sampling point. This indicates that the first residual subsequence at time sampling point t q The residual value at that point, This indicates that the second residual subsequence at time sampling point t q The residual value at that point, This indicates that the third residual subsequence at time sampling point t q The residual value at that point, , , These represent the standard deviations of the response sequences of the measured wave height meter, flow meter, and pressure sensor, respectively. The weighting coefficients of the first residual subsequence are... The weighting coefficients are the weighting coefficients of the second residual subsequence. These are the weighting coefficients for the third residual subsequence. The value is 0.5. The value is 0.3. The weight is set to 0.2, based on the fact that the wave height meter response sequence is most sensitive to changes in wave spectrum parameters, directly reflecting the sea surface fluctuation state, hence it is assigned the maximum weight of 0.5. The current meter response sequence reflects the kinetic energy of water movement and has an indirect correlation with wave spectrum parameters; however, its measurement noise is higher than that of the wave height meter, so it is assigned a weight of 0.3. The pressure sensor response sequence is affected by water depth attenuation and hydrostatic pressure shift, and its correlation with wave spectrum parameters is the weakest among the three types of sensors, so it is assigned the minimum weight of 0.2. After weighted fusion, the residual sequence... As a complete residual sequence, it is passed to the ensemble Kalman filter algorithm to update the state variables and spectral parameter posterior distributions of the digital twin.

[0064] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A method for calculating wave spectrum parameters based on digital twins, characterized in that, include: Acquire multi-source ocean observation data for the target sea area and construct a digital twin initial field that includes dynamic features of the air-sea interface and a three-dimensional flow field structure; The initial field of the digital twin serves as the initial state of the digital twin. Multi-scale dynamic constraint spectral state deduction is performed on the initial field of the digital twin to generate a candidate set of wave spectral states; Based on the candidate wave spectrum state set, spectral parameter inversion is performed using a physical information fusion network to determine the target wave spectrum parameters. Specifically, this includes: constructing a physical information fusion network, which comprises a physical constraint coding layer, an attention fusion layer, and a spectral parameter output layer; inputting each candidate wave spectrum state from the candidate wave spectrum state set into the physical constraint coding layer to generate a corresponding physical feature vector; weighting and aggregating multiple physical feature vectors through the attention fusion layer to generate a fused spectral feature vector; and inputting the fused spectral feature vector into the spectral parameter output layer to output the target wave spectrum parameters, which include significant wave height, spectral peak period, spectral peak factor, and wave direction spread parameter. The digital twin is driven to simulate the virtual sensor response based on the target wave spectrum parameters, and the digital twin is adjusted based on the difference between the simulated response and the measured response to output the calibrated wave spectrum parameters.

2. The method for calculating wave spectrum parameters based on digital twins according to claim 1, characterized in that, The acquisition of multi-source ocean observation data of the target sea area and the construction of a digital twin initial field containing dynamic features of the air-sea interface and a three-dimensional flow field structure specifically include: The target sea area is divided into spatial grids, and a multi-layered nested dynamic grid system is established; Multi-source ocean observation data are spatiotemporally registered according to grid units to obtain the registered observation field; Extract the dynamic features of the air-sea interface and the three-dimensional flow field structure from the registered observation field; The dynamic features of the air-sea interface and the three-dimensional flow field structure are mapped to the corresponding grid nodes of the digital twin to generate the initial field of the digital twin.

3. The method for calculating wave spectrum parameters based on digital twins according to claim 1, characterized in that, The step of performing multi-scale dynamically constrained spectral state deduction on the initial field of the digital twin to generate a candidate set of wave spectral states specifically includes: The initial field of the digital twin is decomposed into a multi-scale field to obtain a large-scale background field, a mesoscale process field, and a small-scale turbulent fluctuation field. Dynamic constraints were performed on the large-scale background field, the mesoscale process field, and the small-scale turbulent fluctuation field to obtain candidate spectral components for each scale. Candidate spectral components at various scales are convolved and fused in the frequency domain to generate multiple candidate wave spectral states, forming a set of candidate wave spectral states.

4. The method for calculating wave spectrum parameters based on digital twins according to claim 3, characterized in that, The dynamic constraint derivation of the large-scale background field, mesoscale process field, and small-scale turbulent fluctuation field is performed respectively to obtain candidate spectral components at each scale, specifically including: Based on the large-scale background field, the temporal evolution of the large-scale wave field spectrum components is deduced using the quasi-geotropic vortex equation constrained by the quasi-geotropic vortex equation. Based on the aforementioned mesoscale process field, the modulation instability of the mesoscale wave group is derived using the nonlinear Schrödinger equation as a constraint. Based on the small-scale turbulent fluctuation field, the small-scale wind-wave coupled spectrum components are derived using a turbulent closed model constraint. The inter-scale consistency of the extrapolation results at each scale is checked, and candidate components that do not meet the dynamic constraints are eliminated to obtain candidate spectral components at each scale.

5. The method for calculating wave spectrum parameters based on digital twins according to claim 4, characterized in that, The step of inputting each candidate spectral state from the candidate wave spectral state set into the physical constraint coding layer to generate a corresponding physical feature vector specifically includes: The candidate spectrum state is discretized in the frequency domain using the physical constraint coding layer to obtain a discrete spectrum matrix; The discrete spectrum matrix is ​​input into the physical information neural network in the physical constraint coding layer for feature encoding. During the encoding process, the intermediate features are physically consistent with the wave spectrum energy conservation constraint and the wave action conservation constraint. The corrected intermediate features are flattened and their dimensionality reduced to generate physical feature vectors.

6. The method for calculating wave spectrum parameters based on digital twins according to claim 5, characterized in that, The step of weighted aggregation of multiple physical feature vectors through the attention fusion layer to generate a fused spectral feature vector specifically includes: Calculate the attention score between each physical feature vector and the preset spectral state prototype vector; Based on the attention score, multiple physical feature vectors are weighted and summed to obtain a weighted aggregate vector; The weighted aggregation vector is input into a gated linear unit for nonlinear transformation to generate a fused spectral feature vector.

7. The method for calculating wave spectrum parameters based on digital twins according to claim 1, characterized in that, The process of driving a digital twin to simulate virtual sensor responses based on the target wave spectrum parameters, adjusting the digital twin based on the difference between the simulated and measured responses, and outputting calibrated wave spectrum parameters specifically includes: A virtual sensor array is set up in the digital twin, and the layout of the virtual sensor array is consistent with that of the actual sensor array. Using the target wave spectrum parameters as the excitation condition for the digital twin, the digital twin simulation is run to obtain the virtual sensor response time series; The virtual sensor response time series is compared point by point with the measured sensor response time series, and the residual sequence is calculated. The state variables and spectral parameters of the digital twin are updated using an ensemble Kalman filter algorithm based on the residual sequence. The expected value is extracted from the updated posterior distribution of the spectral parameters as the calibrated wave spectral parameters.

8. The method for calculating wave spectrum parameters based on digital twins according to claim 7, characterized in that, The step of updating the state variables and spectral parameter posterior distributions of the digital twin based on the residual sequence using an ensemble Kalman filter algorithm specifically includes: Construct a joint state vector containing state variables and spectral parameters, and generate initial set members; By using digital twins to predict each member of the set, the predicted set members are obtained; The observation increment is calculated based on the residual sequence, and each set member is updated by combining the covariance matrix of the forecast set members; Covariance inflation is applied to the updated set members to obtain the updated posterior distributions of the state variables and spectral parameters.

9. The method for calculating wave spectrum parameters based on digital twins according to claim 8, characterized in that, The virtual sensor response time series includes a virtual wave height meter response series, a virtual flow meter response series, and a virtual pressure sensor response series, while the measured sensor response time series correspondingly includes a measured wave height meter response series, a measured flow meter response series, and a measured pressure sensor response series; the step of comparing the virtual sensor response time series with the measured sensor response time series point by point and calculating the residual sequence specifically includes: The virtual wave height meter response sequence is time-aligned with the measured wave height meter response sequence, and the first residual subsequence is calculated. The virtual flowmeter response sequence is time-aligned with the measured flowmeter response sequence, and the second residual subsequence is calculated. The virtual pressure sensor response sequence is time-aligned with the measured pressure sensor response sequence, and the third residual subsequence is calculated. The first residual subsequence, the second residual subsequence, and the third residual subsequence are weighted and fused to generate a residual sequence.

Citation Information

Patent Citations

  • Marine monitoring-oriented multi-task processing and sensing decision big model

    CN118193982A

  • Multi-scale cloud system dynamic evolution simulation modeling method and system based on digital twinning

    CN119885657A