Ocean salinity field prediction method and system combining multi-directional three-dimensional continuous scanning and frequency domain perception
By integrating multi-directional three-dimensional continuous scanning with frequency domain sensing, and combining static six-neighbor aggregation, dynamic similar neighborhood aggregation, and node-level gated adaptive fusion, the spatial distortion problem in ocean salinity field prediction in existing technologies is solved, and high-precision three-dimensional ocean salinity field prediction is achieved.
Patent Information
- Application Number
- CN202611258428.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-19
- Publication Date
- 2026-11-20
AI Technical Summary
Existing ocean salinity field prediction methods disrupt the physical continuity of the ocean salinity field when processing three-dimensional regular grid data, making it difficult to balance local spatial heterogeneity and long-distance dependence, resulting in spatial distortion and insufficient accuracy in the prediction results.
A combination of static six-neighbor aggregation and dynamic similar neighborhood aggregation with node-level gating adaptive fusion is adopted. Through multi-directional continuous scanning and frequency domain sensing, the spatial and temporal features of the three-dimensional ocean salinity field are extracted. The features are then processed using the Mamba model, and a global temporal representation is generated through Fourier transform and bidirectional recursive bigru model. Finally, element-wise weighted fusion is performed to predict the ocean salinity field at future times.
It improves the prediction accuracy of ocean salinity fields, and can simultaneously take into account the spatial continuity of large smooth areas and the details of local abrupt boundary changes, capture long-term seasonal cycle evolution patterns, and reduce the error of multi-depth salinity prediction.
Smart Images

