Next Article in Journal
Dual-Wavelength Metalens Design for Compact LWIR and MWIR Imaging Systems
Previous Article in Journal
A Proposal of Secure and Automated Over-the-Air Firmware Update Mechanism for IoT Devices Using Continuous Integration and Continuous Delivery
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Depth-Aware HGNN Method and Its Application in Anomaly Detection and Correction of Sparse Ocean Sensor Data

1
National Deep Sea Center, Qingdao 266237, China
2
College of Ocean Science and Engineering, Shandong University of Science and Technology, Qingdao 266590, China
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(5), 1537; https://doi.org/10.3390/s26051537
Submission received: 19 November 2025 / Revised: 12 December 2025 / Accepted: 17 December 2025 / Published: 28 February 2026
(This article belongs to the Section Intelligent Sensors)

Abstract

In the field of ocean observation, we often face the challenge of the contradiction between the vast ocean environment and limited ocean sensor observations, resulting in significant sparsity in the acquired ocean sensor data. This sparse ocean sensor data typically exhibits characteristics such as discrete spatial distribution, discontinuous observation time, and vertical stratification with water depth variations. Current methods primarily employ rule-based quality control, time series modeling, or traditional graph neural networks for processing. This paper addresses the characteristics of sparse ocean sensor data, building upon these methods by further utilizing topological correlation and hierarchical feature modeling on a topological basis. It proposes a depth-aware heterogeneous spatiotemporal graph neural network (DAHSGNN) to achieve efficient anomaly detection and data correction for this type of data. DAHSGNN integrates discrete observation data along the depth axis using a local graph construction method. It employs hierarchical feature engineering to characterize the vertical stratification of the ocean. A Gaussian Hidden Markov Model is used to segment the water layers, and intra- and inter-layer trend features are extracted using a water layer probability-guided Transformer encoder. Then, a bidirectional long short-term memory deep sequence encoder captures the local dynamic context, thereby achieving fine-grained modeling of the ocean’s vertical stratification features. Finally, a heterogeneous graph autoencoder is used to reconstruct the site-level data distribution. Experiments were conducted using multiple environmental variables from the International Seabed Authority (ISA) DeepData database. Results show that DAHSGNN exhibits good cross-variable generalization ability, achieves higher reconstruction accuracy than baseline methods, and significantly improves anomaly detection performance.

1. Introduction

Approximately 71% of the Earth’s surface is covered by seawater, with about two-thirds of the ocean area located outside national jurisdiction. High-precision monitoring of this vast and remote ocean environment is one of the key challenges for global ocean scientific research and resource management. In some remote sea areas, the deployment density of Argo floats is insufficient, and monitoring of the deep-sea environment relies primarily on shipborne observations. Ocean sensor data is acquired through multi-parameter in situ sensors mounted on shipborne profilers, encompassing core raw measurement data such as depth and environmental parameters, as well as auxiliary information such as latitude, longitude, and time [1]. The DeepData database, established by the International Seabed Authority (ISA), is one of the most important deep-sea environmental databases globally. Its core data originates from relevant environmental and resource data obtained through shipborne observations of the International Seabed Area (The Area) [2], providing a crucial data foundation for global deep-sea environmental baseline assessment and continuous monitoring. Shipborne observation data is used to calibrate and cross-validate satellite inversion, the Argo profile and AUV/ROV observation data, thereby improving the accuracy of data assimilation and model-driven reconstruction. Shipborne surveys can efficiently provide cross-regional and cross-seasonal environmental samples, providing real-world data for deep-sea ecological baseline assessment, mining environmental impact assessment, and post-event monitoring and early warning. However, compared with nearshore observation stations or remote sensing observations, shipborne surveys are limited by a wide monitoring range and limited ship voyages, resulting in a lower spatial coverage density and the inability to conduct continuous observations at the same location. Sensor deployment density may be as low as one point source sample per 100 square kilometers, resulting in data with characteristics such as limited data volume, discrete spatial distribution, discontinuous time series, and high vertical sampling density [3,4]. Due to the inherent sparsity and discontinuity of data acquired from shipborne observations, data deviations caused by environmental anomalies or sensor malfunctions are difficult to effectively identify and correct. This limits the reliability and consistency verification of deep-sea environmental data to some extent, and increases the difficulty of achieving efficient anomaly detection and data correction. Therefore, reconstructing the distribution at the station scale from limited discrete point source observation data is the basis for understanding the evolution of the deep-sea environment and the key to effectively detecting and correcting anomalies [5].
In ocean sensor data, anomalous data primarily manifests as significant outliers caused by sensor failures or abrupt environmental changes, which are easily identifiable by traditional rule-based or statistical methods. However, more challenging are the concealed anomalies that fall within reasonable value ranges but are inconsistent with the spatio-temporal correlations of the ocean and the physical laws of vertical stratification. These anomalous data, combined with the inherent data limitations of sparsity, significantly increase the difficulty of point-based reconstruction and consistency verification, and also limit the applicability of traditional grid-based methods. Existing anomaly detection and correction technologies for this type of data include: (1) Rule-based automated quality control, including thresholding, gradient checks, and consistency checks, etc. Its advantages are interpretability and ease of deployment. However, constrained by baseline environmental differences across ocean regions and characteristic differences between different water layers, its ability to identify non-stationary environments and concealed anomalies is limited. (2) Unsupervised detection based on statistics and machine learning, including methods like Isolation Forests [6], Support Vector Machines (SVM) [7], and Variational Autoencoders [8]. These approaches identify anomalies via reconstruction error and are suitable for multivariate data, but they typically ignore site topology and voyage structure. (3) Time series algorithms such as ARIMA and LSTM can detect anomalies. However, they lack cross-site spatiotemporal relationships and rely on complete, continuous time series data for modeling [9,10,11]. This makes it difficult to capture the complex spatiotemporal correlations between data points.
The shipborne observation network and the sensor data it generates essentially constitute a complex, non-grid, relation-based data structure. The connections between each deployment site need to consider not only geographical proximity and time periodicity, but also the unique vertical hierarchical structure of the ocean environment. This topological structure, composed of heterogeneous spatiotemporal relationships, naturally fits the modeling paradigm of graph neural networks. In recent years, graph neural networks (GNN) have been widely used for field reconstruction or joint distribution estimation by learning node embeddings of non-grid, relational data through message passing and using reconstruction errors or probability biases to identify anomalies [12,13]. To explicitly describe the dynamic evolution of environmental features and observation network topology, spatiotemporal graph neural networks (STGNN) combine graph convolution with temporal encoders and memory mechanisms such as temporal convolutional networks and Transformers. This combination enables a unified modeling of spatiotemporal dependencies [14]. Ye et al. developed a spatiotemporal model using a graph convolutional network, achieving high-precision forecasts of sea surface temperature and chlorophyll-a [15]. Ou et al. proposed a spatiotemporal graph neural network based on incremental learning, achieving accurate predictions of ocean parameters [16]. However, the fragmentation of sparse ocean sensor data in the spatiotemporal dimension makes it difficult for STGNN to construct an effective spatiotemporal graph in this scenario. Since homogeneous GNNs usually assume a single type of node and a single type of edge [17], it is difficult to simultaneously represent multiple relationships such as geographical proximity, temporal correlation, and deep layering. Heterogeneous Graph Neural Networks (HGNN) [18] simulate heterogeneous connections through a message passing mechanism with multiple types of edges and specific relationships. Significant results have been achieved in fields such as communication, transportation, and meteorology. Li et al. proposed a heterogeneous temporal graph reinforcement learning algorithm, which was successfully used to optimize the channel allocation of the maritime Internet of Things [19]. However, research reports on HGNN in the field of marine environmental monitoring are still relatively rare. In fact, the characteristics of HGNN are highly compatible with the requirements of DeepData observation network structure and deep-sea environmental quality control, and have broad application prospects.
In summary, existing methods for sparse ocean sensor data still have significant limitations and deserve further investigation, which is the motivation for this study. We propose DAHSGNN, a Depth-Aware Heterogeneous Spatiotemporal Graph Neural Network. The main contributions are as follows:
(1)
For sparse ocean sensor data with discrete observation points and inability to construct continuous observation time series, we propose a novel graph construction method based on a sliding window along the depth axis. This method leverages the strong correlation and continuity of ocean environmental parameters in the vertical dimension, combining fragmented spatiotemporal observations with the vertical physical structure, forming a graph topology that can capture vertical physical processes.
(2)
Owing to the ocean’s non-stationary stratification, environmental parameters exhibit different trend and morphological patterns in different water layers. To capture these intra-layer patterns, we devised depth-aware hierarchical node feature engineering to effectively transform raw sensor data into structured graph nodes. We employ a Gaussian Hidden Markov Model (Gaussian HMM) to partition water layers and propose a weighted trend encoder guided by water-layer probabilities. A Transformer-based architecture independently encodes different water layers, and a cross-layer fusion mechanism captures inter-layer relationships. A Bidirectional Long Short Term Memory (BiLSTM)-based deep sequence encoder provides rich node features.
(3)
The ocean environment exhibits complex phenomena involving relationships such as geographical proximity, temporal periodicity, water-layer stratification effects, and abrupt physical transitions [20]. Homogeneous graphs struggle to simultaneously represent these complex relationships. Therefore, we employ a HGNN to explicitly construct heterogeneous edges to accurately model the complex relationships between different observation stations.
(4)
This method models various environmental variables based on the aforementioned heterogeneous graph structure and utilizes the reconstruction error of the heterogeneous graph autoencoder for anomaly detection and correction. This method further exhibits strong cross-variable transferability, achieving high reconstruction accuracy across diverse environmental variables while maintaining high sensitivity to anomalous data.
This method provides a scalable technical approach for modeling sparse ocean sensor data under shipborne survey conditions. Its efficient validation on multiple environmental parameters such as temperature, salinity, and turbidity in the International Seabed Authority (ISA) DeepData database demonstrates its generalization capability for discrete ocean observation scenarios.

2. Problem Description and Method

A non-grid spatial layout composed of ship trajectories and discrete sites is naturally suited for a graph representation. Traditional spatiotemporal methods rely on fixed grid-based adjacency and time series, making it difficult to uniformly represent the heterogeneous coupling relationships between geographic location, temporal evolution, and depth profiles in ocean data. While homogeneous graphs can attempt to model such interactions by designing complex relationship types, heterogeneous graphs offer a more efficient modeling paradigm. Considering the limitations of the data and the advantages of heterogeneous graphs, we reformulate the task of shipborne measurement anomaly detection and correction as a node-level physical quantity reconstruction problem on a heterogeneous graph, thereby converting discrete sensor observation data into a structured heterogeneous graph.
A heterogeneous graph [21], denoted as G t = ( V t , E t , A , R ) , consists of an object set V and a link set E . A heterogeneous graph is also associated with a node type mapping function τ: V A and a link type mapping function φ: E R . A and R denote the sets of predefined node types and edge types, where | A | + | R | > 2. Among them, the node set V t consists of all the observation data points in the window. Considering the *homogeneous nature of shipborne survey data, all nodes are abstracted as a single type. Each node v V t corresponds to an observation point, some of which are shown in Table 1. The set E t contains edges of multiple relation types, and the set R defines all relation types. The graph topology is stored efficiently using an edge index dictionary, where each key-value pair records the sparse adjacency matrix M for a specific edge type. Each edge represents a particular physical or logical association, and edge weights are represented by weighted, typed adjacency matrices.
M ( r ) R N × N
M i j ( r ) = w i j ( r ) , ( v i , v j ) E r , 0 , o t h e r w i s e ,
where w i j ( r ) is the edge weight corresponding to the relationship type r .
We process a collection of oceanic profiles P = { P 1 , P 2 , , P S } obtained at various times and locations, with S being the total number of profiles. As shown in Figure 1, all observation profiles share the same domain and timestream.
To address the temporal discontinuities in shipborne sensor data and leverage local correlations in the vertical dimension, we propose a local graph construction method based on a depth sliding window. This method slides a fixed-length window along the depth direction of the vertical axis, aggregating discrete observation points within the window into a local graph sample, thereby capturing complex spatiotemporal-depth correlations. We use a sliding window of length N to slice the depth axis. For each window t, all observation points within the covered depth range are aggregated into a single graph to form the node set v t . Under four relation criteria defined in R , we then generate the corresponding typed edge sets M t ( r ) and weighted adjacency matrices W t ( r ) . This yields a graph sample G t . By traversing all windows in sequence, we obtain a sequence of graphs G = { G 1 , G 2 , , G T } . Windowing partitions large-scale data into a set of size-controlled, relationally complete local heterogeneous graphs. This approach preserves the vertical structure and facilitates efficient batch training and inference, as illustrated in Figure 2. These heterogeneous graph samples are subsequently processed in batches into the heterogeneous graph autoencoder for training and inference.
For shipborne-acquired sensor data, we construct a heterogeneous graph-based reconstruction model f Φ , which integrates node features and the relationships between nodes in three dimensions: geospatial, temporal evolution, and vertical depth. Let P t R N t denote the vector of ground-truth physical quantities for all N t nodes in graph G t . The reconstructed vector p ^ t is inferred by the model as p ^ t = f Φ ( G t ) , where Φ denotes the learnable parameters. Because anomalous samples in the shipborne observations within DeepData are exceedingly rare, we adopt an unsupervised learning approach. The model parameters Φ are trained by minimizing a composite reconstruction loss function on a preprocessed graph sequence.
After training, for any observation node i, its anomaly score is defined by its reconstruction error with respect to | p ^ i p i | . An adaptive threshold selection method based on the validation set is used to dynamically determine the optimal threshold by maximizing the F1-Score. If this error exceeds a threshold dynamically determined based on the reconstruction error distribution of all samples, the data point is considered to have deviated from its normal pattern and is assigned a higher anomaly probability.

3. DAHSGNN

The DAHSGNN method for sparse ocean sensor observations follows a multi-stage processing flow, comprising three core steps: (1) Depth-aware hierarchical node feature engineering: Extract the depth distribution pattern of the profile data of each station and generate node attribute vectors to represent the vertical distribution characteristics of the station at the corresponding depth. (2) Heterogeneous edge construction: Heterogeneous edges are constructed through domain knowledge and together with nodes form a heterogeneous graph. (3) Heterogeneous graph modeling: Feed the graph samples into a HGNN Autoencoder, which leverages the complex topology and node features to learn latent representations, thereby modeling geographical, temporal, and vertical dependencies.

3.1. Depth-Aware Hierarchical Feature Engineering