Figure CN123138628A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent marine environmental monitoring technology, and in particular to a method and system for predicting marine salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing. Background Technology
[0002] As a key physical parameter describing ocean dynamic processes, the accurate prediction of three-dimensional ocean salinity fields is of great significance for ocean circulation research, climate model assessment, marine ecosystem management, and maritime navigation safety. However, three-dimensional ocean salinity exhibits complex spatiotemporal characteristics, with significant vertical stratification, horizontal spatial continuity, and long-term seasonal evolution patterns, posing a significant challenge to high-precision spatiotemporal prediction. In recent years, with the rapid development of deep learning technology, data-driven spatiotemporal sequence prediction models have been gradually introduced into the field of ocean element forecasting. Among traditional ocean salinity field prediction methods, static reconstruction techniques lack temporal modeling capabilities and cannot predict dynamic evolution; existing three-dimensional spatiotemporal sequence models often use linear flattening methods when processing gridded data, severely disrupting the inherent physical continuity and vertical stratification of ocean elements; furthermore, existing frameworks often ignore crucial long-term seasonal patterns, resulting in poor physical consistency of long-term predictions.
[0003] Existing spatiotemporal prediction models, when processing 3D regular grid data, often directly flatten the spatial grid into a one-dimensional sequence or perform scanning modeling only on a 2D plane. These methods disrupt the original horizontal continuity, vertical stratification, and vertical profile transitions within the ocean salinity field, causing adjacent positions in the sequence to not necessarily correspond to adjacent regions in real space. This leads to problems such as spatial fragmentation, fringe artifacts, or discontinuities in depth layers in the prediction results. The 3D ocean salinity field contains both large-scale smooth variation regions and local abrupt changes caused by water mass convergence, ocean current transport, or depth variations. Existing methods, relying solely on fixed convolution or ordinary neighborhood aggregation, easily over-smooth abrupt boundary boundaries; while directly using global sequence modeling, they easily ignore local nearest-neighbor structures, making it difficult for the model to distinguish between stable and drastically changing regions. Ocean salinity variations are not only affected by local spatial transport but also exhibit significant long-term seasonal cycles. Existing methods often rely solely on spatial scanning branches, failing to fully express temporal dynamic factors such as seasonal transitions and long-term periodic fluctuations.
[0004] Therefore, traditional ocean salinity field prediction methods often suffer from spatial distortions such as stripe artifacts and layer breaks in the prediction results because they disrupt the physical continuity of three-dimensional space during data processing and are difficult to balance local spatial heterogeneity and long-distance dependence, resulting in insufficient prediction accuracy. Summary of the Invention
[0005] Based on this, in order to solve the above-mentioned technical problems, a method and system for predicting ocean salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing is provided, which can improve the prediction accuracy of ocean salinity fields.
[0006] A method for predicting ocean salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing, the method comprising:
[0007] Three-dimensional ocean salinity spatiotemporal data at historical moments are acquired. Static six-neighbor aggregation and dynamic similar neighborhood aggregation are performed on each spatial node in the three-dimensional ocean salinity spatiotemporal data. Adaptive selection is made between the static aggregation result and the dynamic aggregation result through node-level gating vector to obtain the locally enhanced three-dimensional spatial features.
[0008] The enhanced three-dimensional spatial features are continuously scanned along the longitude, depth, and latitude directions, converted into one-dimensional sequences, and then input into the Mamba model with shared parameters for processing. The processed one-dimensional sequences are then restored to a three-dimensional spatial arrangement through inverse scanning in each direction, resulting in a direction-aware three-dimensional spatial representation.
[0009] Seasonal frequency domain features were extracted from the three-dimensional ocean salinity spatiotemporal data using Fourier transform, and a global time representation was generated through bidirectional recursive bigru processing.
[0010] The three-dimensional spatial representation is concatenated with the global temporal representation, and element-wise fusion weights are generated using the Sigmoid activation function. The three-dimensional spatial representation and the global temporal representation are then fused element-wise using the fusion weights to obtain the three-dimensional ocean salinity field prediction result for future time moments.
[0011] In one embodiment, static six-neighbor aggregation and dynamic similarity neighborhood aggregation are performed on each spatial node in the three-dimensional ocean salinity spatiotemporal data, including:
[0012] Collect six neighboring nodes of each spatial node in the three-dimensional ocean salinity spatiotemporal data in the dimensions of depth, latitude, and longitude. Sum the feature values of the six neighboring nodes and take the average to obtain the static neighborhood features of the current spatial node.
[0013] Calculate the similarity of salinity evolution between the current spatial node and each of the neighboring nodes over all historical time steps. Assign dynamic weights to each of the neighboring nodes based on the salinity evolution similarity. Then, perform a weighted summation of the feature values of each of the neighboring nodes at the current time based on the dynamic weights to obtain the dynamic neighborhood features of the current spatial node.
[0014] In one embodiment, locally enhanced 3D spatial features are obtained by adaptively selecting between static and dynamic aggregation results using node-level gating vectors, including:
[0015] The original features of the current spatial node, the static neighborhood features, and the dynamic neighborhood features are concatenated and then mapped to gate weights through a fully connected layer and a Sigmoid activation function.
[0016] The static neighborhood features and the dynamic neighborhood are weighted and fused using the gating weights to obtain the local enhanced features of the current spatial node;
[0017] The local enhanced features of all spatial nodes are restored into three-dimensional tensors according to the original depth, latitude, and longitude coordinates to obtain the locally enhanced three-dimensional spatial features.
[0018] In one embodiment, the locally enhanced three-dimensional spatial features are continuously scanned along the longitude, depth, and latitude directions, including:
[0019] The locally enhanced three-dimensional spatial features are continuously scanned along the longitude plane. A row-major serpentine traversal is used in each depth layer. The traversal starting point and traversal direction are alternately flipped in adjacent depth layers. The traversal results of all depth layers are spliced together to obtain a one-dimensional longitude sequence.
[0020] The enhanced three-dimensional spatial features are continuously scanned along the depth column, and the three-dimensional spatial features are divided into vertical water columns. The depth is traversed alternately within a single water column, and the traversal direction of adjacent water columns is reversed. All water column traversal results are spliced together to obtain a one-dimensional depth sequence.
[0021] The locally enhanced 3D spatial features are continuously scanned along the latitudinal cross-section. Within each depth layer, a column-major serpentine traversal is used. When switching depth layers, the traversal direction within the layer is synchronously reversed. The traversal results of all depth layers are spliced together to obtain a 1D latitudinal sequence.
[0022] In one embodiment, the sequences are converted into individual one-dimensional sequences and then input into a Mamba model with shared parameters for processing. The processed one-dimensional sequences are then restored to a three-dimensional spatial arrangement through inverse scanning corresponding to each direction, resulting in a direction-aware three-dimensional spatial representation, including:
[0023] The generated longitude one-dimensional sequence, depth one-dimensional sequence, and latitude one-dimensional sequence are respectively input into the Mamba model that shares the same set of network parameters for sequence modeling to obtain the enhanced longitude one-dimensional sequence, depth one-dimensional sequence, and latitude one-dimensional sequence.
[0024] For each enhanced one-dimensional sequence, the inverse scan mapping rule corresponding to the directional scan path is used to restore the longitude three-dimensional feature tensor, depth three-dimensional feature tensor, and latitude three-dimensional feature tensor with the same size as the input tensor.
[0025] The longitude, depth, and latitude 3D feature tensors are spliced and fused along the channel dimension to integrate complementary 3D spatial information from each path, resulting in a direction-aware 3D spatial representation.
[0026] In one embodiment, seasonal frequency domain features are extracted from the three-dimensional ocean salinity spatiotemporal data using Fourier transform, and a global time representation is generated through bidirectional recursive Bigru processing, including:
[0027] Historical time series are extracted from the three-dimensional ocean salinity spatiotemporal data, and Fourier transform is applied to the historical time series to convert the time-domain time series signal into frequency-domain harmonic components.
[0028] Based on Fourier basis functions, the main harmonic components corresponding to the seasonal cycles of the historical time series are screened from the frequency domain harmonic components, and the seasonal frequency domain feature vector is reconstructed.
[0029] The seasonal frequency domain feature vector is subjected to bidirectional recursive bigru processing. The forward hidden state is obtained by traversing the seasonal frequency domain feature vector from front to back through forward processing, and the backward hidden state is obtained by traversing the seasonal frequency domain feature vector from back to front in reverse.
[0030] The forward hidden state and the backward hidden state are concatenated and fused to obtain the temporal fusion feature. Then, all spatial nodes are traversed, and the temporal fusion feature corresponding to each spatial node is restored to a three-dimensional tensor to obtain the global temporal representation.
[0031] In one embodiment, the three-dimensional spatial representation is concatenated with the global temporal representation, and element-wise fusion weights are generated using the Sigmoid activation function, including:
[0032] The three-dimensional spatial representation and the global temporal representation are concatenated along the channel dimension to obtain a joint feature tensor that contains both spatial and temporal information at each spatial location.
[0033] Perform pointwise convolution on the joint feature tensor and compress the number of channels to obtain the original weight value for each spatial location;
[0034] The Sigmoid activation function is applied element by element to the original weight values to map the original weight values to a numerical range of 0 to 1, thus obtaining the element-wise fused weights.
[0035] In one embodiment, the three-dimensional spatial representation and the global temporal representation are fused element-wise using the fusion weights to obtain a three-dimensional ocean salinity field prediction result for future times, including:
[0036] For each channel at each spatial location, the fusion weight is multiplied by the feature value of the three-dimensional spatial representation, and then a weighted sum is performed to obtain the fused spatiotemporal features;
[0037] The fused spatiotemporal features are input into the projection layer for feature mapping to obtain the three-dimensional ocean salinity field prediction results for future times.
[0038] A marine salinity field prediction system integrating multi-directional three-dimensional continuous scanning and frequency domain sensing, the system comprising:
[0039] The data processing and neighborhood aggregation module is used to acquire three-dimensional ocean salinity spatiotemporal data at historical moments, perform static six-neighbor aggregation and dynamic similar neighborhood aggregation on each spatial node in the three-dimensional ocean salinity spatiotemporal data, and adaptively select between the static aggregation result and the dynamic aggregation result through node-level gating vector to obtain the locally enhanced three-dimensional spatial features.
[0040] The multi-directional continuous scanning module is used to continuously scan the locally enhanced three-dimensional spatial features along the longitude, depth, and latitude directions, convert them into one-dimensional sequences, and then input them into the Mamba model with shared parameters for processing. Then, the processed one-dimensional sequences are restored to a three-dimensional spatial arrangement through the inverse scanning corresponding to each direction, so as to obtain a direction-aware three-dimensional spatial representation.
[0041] The seasonal frequency domain time modeling module is used to extract seasonal frequency domain features from the three-dimensional ocean salinity spatiotemporal data through Fourier transform and generate a global time representation through bidirectional recursive bigru processing.
[0042] The gated adaptive fusion module is used to concatenate the three-dimensional spatial representation with the global temporal representation, generate element-wise fusion weights using the Sigmoid activation function, and perform element-wise weighted fusion of the three-dimensional spatial representation and the global temporal representation using the fusion weights to obtain the three-dimensional ocean salinity field prediction result at future time.
[0043] The aforementioned ocean salinity field prediction method and system, which integrates multi-directional three-dimensional continuous scanning and frequency domain sensing, combines static six-neighbor aggregation with dynamic similar neighborhood aggregation and node-level gated adaptive fusion. This approach simultaneously considers the spatial continuity of large smooth areas of the ocean salinity field and the details of local abrupt boundary changes. Employing independent continuous scanning in longitude, depth, and latitude, along with dedicated inverse scanning to reconstruct the three-dimensional structure, and processing based on the shared parameter Mamba, it can cover the three-dimensional spatial correlation of horizontal ocean currents, vertical stratification, and oblique salinity fronts, improving the vertical stratification stability of the predicted field. By extracting Fourier frequency domain features and combining them with bidirectional recursive modeling, it can capture the long-term seasonal cycle evolution of ocean salinity. Through element-wise Sigmoid-gated adaptive fusion of spatial and temporal cycle features, it can autonomously allocate the weights of spatial and seasonal cycle information according to the water body evolution characteristics of different sea areas and depths, reducing the error in multi-depth salinity prediction and improving the prediction accuracy of the ocean salinity field. Attached Figure Description
[0044] Figure 1 This is an application environment diagram of a marine salinity field prediction method that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing in one embodiment.
[0045] Figure 2 This is a flowchart illustrating a method for predicting ocean salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing in one embodiment.
[0046] Figure 3 This is a schematic diagram illustrating the scanning of locally enhanced 3D spatial features in different directions in one embodiment;
[0047] Figure 4 This is a schematic diagram of the application architecture of a marine salinity field prediction method that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing in one embodiment.
[0048] Figure 5 This is a block diagram of a marine salinity field prediction system that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing in one embodiment.
[0049] Figure 6 This is a schematic diagram showing the visualization comparison of three-dimensional ocean salinity prediction results of different models at multiple depth layers in one embodiment;
[0050] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0051] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0052] The ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing provided in this application embodiment can be applied to, for example... Figure 1 The application environment shown. For example... Figure 1 As shown, the application environment includes computer equipment 110. Computer device 110 can acquire historical three-dimensional ocean salinity spatiotemporal data, perform static six-neighbor aggregation and dynamic similarity neighborhood aggregation on each spatial node in the three-dimensional ocean salinity spatiotemporal data, and adaptively select between the static aggregation results and dynamic aggregation results through node-level gating vectors to obtain locally enhanced three-dimensional spatial features. Computer device 110 can continuously scan the locally enhanced three-dimensional spatial features along the longitude, depth and latitude directions, convert them into one-dimensional sequences, and input them into a shared parameter Mamba model for processing. Then, through the inverse scan corresponding to each direction, the processed one-dimensional sequences are restored to a three-dimensional spatial arrangement to obtain a direction-aware three-dimensional spatial representation. Computer device 110 can extract seasonal frequency domain features from the three-dimensional ocean salinity spatiotemporal data through Fourier transform and generate a global time representation through bidirectional recursive bigru processing. Computer device 110 can concatenate the three-dimensional spatial representation and the global time representation, generate element-wise fusion weights using the Sigmoid activation function, and perform element-wise weighted fusion of the three-dimensional spatial representation and the global time representation through the fusion weights to obtain the three-dimensional ocean salinity field prediction result for future time. Among them, computer equipment 110 may include, but is not limited to, various personal computers, laptops, smartphones, robots, unmanned aerial vehicles, tablets, and other devices.
[0053] In one embodiment, such as Figure 2 As shown, a method for predicting ocean salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing is provided, including the following steps:
[0054] Step 202: Obtain three-dimensional ocean salinity spatiotemporal data at historical moments. Perform static six-neighbor aggregation and dynamic similar neighborhood aggregation on each spatial node in the three-dimensional ocean salinity spatiotemporal data. Adaptively select between the static aggregation result and the dynamic aggregation result through node-level gating vector to obtain the locally enhanced three-dimensional spatial features.
[0055] The computer equipment can first collect historical three-dimensional spatiotemporal data of ocean salinity. Specifically, the computer equipment can acquire a four-dimensional spatiotemporal data block salinity tensor from historical moments. Where T is the time step, D is the depth layer, and H and V are the number of grids for latitude and longitude, respectively. Computer equipment can slice four-dimensional historical three-dimensional ocean salinity spatiotemporal data to obtain a single-time-time three-dimensional grid tensor. To preserve the inherent spatial adjacency topology of the data, the computer equipment can use static six-neighbor aggregation to extract stable local spatial nearest neighbor information. After adaptive selection using node-level gating vectors, locally enhanced three-dimensional spatial features are obtained.
[0056] In one embodiment, the ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing may further include a static-dynamic local neighborhood aggregation process. Specifically, this process includes: collecting six neighboring nodes in the depth, latitude, and longitude dimensions for each spatial node in the three-dimensional ocean salinity spatiotemporal data; summing the feature values of the six neighboring nodes and averaging them to obtain the static neighborhood features of the current spatial node; calculating the salinity evolution similarity between the current spatial node and each neighboring node over all historical time steps; assigning dynamic weights to each neighboring node based on the salinity evolution similarity; and weighting and summing the feature values of each neighboring node at the current time based on the dynamic weights to obtain the dynamic neighborhood features of the current spatial node.
[0057] Three-dimensional ocean salinity data is distributed in a three-dimensional spatial grid; the local neighborhood of a spatial node consists of its adjacent nodes in the depth, latitude, and longitude directions. For any spatial node in the three-dimensional spatial grid, the computer device can first collect the six directly adjacent neighboring nodes in the depth, latitude, and longitude dimensions of the spatial node based on the geometric topology of the three-dimensional grid. These six neighboring nodes correspond to the upper water body, lower water body, north horizontal grid, south horizontal grid, east horizontal grid, and west horizontal grid of the target node, respectively; that is, let any grid node of the input feature X(u) be... Then its six-neighborhood is defined as If the coordinates of the neighboring nodes to be collected exceed the boundary of the 3D grid, the out-of-bounds neighboring nodes will be discarded and will not participate in subsequent feature calculations.
[0058] The computer equipment can sum the salinity feature values corresponding to all valid neighboring nodes after filtering, and then take the average value of the summation result. This average value is used as the static neighborhood feature corresponding to the current target spatial node. Static six-neighbor aggregation relies on the natural spatial geometric relationship of the grid to extract local features, and can stably preserve the basic spatial structure of the ocean salinity field, which has a continuous horizontal distribution and vertical stratification.
[0059] Next, the computer device can use the complete historical salinity time series of the current spatial node and the aforementioned six neighboring nodes as the basis for calculation. It can calculate the salinity time series evolution similarity between the current spatial node and each neighboring node. This similarity characterizes the degree of correlation between the synchronous changes in salinity of the two water bodies over time. Based on the calculated time series similarity values, the computer device can assign a unique dynamic weight to each neighboring node; the higher the time series similarity, the larger the assigned dynamic weight. Specifically, the computer device can multiply the dynamic weight corresponding to each neighboring node by the salinity feature value of the neighboring node at the current moment, and sum all the weighted results to finally obtain the dynamic neighborhood features corresponding to the current target spatial node. Dynamic similarity neighborhood aggregation can capture long-distance temporal synchronous correlations formed by the convergence of ocean currents and water masses, preserving the details of salinity abrupt change boundaries. ; ; Among them, a time window sequence is introduced in dynamic neighborhood aggregation. As a similarity metric, considering the evolutionary trend over a period of time, the time window is used to calculate the dynamic spatial neighborhood weight. The descriptor; s(u,v) is the similarity score between node u and its candidate neighbor node v; specifically for node u, and introduce a learnable parameter T>0 to control the distribution sharpness inside the dynamic aggregation, exp is the exponential function in mathematics.
[0060] In one embodiment, the ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing may further include a gating selection process. The specific process includes: concatenating the original features, static neighborhood features, and dynamic neighborhood features of the current spatial node, and mapping them to gating weights through a fully connected layer and a Sigmoid activation function; using the gating weights to perform weighted fusion of the static neighborhood features and dynamic neighborhood features to obtain the local enhanced features of the current spatial node; and restoring the local enhanced features of all spatial nodes into three-dimensional tensors according to the original depth, latitude, and longitude coordinates to obtain the locally enhanced three-dimensional spatial features.
[0061] After obtaining the static and dynamic neighborhood features of each spatial node, the computer device can use a node-level gating mechanism to adaptively select and fuse the two. The core idea of the gating mechanism is that for each spatial node in three-dimensional space, based on the node's own physical state and neighborhood characteristics, a gating weight between zero and one is independently learned to control the proportion of static and dynamic aggregated information in the final feature of that node.
[0062] Specifically, the computer device can concatenate the original salinity features of the current spatial node, the calculated static neighborhood features, and the dynamic neighborhood features in the channel dimension. The concatenated combined features are then input into a shallow fully connected layer to complete feature compression and nonlinear transformation. Next, the transformed features output by the fully connected layer are processed by a Sigmoid activation function to constrain the output values to the 0-1 range, ultimately obtaining a gate weight unique to that spatial node. The gate weight can be autonomously generated based on the smoothness or abrupt changes in the salinity field at the current grid location, and spatial nodes at different depths and in different sea areas within the 3D grid all possess independent gate weights.
[0063] Next, the computer device can use the generated gating weights to perform weighted operations on static and dynamic neighborhood features. The gating weight coefficient is used to match the static neighborhood features, and the difference between 1 and the gating weight is used as a complementary weight to match the dynamic neighborhood features. The two sets of weighted feature values are then added and fused to output the local enhanced features corresponding to the spatial node. When the salinity distribution in the grid region is gentle and there are no obvious fronts, the gating weights approach 1, which can emphasize preserving the continuous spatial structure brought by the static six-neighborhood. When the grid is located in a region where water masses converge and salinity changes abruptly, the gating weights approach 0, which can achieve adaptive selection and fusion of the two types of features. The computer device can traverse all spatial nodes in the depth, latitude, and longitude dimensions within the 3D grid tensor, performing gating fusion calculations point by point to obtain the local enhanced features of each node. Subsequently, according to the depth, latitude, and longitude coordinate arrangement rules of the original 3D grid, the local enhanced features of all nodes are recombined and restored into a 3D tensor with the same dimensions as the input. This tensor is the locally enhanced 3D spatial feature.
[0064] In other words, after calculating static and dynamic neighborhood features separately, the computer can adaptively weight and fuse the two types of features using node-level gating vectors. After traversing all spatial nodes within the 3D mesh, the 3D tensor is reconstructed according to the original depth, latitude, and longitude coordinates to obtain the locally enhanced 3D spatial features. Specifically, considering the need for adaptive switching between smooth and abrupt spatial regions, the computer can obtain the neighborhood feature Xneigh through a combination of static and dynamic features, and then use node-level gating to select the final output feature. ;in, Let X be the gating vector and X be the original input feature.
[0065] Step 204: The enhanced 3D spatial features are continuously scanned along the longitude, depth, and latitude directions, converted into 1D sequences, and then input into the Mamba model with shared parameters for processing. The processed 1D sequences are then restored to a 3D spatial arrangement through inverse scanning in each direction, resulting in a direction-aware 3D spatial representation.
[0066] The computer equipment can convert the obtained three-dimensional local enhancement features into one-dimensional sequences according to multiple continuous scanning strategies, and then feed them into the Mamba model with shared parameters for processing. Subsequently, the original three-dimensional spatial arrangement can be restored through corresponding inverse scanning.
[0067] In one embodiment, the ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing may further include a process of scanning three-dimensional spatial features. Specifically, this process includes: continuously scanning the locally enhanced three-dimensional spatial features along the longitude plane, employing a row-major serpentine traversal within each depth layer, alternately flipping the traversal starting point and traversal direction between adjacent depth layers, and stitching together the traversal results of all depth layers to obtain a one-dimensional longitude sequence; continuously scanning the locally enhanced three-dimensional spatial features along the depth column direction, dividing the three-dimensional spatial features into vertical water columns, alternately traversing depths within a single water column, reversing the traversal direction between adjacent water columns, and stitching together the traversal results of all water columns to obtain a one-dimensional depth sequence; and continuously scanning the locally enhanced three-dimensional spatial features along the latitude plane direction, employing a column-major serpentine traversal within each depth layer, synchronously reversing the traversal direction within the layer when switching depth layers, and stitching together the traversal results of all depth layers to obtain a one-dimensional latitude sequence.
[0068] Computer equipment can represent the 3D local enhancement features, obtained by aggregating static and dynamic local neighborhoods, as 3D regular mesh features. The depth, latitude, and longitude dimensions correspond to the vertical stratification, horizontal adjacency, and profile transition relationships of the ocean salinity field, respectively. To avoid spatial truncation caused by directly flattening the 3D salinity mesh according to the default memory order, multiple reversible continuous scan paths with coordinate-preserving relationships can be constructed. These paths map the true adjacency relationships in 3D space as closely as possible to adjacent or near-neighbor relationships in a 1D sequence. After modeling with the Mamba sequence, the original 3D coordinate positions are restored through corresponding inverse scans.
[0069] In this process, when continuously scanning the enhanced 3D spatial features along the longitude, depth, and latitude directions, a serpentine continuous scanning method is used to ensure that the next scanned point is adjacent to the previous point in real space. However, when starting the scan from a fixed starting point within a cube, the scanning can proceed horizontally, horizontally, or vertically. Figure 3 The scanning path shown can be used to scan in the same starting position (taking the upper left rear corner of the cube as an example). You can start by moving in the longitude direction, or in the latitude direction, or downwards along the depth direction. Longitude, depth, and latitude are just the directions of movement of the starting point. After starting in three different directions, a continuous serpentine scan in three-dimensional space is performed. Moving in the three directions will result in three different scanning sequences. These three sequences will contain different spatial position information. The spatial position information obtained after scanning can be input into the Mamba model for subsequent processing.
[0070] like Figure 3 As shown, the computer device can perform a row-major serpentine traversal operation layer by layer, taking independent depth layers as units, for locally enhanced 3D spatial feature tensors. Specifically, the computer device can use a row-major serpentine traversal within a single depth layer; after completing the traversal of all grids in the current depth layer, when switching to an adjacent depth layer, the traversal starting point and the traversal direction within the layer are flipped, so that the beginning and end positions of the scans of adjacent depth layers are adjacent to each other in 3D space, ensuring that the connection between the upper and lower water layers is not broken; the path data after the serpentine traversal of all depth layers are sequentially stitched together to obtain a complete one-dimensional longitude sequence. That is, in this embodiment, the computer device can use a row-major serpentine traversal within each depth layer, and also perform serpentine flipping between layers, so that the beginning and end positions of the sequence between adjacent layers are kept as continuous as possible; after completing the scan of the current depth layer, when entering an adjacent depth layer, the reverse starting point and the reverse traversal direction within the layer are selected according to the position of the end point of the scan of the previous layer, so that the beginning and end connection positions between adjacent depth layers are kept adjacent in 3D space.
[0071] Next, as Figure 3 As shown, the computer device can divide the locally enhanced three-dimensional spatial feature tensor into t (index number) independent vertical water columns according to fixed latitude and longitude coordinates. Each vertical water column contains all depth layer grids at that latitude and longitude position; HW represents the total number of grids on the horizontal plane composed of latitude and longitude; this value is equal to the total number of mutually independent vertical water columns; since there are a total of HV water columns, its traversal range is from 0 to HW-1.
[0072] For the interior of a single vertical water column, the depth is traversed alternately up and down. The depth traversal direction is reversed for adjacent vertical water columns to mitigate abrupt changes in sequence boundaries between columns. Alternating scans are performed within the spatial column to preserve the correlation between upper and lower water layers. The depth traversal results of all vertical water columns are then stitched together according to the horizontal grid arrangement to obtain a one-dimensional depth sequence. This scanning path is used to highlight the vertical stratification, stratification variations, and coupling relationships between upper and lower water masses in the ocean salinity field, avoiding insufficient modeling of depth dependence when scanning only the horizontal plane.
[0073] like Figure 3As shown, the computer equipment can employ a column-major serpentine traversal rule for each independent depth layer, using column-major serpentine traversal within a single layer. When completing the traversal of all grids in the current depth layer and switching to the next depth layer, the overall traversal direction within the layer is synchronously reversed to ensure that the oblique profile positions across depth layers remain adjacent in the sequence. By stitching together the column-major serpentine traversal data of all depth layers, a one-dimensional latitudinal sequence is obtained. This scanning path differs from horizontal plane scanning and single-point water column scanning, and can supplement the capture of oblique transitions across depth layers, frontal tilt, salinity jump extension, and continuous changes in water mass boundaries in the vertical profile, thus providing the Mamba model with a three-dimensional spatial dependency expression that complements horizontal and columnar paths.
[0074] In one embodiment, the ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing may further include an inverse scanning process. Specifically, this process includes: inputting the generated longitude, depth, and latitude one-dimensional sequences into a Mamba model sharing the same set of network parameters for sequence modeling to obtain enhanced longitude, depth, and latitude one-dimensional sequences; for each enhanced one-dimensional sequence, using an inverse scanning mapping rule corresponding to the directional scanning path, respectively restoring the longitude, depth, and latitude three-dimensional feature tensors with dimensions consistent with the input tensor; and concatenating and fusing the longitude, depth, and latitude three-dimensional feature tensors along the channel dimension to integrate the complementary three-dimensional spatial information of each path, thereby obtaining a direction-aware three-dimensional spatial representation.
[0075] After adaptive fusion and feature extraction, the computer device can utilize an inverse scanning mechanism to restore the original 3D spatial arrangement, forming a direction-aware 3D spatial representation. Specifically, the computer device can feed the scanned longitude, depth, and latitude 1D sequences into the Mamba model for temporal modeling. The three sequences share the same set of network weight parameters, enabling unified extraction of long-distance spatial associations under different scanning paths, while reducing the overall model parameter count and training overhead. The Mamba model uses a state-space selective mechanism to mine long-distance association information within the sequence, outputting spatially dependent enhanced longitude, depth, and latitude 1D sequences respectively. For each enhanced 1D sequence processed by Mamba, the computer device can use an inverse scanning mapping rule that corresponds one-to-one with the forward scanning path in that direction to restore the coordinates. The inverse scanning process completely records the mapping relationship between the 1D sequence elements and the 3D grid coordinates during the forward scan, accurately restoring the enhanced features in the 1D sequence to their original 3D spatial positions. After the computer equipment performs inverse scanning operations on the one-dimensional sequences of longitude, depth, and latitude respectively, it outputs longitude three-dimensional feature tensors, depth three-dimensional feature tensors, and latitude three-dimensional feature tensors with dimensions completely consistent with the local enhanced three-dimensional spatial feature tensors.
[0076] Next, the computer equipment can stitch together and integrate the longitude three-dimensional feature tensor, depth three-dimensional feature tensor, and latitude three-dimensional feature tensor obtained by reverse scanning along the channel dimension, and fuse the three complementary three-dimensional spatial correlation information of horizontal plane ocean current distribution, vertical stratified water mass coupling, and oblique salinity front transition into the same feature tensor, and finally obtain a direction-aware three-dimensional spatial representation with multi-directional spatial perception capability.
[0077] Step 206: Extract seasonal frequency domain features from the three-dimensional ocean salinity spatiotemporal data using Fourier transform, and generate a global time representation through bidirectional recursive bigru processing.
[0078] Computer equipment can mine the long-term seasonal cycle evolution of salinity based on the original three-dimensional ocean salinity spatiotemporal data, extract seasonal frequency domain features through Fourier transform, and integrate global temporal dependencies with the help of a bidirectional recursive structure, and finally generate a global time representation that can match the dimension of the orientation-aware three-dimensional spatial representation.
[0079] In one embodiment, the ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing may further include a process of seasonal encoding and bidirectional recursive modeling. Specifically, the process includes: extracting historical time series from three-dimensional ocean salinity spatiotemporal data and applying Fourier transform to the historical time series to convert the time-domain time series signal into frequency-domain harmonic components; selecting the main harmonic components corresponding to the seasonal cycle of the historical time series from the frequency-domain harmonic components and reconstructing a seasonal frequency-domain feature vector; performing bidirectional recursive bigru processing on the seasonal frequency-domain feature vector, obtaining a forward hidden state by traversing the seasonal frequency-domain feature vector from front to back through forward processing, and obtaining a backward hidden state by traversing the seasonal frequency-domain feature vector from back to front through reverse processing; concatenating and fusing the forward and backward hidden states to obtain a temporal fusion feature, and traversing all spatial nodes to restore the temporal fusion feature corresponding to each spatial node into a three-dimensional tensor to obtain a global time representation.
[0080] From three-dimensional ocean salinity spatiotemporal data, for each independent spatial node at depth, latitude, and longitude coordinates, the computer device can extract a one-dimensional historical salinity time series covering all historical time steps for that node. A discrete Fourier transform is performed on this time-domain time series to decompose the continuously changing salinity fluctuation signal into multiple sets of frequency-domain harmonic components with different frequencies, phases, and amplitudes, completely deconstructing the periodic fluctuations and random noise information contained within the time series. Next, the computer device can filter all the frequency-domain harmonic components obtained from the Fourier transform decomposition, retaining the low-frequency main harmonic components that match the interannual and seasonal periodic variations of ocean salinity, and removing high-frequency noise components that have no physical meaning and represent random disturbances. Based on the selected and retained seasonal harmonic components, feature reconstruction is performed to obtain a seasonal frequency-domain feature vector specific to the current spatial node. This vector explicitly encodes the amplitude and phase information of seasonal salinity fluctuations. In this embodiment, if... For the index of the predicted time, The period length, Using the harmonic frequency index, the two main harmonic components of the time series are extracted using Fourier transform, and the seasonal frequency domain feature representation can be generated as follows: .
[0081] The computer device can perform forward traversal processing, traversing the frequency domain feature vectors sequentially from earlier to more recent times, accumulating historical temporal evolution information, and outputting the forward hidden state. Simultaneously, it performs backward traversal processing, traversing the same set of frequency domain feature vectors sequentially from more recent to earlier times, supplementing periodic reverse constraint information, and outputting the backward hidden state. The forward and backward traversal paths cooperate to fully capture the global periodic evolution law of the temporal series. Next, the computer device can splice and fuse the forward and backward hidden states calculated for the same node along the channel dimension to generate the temporal fusion feature corresponding to that spatial node. It traverses all depth, latitude, and longitude spatial nodes within the 3D mesh, and recombines the temporal fusion feature corresponding to each node according to the original 3D mesh coordinate arrangement rules, restoring it into a 3D tensor with the same size as the direction-aware 3D spatial representation. This 3D tensor is the global time representation.
[0082] Step 208: The three-dimensional spatial representation and the global time representation are concatenated. The Sigmoid activation function is used to generate element-wise fusion weights. The three-dimensional spatial representation and the global time representation are then fused element-wise using the fusion weights to obtain the three-dimensional ocean salinity field prediction results for future time moments.
[0083] In the three-dimensional spatial representation of X, which respectively obtains orientation awareness. G and global time representation X T The computer device can then use a gated adaptive fusion mechanism to integrate the two, generating an independent fusion weight for each spatial location in three-dimensional space. G represents the fusion gating weight, which controls the relative dependence of the location on spatial and temporal information in the final prediction.
[0084] In one embodiment, the ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing may further include a process of generating gated adaptive fusion weights. The specific process includes: concatenating the three-dimensional spatial representation and the global temporal representation along the channel dimension to obtain a joint feature tensor that simultaneously contains spatial and temporal information at each spatial location; performing pointwise convolution on the joint feature tensor and compressing the number of channels to obtain the original weight value for each spatial location; and applying the Sigmoid activation function element-wise to the original weight value to map the original weight value to a numerical range of 0 to 1 to obtain the element-wise fusion weights.
[0085] Computer equipment can stitch together a three-dimensional spatial representation with fully aligned dimensions of size, depth, latitude, and longitude and a global temporal representation along the feature channel dimension. After stitching, a joint feature tensor is obtained. Each spatial location corresponding to depth, latitude, and longitude in this tensor simultaneously carries the three-dimensional spatial topological information and seasonal periodic temporal information of the water body grid, completely preserving all the original information of the two features.
[0086] Computer equipment can perform 3D pointwise convolution operations on the concatenated joint feature tensor. This convolution only performs feature interaction and channel compression in the channel dimension, without changing the depth, latitude, and longitude spatial dimensions of the 3D mesh. The convolution outputs a single-channel feature map, and the value corresponding to each spatial coordinate in the feature map is the original weight value for that mesh location. The computer equipment can apply a Sigmoid activation function to the original weight values output by pointwise convolution element-wise, mapping the original weight values without value boundaries to a standard range of 0 to 1, ultimately generating element-wise fused weights that correspond one-to-one with the spatial coordinates of the 3D mesh. This weight is spatially independent. Grid nodes at different depths and in different sea areas within the three-dimensional salinity field can generate different weight coefficients, which can autonomously represent the degree of dependence of the current location on spatial information and seasonal time series information.
[0087] In one embodiment, the ocean salinity field prediction method that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing may further include a weighted fusion process for final prediction. The specific process includes: for each channel at each spatial location, multiplying the feature value represented by the three-dimensional space by the fusion weight and performing weighted summation to obtain the fused spatiotemporal features; inputting the fused spatiotemporal features into the projection layer for feature mapping to obtain the three-dimensional ocean salinity field prediction result for future time.
[0088] The computer equipment can use the generated weights to adaptively weight and fuse spatial and temporal features, and finally output the prediction result of the three-dimensional ocean salinity field at the next moment.
[0089] Specifically, the computer equipment can perform weighted calculations element-wise for each spatial location corresponding to depth, latitude, and longitude within the 3D mesh, as well as for each feature channel within the feature tensor. The resulting element-wise fusion weights are multiplied by the corresponding feature values of the 3D spatial representation; simultaneously, the complementary coefficients of the fusion weights are multiplied by the feature values of the global temporal representation. The sum of the two sets of weighted calculation results yields the fused spatiotemporal features for that spatial location and corresponding channel. Through independent element-wise weighting, different regions of the 3D mesh can autonomously balance the proportion of spatial topological information and seasonal temporal periodic information. Then, the computer equipment can input the complete spatiotemporal feature tensor obtained after fusing all spatial locations and all channels into the projection layer for feature dimension mapping. The projection layer performs dimensional compression and nonlinear transformation on the multi-channel fused spatiotemporal features, mapping the high-dimensional features into a single-channel three-dimensional tensor representing the seawater salinity value. The grid size of this tensor is consistent with the input three-dimensional ocean salinity spatiotemporal data. The value corresponding to each coordinate position in the tensor is the seawater salinity prediction value of the corresponding depth, latitude and longitude grid at future time, thus obtaining the prediction result of the three-dimensional ocean salinity field at future time.
[0090] This application provides a method for predicting ocean salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing. It first preserves local physical nearest neighbor relationships through static six-neighbor aggregation and dynamic similar neighborhood aggregation. Then, it employs multi-directional three-dimensional continuous scanning at the horizontal plane, depth column, and vertical cross-section, and recovers the three-dimensional coordinates through inverse scanning. This ensures that the long-distance dependencies captured by the Mamba model still correspond to the real ocean spatial paths, thereby improving the spatial continuity and vertical stability of salinity field prediction. The method extracts stable spatial nearest neighbor information from a regular grid through static neighborhood aggregation, while capturing spatial correlations with similar temporal evolution trends through dynamic similar neighborhood aggregation. A gating mechanism is then used to adaptively manage these correlations between the two methods. The appropriate approach should be chosen to maintain continuity in spatially smooth regions and preserve local differences in regions of abrupt salinity changes, providing more physically consistent 3D input features for subsequent multi-directional continuous scanning. The seasonal periodic signal should be encoded into a frequency domain representation of the time branch, and global time dependence should be extracted through a bidirectional recursive structure. Then, an element-wise Sigmoid gating mechanism should be used to adaptively fuse the multi-directional spatial representation with the seasonal temporal representation. This allows different depth layers and sea area locations to dynamically select between those relying more on spatially continuous information or seasonal temporal information based on data status, thereby improving phase bias under long prediction step sizes and enhancing the accuracy, stability, and physical consistency of 3D salinity prediction results.
[0091] In one embodiment, a method for predicting ocean salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing can be applied to applications such as... Figure 4The illustrated 3D ocean salinity spatiotemporal collaborative prediction system architecture is primarily applied to scenarios where the 3D ocean salinity field at future times is predicted based on historical sequences. Using the 3D salinity tensor at a historical time as input, local spatial representation is first completed using both static and dynamic neighborhood information. Then, the locally enhanced 3D mesh is continuously scanned along multiple directions conforming to spatial topology as a sequence, and input into a Mamba-based sequence modeling unit, thereby extracting long-distance spatial dependencies while preserving 3D physical continuity. Simultaneously, seasonal periodic information from the historical time series is encoded as frequency domain features, and a global temporal representation is obtained through a bidirectional recursive structure. A sigmoid-based gated fusion method is employed to adaptively combine the spatial and temporal representations according to element-wise weights, yielding the predicted 3D salinity field at future times.
[0092] like Figure 4 As shown, the input three-dimensional ocean salinity spatiotemporal data first enters the spatial processing branch, which includes a static-dynamic local neighborhood aggregation module and a multi-directional continuous scanning Mamba module to form direction-aware three-dimensional spatial features. At the same time, the temporal processing branch performs seasonal frequency domain encoding on the historical sequence and obtains temporal features containing long-term periodic information through a bidirectional recursive module. The outputs of the two branches then enter the Sigmoid-based gated fusion module, which performs element-wise fusion according to the response intensity of different locations and channels, and finally outputs the predicted three-dimensional ocean salinity field for the next moment. Figure 4 The architecture shown is not simply a flattening of the 3D salinity grid into a regular sequence, nor is it a direct transfer of 2D selective scanning to ocean data prediction. Instead, it is specifically designed around the inherent horizontal continuity, vertical stratification, and seasonal cyclical evolution characteristics of the 3D ocean salinity field. The data structures and processing sequences are interdependent, jointly addressing the spatial fragmentation caused by ordinary flattening, the inability of 2D scanning to represent vertical stratification, and seasonal phase bias in long-term predictions. This improves the spatial continuity, vertical stability, and long-term prediction accuracy of 3D salinity forecasts.
[0093] In this embodiment, continuous scanning is performed along horizontal planes, depth columns, and vertical sections. Intra-layer serpentine traversal, inter-layer alternating flipping, and reverse scanning restoration are employed to reduce spatial fragmentation caused by ordinary flattening. A static-dynamic local neighborhood aggregation module with a large-scale graph structure is not required. This includes static six-neighbor aggregation based on regular grid geometry and dynamic neighborhood aggregation based on temporal evolution trend similarity. A bidirectional recursive block with a seasonal frequency domain feature encoding network and a gated fusion mechanism for adaptively integrating multi-directional continuous scanning spatial features with global temporal features are used. This overcomes the physical truncation caused by linear flattening in existing sequence models for processing 3D spatial data, effectively preserving the physical continuity of the ocean data space. It achieves adaptive extraction of local spatial heterogeneity and accurate capture of long-term seasonal evolution patterns, significantly improving the accuracy of 3D ocean salinity spatiotemporal prediction, vertical structural stability, and physical consistency of the ocean salinity field.
[0094] It should be understood that although the steps in the flowchart above are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart above may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0095] In one embodiment, such as Figure 5 As shown, a marine salinity field prediction system integrating multi-directional three-dimensional continuous scanning and frequency domain sensing is provided, including: a data processing and neighborhood aggregation module 510, a multi-directional continuous scanning module 520, a seasonal frequency domain time modeling module 530, and a gated adaptive fusion module 540, wherein:
[0096] The data processing and neighborhood aggregation module 510 is used to acquire historical three-dimensional ocean salinity spatiotemporal data, perform static six-neighbor aggregation and dynamic similar neighborhood aggregation on each spatial node in the three-dimensional ocean salinity spatiotemporal data, and adaptively select between the static aggregation result and the dynamic aggregation result through the node-level gating vector to obtain the locally enhanced three-dimensional spatial features.
[0097] The multi-directional continuous scanning module 520 is used to continuously scan the locally enhanced three-dimensional spatial features along the longitude, depth and latitude directions, convert them into one-dimensional sequences, and then input them into the Mamba model with shared parameters for processing. Then, the processed one-dimensional sequences are restored to a three-dimensional spatial arrangement through the inverse scanning corresponding to each direction, so as to obtain a direction-aware three-dimensional spatial representation.
[0098] The seasonal frequency domain time modeling module 530 is used to extract seasonal frequency domain features from three-dimensional ocean salinity spatiotemporal data through Fourier transform and generate a global time representation through bidirectional recursive bigru processing.
[0099] The gated adaptive fusion module 540 is used to concatenate the three-dimensional spatial representation with the global time representation, generate element-wise fusion weights using the Sigmoid activation function, and perform element-wise weighted fusion of the three-dimensional spatial representation and the global time representation through the fusion weights to obtain the three-dimensional ocean salinity field prediction result at future time.
[0100] In one embodiment, the data processing and neighborhood aggregation module 510 is further configured to collect six neighboring nodes of each spatial node in the three-dimensional ocean salinity spatiotemporal data in the dimensions of depth, latitude, and longitude, sum and average the feature values of the six neighboring nodes to obtain the static neighborhood features of the current spatial node; calculate the salinity evolution similarity between the current spatial node and each neighboring node over all historical time steps, assign dynamic weights to each neighboring node based on the salinity evolution similarity, and perform a weighted summation of the feature values of each neighboring node at the current time based on the dynamic weights to obtain the dynamic neighborhood features of the current spatial node.
[0101] In one embodiment, the data processing and neighborhood aggregation module 510 is further configured to concatenate the original features, static neighborhood features, and dynamic neighborhood features of the current spatial node, and then map them to gate weights through a fully connected layer and a Sigmoid activation function; use the gate weights to perform weighted fusion of the static neighborhood features and dynamic neighborhood features to obtain the local enhanced features of the current spatial node; and restore the local enhanced features of all spatial nodes to three-dimensional tensors according to the original depth, latitude, and longitude coordinates to obtain the locally enhanced three-dimensional spatial features.
[0102] In one embodiment, the multi-directional continuous scanning module 520 is further configured to continuously scan the locally enhanced three-dimensional spatial features along the longitude plane direction, using a row-major serpentine traversal within each depth layer, alternately flipping the traversal starting point and traversal direction of adjacent depth layers, and splicing the traversal results of all depth layers to obtain a one-dimensional longitude sequence; continuously scan the locally enhanced three-dimensional spatial features along the depth column direction, dividing the three-dimensional spatial features into vertical water columns, alternately traversing the depth within a single water column, reversing the traversal direction of adjacent water columns, and splicing the traversal results of all water columns to obtain a one-dimensional depth sequence; and continuously scan the locally enhanced three-dimensional spatial features along the latitude sectional direction, using a column-major serpentine traversal within each depth layer, synchronously reversing the traversal direction within the layer when switching depth layers, and splicing the traversal results of all depth layers to obtain a one-dimensional latitude sequence.
[0103] In one embodiment, the multi-directional continuous scanning module 520 is further configured to input the generated longitude one-dimensional sequence, depth one-dimensional sequence, and latitude one-dimensional sequence into a Mamba model sharing the same set of network parameters for sequence modeling, thereby obtaining enhanced longitude one-dimensional sequence, depth one-dimensional sequence, and latitude one-dimensional sequence; for each enhanced one-dimensional sequence, the inverse scanning mapping rule corresponding to the direction scanning path is adopted to restore the longitude three-dimensional feature tensor, depth three-dimensional feature tensor, and latitude three-dimensional feature tensor with the same size as the input tensor; the longitude three-dimensional feature tensor, depth three-dimensional feature tensor, and latitude three-dimensional feature tensor are spliced and fused in the channel dimension to integrate the complementary three-dimensional spatial information of each path, thereby obtaining a direction-aware three-dimensional spatial representation.
[0104] In one embodiment, the seasonal frequency domain time modeling module 530 is further used to extract historical time series from three-dimensional ocean salinity spatiotemporal data, and apply Fourier transform to the historical time series to convert the time-domain time series signal into frequency-domain harmonic components; based on Fourier basis functions, the main harmonic components corresponding to the seasonal cycle of the historical time series are selected from the frequency-domain harmonic components to reconstruct the seasonal frequency domain feature vector; the seasonal frequency domain feature vector is subjected to bidirectional recursive bigru processing, and the forward hidden state is obtained by traversing the seasonal frequency domain feature vector from front to back through forward processing, and the backward hidden state is obtained by traversing the seasonal frequency domain feature vector from back to front; the forward hidden state and the backward hidden state are spliced and fused to obtain the temporal fusion feature, and all spatial nodes are traversed to restore the temporal fusion feature corresponding to each spatial node to a three-dimensional tensor to obtain the global time representation.
[0105] In one embodiment, the gated adaptive fusion module 540 is further configured to concatenate the three-dimensional spatial representation and the global temporal representation along the channel dimension to obtain a joint feature tensor that simultaneously contains spatial and temporal information at each spatial location; perform pointwise convolution on the joint feature tensor and compress the number of channels to obtain the original weight value at each spatial location; and apply the Sigmoid activation function to the original weight value element by element to map the original weight value to a numerical range of 0 to 1 to obtain the element-wise fused weight.
[0106] In one embodiment, the gated adaptive fusion module 540 is further configured to multiply the fusion weight by the three-dimensional spatial representation feature value for each channel at each spatial location, and perform weighted summation to obtain the fused spatiotemporal features; input the fused spatiotemporal features to the projection layer for feature mapping to obtain the three-dimensional ocean salinity field prediction result at future time.
[0107] In one embodiment, a marine salinity field prediction system integrating multi-directional three-dimensional continuous scanning and frequency domain sensing is provided. The vertical stratification, horizontal continuity and seasonal evolution characteristics of the three-dimensional marine salinity field are completed collaboratively by four core components: static-dynamic local neighborhood aggregation, multi-directional three-dimensional continuous scanning Mamba sequence modeling, bidirectional recursive modeling of seasonal coding and gated adaptive fusion.
[0108] Specifically, 3D ocean data first enters a static-dynamic local neighborhood aggregation module. This module extracts stable spatial nearest neighbor information based on the six-neighbor relationship of a regular grid, and forms dynamic neighborhood representations based on the similarity of adjacent nodes in their temporal evolution trends, thus adaptively selecting between spatially smooth and abrupt regions. Subsequently, the locally enhanced features enter a multi-directional continuous scan sequence modeling module. Through continuous scans in the longitude, depth, and vertical directions, the 3D grid is converted into a one-dimensional sequence for Mamba modeling, and then restored to a 3D arrangement through inverse scanning, resulting in a direction-aware spatial representation. The time series branch utilizes seasonal frequency domain coding and bidirectional recursive bigru processing to supplement the long-term temporal dependencies that are difficult to obtain from the spatial model alone. Finally, the spatial and temporal features are collaboratively weighted by a gating module to output high-fidelity salinity prediction results.
[0109] In one embodiment, the performance of the ocean salinity field prediction method integrating multi-directional 3D continuous scanning and frequency domain sensing provided in this application is evaluated on the reanalysis dataset GLOBAL_MULTIYEAR_PHY_001_030. The selected space contains a 67×67 grid with a total of 28 depth layers. It is developed and trained on a 4090 GPU computing device. MSE is used to measure the difference between the 3D salinity predicted by the model and the true value. In this embodiment, it can be divided into 7 depth groups for evaluation. On the dataset, the performance of the method in this application is compared with methods such as 3DCNN, GCN, ConvLSTM, Transformer, and STG-Mamba. The performance comparison results are shown in Table 1. Compared with the comparison models, the error indicators of the method in this application are all reduced.
[0110] Table 1 Overview of Performance Comparison Results
[0111]
[0112] Visualization comparison of 3D ocean salinity prediction results from different models at multiple depth layers, as shown below. Figure 6 As shown, compared with methods such as STG-Mamba, GCN, 3DCNN, Transformer and ConvLSTM, the prediction results of the model in this application are more consistent with the real salinity field in terms of spatial distribution, boundary transition and vertical structure. It can effectively reduce stripe artifacts, local fragmentation and deep prediction distortion, and demonstrate better spatial continuity and physical consistency.
[0113] Ablation experiments were conducted on the marine salinity field prediction method and system integrating multi-directional three-dimensional continuous scanning and frequency domain sensing proposed in this application. The experimental results are shown in Table 2.
[0114] Table 2 Ablation Experiment Results
[0115]
[0116] As shown in Table 2, after removing multi-directional 3D continuous scanning, the model struggles to maintain the continuous relationship between depth layers and cross-sections, resulting in a significant increase in error. Removing the seasonal frequency domain temporal branch increases errors during seasonal transitions and with long prediction step sizes. Removing gated fusion allows for simple superposition of spatial and temporal features, without adaptive weight allocation based on different depth layers and sea areas. The method presented in this application demonstrates optimal performance across all metrics, indicating synergistic gains among modules, rather than a simple stacking of known modules.
[0117] In the experiment, the experimental data covered 40°N-45.5°N and 170°E-175.55°E, with a depth range of 0.49-266.04 m, comprising 28 discrete vertical layers. The time range was from September 30, 2017 to June 30, 2021, corresponding to a 67×67 grid size, totaling 1396 time steps of fully quality-controlled daily salinity data. The experiment showed that in multi-depth salinity prediction, the system reduced the mean absolute error by approximately 12% to 28% compared to STG-Mamba, significantly suppressing unrealistic stripe artifacts and spatial fragmentation in deep-sea areas, exhibiting extremely strong vertical stability and physical consistency. Furthermore, this embodiment does not employ general multi-feature fusion prediction for typical multi-element observation data, nor is it feature exchange or two-dimensional selective scanning in two-dimensional BEV cross-modal target detection; instead, it models the physical continuity of a three-dimensional ocean salinity grid. In the prediction process, local physical adjacency preservation, 3D continuous spatial scanning, and seasonal cycle time perception are structurally linked and mutually constrained, enabling each module to jointly serve to improve the spatial continuity, vertical stability, and long-term prediction accuracy of the 3D salinity field, thereby achieving a synergistic optimization effect that is not simply superimposed. The core lies in using local neighborhood aggregation to maintain the nearest neighbor structure, avoiding spatial truncation caused by flattening through multi-directional 3D continuous scanning. Static-dynamic local neighborhood aggregation is not an independent feature extraction step, but rather provides 3D input with maintained local physical adjacency relationships for subsequent continuous scanning. Multi-directional continuous scanning Mamba is not a replacement of ordinary sequence models, but rather expands along horizontal, depth, and vertical topological paths based on the above local enhancement results, so that the long-distance dependencies obtained by Mamba still correspond to the real ocean spatial paths. Seasonal frequency domain coding and bidirectional recursive modules do not simply add temporal features, but rather supplement the long-term seasonal cycles that are difficult to express in the spatial scanning branch. The three-dimensional orientation perception features output by the spatial branch and the seasonal time features output by the temporal branch are fused element-wise using Sigmoid at the same three-dimensional coordinate position and channel dimension. This allows different depth layers and different sea area locations to adaptively select whether to rely more on spatial continuous information or seasonal periodic information based on their own state.
[0118] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for predicting ocean salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing. The display screen can be an LCD screen or an e-ink display screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0119] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0120] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of a method for predicting ocean salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing.
[0121] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program being executed by a processor to implement the steps of a method for predicting ocean salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing.
[0122] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0123] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0124] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for predicting ocean salinity fields that integrates multi-directional three-dimensional continuous scanning and frequency domain sensing, characterized in that, The method includes: Three-dimensional ocean salinity spatiotemporal data at historical moments are acquired. Static six-neighbor aggregation and dynamic similar neighborhood aggregation are performed on each spatial node in the three-dimensional ocean salinity spatiotemporal data. Adaptive selection is made between the static aggregation result and the dynamic aggregation result through node-level gating vector to obtain the locally enhanced three-dimensional spatial features. The enhanced three-dimensional spatial features are continuously scanned along the longitude, depth, and latitude directions, converted into one-dimensional sequences, and then input into the Mamba model with shared parameters for processing. The processed one-dimensional sequences are then restored to a three-dimensional spatial arrangement through inverse scanning in each direction, resulting in a direction-aware three-dimensional spatial representation. Seasonal frequency domain features were extracted from the three-dimensional ocean salinity spatiotemporal data using Fourier transform, and a global time representation was generated through bidirectional recursive bigru processing. The three-dimensional spatial representation is concatenated with the global temporal representation, and element-wise fusion weights are generated using the Sigmoid activation function. The three-dimensional spatial representation and the global temporal representation are then fused element-wise using the fusion weights to obtain the three-dimensional ocean salinity field prediction result for future time moments.
2. The ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing according to claim 1, characterized in that, For each spatial node in the three-dimensional ocean salinity spatiotemporal data, static six-neighbor aggregation and dynamic similarity neighborhood aggregation are performed, including: Collect six neighboring nodes of each spatial node in the three-dimensional ocean salinity spatiotemporal data in the dimensions of depth, latitude, and longitude. Sum the feature values of the six neighboring nodes and take the average to obtain the static neighborhood features of the current spatial node. Calculate the similarity of salinity evolution between the current spatial node and each of the neighboring nodes over all historical time steps. Assign dynamic weights to each of the neighboring nodes based on the salinity evolution similarity. Then, perform a weighted summation of the feature values of each of the neighboring nodes at the current time based on the dynamic weights to obtain the dynamic neighborhood features of the current spatial node.
3. The ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing according to claim 2, characterized in that, By adaptively selecting between static and dynamic aggregation results using node-level gating vectors, locally enhanced 3D spatial features are obtained, including: The original features of the current spatial node, the static neighborhood features, and the dynamic neighborhood features are concatenated and then mapped to gate weights through a fully connected layer and a Sigmoid activation function. The static neighborhood features and the dynamic neighborhood are weighted and fused using the gating weights to obtain the local enhanced features of the current spatial node; The local enhanced features of all spatial nodes are restored into three-dimensional tensors according to the original depth, latitude, and longitude coordinates to obtain the locally enhanced three-dimensional spatial features.
4. The ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing according to claim 1, characterized in that, The locally enhanced three-dimensional spatial features are continuously scanned along the longitude, depth, and latitude directions, including: The locally enhanced three-dimensional spatial features are continuously scanned along the longitude plane. A row-major serpentine traversal is used in each depth layer. The traversal starting point and traversal direction are alternately flipped in adjacent depth layers. The traversal results of all depth layers are spliced together to obtain a one-dimensional longitude sequence. The enhanced three-dimensional spatial features are continuously scanned along the depth column, and the three-dimensional spatial features are divided into vertical water columns. The depth is traversed alternately within a single water column, and the traversal direction of adjacent water columns is reversed. All water column traversal results are spliced together to obtain a one-dimensional depth sequence. The locally enhanced 3D spatial features are continuously scanned along the latitudinal cross-section. Within each depth layer, a column-major serpentine traversal is used. When switching depth layers, the traversal direction within the layer is synchronously reversed. The traversal results of all depth layers are spliced together to obtain a 1D latitudinal sequence.
5. The ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing according to claim 4, characterized in that, After being converted into various one-dimensional sequences, the data are input into a shared-parameter Mamba model for processing. Then, through inverse scanning in each direction, the processed one-dimensional sequences are restored to a three-dimensional spatial arrangement, resulting in a direction-aware three-dimensional spatial representation, including: The generated longitude one-dimensional sequence, depth one-dimensional sequence, and latitude one-dimensional sequence are respectively input into the Mamba model that shares the same set of network parameters for sequence modeling to obtain the enhanced longitude one-dimensional sequence, depth one-dimensional sequence, and latitude one-dimensional sequence. For each enhanced one-dimensional sequence, the inverse scan mapping rule corresponding to the directional scan path is used to restore the longitude three-dimensional feature tensor, depth three-dimensional feature tensor, and latitude three-dimensional feature tensor with the same size as the input tensor. The longitude, depth, and latitude 3D feature tensors are spliced and fused along the channel dimension to integrate complementary 3D spatial information from each path, resulting in a direction-aware 3D spatial representation.
6. The ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing according to claim 1, characterized in that, Seasonal frequency domain features were extracted from the three-dimensional ocean salinity spatiotemporal data using Fourier transform, and a global time representation was generated through bidirectional recursive Bigru processing, including: Historical time series are extracted from the three-dimensional ocean salinity spatiotemporal data, and Fourier transform is applied to the historical time series to convert the time-domain time series signal into frequency-domain harmonic components. Based on Fourier basis functions, the main harmonic components corresponding to the seasonal cycles of the historical time series are screened from the frequency domain harmonic components, and the seasonal frequency domain feature vector is reconstructed. The seasonal frequency domain feature vector is subjected to bidirectional recursive bigru processing. The forward hidden state is obtained by traversing the seasonal frequency domain feature vector from front to back through forward processing, and the backward hidden state is obtained by traversing the seasonal frequency domain feature vector from back to front in reverse. The forward hidden state and the backward hidden state are concatenated and fused to obtain the temporal fusion feature. Then, all spatial nodes are traversed, and the temporal fusion feature corresponding to each spatial node is restored to a three-dimensional tensor to obtain the global temporal representation.
7. The ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing according to claim 1, characterized in that, The three-dimensional spatial representation is concatenated with the global temporal representation, and element-wise fusion weights are generated using the Sigmoid activation function, including: The three-dimensional spatial representation and the global temporal representation are concatenated along the channel dimension to obtain a joint feature tensor that contains both spatial and temporal information at each spatial location. Perform pointwise convolution on the joint feature tensor and compress the number of channels to obtain the original weight value for each spatial location; The Sigmoid activation function is applied element by element to the original weight values to map the original weight values to a numerical range of 0 to 1, thus obtaining the element-wise fused weights.
8. The ocean salinity field prediction method integrating multi-directional three-dimensional continuous scanning and frequency domain sensing according to claim 7, characterized in that, The three-dimensional spatial representation and the global temporal representation are fused element-wise using the fusion weights to obtain the predicted three-dimensional ocean salinity field for future times, including: For each channel at each spatial location, the fusion weight is multiplied by the feature value of the three-dimensional spatial representation, and then a weighted sum is performed to obtain the fused spatiotemporal features; The fused spatiotemporal features are input into the projection layer for feature mapping to obtain the three-dimensional ocean salinity field prediction results for future times.
9. A marine salinity field prediction system integrating multi-directional three-dimensional continuous scanning and frequency domain sensing, characterized in that, The system includes: The data processing and neighborhood aggregation module is used to acquire three-dimensional ocean salinity spatiotemporal data at historical moments, perform static six-neighbor aggregation and dynamic similar neighborhood aggregation on each spatial node in the three-dimensional ocean salinity spatiotemporal data, and adaptively select between the static aggregation result and the dynamic aggregation result through node-level gating vector to obtain the locally enhanced three-dimensional spatial features. The multi-directional continuous scanning module is used to continuously scan the locally enhanced three-dimensional spatial features along the longitude, depth, and latitude directions, convert them into one-dimensional sequences, and then input them into the Mamba model with shared parameters for processing. Then, the processed one-dimensional sequences are restored to a three-dimensional spatial arrangement through the inverse scanning corresponding to each direction, so as to obtain a direction-aware three-dimensional spatial representation. The seasonal frequency domain time modeling module is used to extract seasonal frequency domain features from the three-dimensional ocean salinity spatiotemporal data through Fourier transform and generate a global time representation through bidirectional recursive bigru processing. The gated adaptive fusion module is used to concatenate the three-dimensional spatial representation with the global temporal representation, generate element-wise fusion weights using the Sigmoid activation function, and perform element-wise weighted fusion of the three-dimensional spatial representation and the global temporal representation using the fusion weights to obtain the three-dimensional ocean salinity field prediction result at future time.