As shown in Figure 3, each node is associated with a feature vector rich in physical information, derived from the raw observations collected by the sensors. The vertical stratification of the ocean exhibits obvious heterogeneity. Different water layers have unique physical properties, and the water layers are mostly diffuse transition zones. In order to probabilistically divide the inherent complex vertical structure in the observation node data, we adopt the Gaussian HMM and use its ability to model the hidden state and its transition to explicitly characterize the water layer constraints [22]. In order to capture the intra-layer variation trend of the water layer, we use the sequence modeling capability of the Transformer architecture to generate a water layer weighted depth trend vector. In addition, a cross-layer fusion mechanism is designed to capture the interrelationship between water layers. A BiLSTM encoder is introduced to extract dynamic context features of local depth sequences [23].

3.1.1. Water Layer Probability Division Based on Gaussian HMM

According to classical physical oceanography, the ocean’s vertical structure is commonly conceptualized as three layers with distinct physical properties [24], comprising shallow waters that are readily influenced by the atmosphere, a mid-layer that serves as an important buffer, and a vast, relatively stable deep layer [25]. Figure 4 shows the water column division in the Mid-Atlantic Ridge area and the changes in key environmental parameters with depth.
To accurately characterize the physical layered structure of the ocean, we employ the Gaussian HMM for probabilistic water-layer partitioning, as shown in Figure 5a. This model combines discrete state transition processes with continuous sensor observations, using a sequence of hidden states to model transitions between layers. The probability density function of the multivariate Gaussian distribution is used to process continuous physical quantities. The hidden state sequence q t S = { s s u r f , s m i d , s d e e p } corresponds to the three water layers, while the observation sequence O = { O 1 , O 2 , , O T } consists of the multivariate feature vectors of the nodes. State transition probability matrix A = [ a i j ] 3 × 3 :
a i j = P q t + 1 = s j q t = s i ,   j = 1 3 a i j = 1
The covariance matrices Σ j are learned from the data via the Baum-Welch algorithm [26]. Finally, using the trained model parameters, the posterior probability of belonging to each water layer is calculated for each observation point i :
p i = P ( q i = s s u r f O ) , P ( q i = s m i d O ) , P ( q i = s d e e p O )
This probability vector serves as the key representation of the vertical structure and is input into the subsequent trend encoding process.

3.1.2. Water Layer Probability-Guided Trend Encoder

Different observation stations may exhibit similar environmental evolution trends due to driving factors such as ocean currents and climate patterns. Different water layers are influenced by physical, chemical, and biological processes, resulting in significant differences in their internal trends and morphological patterns. To effectively capture intralayer distribution patterns and correlate similar nodes, we propose a trend encoder.
The trend encoder learns a local dynamic trend vector t i for each site i . At its core is a self-attention mechanism guided by the water-layer probability p i , l ( t ) at depth index t . We employ a hierarchical Transformer architecture [27] that extracts specialized features for different water layers, comprising three parallel Transformer encoder layers, each dedicated to one layer, as illustrated in Figure 5b. When computing self-attention within layer l , attention is modulated by the joint probability that both points belong to the same layer:
α t , u ( l ) = α t , u ( l ) p i , l ( t ) p i , l ( u )
where α t , u ( l ) is the standard self-attention score between two depth points t and u within the layer- l sequence. This modulation prioritizes interactions between points that are confidently assigned to layer l , while suppressing spurious cross-layer interactions.
We replace standard self-attention with joint probabilistic modulation of attention to form the encoded representation h i , l ( t ) at position t . Then, we obtain the layer-specific trend vector through probabilistic weighted pooling:
v i ( l ) = t w i , l ( t ) h i , l ( t ) t w i , l ( t ) + ε
where w i , l ( t ) are the CHMM-derived layer probabilities used as weights and ε is a small constant for numerical stability. This prioritizes processing high-confidence intra-layer interactions to generate v i ( l ) that reflects the true intra-layer distribution pattern at site i . Each depth point is labeled with location encoding to achieve ordered depth-related trend learning.
The outputs of each Transformer layer are stacked to construct a hierarchical feature sequence, which is then input into a cross-layer Transformer to model the interdependencies between different water layers [28]. This module is based on the standard Transformer encoder architecture, globally capturing the relationships between trend features of different water layers through a multi-head self-attention mechanism, and enhancing the non-linear expressive power of the features through a feedforward neural network. Finally, average pooling is applied to the output sequence of the cross-layer Transformer to generate a unified cross-layer trend vector:
v i cross = 1 L l = 1 L Transformer cross ( [ v i ( 1 ) , , v i ( L ) ] ) l
where L is the number of layers. Transformer cross models the dependencies between different water layers.
Finally, to form the node-level integrated trend vector, we apply a probability gate to each layer’s contribution and then concatenate the gated layer-wise vectors with the cross-layer vector:
t i = c o n c a t g i ( 1 ) v i ( 1 ) , . . . , g i ( L ) v i ( L ) , v i c r o s s
With the gate
g i ( l ) = p i , l ( t i ) , i f   p i , l ( t i ) > τ , 0 , otherwise
The threshold τ is a dynamic threshold used to filter significant water layers. τ is adaptively generated by the dominant confidence of the water layer probability distribution of node i:
τ i = 1 2 max l ( p i , l )
The physical information of a water layer is considered significant only when the probability p i , l of a certain water layer is higher than the threshold τ i , which is dynamically scaled by the dominant layer confidence. This design achieves: (1) Strict noise reduction in regions with clearly defined water layer stratification: When the confidence of the dominant water layer is high, the threshold is increased to retain significant water layer information. (2) Fusion of multiple physical layers in water layer transition regions: When the confidence of the dominant layer is low, the threshold is decreased to accommodate information from other water layers. This gating mechanism ensures that nodes only carry trend information of the layer to which they may belong, while preserving layer-specific structure and cross-layer context through splicing.
Through layer-by-layer specialization and cross-layer fusion, an integrated trend vector t i that incorporates cross-layer relationship information is ultimately generated. This integrated vector provides a high-dimensional representation of the physical state relevant to the water column at the node’s location and encodes information at two levels: (1) Positional Information: Positional encoding tags each depth point with its relative position within its inferred primary water layer. This enables the model to discern orderly depth-dependent trends in physical quantities. (2) Vertical structural information: It captures whether the intra-layer distribution of physical quantities is uniformly mixed, exhibits a gradual linear variation, or contains local extrema. This is used to characterize the inter-layer associations and transitional features among different water layers.
In this way, the model can identify spatially distant nodes that share similar structural characteristics, enabling the establishment of long-range dependencies based on physical properties.

3.1.3. BiLSTM Deep Sequence Encoder

The profiler equipped with multi-parameter sensors performs in situ high-frequency sampling during the vertical descent process, so that the acquired ocean profile data shows extremely high data density, continuity and local dynamic changes in the vertical direction. When processing graph samples, nodes at the same site consisting of densely sampled points are sorted by depth, forming a depth sequence X = ( x 1 , x 2 , . . . , x N ) . Adjacent nodes in a depth sequence have close physical connections and dynamic interactions, and this dependency is bidirectional. The state of the upper water layer affects the lower layer, while processes in the lower layer, such as upwelling and heat conduction, also have feedback effects on the upper layer. To capture the continuity and local dynamics inherent in high-resolution vertical sampling, we use a bidirectional long short-term memory (BiLSTM) network as a deep sequence encoder. This encoder is used to extract the continuity and dynamic trend features of these local, depth-ordered sequences in the graph samples. Figure 5c shows the basic framework of BiLSTM. The BiLSTM consists of a forward LSTM and a backward LSTM. The forward LSTM processes the sequence from shallow to deep ( d = 1 → N ), recursively updating its hidden state. Conversely, the backward LSTM processes the sequence from deep to shallow ( d = N → 1). Both propagate information based on the current input and the hidden states of adjacent layers. This mechanism enables the model, when generating features for any node at depth d , to simultaneously consider information from the shallower and deeper waters, thereby constructing a more complete local vertical environmental context.
Finally, the hidden states of the forward and backward LSTM layers at the current depth are concatenated to obtain a vector output that integrates the bidirectional context information of the sequence. We define this as the depth-sequence feature h l s t m .
h l s t m , d = h d ; h d = L S T M f w d ( x d , h d 1 ) ; L S T M b w d ( x d , h d + 1 )
The extracted deep sequence features h l s t m are concatenated with the original features of the node and the additional feature information obtained through feature engineering, forming the final node features h i ( 0 ) that are input to the heterogeneous graph neural network.

3.2. Physical Information-Guided Heterogeneous Edge Construction

Considering the complex interactions within marine systems, we construct four types of heterogeneous edges based on geographic-distance, temporal, vertical, and trend similarities between nodes:
(1)
Geographic Distance Edge: It aims to capture the spatial correlation of the ocean in the quasi-horizontal plane.
w i j Distance = e d i s t ( p o s i ,   p o s j ) σ 2
where p o s i is the geographical location (latitude and longitude) of sensor node i , dist( , ) is the Haversine distance between two points [29], and σ is the bandwidth parameter of the Gaussian kernel, controlling the rate of decay in similarity with distance [30].
(2)
Temporal Edge: The physical state of marine environmental variables often exhibits seasonal and diurnal variations. Nodes sharing temporal similarities likely exhibit analogous ocean states. The weight is based on the cosine similarity between temporal feature vectors:
w i j time = cos ( f i t ,   f j t )
where f i t and f j t are the temporal feature vectors of nodes i and j, respectively.
(3)
Vertical Edge: By connecting pairs of points in the same profile with adjacent depths, similar measured environmental parameter values, and similar local curve shapes, a vertical edge is established to reflect the physical continuity and discontinuities of the water body. Its weight is a linear combination of multiple physical factors:
w i j v e r = w d i s t S i m ( d i , d j ; C 1 ) + w s l S i m ( s i , s j ; C 2 ) + w g r a d 1 2 S i m ( g i , g j ; C 3 ) + S i m ( g i , g i ; C 4 ) w d i s t + w s l + w g r a d
where S i m ( a , b ; σ ) = e | a b | / σ is an exponential decay function. d i and s i represent the depth and measured environmental parameter value of node i, g i and g i represent the gradient and second-order gradient of node i , w * is a hyperparameter tuned on the validation set, and C * is a scale parameter.
(4)
Trend Edge: By calculating the similarity of trend vectors, similar oceanographic characteristics and generation mechanisms between sensor data from different observation sites can be captured:
w i j t r e n d = cos ( t i , t j )
t i is the comprehensive trend vector obtained by the Transformer encoder.
This study employs the KNN algorithm [31] to balance similarity capture and computational efficiency for four types of heterogeneous edges. This strategy may include a small number of edges with low connection strength during the selection process, but the subsequent neighborhood aggregation mechanism automatically weakens their contribution. Simultaneously, KNN may also miss a few highly similar nodes, but the selected topological associations cover the main dependencies, sufficient to support high-precision reconstruction of node physical quantities.
When constructing geographic distance edges and temporal edges, different depth nodes at the same site have the same geographical location and sampling time, resulting in identical edge weight calculations. To reduce redundant computations during edge construction, we use the shallowest depth sampling point of the site within the sliding window as the representative node. Only the weights between the representative nodes are calculated, and as shown in Figure 2, these weights are copied to other depth points of the site to obtain the final edge weights.

3.3. Heterogeneous Graph-Based Autoencoder Model

After the heterogeneous graph is constructed, the data is input into the heterogeneous graph autoencoder for anomaly detection. Figure 6 shows its detailed architecture. The core task of this model is to learn the inherent patterns and intrinsic structures of normal ocean profile data under high-dimensional spatiotemporal relationships. The encoder compresses the complex graph signal into a low-dimensional latent representation, and the decoder reconstructs the original signal. Since the model learns the normal data distribution pattern during training, the inherent abnormal structure of anomalous data leads to a high reconstruction error. Anomaly detection is achieved based on the reconstruction error, and data correction is performed based on the reconstructed values. The entire process, from graph sequence input, deep processing of node features and edge information, to the final output of reconstructed physical quantity values, is a continuous process.
Each node feature passes through an input projection module. This module consists of a linear layer, a batch normalization layer, and a GELU activation function. The input features are mapped to a higher-dimensional latent space, providing a more expressive initial representation for subsequent graph convolution operations.
The data then flows through a core network consisting of multiple layers of heterogeneous graph convolution blocks. The core of each convolution block is the HeteroConv layer, which uses a dedicated message passing mechanism for edges E t y p e with different physical meanings in the graph. For each type of relation, the model collects information from the neighboring nodes of the central node and aggregates it into a single message. As shown in Figure 7, appropriate graph convolution operators are selected based on the characteristics of different relations. To characterize the complex and non-uniform interactions within and between different depth layers, we employ a graph attention network (GATConv) on vertical and cross-layer trend edges. Its self-attention mechanism can adaptively learn and assign weights based on the characteristics of neighboring depth nodes, thereby highlighting key interactions and suppressing secondary connections in complex ocean environments, and improving the ability to model intra-layer and cross-layer dependencies. Geographic distance edges connect nodes in neighboring spatial locations, while temporal edges connect nodes deployed at different times. These two heterogeneous edges typically exhibit relatively smooth, region-dependent characteristics. Therefore, graph convolutional networks (GCNConv) [32] with higher computational efficiency are chosen to effectively capture relatively uniform and stable association patterns within geographical or temporal neighborhoods.
After aggregating neighbor information for each relationship type, the HeteroConv layer merges information from different relationship types into a unified neighborhood information through mean pooling. The forward propagation of layer l can be formalized as:
h i ( l ) = G E L U B N 1 | R | r R A G G r ( l ) h j ( l 1 ) w i j ( r ) j N r ( i ) + W r e s h i ( l 1 )
h i ( l ) represents the feature representation of node i at layer l . R represents the relation type of all edges. A G G r ( l ) represents the aggregation function of layer l for relation r . w i j ( r ) is the edge weight between nodes i and j under relation r . h j ( l 1 ) w i j ( r ) represents the weighted node features. The edge weights serve as physical reliability indicators, and the features of neighboring nodes with strong associations are given greater weight when passed to the central node i . N r ( i ) is the set of neighbors of node i under relation r , and W r e s is the learnable weight matrix of residual connections.
To ensure effective training of deep networks and prevent overfitting, batch normalization, GELU activation function, and dropout are integrated after each HeteroConv convolutional module. At the same time, residual connections [33] are introduced to combine neighborhood information with the original features of nodes to generate new representations of nodes and alleviate the gradient vanishing problem. After feature extraction and fusion through multi-layer graph convolution, the last layer of the encoder maps the high-dimensional representation of nodes to a low-dimensional latent space, generating the final latent representation matrix Z R N × d z . This vector is the encoder’s final abstract representation of the input graph information.
The decoder takes the latent representation Z as input and restores the dimension of the node representation layer by layer through a stack of HeteroConv modules with the same structure but the reverse order of the hidden layer dimensions. However, it is difficult to recover all the details using only low-dimensional Z vectors. To address this, skip connections are introduced, directly passing the output feature maps of the corresponding layers in the encoder to the decoder, compensating for the details and high-frequency information lost due to information compression during encoding. Finally, at the end of the decoding network, the decoded high-dimensional node features are mapped back to a single-dimensional physical quantity through an output projection consisting of a linear layer, batch normalization, and GELU activation.
The model is trained in an unsupervised manner on a training set containing only normal samples. The goal is to optimize the parameters by minimizing a composite loss function, which consists of three parts:
(1)
The mean square error (MSE) is used as the core reconstruction loss function:
L r e c = 1 N i = 1 N ( s ^ i s i ) 2
where s ^ i is the reconstructed physical quantity value of node i , s i is the corresponding true physical quantity value, and N is the total number of nodes in the batch.
(2)
Regularization loss for regulating the latent space:
L r e g = 1 N i = 1 N z i 2
where z i is the representation vector of node i in the latent space.
(3)
Smoothness loss based on physical prior:
L s m o o t h = 1 M 1 j = 1 M 1 s d j + 1 s d j
where s d j represents the reconstructed value of the physical quantity at depth d j , and M is the number of nodes sorted by depth.

4. Data and Preprocessing

4.1. Dataset Description

The ocean profile sensor data used in this study were obtained from the DeepData database established by the ISA. The database is dedicated to collecting data generated from activities related to ‘The Area’. It aggregates ocean environmental survey data from multiple ‘The Area’ worldwide, including the Mid-Atlantic Ridge, the Central Indian Ocean, and the Clarion-Clipperton Fault Zone. Figure 8 shows the shipborne observation data acquired from “The Area,” spanning from 2001 to 2023, encompassing 354 expeditions and covering over 80,000 Area Blocks. These data, primarily from high-density sampling by the shipborne multi-parameter profiler during the voyage, are characterized by being sparse, non-gridded, and having a high vertical sampling density. Based on the high degree of fit between its data characteristics and the research questions of this study, we used data from the DeepData database covering the period of 2012 to 2015, the period with the most observation cruises on the Mid-Atlantic Ridge, to verify the effectiveness of the proposed method. The dataset contains temperature, salinity, and turbidity profile data collected at specific stations in the region.

4.2. Data Preprocessing

This study is dedicated to reconstructing the correct distribution of site-level sensor data. However, due to environmental conditions or sensor failures, outliers will inevitably appear. If left unprocessed, they will affect the accuracy of model reconstruction training. Considering the existence of multiple types of anomalies in ocean data, a single anomaly detection method often fails to achieve ideal results. The Z-score method can quickly filter out single-dimensional extreme anomalies, but is insensitive to local anomalies [34]. Isolation forest can identify more subtle multidimensional structural anomalies, but may miss more discrete anomalies. Therefore, we combine Z-score and isolation forest to compute a weighted sum of anomaly scores. This produces a cleaner training dataset, which enables the model to learn the normal pattern of the data. The dataset is divided into training, validation, and test sets according to station ID, with a ratio of 6:2:2. To construct a quantifiable evaluation test environment, we manually injected labeled outlier data points into the validation and test sets. Based on the time-series data outlier injection method in reference [35], we simplified some techniques. Based on the statistical characteristics of the preprocessed data, we selected data points accounting for approximately 0.5% of the total data to inject outliers. The outlier injection location was determined by random sampling. Since the data characteristics change with depth, we calculated the standard deviation σ of the data within the sliding window centered on the outlier injection point as the noise intensity. Based on this, we set the offset between 2 σ and 5 σ to effectively simulate significant outliers and hidden anomalies. All injections were labeled with outlier tags for the calculation of evaluation metrics.

5. Experiment

5.1. Experimental Environment and Parameter Configuration

Model training and all experiments were performed using Python 3.12.11 and Torch 2.7.0 + cu12.8. The graphics card model was (NVIDIA GeForce RTX5070Ti, 24 GB, NVIDIA Corporation, Santa Clara, CA, USA). Table 2 lists the search range and considered variants for the model hyperparameters. Detailed parameters were tested using a grid search method, and the optimal hyperparameters were ultimately selected based on the validation set.

5.2. Evaluation Criteria

We evaluate the reconstruction performance of the proposed DAHSGNN method from three perspectives. The mean absolute error (MAE), root mean square error (RMSE), and mean absolute percentage error (MAPE) are used to quantify the reconstruction accuracy. We used precision, recall, F1 score, and precision-recall curve (PRC) to comprehensively evaluate the performance of the DAHSGNN model [36]. For the imbalanced characteristics of sparse ocean sensor data, the F1 score more effectively reflects the overall effectiveness of the model in balancing precision and recall. The PRC is a tool for evaluating model performance particularly suitable for imbalanced datasets. The average precision (AP) is an approximation of the area under the PRC, which comprehensively reflects the average performance of the model under all thresholds. Its formula is as follows:
M A E = 1 n i = 1 n y i y ^ i
R M S E = 1 n i = 1 n y i y ^ i 2
M A P E = 100 % n i = 1 n | y i y ^ i | y i
A = T P + T N T P + T N + F P + F N
P = T P T P + F P
R = T P T P + F N
F 1 = 2 T P 2 T P + F N + F P
A P = 0 1 P ( r ) d r
The above indicators can comprehensively reflect the performance of the model and help evaluate the applicability of the model in different scenarios.

5.3. Experimental Results and Analysis

To evaluate the contribution of each module in the model and verify its effectiveness, we conducted ablation experiments. While maintaining consistent training parameters, we analyzed the anomaly detection performance of DHASGNN under different module combinations. The results are shown in Table 3. The results indicate that the recall rate of the base model is relatively low, suggesting that the original features are insufficient to fully characterize the key features of ocean vertical stratification. After introducing TrendEncoder, the recall rate for salinity and turbidity data improved slightly, but the performance for water temperature data decreased. This difference stems from the physical characteristics of the environmental variables themselves. The vertical distribution of salinity and turbidity is usually dominated by diffusion and sedimentation, resulting in relatively gentle changes. Water temperature often exhibits more significant and non-linear gradient changes in the vertical direction, as shown in Figure 5. The self-attention mechanism of TrendEncoder is effective in capturing steady trends, but its ability to represent drastic gradient changes is limited. With the gradual introduction of Gaussian HMM and CrossEncoder, the model achieves explicit modeling of water layer state transitions and effective capture of inter-layer correlations, significantly improving model performance. This verifies the necessity of explicit stratification modeling for complex vertical structures. The BiLSTM module enhances the representation of local dynamic processes inherent in high-resolution vertical sampling by modeling bidirectional dependencies between adjacent depth nodes. Experiments demonstrate that the DAHSGNN model, integrating all modules, plays a crucial role in capturing complex spatiotemporal heterogeneous correlations. DAHSGNN achieves a superior balance between significantly improving recall and maintaining high accuracy, thus realizing a better anomaly detection performance.
Figure 9 compares the MAE, RMSE and MAPE performance metrics between DAHSGNN and baseline HGNN models over 100 training epochs. Results show DAHSGNN achieves significantly superior training performance across all environmental variables. This proves that DAHSGNN can accurately reconstruct normal patterns, laying a reliable foundation for anomaly detection and subsequent data correction based on high reconstruction errors.
Figure 10 shows PRC for DAHSGNN on three environmental variables: salinity (AP = 0.97), water temperature (AP = 0.949), and turbidity (AP = 0.976). These high AP values demonstrate the model’s effectiveness in identifying anomalies through reconstruction error.
To comprehensively evaluate the performance of DAHSGNN, we conducted comparative experiments on the same dataset, including internal component replacement and end-to-end model comparisons. In the internal component replacement experiment, we replaced the joint module responsible for water layer partitioning and sequence modeling in DAHSGNN with the Mamba state-space model for comparison [37]. We also replaced the heterogeneous autoencoder in the original model with a Transformer to further explore the impact of different modules on performance. In the end-to-end model comparison, we compared and analyzed DAHSGNN with Convolutional Neural Network (CNN) [38], Graph Neural Network Based on Hierarchical Spatiotemporal Dependency Learning (HSDGNN) [39] and iTransformer model [40] which is suitable for multidimensional time series modeling. Table 4 shows the comparison results of anomaly detection performance of each model under different environmental parameters. The analysis results show that, compared with the Mamba state-space model, DAHSGNN’s explicit modeling of ocean physical stratification effectively improves the representation capability of sparse ocean sensor data. Replacing the heterogeneous graph autoencoder with a Transformer resulted in a performance decrease, demonstrating the advantages of heterogeneous graphs in fusing multi-source heterogeneous ocean data. Replacing the heterogeneous graph autoencoder with a Transformer highlights the advantages of heterogeneous graphs in fusing multi-source heterogeneous ocean data. Compared with the general sequence modeling framework iTransformer, DAHSGNN achieves better results in capturing spatiotemporal dependencies. Meanwhile, the overall performance of DAHSGNN also surpasses that of the CNN and HSDGNN benchmark models. This confirms the necessity of the domain knowledge-guided architecture design in this paper.

6. Conclusions

This paper aims to address the challenges posed by the inherent spatial discreteness and temporal discontinuity of sparse ocean sensor data. We propose a deep-aware heterogeneous spatiotemporal graph neural network (DAHSGNN) for anomaly detection and correction in sparse ocean sensor data. This method, based on sensor data, segments water layers using a Gaussian HMM and extracts multidimensional features using Transformer-based water layer trend encoding and BiLSTM modeling. It captures the complex dependencies of ocean sensor data in terms of vertical profile, geographic distribution, and temporal dynamics by constructing a depth-sensing heterogeneous map, thereby processing dense depth sampling sequences. Experiments demonstrate that, for multiple environmental variables (salinity, water temperature, turbidity), DAHSGNN outperforms traditional homogeneous graph models and benchmark heterogeneous graph models, validating its efficacy in sparse ocean sensor data scenarios.
Future research will focus on investigating the coupling effects among multiple environmental variables to achieve multivariate joint modeling and adaptive water layer states. It will also explore innovative methods for adaptively delineating water layer boundaries through a fusion strategy of physical constraints and data-driven approaches. We will also expand the reconstruction of site-scale data to encompass the entire “Area” environmental field. We will also promote the evolution of models towards lightweight and scalable models to meet the needs of larger-scale, higher-resolution marine environmental monitoring.
In summary, this study provides an effective solution to the problem of anomaly detection and correction in sparse ocean sensor data, and the solution has been validated in the ISA DeepData database. Through continuous improvement and multidisciplinary integration, this method is expected to provide a scalable technical path for data quality optimization in the field of deep-sea environmental monitoring.

Author Contributions

Conceptualization, Z.H. and X.G.; methodology, Z.H.; software, Z.H.; data curation, Z.H.; writing—original draft preparation, Z.H., X.G., Y.R. and X.S.; writing—review and editing, Z.H. and X.G.; supervision, X.G., Y.R., X.S. and Z.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Taishan Scholars Program (tsqn202408291); the National Key Research and Development Programme (2022YFC2805200); the National Natural Science Foundation of China (52175018); and the Natural Science Foundation of Shandong Province (ZR2020QD041).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Mishiro, K.; Mataro, J.A.; Carter, S.; Schampera, U.S.; Wouters, N. Data Management for Marine Scientific Research. In Deep-Sea Mining Management, Policy and Regulation: Data Management, Environmental Monitoring, Techno-Economic Assessment, Law of the Sea and Regulatory Regimes; Springer Nature: Cham, Switzerland, 2025; pp. 43–62. [Google Scholar]
  2. Yan, G. The progress and challenge of regional environmental management plan in the international seabed area and China’s participation. Environ. Prot. 2021, 49, 71–76. [Google Scholar]
  3. Deng, L.; Wu, C.; Lian, D.; Chen, E. Learning from highly sparse spatio-temporal data. Adv. Neural Inf. Process. Syst. 2024, 37, 94022–94046. [Google Scholar]
  4. Bräger, S.; Rodriguez, G.Q.R.; Mulsow, S. The current status of environmental requirements for deep seabed mining issued by the International Seabed Authority. Mar. Policy 2020, 114, 103258. [Google Scholar] [CrossRef]
  5. Rabone, M.; Horton, T.; Jones, D.O.B.; Simon-Lledó, E.; Glover, A.G. A review of the International Seabed Authority database DeepData from a biological perspective: Challenges and opportunities in the UN Ocean Decade. Database 2023, 2023, baad013. [Google Scholar] [CrossRef] [PubMed]
  6. Siddagangaiah, S. Marine soundscape forecasting: A deep learning-based approach. Ecol. Inform. 2025, 89, 103189. [Google Scholar] [CrossRef]
  7. Zhou, P.; Chen, J.; Wang, S. A Dual Robust Strategy for Removing Outliers in Multi-Beam Sounding to Improve Seabed Terrain Quality Estimation. Sensors 2024, 24, 1476. [Google Scholar] [CrossRef]
  8. Lou, J.; Liu, B.; Xiong, Y.; Zhang, X.; Yuan, X. Variational autoencoder framework for hyperspectral retrievals (hyper-VAE) of phytoplankton absorption and chlorophyll a in coastal waters for NASA’S EMIT and PACE missions. IEEE Trans. Geosci. Remote Sens. 2025, 63, 4206316. [Google Scholar] [CrossRef]
  9. Sun, G.; Yin, C.; Xia, T.; Liu, Y.; Mao, J. An Improved ARIMA Based Anomaly Detection Method for Time Series Data. In Proceedings of the 2024 IEEE 8th Conference on Energy Internet and Energy System Integration (EI2), Shenyang, China, 29 November–2 December 2024; IEEE: New York, NY, USA, 2024; pp. 5132–5138. [Google Scholar]
  10. Chao, W.-T.; Kuo, T.-J. Long Short-Term Memory Networks’ Application on Typhoon Wave Prediction for the Western Coast of Taiwan. Sensors 2024, 24, 4305. [Google Scholar] [CrossRef]
  11. Shan, Y.; Wang, X.; Jing, Q.; Wu, W.; Xia, Y. GNN-LSTM-based full-field temperature prediction of bridges using sparse sensor data and heat-transfer analysis. Eng. Struct. 2025, 342, 120922. [Google Scholar] [CrossRef]
  12. Kim, H.; Lee, B.S.; Shin, W.Y.; Lim, S. Graph anomaly detection with graph neural networks: Current status and challenges. IEEE Access 2022, 10, 111820–111829. [Google Scholar] [CrossRef]
  13. Liu, J.; Yang, X.; Zhang, D.; Xu, P.; Li, Z.; Hu, F. Adaptive Graph-Learning Convolutional Network for Multi-Node Offshore Wind Speed Forecasting. J. Mar. Sci. Eng. 2023, 11, 879. [Google Scholar] [CrossRef]
  14. Kim, J.; Kim, T.; Ryu, J.G.; Kim, J. Spatiotemporal graph neural network for multivariate multi-step ahead time-series forecasting of sea temperature. Eng. Appl. Artif. Intell. 2023, 126, 106854. [Google Scholar] [CrossRef]
  15. Ye, M.; Li, B.; Nie, J.; Wen, Q.; Wei, Z.; Yang, L.-L. Graph convolutional network-assisted SST and Chl—A prediction with multicharacteristics modeling of spatio-temporal evolution. IEEE Trans. Geosci. Remote Sens. 2023, 61, 4209214. [Google Scholar] [CrossRef]
  16. Ou, M.; Yu, S.; Li, G.; Gao, D.; Xu, P.; Luo, B. Accurate Oceanic Parameter Predictions via Spatiotemporal Graph Neural Network with Incremental Learning. IEEE Trans. Geosci. Remote Sens. 2025, 63, 4211814. [Google Scholar] [CrossRef]
  17. Bing, R.; Yuan, G.; Zhu, M.; Meng, F.; Ma, H.; Qiao, S. Heterogeneous graph neural networks analysis: A survey of techniques, evaluations and applications. Artif. Intell. Rev. 2023, 56, 8003–8042. [Google Scholar] [CrossRef]
  18. Zhan, J.; Wu, C.; Yang, C.; Miao, Q.; Ma, X. HFN: Heterogeneous feature network for multivariate time series anomaly detection. Inf. Sci. 2024, 670, 120626. [Google Scholar] [CrossRef]
  19. Li, Z.; Xie, Z.; He, X.; Liang, X. Heterogeneous temporal graph powered DRL algorithm for channel allocation in Maritime IoT Systems. Comput. Commun. 2024, 213, 260–270. [Google Scholar] [CrossRef]
  20. Tan, F.; Samanta, D.; Morgan, K.; Martin, P.; Chua, S.; Aw, Z.; Lai, I.; Meltzner, A.J.; Wang, J.; Horton, B.P. El Niño was a key driver of anomalous ocean warming in Southeast Asia in 2023. Sci. Rep. 2025, 15, 16106. [Google Scholar] [CrossRef]
  21. Chen, C.; Li, Y.; Jiao, B.; Zhao, B.; Li, W. Wasserstein Heterogeneous Graph Neural Networks for Uncertainty-Aware Anomaly Detection. In Proceedings of the ICASSP 2025-2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Hyderabad, India, 6–11 April 2025; IEEE: New York, NY, USA, 2025; pp. 1–5. [Google Scholar]
  22. Abdulla, W.H.; Kasabov, N. Reduced feature-set based parallel CHMM speech recognition systems. Inf. Sci. 2003, 156, 21–38. [Google Scholar] [CrossRef]
  23. Gao, M.; Shi, G.; Li, S. Online Prediction of Ship Behavior with Automatic Identification System Sensor Data Using Bidirectional Long Short-Term Memory Recurrent Neural Network. Sensors 2018, 18, 4211. [Google Scholar] [CrossRef]
  24. Pickard, G.L.; Emery, W.J. Descriptive physical oceanography: An introduction. In Pergamon International Library of Science, Technology, Engineering and Social Studies; Pergamon Press: Oxford, UK, 1982. [Google Scholar]
  25. Li, G.; Cheng, L.; Zhu, J.; Trenberth, K.E.; Mann, M.E.; Abraham, J.P. Increasing ocean stratification over the past half-century. Nat. Clim. Change 2020, 10, 1116–1123. [Google Scholar] [CrossRef]
  26. Hu, D.; Gao, W.; Ang, K.K.; Hu, M.; Huang, R.; Chuai, G.; Li, X. CHMMConvScaleNet: A hybrid convolutional neural network and continuous hidden Markov model with multi-scale features for sleep posture detection. Sci. Rep. 2025, 15, 12206. [Google Scholar] [CrossRef] [PubMed]
  27. Wang, C.; Liu, G. From anomaly detection to classification with graph attention and transformer for multivariate time series. Adv. Eng. Inform. 2024, 60, 102357. [Google Scholar] [CrossRef]
  28. Luo, Y.; Callies, J. Vertical exchange induced by mixed layer instabilities. J. Phys. Oceanogr. 2023, 53, 2701–2716. [Google Scholar] [CrossRef]
  29. Wirastuti, N.M.A.E.D.; Verlin, L.; Mkwawa, I.-H.; Samarah, K.G. Implementation of Geographic Information System Based on Google Maps API to Map Waste Collection Point Using the Haversine Formula Method. J. Ilm. Tek. Elektro Komput. Inform. 2023, 9, 731–745. [Google Scholar] [CrossRef]
  30. Güngör, E.; Özmen, A. Distance and density based clustering algorithm using Gaussian kernel. Expert Syst. Appl. 2017, 69, 10–20. [Google Scholar] [CrossRef]
  31. Livingstone, T.C.; Harris, J.M.; Lombard, A.T.; Smit, A.J.; Schoeman, D.S. Classification of marine bioregions on the east coast of South Africa. Afr. J. Mar. Sci. 2018, 40, 51–65. [Google Scholar] [CrossRef]
  32. Firdaus, D.; Sumardi, I. Comparative analysis of graph neural network with sage conv, gat conv, and gcn conv techniques for fake news detection. Ind. Sci. J. 2024, 1, 54–61. [Google Scholar]
  33. Zhao, Z.; Liu, Z.; Wang, Y.; Yang, D.; Che, W. RA-HGNN: Attribute completion of heterogeneous graph neural networks based on residual attention mechanism. Expert Syst. Appl. 2024, 243, 122945. [Google Scholar] [CrossRef]
  34. Yaro, A.S.; Maly, F.; Prazak, P.; Malý, K. Outlier detection performance of a modified z-score method in time-series rss observation with hybrid scale estimators. IEEE Access 2024, 12, 12785–12796. [Google Scholar] [CrossRef]
  35. Kulanuwat, L.; Chantrapornchai, C.; Maleewong, M.; Wongchaisuwat, P.; Wimala, S.; Sarinnapakorn, K.; Boonya-aroonnet, S. Anomaly detection using a sliding window technique and data imputation with machine learning for hydrological time series. Water 2021, 13, 1862. [Google Scholar] [CrossRef]
  36. Miao, J.; Zhu, W. Precision–recall curve (PRC) classification trees. Evol. Intell. 2022, 15, 1545–1569. [Google Scholar] [CrossRef]
  37. Gu, A.; Dao, T. Mamba: Linear-time sequence modeling with selective state spaces. arXiv 2023, arXiv:2312.00752. [Google Scholar] [CrossRef]
  38. Xie, K.; Zhang, T. Forecasting Significant Wave Height Intervals Along China’s Coast Based on Hybrid Modal Decomposition and CNN-BiLSTM. J. Mar. Sci. Eng. 2025, 13, 1163. [Google Scholar] [CrossRef]
  39. Zhou, Z.; Basker, R.; Yeung, D.Y. Graph Neural Networks for multivariate time-series forecasting via learning hierarchical spatiotemporal dependencies. Eng. Appl. Artif. Intell. 2025, 147, 110304. [Google Scholar] [CrossRef]
  40. Liu, Y.; Hu, T.; Zhang, H.; Wu, H.; Wang, S.; Ma, L.; Long, M. itransformer: Inverted transformers are effective for time series forecasting. arXiv 2023, arXiv:2310.06625. [Google Scholar]
Figure 1. Geographic locations of shipborne CTD observation stations along the Mid−Atlantic Ridge. The red circles in the diagram represent some sampling sites, and the blue circles represent nodes at different depths within the same site.
Figure 1. Geographic locations of shipborne CTD observation stations along the Mid−Atlantic Ridge. The red circles in the diagram represent some sampling sites, and the blue circles represent nodes at different depths within the same site.
Sensors 26 01537 g001
Figure 2. A schematic diagram of constructing a graph sample from consecutive depth slices within a window. It shows both lateral and vertical relationships between nodes.
Figure 2. A schematic diagram of constructing a graph sample from consecutive depth slices within a window. It shows both lateral and vertical relationships between nodes.
Sensors 26 01537 g002
Figure 3. Depth−Aware Hierarchical Feature Engineering Schematic.
Figure 3. Depth−Aware Hierarchical Feature Engineering Schematic.
Sensors 26 01537 g003
Figure 4. Mid−Atlantic Ridge Ocean Water Layer Division and Environmental Parameter Variations with Depth.
Figure 4. Mid−Atlantic Ridge Ocean Water Layer Division and Environmental Parameter Variations with Depth.
Sensors 26 01537 g004
Figure 5. Network architectures for (a) Gaussian Hidden Markov Model, (b) Transformer, and (c) Bidirectional LSTM.
Figure 5. Network architectures for (a) Gaussian Hidden Markov Model, (b) Transformer, and (c) Bidirectional LSTM.
Sensors 26 01537 g005
Figure 6. Heterogeneous Graph Autoencoder.
Figure 6. Heterogeneous Graph Autoencoder.
Sensors 26 01537 g006
Figure 7. HeteroConv internal structure.
Figure 7. HeteroConv internal structure.
Sensors 26 01537 g007
Figure 8. Statistics of cruise observation data within the DeepData database.
Figure 8. Statistics of cruise observation data within the DeepData database.
Sensors 26 01537 g008
Figure 9. Comparison of model reconstruction performance for (a) salinity, (b) water temperature, and (c) turbidity.
Figure 9. Comparison of model reconstruction performance for (a) salinity, (b) water temperature, and (c) turbidity.
Sensors 26 01537 g009
Figure 10. PRC of (a) salinity, (b) water temperature and (c) turbidity.
Figure 10. PRC of (a) salinity, (b) water temperature and (c) turbidity.
Sensors 26 01537 g010
Table 1. Geographic coordinates and water depths measured at selected shipborne survey stations in the Mid-Atlantic Ridge region.
Table 1. Geographic coordinates and water depths measured at selected shipborne survey stations in the Mid-Atlantic Ridge region.
Location35-135-1335-10736-5836-8336-21237-10337-15437-16937-19037-19937-209
Longitude (◦)−45.63−45.79−45.74−45.87−45.76−46.61−46.36−46.45−46.56−46.39−46.41−46.68
Latitude (◦)20.0520.6920.1519.8820.0517.9317.1416.7416.7317.1517.1217.82
Depth (m)195028102402286124933131151046182762190430163694
Table 2. Hyperparameters of the model.
Table 2. Hyperparameters of the model.
ParametersValue or TypeSearch Range/Variants Considered
Epochs150[50, 100, 150, 200, 300]
Batch Size16[4, 8, 16, 32, 64]
OptimizerAdam[SGD, Adam]
Window Size20[15, 20, 30, 40, 50]
Step Size8[3, 5, 8, 10, 15]
Initial Learning Rate0.005[0.0001, 0.0005, 0.001, 0.005, 0.01]
Dropout0.1[0, 0.1, 0.2, 0.3, 0.4]
Early Stopping30[10, 15, 20, 30, 40]
Reconstruction weight0.5[0.3, 0.5, 0.7]
Smoothness weight0.05[0.01, 0.05, 0.1, 0.3]
Latent weight0.001[0.001, 0.01, 0.05]
Table 3. Ablation experiments.
Table 3. Ablation experiments.
Gaussian HMMTrendEncoderCrossEncoderBiLSTMParamAcc (%)Pre (%)Rec (%)F1-Score(%)
1××××Sal99.8010080.9589.47
Tem99.8710080.3489.10
Tur99.7710079.3188.46
2×××Sal99.9010090.4895.00
Tem99.8383.1793.3387.96
Tur99.7710079.3188.46
3××Sal99.9095.2495.2495.24
Tem99.8587.2391.1189.13
Tur99.7710079.3188.46
4××Sal99.9874.4296.9784.21
Tem99.9193.3393.3393.33
Tur99.9710095.997.91
5×Sal99.9896.9796.9796.97
Tem99.9610094.4497.14
Tur99.9710095.097.44
6×××Sal99.879.199.187.98
Tem99.88093.3386.15
Tur99.879.199.187.98
7××Sal99.9210087.893.50
Tem99.8383.8492.2287.83
Tur99.9210087.893.50
8×Sal99.9410090.494.96
Tem99.8484.6992.2288.29
Tur99.9410090.494.96
9×Sal99.9999.1410099.57
Tem99.9610093.3396.55
Tur99.9999.1410099.57
10Sal99.9999.1410099.57
Tem99.9710095.5697.73
Tur99.9999.1410099.57
Note: √ represents the use of this module, while × indicates that the module was not used.
Table 4. Comparison experiments with other models on multiple environmental parameters.
Table 4. Comparison experiments with other models on multiple environmental parameters.
ModelParamAcc (%)Pre (%)Rec (%)F1-Score (%)
MambaSal99.9710095.5697.73
Tem99.8198.7874.3184.82
Tur99.8310076.6186.76
TransformerSal99.9878.3887.8882.86
Tem99.8598.6178.8987.65
Tur99.9880.7186.4383.47
iTransformerSal99.9885.0889.1787.08
Tem99.9884.6092.1788.22
Tur99.7272.2982.0976.88
CNNSal99.4255.0975.4163.67
Tem99.8690.3786.5288.40
Tur99.6767.2684.7274.99
HSDGNNSal99.9997.2689.1793.04
Tem99.9996.4386.5291.21
Tur99.9797.4391.5594.40
DAHSGNNSal99.9999.1410099.57
Tem99.9710095.5697.73
Tur99.9999.1410099.57
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Han, Z.; Gao, X.; Li, Z.; Ren, Y.; Shi, X. A Depth-Aware HGNN Method and Its Application in Anomaly Detection and Correction of Sparse Ocean Sensor Data. Sensors 2026, 26, 1537. https://doi.org/10.3390/s26051537

AMA Style

Han Z, Gao X, Li Z, Ren Y, Shi X. A Depth-Aware HGNN Method and Its Application in Anomaly Detection and Correction of Sparse Ocean Sensor Data. Sensors. 2026; 26(5):1537. https://doi.org/10.3390/s26051537

Chicago/Turabian Style

Han, Zongxun, Xiang Gao, Zhengbao Li, Yugang Ren, and Xianpeng Shi. 2026. "A Depth-Aware HGNN Method and Its Application in Anomaly Detection and Correction of Sparse Ocean Sensor Data" Sensors 26, no. 5: 1537. https://doi.org/10.3390/s26051537

APA Style

Han, Z., Gao, X., Li, Z., Ren, Y., & Shi, X. (2026). A Depth-Aware HGNN Method and Its Application in Anomaly Detection and Correction of Sparse Ocean Sensor Data. Sensors, 26(5), 1537. https://doi.org/10.3390/s26051537

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop