Next Article in Journal
SABI: Self-Adaptive Bias for Imbalanced Data Classification
Previous Article in Journal
Adversarial Attacks Against World Models: Hallucination-Driven Policy Failure
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Heterogeneous Graph Structure Optimization with Dual-View Contrastive Learning for Fraud Detection

1
College of Business, University College Dublin, D04 V1W8 Dublin, Ireland
2
School of Cyber Science and Engineering, Sichuan University, Chengdu 610207, China
3
School of Finance, Zhongnan University of Economics and Law, Wuhan 430073, China
4
School of Mechanical Engineering, Sichuan University, Chengdu 610207, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2026, 16(11), 5485; https://doi.org/10.3390/app16115485
Submission received: 8 May 2026 / Revised: 25 May 2026 / Accepted: 27 May 2026 / Published: 1 June 2026

Abstract

Fraud detection on multi-relational graphs is challenging because real-world fraud-related data often contains heterogeneous relations, noisy structures, and imbalanced labels. Existing GNN-based methods usually rely on predefined graph structures, but real-world financial graphs often contain noisy, redundant, or missing relations, which undermine neighborhood aggregation and message passing. In addition, single-view learning is insufficient to capture both local structural patterns and high-order semantic dependencies, limiting performance in complex fraud scenarios. To address this issue, we propose HGSO-DVCL, a heterogeneous graph structure optimization framework with dual-view contrastive learning. The framework performs type-aware structure optimization for each relation subgraph and integrates optimized graphs with the original structure through channel attention. A dual-view encoder then learns complementary representations from the network schema view and the meta-path view, while contrastive learning promotes consistency and complementarity between the two perspectives. An end-to-end objective jointly optimizes fraud classification, structure regularization, and contrastive alignment. Experiments on public multi-relational fraud detection benchmarks show that HGSO-DVCL achieves strong and competitive performance, while ablation and sensitivity studies support the effectiveness and stability of the proposed framework under the evaluated benchmark settings.

1. Introduction

Financial fraud poses a significant and growing threat to the global economy, causing substantial losses for financial institutions and consumers alike [1]. With the rapid expansion of digital payment systems and online financial services, the volume and complexity of financial transactions have increased dramatically, creating intricate interaction networks among diverse entity types such as accounts, bank cards, merchants, and devices. These complex relational structures provide rich contextual information for fraud analysis, motivating the adoption of graph-based analytical approaches that can explicitly model the relational dependencies inherent in financial transaction data [2].
Graph neural networks (GNNs) have emerged as a powerful paradigm for fraud detection by leveraging the topological structure of transaction networks to propagate and aggregate information across connected entities [3]. Compared with traditional methods that treat each transaction as an independent sample, GNN-based approaches can capture multi-hop interactions, shared device usage patterns, and fund flow trajectories within a unified heterogeneous graph framework. Several recent studies have demonstrated the effectiveness of graph-based methods in identifying anomalous transaction patterns and detecting group-level fraud activities.
Despite these advances, existing GNN-based fraud detection methods face three fundamental challenges. (a) The real-world financial transaction graphs inevitably contain structural defects, including noisy edges, redundant connections, and missing key relationships, arising from data collection errors, entity resolution inaccuracies, and business rule biases. These structural imperfections directly interfere with the neighborhood aggregation mechanism in GNNs, introducing misleading or irrelevant information during message passing and degrading model robustness [4]. Most current approaches implicitly assume that the predefined graph structure is reliable and optimal, an assumption that rarely holds in practical financial scenarios. (b) Fraud detection faces the compounded challenges of extreme class imbalance and label scarcity. Fraudulent transactions typically constitute a very small fraction of total activity, and obtaining reliable fraud labels requires expensive manual investigation. Relying solely on supervised signals makes models prone to majority-class bias. Single-view graph modeling further limits detection capability, as it cannot simultaneously capture both local relational interaction patterns and high-order semantic associations across different relation combinations. Complex fraud strategies such as relation camouflage and coordinated gang activities demand multi-perspective analysis that single-view approaches fail to provide [5]. (c) The separation between graph structure construction and representation learning in existing pipelines prevents these two processes from mutually benefiting each other. Graph structure quality directly determines the effectiveness of downstream representation learning, while task-driven feedback from node classification can guide structure refinement [6]. Without joint optimization, suboptimal graph structures propagate errors into learned representations, ultimately limiting fraud detection accuracy.
To address these challenges, we propose a Heterogeneous Graph Structure Optimization framework with Dual-View Contrastive Learning (HGSO-DVCL) for fraud detection. The HGSO-DVCL first refines relation-specific heterogeneous graph structures by integrating optimized subgraph topology with the original graph, and then learns node representations from both the network schema view and the meta-path view. Cross-view contrastive learning is further introduced to align the two perspectives and encourage them to provide consistent yet complementary signals within an end-to-end prediction-oriented framework. The novelty of HGSO-DVCL lies in coupling relation-specific structure refinement with dual-view heterogeneous representation learning in a single fraud-oriented optimization framework. Unlike methods that directly encode the given graph, HGSO-DVCL first constructs relation-aware feature similarity and feature propagation graphs to correct unreliable topology. Unlike standard heterogeneous graph encoders, it then aligns a network schema view and a meta-path view through meta-path-guided contrastive constraints. Therefore, the main methodological contribution is the task-driven integration of heterogeneous graph structure optimization and dual-view contrastive learning for fraud detection.
In this work, we mainly address three core problems: (1) how to refine unreliable heterogeneous graph structures that contain noisy, redundant, or missing relations without discarding the original relational evidence; (2) how to learn node representations that jointly capture local relational interactions and high-order semantic dependencies in complex fraud scenarios; and (3) how to unify graph structure optimization and downstream fraud classification within a single collaborative learning framework. The main contributions of this paper are summarized as follows:
  • We propose a type-aware heterogeneous graph structure optimization mechanism that constructs feature similarity graphs and feature propagation graphs for each relation type, and fuses them with the original adjacency through channel attention, effectively reducing structural noise and recovering potentially missing connections.
  • We design a dual-view contrastive learning framework that combines a network schema view encoder with a meta-path view encoder, enhanced by meta-path-guided cross-view consistency constraints, to learn robust and discriminative node representations.
  • We formulate an end-to-end joint optimization objective that unifies supervised classification, graph structure regularization, and contrastive alignment, enabling the graph optimization and representation learning modules to collaboratively improve fraud detection performance.
  • We conduct experiments on two public multi-relational fraud detection benchmarks, showing that HGSO-DVCL achieves strong and competitive performance across multiple evaluation metrics, with ablation and sensitivity analyses supporting the contribution of its main components.
The remainder of this paper is organized as follows. Section 2 reviews related work on fraud detection methods. Section 3 introduces the necessary preliminaries and problem formulation. Section 4 presents the proposed HGSO-DVCL framework in detail. Section 5 reports the experimental evaluation. Section 6 concludes this paper and discusses future research directions.

2. Related Work

Fraud detection is not only a technical prediction task, but also a problem related to misconduct, information quality, institutional monitoring, and regulatory enforcement. Prior studies in economics and finance emphasize that detected fraud or misconduct represents only a subset of underlying misconduct, and that detection outcomes are affected by incentives, reporting mechanisms, enforcement resources, and regulatory design [7,8]. Predictive models are therefore more appropriately understood as decision-support tools for prioritizing suspicious cases rather than as direct measurements of the true prevalence of misconduct. In practical financial settings, false positives may increase investigation costs and reputational risks, while false negatives may allow harmful behavior to remain undetected. These concerns also highlight the importance of connecting fraud detection methods with concrete institutional environments, review budgets, and regulatory objectives [9,10].

2.1. Machine Learning-Based Fraud Detection

Machine learning-based financial fraud detection uses data-driven algorithms to learn patterns from historical transaction data and identify anomalous or fraudulent behaviors. Talukder et al. [11] proposed a comparative learning approach based on decision trees, random forests, and K-nearest neighbors, addressing the balance between computational efficiency and detection accuracy on large-scale fraud datasets. Khalid et al. [12] constructed an ensemble learning framework integrating support vector machines, random forests, and boosting algorithms, effectively alleviating model parameter tuning complexity and high false positive rates. Bala et al. [13] introduced an optimized XGBoost-based detection model to balance computational cost, precision, and recall in real-time fraud detection. Chen et al. [14] designed a LightGBM-based online transaction fraud detection system that addresses high-dimensional sparsity in large-scale online payment data through feature engineering optimization, achieving 99.5% detection accuracy. Wijaya et al. [15] systematically compared XGBoost with various data balancing techniques, finding that XGBoost combined with random oversampling achieves an F1 score of 92.43%, effectively mitigating model bias under class imbalance. Xia et al. [16] proposed a selective ensemble model that dynamically selects base learners to enhance detection robustness on highly imbalanced digital financial datasets. Lim et al. [17] introduced the TP-ERT method, which applies tree-structured Parzen estimators for hyperparameter optimization of extremely randomized trees, capturing complex transaction patterns through higher-randomness splitting. Tayebi et al. Tayebi and El Kafhali [18] proposed an XGBoost-based approach with Bayesian optimization for automatic hyperparameter search, combined with SMOTE, random undersampling, and cross-validation to suppress overfitting under extreme class imbalance.
While machine learning models offer greater adaptability than rule-based systems by learning fraud features in a data-driven manner, they fundamentally treat transactions as independent events, ignoring relational dependencies and sequential patterns. This limitation prevents them from capturing cross-transaction, cross-entity higher-order collaborative fraud patterns.

2.2. Deep Learning-Based Fraud Detection

Compared with traditional machine learning methods that rely on manual feature engineering, deep learning models can automatically extract hierarchical representations through nonlinear architectures. This enables stronger modeling of complex patterns and supports end-to-end adaptive learning. Elkenawy et al. [19] compared recurrent neural network architectures including RNN, LSTM, and GRU for credit card fraud detection, capturing temporal dependency features in transaction data to reduce false positives and improve overall detection accuracy. Yu et al. [20] constructed a Transformer-based fraud detection model that leverages self-attention mechanisms to address the inability of RNN-based models to effectively capture long-range contextual dependencies. Mienye et al. [21] proposed a hybrid deep learning framework combining generative adversarial networks (GANs) with recurrent neural networks, generating realistic fraudulent samples through GANs to address class imbalance and enhance detection capability. Du et al. [22] constructed a hybrid framework integrating autoencoders with conditional generative adversarial networks to address the co-optimization of feature learning and minority sample generation under extreme imbalance. Koo et al. [23] proposed an unsupervised anomaly detection method based on deep autoencoders, addressing the balance between fraud pattern discovery and low false positive rates under label-scarce scenarios. Delise et al. [24] introduced deep semi-supervised anomaly detection (Deep SAD), addressing model training challenges when only a small number of labeled anomalous samples are available.
Despite the potential of deep learning methods for improving fraud detection accuracy, several limitations persist. Most models fail to incorporate broad contextual information such as temporal patterns and entity relationships. Fixed models are susceptible to concept drift, making it difficult to maintain performance over time. Furthermore, most models adopt fixed fraud classification thresholds that may not be optimal across different scenarios.

2.3. Graph-Based Fraud Detection

Graph-based financial fraud detection [3] abstracts transaction entities and their relationships into nodes and edges, leveraging graph neural networks to mine anomalous association patterns and group fraud behaviors in transaction networks. Financial transactions inherently form relational networks, and graph models can explicitly capture topological dependencies, multi-hop interactions, and hidden association features that traditional tabular or sequential methods struggle to express. Duan et al. [25] proposed CaT-GNN, a causal temporal graph neural network that identifies causal nodes and implements causal interventions through a causal invariance learning mechanism, addressing the insufficient robustness, poor generalization, and limited interpretability caused by traditional GNNs ignoring local structural causal effects. Wang et al. [26] proposed a label information-enhanced fraud detection method that introduces label propagation and topological denoising mechanisms to address insufficient fraud node identification accuracy in low-homophily graph networks. Wan et al. [27] constructed the MDGC-LSTM model, which integrates dynamic graph convolutional networks with long short-term memory networks in a symmetric spatiotemporal architecture, achieving comprehensive modeling of complex spatiotemporal dependencies for dynamic fraud prediction. Wang et al. [28] proposed CoSemiGNN, a dynamic graph neural network that captures temporal dynamics using self-attention RNNs and integrates semi-supervised co-occurrence relationships, addressing the challenges of label scarcity and dynamic data distribution in blockchain environments. Pan et al. [29] proposed an unsupervised heterophily-guided graph fraud detection approach that employs label-agnostic heterophily learning mechanisms to address the dependency on labeled data in graph anomaly detection under annotation-scarce scenarios. Zou et al. [30] proposed a subgraph pattern-enhanced graph neural network that explicitly encodes high-order subgraph structural information, addressing the difficulty of capturing complex multi-hop association patterns in transaction networks. Wu et al. [31] proposed SplitGNN, a spectral graph neural network that separates heterogeneous signals through spectral decomposition, addressing the neighbor aggregation noise caused by network heterophily in fraud detection.
Although graph-based methods have significantly advanced fraud detection, most existing approaches implicitly assume that the predefined graph structure is reliable and optimal, conducting representation learning directly on the original graph. This assumption is difficult to satisfy in real financial scenarios where graphs inevitably contain noise and structural defects. Moreover, single-view graph modeling cannot simultaneously capture multi-level semantic information under different relation combinations, limiting adaptability to complex fraud patterns. Our proposed method addresses these gaps by jointly optimizing graph structure and learning dual-view representations within a unified framework.

3. Preliminaries

3.1. Financial Fraud Pattern

As a motivating setting, financial transaction fraud encompasses a broad range of illicit activities, including credit card fraud, identity theft, money laundering, account takeover, and coordinated group fraud schemes [32]. As digital payment ecosystems expand, fraudsters continuously develop increasingly sophisticated strategies, often forming organized networks that exploit the complex interactions among multiple entities. The relational nature of financial transactions, where accounts, bank cards, merchants, and devices interact through diverse channels, creates intricate networks with inherent heterogeneity.
In practice, constructing a graph from financial transaction data involves mapping different entity types as nodes and their interactions as edges. For example, two transactions may be connected through a shared user account, a common merchant, or the same device identifier. These diverse relationship types encode rich semantic information that can reveal hidden fraud patterns. However, the graph construction process is susceptible to multiple sources of imperfection. Data collection mechanisms may miss certain interactions, entity resolution algorithms may incorrectly merge or split entities, and predefined business rules may introduce systematic biases in which edges are included [33]. As a result, the constructed graph typically contains noisy edges that connect unrelated entities, redundant connections that provide no additional discriminative information, and missing relationships that would otherwise reveal important fraud signals. These structural defects directly compromise the quality of neighborhood aggregation in graph neural networks, where message passing may propagate irrelevant or misleading information across the network.

3.2. Heterogeneous Information Networks

In transaction-level financial settings, fraud detection may involve multiple entity and interaction types, such as users, transactions, merchants, devices, and accounts. Since fraudulent behavior often emerges from shared attributes, repeated interactions, and hidden group-level collaboration rather than isolated transactions, HINs provide a unified graph structure for modeling multi-entity and multi-relation financial systems. As shown in Figure 1, HINs support the proposed framework by capturing both direct transaction dependencies and richer cross-type semantic associations for structure optimization and dual-view representation learning.
A heterogeneous information network (HIN) [34] is defined as a graph G = ( V , E , ϕ , ψ ) , where V denotes the set of nodes, E denotes the set of edges, ϕ : V A is a node type mapping function, and ψ : E R is an edge type mapping function. Here A and R represent the sets of node types and edge types, respectively. A heterogeneous graph satisfies | A | + | R | > 2 , indicating the presence of multiple node types or edge types.
The semantic structure of a heterogeneous information network is characterized by two key concepts: network schema and meta-paths. The network schema S = ( A , R ) serves as an abstract, type-level representation of the HIN, where nodes represent entity types and edges represent the allowed relationship types between them. The network schema defines the local connectivity patterns and captures direct interactions among different entity types. For instance, in a financial transaction HIN, the network schema specifies that users conduct transactions and that transactions are associated with merchants. A meta-path is defined as a path on the type-level graph in the form A 1 R 1 A 2 R 2 R l A l + 1 (abbreviated as A 1 A 2 A l + 1 ), which describes the composite relation R = R 1 R 2 R l between node types A 1 and A l + 1 , where ∘ denotes the composition operator. For example, in a financial transaction graph with users (U), transactions (T), and merchants (M), the meta-path T M T (abbreviated T M T ) captures the semantic relation that two transactions occur at the same merchant, while U T U (abbreviated U T U ) indicates that two users are connected through a common transaction, such as a fund transfer. Since meta-paths compose multiple relations, they encode complex high-order semantic information that complements the local direct connectivity captured by the network schema.
These two perspectives are complementary for fraud detection. The network schema captures local type-constrained interactions and immediate transaction behaviors, while meta-paths reveal high-order semantic dependencies such as relation camouflage, collusive groups, and cross-entity risk propagation. This motivates the dual-view design: the schema view models local heterogeneous interactions, whereas the meta-path view captures broader semantic associations, jointly providing a more comprehensive fraud representation.

3.3. Problem Formulation

In real-world construction, financial transaction graphs are vulnerable to missing data, entity resolution errors, and business-rule biases, resulting in noisy edges, redundant connections, and missing critical relations [35], as illustrated in Figure 2. These structural defects interfere with GNN neighborhood aggregation by introducing irrelevant or misleading messages, thereby reducing model robustness. Meanwhile, severe class imbalance, limited labels, and evolving fraud patterns make purely supervised models prone to majority-class bias. Single-view modeling also struggles to capture multi-level semantics from different relation combinations, limiting its adaptability to relation camouflage and collusive fraud. To address these challenges, this paper integrates heterogeneous GNNs, graph structure optimization, and cross-view contrastive learning for fraud detection.
Specifically, the research task addressed in this paper is formulated as a node classification problem on a heterogeneous fraud graph. Let G = ( V , E , A , R , X ) denote the heterogeneous transaction graph, where V is the node set, E is the edge set, A and R represent the node type set and edge type set respectively, and X is the node feature matrix. Given a set of meta-paths P = { P 1 , P 2 , , P m } and a set of labeled nodes V L = { ( v i , y i ) } where y i { 0 , 1 } denotes the class label of node v i (fraud or legitimate), the objective is twofold.
First, unlike methods that operate directly on the original graph, the proposed approach learns an optimized graph structure G that is more suitable for downstream fraud detection. Second, on the optimized graph, node representations are learned from both the network schema view and the meta-path view, and their robustness and discriminability are enhanced through multi-view collaborative mechanisms. The final fused node representations are used for classification prediction. The overall optimization objective can be expressed as:
L = L cls + α L reg + β L con
where L cls denotes the supervised classification loss, L reg represents the graph structure optimization regularization term, L con denotes the multi-view contrastive constraint, and α , β are the balancing coefficients. By minimizing this joint objective, the model jointly refines the graph structure and learns discriminative node representations. This formulation provides a unified task objective for HGSO-DVCL by combining structure refinement with complementary semantic information from different views. It also motivates the graph optimization and dual-view representation learning modules introduced in the following section. For clarity and reproducibility, the main notations used in the proposed framework are summarized in Appendix A.

4. Methodology

4.1. Overview

The proposed HGSO-DVCL framework consists of three tightly coupled modules, as illustrated in Figure 3. Given a heterogeneous graph, the framework first applies type-aware structure optimization to each relation subgraph. It constructs feature similarity graphs and feature propagation graphs, and then fuses them with the original adjacency through channel attention to obtain an enhanced topology. Based on the optimized graph, the network schema view encoder and the meta-path view encoder learn complementary representations for local relational interactions and high-order semantic associations, respectively. Cross-view contrastive learning enforces alignment between these two perspectives by leveraging meta-path connectivity to construct positive sample pairs. Finally, the dual-view embeddings are concatenated and fed into a supervised classifier. The total loss integrates classification, structure regularization, and contrastive objectives for end-to-end joint training.

4.2. Heterogeneous Graph Structure Optimization

Different types of nodes and relations in a heterogeneous graph exhibit distinct characteristics in terms of semantic strength, noise level, and statistical distribution. The original graph structure is often affected by business rules and data quality issues, leading to redundant edges, missing key relationships, and inconsistent cross-type connections [36]. These problems cause error accumulation and semantic aliasing during message passing. The goal of heterogeneous graph optimization is to perform type-aware reweighting, denoising, and completion of the graph structure, making the propagation process more aligned with relational semantics and reducing the risk of erroneous information propagation.
The optimized graph is expected to be more effective than the original topology when the observed graph is only partially reliable, namely when it still contains useful relational evidence but is affected by noisy, redundant, or missing links. In this setting, the feature similarity graph provides an attribute-consistent cue for discovering potential neighbors, while the feature propagation graph constrains this cue through the observed relation topology. These two graphs therefore offer complementary evidence: the former is content-driven, whereas the latter is topology-aware. Channel attention is adopted because the reliability of different structural cues may vary across relation types and datasets, and fixed fusion weights may not be suitable for all relations. To avoid over-smoothing and noisy pseudo-link propagation, HGSO-DVCL further applies sparsity thresholds to remove weak similarity links, performs propagation through the observed topology rather than a fully connected similarity graph, retains the original adjacency in the final fusion stage, and penalizes overly dense optimized adjacency matrices through L1 regularization. These designs make the learned topology a conservative refinement of the original graph rather than an unconstrained graph reconstruction.
Feature Similarity Graph. In heterogeneous fraud graphs, the original relation structure may contain noisy, redundant, or rule-biased edges that hinder fraud discrimination. To provide a content-driven cue for graph refinement, we construct a feature similarity graph for each relation type, which estimates attribute-based connectivity under relation r and serves as a candidate structure for later fusion with the original topology and the feature propagation graph. Since heterogeneous node types often have inconsistent feature dimensions, all node features are first projected into a unified common space to enable relation-aware similarity computation across heterogeneous entities. Its common-space representation h v is obtained through a type-specific mapping layer:
h v = σ ( W t x v + b t )
where σ ( · ) denotes a nonlinear activation function, and W t and b t are the projection matrix and bias term associated with node type t, respectively. Let d t denote the input feature dimension of node type t, and let d denote the hidden dimension shared by all node types. Then W t R d × d t , b t R d , and h v R d . The relation-specific parameter M r R d reweights hidden dimensions when computing weighted cosine similarity. This projection maps heterogeneous raw attributes into a type-normalized latent space, making different node types comparable for relation-specific similarity modeling. In HGSO-DVCL, it provides a unified feature basis for graph structure optimization and semantically aligned inputs for downstream dual-view representation learning. In the common feature space, for a given relation type r, the feature similarity graph S r is constructed to measure attribute-level affinity between nodes. Specifically, the edge weight between nodes v i and v j is defined as:
S i j r = sim M r ( h i , h j ) , if sim M r ( h i , h j ) ϵ 0 , otherwise
where h i and h j are the projected representations of nodes v i and v j , respectively, and S i j r denotes their similarity-based edge weight under relation r. The threshold ϵ controls graph sparsity; a larger ϵ preserves only stronger similarities and thus yields a sparser graph. This thresholding operation retains only strong relation-aware associations, suppressing weak or potentially noisy connections before message passing. The similarity function sim M r ( · , · ) is defined as a relation-aware weighted cosine similarity:
sim M r ( h i , h j ) = ( h i M r ) ( h j M r ) h i M r · h j M r
where ⊙ denotes the Hadamard (element-wise) product, and M r is a learnable relation-specific parameter that weights the importance of each feature dimension for relation r. The numerator captures alignment between reweighted node features, while the denominator normalizes their magnitudes for comparable similarity scoring. This design enables relation-specific emphasis on fraud-relevant feature dimensions beyond raw attribute overlap.
By projecting heterogeneous features into a unified space, computing relation-aware similarities, and filtering weak connections, the feature similarity graph provides an attribute-consistent candidate topology. It complements the original graph by suppressing unreliable associations and revealing informative neighbors, providing a cleaner basis for feature propagation, graph fusion, and dual-view representation learning.
Feature Propagation Graph. While the feature similarity graph offers an attribute-driven candidate structure, it does not fully capture the observed transaction topology. In practice, suspicious nodes may lack strong direct feature similarity but still share related risk patterns through structurally similar neighborhoods. To capture such latent dependencies, we construct a feature propagation graph for each relation type, which propagates feature similarity over the original heterogeneous topology to recover potentially missing fraud-relevant connections while preserving structural constraints. This module bridges attribute-level similarity and topology-aware refinement, complementing the feature similarity graph in graph fusion.
For a given relation type r, let the head node set and tail node set be denoted by V h and V t , respectively, and let the original topology under relation r be represented by the adjacency matrix A r . Here, A r encodes the observed cross-type connections from head nodes to tail nodes in the financial transaction graph. For any two head nodes v i , v j V h , the head-node feature similarity graph S ^ h r is defined as:
S ^ h , i j r = sim M ^ h r ( h i , h j ) , if sim M ^ h r ( h i , h j ) ϵ h 0 , otherwise
where S ^ h , i j r denotes the similarity weight between head nodes v i and v j under relation r, h i and h j are their projected node representations in the common feature space, ϵ h is the sparsity threshold for the head-side similarity graph, and sim M ^ h r ( · , · ) is a weighted cosine similarity parameterized by the learnable relation-specific matrix M ^ h r . This construction identifies semantically or behaviorally similar head nodes while filtering weak and noisy associations. Feature similarity is then propagated through the original topology to obtain the head-node feature propagation graph:
F h r = S ^ h r A r
where F h r denotes the propagated structural signal from the head side under relation r. This operation lets feature-similar head nodes reinforce their connections to tail nodes through A r . Thus, the model can infer topology-aware candidate links that are not directly observed but jointly supported by feature similarity and the existing relation structure. Similarly, a tail-node feature similarity graph S ^ t r is constructed on the tail node set V t using the corresponding learnable parameter matrix M ^ t r , and the tail-side feature propagation graph is obtained as:
F t r = ( A r ) S ^ t r
where F t r denotes the propagated structural signal from the tail side under relation r. By propagating tail-node similarity through ( A r ) , the model captures additional structural evidence for hidden head-side associations. This is useful when fraud signals emerge indirectly through shared merchants, devices, accounts, or other intermediate entities rather than direct pairwise similarity.
Together, F h r and F t r extend the original topology with feature-guided neighborhood evidence from both sides of relation r. Compared with the feature similarity graph alone, the feature propagation graph better preserves observed interaction patterns, helping recover missing fraud-relevant links and suppress structurally isolated noise. These propagated graphs are then fused with the original adjacency and feature similarity graph to form a more reliable topology for the downstream schema view and meta-path view encoders.
Optimized Graph Construction. After obtaining the feature similarity graph S r and the two feature propagation graphs F h r and F t r for relation type r, the next step is to integrate these complementary structural cues into a unified optimized topology for financial fraud detection. The three candidate graphs reflect different but related views of relation refinement: S r emphasizes attribute-level consistency, while F h r and F t r capture topology-aware structural expansion from the head and tail sides, respectively. Since candidate structures vary in reliability across relations and datasets, we use channel attention to adaptively weight their contributions rather than assigning fixed weights. This enables the model to preserve graph patterns most informative for fraud detection.
Specifically, the three candidate feature graphs are stacked along the channel dimension to form a tensor T r , and the fused feature optimization graph is computed as:
A ˜ r = ChannelAttn W c ( T r )
where T r denotes the stacked tensor composed of S r , F h r , and F t r , A ˜ r is the fused feature-driven graph under relation r, and ChannelAttn W c ( · ) represents a parameterized channel attention layer with learnable weight W c . This layer applies channel-wise transformation and softmax normalization to assign adaptive weights to candidate graphs, allowing the fusion process to emphasize graph evidence most useful for fraud-relevant connectivity under each relation. The fused graph A ˜ r is still derived mainly from feature-guided structural cues. Although these cues help reveal missing or denoised connections, the original adjacency matrix A r still contains observed transaction relationships that should not be discarded entirely. To retain this observed structural prior while correcting its defects, we further combine the fused feature graph with the original relation graph to generate the final optimized adjacency:
A r = ChannelAttn W f ( [ A ˜ r ; A r ] )
where [ A ˜ r ; A r ] denotes the concatenation of the fused feature graph and the original adjacency along the channel dimension, A r is the final optimized adjacency matrix for relation r, and ChannelAttn W f ( · ) is another channel attention layer parameterized by W f . This second fusion stage balances feature-derived structure and observed topology to reconstruct a more reliable relation graph, preserving trustworthy links while suppressing noisy edges and recovering missing fraud-relevant associations. After performing this adaptive fusion for all relation types, the optimized heterogeneous graph structure is obtained as:
G = ( V , { A r } r R ) .
Here, V is the node set and { A r } r R is the collection of optimized adjacency matrices over all relation types. The resulting graph G serves as the refined structural foundation of the HGSO-DVCL framework. This completes the graph structure optimization module by transforming imperfect financial transaction relations into a topology better aligned with feature evidence and observed interactions. The optimized graph then provides a cleaner and more fraud-discriminative foundation for downstream schema view and meta-path view representation learning.

4.3. Dual-View Contrastive Learning

To enhance the synergy and complementarity between different structural perspectives, the proposed framework encodes nodes from both the network schema view and the meta-path view, leveraging the node embeddings obtained under these two views for contrastive learning. Cross-view consistency constraints promote the fusion and complementarity of different structural semantics [37].
Network Schema View Encoder. After the graph structure optimization module produces the refined graph G , the network schema view encoder learns node representations from direct type-constrained interactions in the optimized heterogeneous fraud graph. This view captures local relation-specific patterns. In transaction-level financial settings, such patterns may correspond to suspicious transaction links, abnormal account–merchant associations, or device-sharing behaviors. In HGSO-DVCL, it serves as the local structural representation branch and complements the higher-order semantic modeling of the meta-path view encoder in dual-view learning.
For a target node v, let N t ( v ) denote the set of its neighbors of type t in the optimized graph G , and let h u denote the projected common-space feature of neighbor node u obtained from the graph structure optimization module. Since neighbors and neighbor types contribute differently to fraud discrimination, hierarchical attention is used for weighted aggregation at both node and type levels. At the node level, for neighbors of type t, the type-specific representation of node v is computed as:
z v t = σ u N t ( v ) α v u t · h u
where z v t denotes the aggregated representation of node v from its type-t neighbors, σ ( · ) is a nonlinear activation function, h u is the projected feature of neighbor node u, and α v u t is the attention coefficient measuring the importance of neighbor u to node v under neighbor type t. This aggregation allows the model to emphasize more informative neighbors while suppressing less relevant ones, which is particularly helpful in financial fraud detection where even within the same relation type, some neighbors may carry stronger risk evidence than others. The node-level attention coefficient is defined as:
α v u t = exp a t [ h v h u ] u N t ( v ) exp a t [ h v h u ]
where h v and h u are the projected features of the target node v and its neighbor u, respectively, a t is the learnable node-level attention vector associated with neighbor type t, and ‖ denotes vector concatenation. Softmax normalizes the attention scores over all type-t neighbors of node v. This makes neighbor contributions adaptive to both the target node and relation-specific context, allowing the encoder to focus on relevant local interaction signals. To reduce computation and maintain representation diversity, we adopt neighbor sampling: if | N t ( v ) | exceeds a threshold, a fixed number of neighbors are randomly sampled; otherwise, repeated sampling is used. The resulting type-specific representations are then fused by type-level attention. The importance weight of type t is computed as:
β t = exp q tanh ( W s z v t + b s ) t A exp q tanh ( W s z v t + b s )
where β t denotes the importance of neighbor type t to the representation of node v, A is the set of node types, and q , W s , and b s are learnable parameters. This type-level fusion helps the model identify which neighbor categories are more informative for fraud detection, as signals from devices, merchants, linked accounts, or transaction counterparts may contribute differently across financial scenarios. The final network schema view representation of node v is then obtained as
e v ( s ) = t A β t · z v t
where e v ( s ) denotes the schema view embedding of node v. By hierarchically aggregating optimized local interactions across neighbor instances and types, the network schema view encoder captures direct heterogeneous relational patterns and produces locally discriminative node embeddings. These embeddings form one branch of the dual-view representation for cross-view contrastive learning and final fraud classification.
Meta-Path View Encoder. While the network schema view encoder captures direct type-constrained interactions, it is limited to local relational patterns. Fraudulent behaviors often emerge through high-order semantic associations, such as shared merchants, devices, or multi-step relation chains. Therefore, the meta-path view encoder learns representations under different meta-paths on the optimized graph G , providing a high-order semantic branch that complements the local structural representation and supports more comprehensive fraud pattern modeling.
For a target node v, given a set of m meta-paths P = { P 1 , P 2 , , P m } , let N P k ( v ) denote the set of meta-path-constrained neighbors of v under meta-path P k . These neighbors are not defined by a single direct relation, but by composite relation sequences that encode higher-order semantic connectivity in the heterogeneous financial graph. A meta-path-specific graph encoder is then used to aggregate the semantic information associated with P k :
z v P k = u N P k ( v ) 1 d v · d u h u
where z v P k denotes the representation of node v under meta-path P k , h u is the projected feature of meta-path neighbor node u, and d v and d u are the degrees of nodes v and u, respectively, within the meta-path-induced graph. The normalization term ( d v d u ) 1 / 2 reduces the influence of high-degree nodes and stabilizes aggregation across different meta-path structures. In this way, the encoder captures semantic dependencies from composite relational patterns beyond direct neighbors. This is important for fraud detection because coordinated fraud, relation camouflage, and cross-entity risk propagation are often better revealed through multi-hop semantic connections. Based on the m predefined meta-paths, the encoder produces m meta-path-specific representations { z v P 1 , z v P 2 , , z v P m } . Since different meta-paths may contribute unequally to fraud identification, a semantic-level attention mechanism is introduced to adaptively fuse them into the final meta-path view representation:
e v ( p ) = k = 1 m γ k · z v P k
where e v ( p ) denotes the final meta-path view embedding of node v, and γ k is the attention weight that measures the importance of meta-path P k in the fusion process. This aggregation allows the model to emphasize semantic channels that are more informative for downstream fraud detection, rather than treating all meta-paths equally. The semantic attention weight γ k is computed as:
γ k = exp 1 | V target | v V target p tanh ( W p z v P k + b p ) k = 1 m exp 1 | V target | v V target p tanh ( W p z v P k + b p )
where V target denotes the target node set, and p , W p , and b p are learnable parameters. The exponential term measures the overall usefulness of meta-path P k over target nodes, and softmax converts these scores into relative importance weights. This enables the model to prioritize meta-paths that better capture fraud-relevant semantic associations, such as shared behavioral contexts or hidden collaborative structures.
By aggregating and adaptively weighting multiple meta-path-induced neighborhoods, the meta-path view encoder captures high-order semantic dependencies in heterogeneous financial networks, complementing the schema view encoder with broader semantic evidence beyond direct interactions. The resulting meta-path view embedding e v ( p ) , together with the schema view embedding e v ( s ) , forms the dual-view representation used in the subsequent cross-view contrastive learning module and the final fraud classification objective.

4.4. Joint Collaborative Optimization

After obtaining the optimized heterogeneous graph G , the network schema view encoder and meta-path view encoder generate the local structural representation e v ( s ) and high-order semantic representation e v ( p ) , respectively. Since these two views provide complementary fraud-relevant information, we adopt an end-to-end joint optimization strategy that integrates supervised classification, structure regularization, and cross-view contrastive learning [38]. This allows graph refinement to receive task-driven feedback while encouraging the dual-view encoders to learn discriminative and semantically consistent representations.
Supervised Classification Loss. The schema view representation e v ( s ) and the meta-path view representation e v ( p ) are first concatenated and then fed into a single-layer perceptron classifier to predict the fraud probability of node v:
y ^ v = sigmoid W o [ e v ( s ) e v ( p ) ] + b o
where [ e v ( s ) e v ( p ) ] denotes the concatenation of the two view-specific representations, W o and b o are learnable classifier parameters, and y ^ v ( 0 , 1 ) denotes the predicted probability that node v is fraudulent. This prediction layer directly converts the complementary dual-view embeddings into a task-oriented fraud score, thereby linking representation learning to the final classification objective in financial fraud detection. The supervised classification loss is defined as the binary cross-entropy between the predicted fraud probability and the ground-truth label:
L cls = v V L y v log y ^ v + ( 1 y v ) log ( 1 y ^ v )
where V L is the set of labeled nodes and y v { 0 , 1 } is the ground-truth label of node v. This loss drives the model to learn node representations that are directly useful for distinguishing fraudulent and legitimate entities in the heterogeneous financial graph.
Structure Regularization. Although graph structure optimization improves the heterogeneous transaction graph, unconstrained structure learning may overfit by producing overly dense or flexible patterns. To control complexity and encourage sparse, interpretable refinement, we impose an L 1 regularization term on the optimized adjacency matrices:
L reg = r R A r 1
where A r is the optimized adjacency matrix for relation type r, R is the set of relation types, and · 1 denotes the element-wise L 1 norm. This regularization reduces unnecessary structural complexity, helping preserve informative fraud-relevant connections while preventing graph optimization from merely increasing structural capacity.
Cross-View Contrastive Loss. The two encoders capture different semantics of the optimized transaction graph: the schema view focuses on direct heterogeneous interactions, while the meta-path view models high-order semantic associations. Cross-view contrastive learning is introduced to make these views complementary yet semantically consistent for fraud detection. Specifically, the view-specific representations e v ( s ) and e v ( p ) are first projected by an MLP with a hidden layer into a contrastive space, yielding e ˜ v ( s ) and e ˜ v ( p ) , respectively. This projection makes embeddings more suitable for contrastive alignment without constraining the classifier input space. Positive samples are selected by meta-path connectivity, encouraging semantically related nodes to be closer across views. The meta-path connection strength between nodes v i and v j is defined as:
c ( v i , v j ) = k = 1 m [ v j N P k ( v i ) ]
where [ · ] is the indicator function, N P k ( v i ) denotes the neighbor set of node v i under meta-path P k , and m is the number of predefined meta-paths. The value c ( v i , v j ) counts how many meta-paths connect v i and v j , and thus reflects the strength of their high-order semantic association. Candidate nodes are ranked according to c ( v i , v j ) , the top-K nodes form the positive sample set P i + , and the remaining nodes form the negative sample set P i . For each anchor node v i , we compute c ( v i , v j ) between v i and candidate nodes of the target type. The top-K nodes with the largest meta-path connection strength are treated as positive samples, while the remaining nodes serve as negative candidates for training. This construction makes contrastive pairs depend on heterogeneous semantic connectivity rather than random augmentation, ensuring that positive pairs are selected based on fraud-relevant semantic evidence in the transaction graph. Using the network schema view representation as the anchor and the meta-path view representation as the contrast, the contrastive loss for node v i is defined as:
i ( s ) = log j P i + exp sim ( e ˜ i ( s ) , e ˜ j ( p ) ) / τ j P i + P i exp sim ( e ˜ i ( s ) , e ˜ j ( p ) ) / τ
where sim ( · , · ) denotes cosine similarity and τ is the temperature coefficient controlling the concentration of similarity scores. This objective encourages the schema view embedding of node v i to be close to semantically related meta-path view embeddings while remaining separated from unrelated ones. A symmetric loss i ( p ) is computed by swapping the anchor and contrast views, so that both encoders are jointly aligned instead of constraining only one direction. The overall cross-view contrastive learning objective is:
L con = 1 2 | V | v i V i ( s ) + i ( p )
where | V | is the number of nodes in the graph. This loss enhances cross-view consistency and complementarity, making node representations more robust to structural noise and more sensitive to complex fraud patterns involving both local and high-order semantic evidence.
Total Objective. The final training objective combines the three loss terms as:
L = L cls + α L reg + β L con
where α and β balance structure regularization and cross-view contrastive learning against the supervised classification objective. Minimizing this unified loss allows graph optimization, dual-view representation learning, and fraud classification to reinforce each other during training.
Overall, the joint collaborative optimization module coordinates HGSO-DVCL by linking structure refinement with fraud-oriented representation learning. As shown in Algorithm 1, the optimized graph improves dual-view embeddings, while supervised and contrastive objectives guide the graph and encoders toward robust and discriminative fraud modeling. Thus, the framework is trained under a unified task-aligned objective to produce structurally denoised, semantically complementary, and fraud-discriminative node representations.
Algorithm 1: Training Procedure of HGSO-DVCL
Applsci 16 05485 i001

5. Experiments and Results

5.1. Datasets

Due to privacy protection, regulatory compliance, and commercial sensitivity of real financial transaction data, publicly available transaction-level heterogeneous risk control datasets remain relatively scarce. Following widely adopted practice in graph-based fraud detection, we use YelpChi [39] and Amazon [40] as two public multi-relational fraud detection benchmarks. Although they are not pure transaction-level financial datasets, they have been extensively adopted in recent graph fraud detection studies. These datasets contain multi-relation graph structures, noisy connections, severe class imbalance, and fraud node labels, which are consistent with the key modeling challenges addressed in this paper. Therefore, they provide reproducible and commonly accepted benchmarks for validating the proposed graph learning mechanisms.
The YelpChi dataset contains hotel and restaurant reviews from Yelp with three edge types: R-U-R (reviews by the same user), R-S-R (reviews of the same product with the same star rating), and R-T-R (reviews of the same product in the same month). The Amazon dataset contains product reviews for musical instruments with three relation types: U-P-U (users reviewing at least one common product), U-S-U (users with at least one identical star rating within a week), and U-V-U (users with top-5% mutual review TF-IDF similarity). The detailed statistics are presented in Table 1. In the empirical benchmarks used in this paper, this general HIN is instantiated as multi-relational fraud graphs, where different edge types encode different review-based relational semantics rather than full transaction-level economic entities. Across these two benchmark datasets, heterogeneity is mainly reflected in multiple relation types constructed from review co-occurrence patterns. Therefore, in our experiments, the schema view and meta-path view encoders are used to model relation-specific semantics and relation-combination semantic patterns in multi-relational fraud graphs.

5.2. Experimental Setup

We follow the commonly used static benchmark setting for YelpChi and Amazon. The labeled nodes are divided into training, validation, and test sets using a stratified random split of 7:2:1. Hyperparameters are selected only on the validation set, and the test set is used only for final reporting. All reported results are averaged over 7 runs with different random seeds, and the mean and standard deviation are reported. Since the main purpose of this paper is to evaluate graph representation learning mechanisms under standard public benchmark protocols, we follow prior graph fraud detection studies and report F1-macro, AUC, and G-Mean. The specific setup details of the experiment are as follows:
(1) Target. To comprehensively evaluate the proposed HGSO-DVCL framework for financial fraud detection, our experiments are designed to answer the following research questions:
  • RQ1: Can HGSO-DVCL achieve competitive fraud detection performance compared with representative baseline methods on public benchmark datasets?
  • RQ2: Are the graph structure optimization module, the dual-view contrastive learning module, and the joint collaborative optimization strategy all effective in improving model performance?
  • RQ3: How stable is HGSO-DVCL under different hyperparameter settings and meta-path configurations in terms of detection performance?
(2) Baselines. Since the main purpose of this paper is to evaluate graph representation learning mechanisms under standard public benchmark protocols, we follow prior graph fraud detection studies and report F1-macro, AUC, and G-Mean. To thoroughly evaluate the proposed method, representative baseline models spanning different technical approaches are selected:
  • General GNN methods: The GAT and GraphSAGE serve as standard message-passing baselines to examine the applicability boundaries of attention-based and sampling-based aggregation mechanisms for fraud detection.
  • Heterogeneous graph methods: The HAN [41] and DiffMG [42] evaluate the contributions of semantic-channel attention fusion and structural relation combination search for complex relational pattern modeling.
  • Fraud-specific methods: The PC-GNN [43], CARE-GNN [44], and H2-FDetector [45] specifically target class imbalance, camouflage neighbor contamination, and the co-existence of homophilic and heterophilic neighborhoods.
  • Graph anomaly detection methods: The GDN [46] and BWGNN [47] represent deviation learning and spectral filtering paradigms for enhancing sensitivity and robustness to anomalous behavior patterns.
(3) Environment. All experiments are conducted on a system equipped with an Intel Core i7-13600KF CPU, 64 GB RAM, and an NVIDIA RTX 3090 GPU, running Ubuntu 24.04 LTS. The implementation uses Python 3.9.12, PyTorch 1.13.1, and PyTorch Geometric 2.3.1. The Adam optimizer is used for all experiments. For the YelpChi dataset, the similarity threshold ϵ is set to 0.7, the positive sample count K to 15, the temperature coefficient τ to 0.65, with ReLU activation, a learning rate of 0.001, a dropout rate of 0.2, a hidden dimension of 128, and 2 graph convolution layers. For the Amazon dataset, ϵ = 0.5 , K = 7 , τ = 0.80 , with ReLU activation, a learning rate of 0.001, a dropout rate of 0.4, a hidden dimension of 128, and 3 graph convolution layers. The experimental environment configuration is summarized in Table 2. The thresholds and hyperparameters are selected on the validation set and then fixed for the test set. The similarity threshold ϵ controls the sparsity of the optimized graph, K controls the number of semantic positives in contrastive learning, and τ controls the sharpness of contrastive similarity scores.

5.3. RQ1: Comparison Study

To answer RQ1, we compare HGSO-DVCL with representative baseline methods on the YelpChi and Amazon datasets. The baselines cover general GNN models, heterogeneous graph learning methods, fraud-specific detection models, and graph anomaly detection approaches. The comparison is conducted using three evaluation metrics, namely F1-macro, AUC, and G-Mean.
As shown in Table 3, HGSO-DVCL achieves competitive performance on both datasets. On YelpChi, it obtains the best F1-macro of 80.62% and the best AUC of 92.96%, while achieving a G-Mean of 79.41%. On Amazon, it achieves the best AUC of 98.01% and the best G-Mean of 92.44%, with an F1-macro of 91.12%. Compared with the strongest baseline BWGNN, HGSO-DVCL improves F1-macro by 3.57% and AUC by 2.45% on YelpChi. On Amazon, it improves AUC by 0.59% and G-Mean by 2.37%, while remaining competitive in F1-macro. These results show that HGSO-DVCL performs favorably against representative methods on the evaluated benchmark datasets and achieves strong overall benchmark performance.
In summary, the comparison results provide a positive answer to RQ1, showing that HGSO-DVCL is competitive with representative baselines under the adopted public benchmark setting.

5.4. RQ2: Ablation Study

To answer RQ2, we conduct ablation experiments to evaluate the contribution of each core component in HGSO-DVCL, including the graph structure optimization module, the cross-view contrastive learning module, and the joint collaborative optimization strategy. Specifically, we compare the full model with three degraded variants: ➊ w/o StructOpt, which removes the graph structure optimization module; ➋ w/o CL, which removes the cross-view contrastive learning module; and ➌ w/o Joint, which removes the joint collaborative optimization strategy. The results are reported in Figure 4.
As shown in Figure 4, the full model achieves the best overall results across the evaluated metrics. Among the ablated variants, removing the graph structure optimization module leads to the largest performance drop on both datasets. On YelpChi, F1-macro, AUC, and G-Mean decrease to 77.3%, 90.8%, and 75.9%, respectively. On Amazon, the corresponding metrics decrease to 89.7%, 97.2%, and 90.7%. In comparison, removing the contrastive learning module yields 78.5%, 91.6%, and 77.1% on YelpChi, and 90.1%, 97.5%, and 91.2% on Amazon. Removing the joint collaborative optimization strategy gives 79.0%, 91.5%, and 77.5% on YelpChi, and 90.4%, 97.4%, and 91.6% on Amazon.
To more carefully isolate the contribution of each component, we further conduct a fine-grained ablation study. In addition to the original degraded variants, we evaluate the following model variants: ➊ w/o StructOpt removes the entire heterogeneous graph structure optimization module and directly performs dual-view representation learning on the original graph; ➋ w/o ChannelAttn replaces channel attention fusion with average fusion; ➌ Schema view only removes the meta-path view encoder; ➍ Meta-path view only removes the network schema view encoder; ➎ w/o CL removes the cross-view contrastive loss while keeping the dual-view encoders and the supervised classification objective; ➏ w/o Meta-path Attn replaces meta-path-level attention with uniform averaging; ➐ w/o Joint disables the joint collaborative optimization strategy by training the graph optimization and representation learning components in a separated manner, rather than updating them under a unified end-to-end objective.
These variants allow us to separately examine the effects of graph structure optimization, adaptive channel fusion, dual-view representation learning, contrastive alignment, meta-path attention, and joint collaborative optimization. As shown in Figure 5, the full HGSO-DVCL model achieves the best overall performance on both datasets. Removing the graph structure optimization module causes the largest performance degradation. On YelpChi, the F1-macro, AUC, and G-Mean decrease from 80.6%, 93.0%, and 79.4% to 77.3%, 90.8%, and 75.9%, respectively. On Amazon, the corresponding scores decrease from 91.1%, 98.0%, and 92.4% to 89.7%, 97.2%, and 90.7%. This confirms that structure refinement is the most influential component.
Overall, all three ablated variants perform worse than the full model on both datasets, which provides a positive answer to RQ2 and shows that each component contributes positively to the final fraud detection performance.

5.5. RQ3: Sensitivity Analysis Study

To answer RQ3, we analyze four key hyperparameters in HGSO-DVCL: the joint weight α , the temperature coefficient τ , the optimization threshold ϵ , and the positive sample count K. Each hyperparameter is varied within a predefined range while the others are fixed, and F1-macro, AUC, and G-Mean are reported on both datasets.
The joint-weight and temperature-coefficient sensitivity experiment examines the impact of α and τ on model performance, which is shown in Figure 6. On YelpChi, the best overall performance is achieved at α = 0.3 , while on Amazon the best results are obtained at α = 0.4 . For the temperature coefficient τ , the best overall performance appears at τ = 0.65 on YelpChi and τ = 0.8 on Amazon. Across both datasets, the three evaluation metrics vary within a relatively narrow range as α and τ change, indicating that the model maintains stable performance under different settings of these two parameters.
The optimization-threshold and positive-sample-count sensitivity experiment evaluates the effect of ϵ and K on fraud detection performance, which is shown in Figure 7. For the optimization threshold ϵ , the best overall results are achieved at ϵ = 0.7 on YelpChi and ϵ = 0.5 on Amazon. For the positive sample count K, the best overall performance is obtained at K = 15 on YelpChi and K = 7 on Amazon. In both datasets, performance first improves and then declines slightly as ϵ and K increase, showing that excessively small or large values are less effective than moderate settings.
To further examine whether HGSO-DVCL relies excessively on a specific meta-path, we conduct a meta-path leave-one-out sensitivity analysis. For each dataset, we remove one meta-path at a time and compare the performance with that obtained using the full meta-path set. The reported values denote the performance change relative to the full setting, where negative values indicate performance degradation. As shown in Figure 8, removing any single meta-path leads to performance degradation, indicating that different meta-paths provide complementary semantic information. On YelpChi, removing R-S-R causes the largest decrease, with F1-macro, AUC, and G-Mean dropping by 1.8, 1.2, and 2.0 percentage points, respectively. Removing R-U-R and R-T-R also reduces performance, but the degradation is relatively smaller. On Amazon, removing U-S-U leads to the largest decrease, with drops of 1.2, 0.8, and 1.2 percentage points on the three metrics, respectively. Overall, the full meta-path setting consistently achieves the best performance, while the performance does not collapse after removing one meta-path. This suggests that HGSO-DVCL benefits from multiple semantic relations and has moderate robustness to meta-path selection.
Overall, all hyperparameters influence model performance to varying degrees, and the current parameter settings achieve competitive results across both datasets, validating the reasonableness of the parameter selection.

5.6. Discussion

The experimental results collectively show that HGSO-DVCL achieves strong and consistent fraud detection performance across the two benchmark datasets. The comparison study indicates that the proposed framework is particularly competitive in terms of AUC and balanced detection performance, suggesting that it is effective not only at separating fraudulent and legitimate nodes globally, but also at maintaining a better trade-off between fraud identification and normal-sample recognition under class-imbalanced conditions. This is consistent with the design objective of HGSO-DVCL, which does not rely solely on local neighborhood aggregation, but instead combines graph refinement and dual-view semantic modeling to improve the quality of learned node representations. For reference, runtime and memory information for HGSO-DVCL is provided in Appendix B.
The ablation study clarifies the contribution of each component. Removing the graph structure optimization module causes the largest performance drop, showing the importance of refining unreliable topology for fraud detection. Replacing channel attention with average fusion also reduces performance, indicating that adaptive fusion is more effective than treating structural channels equally. The two single-view variants underperform the full model, confirming the complementarity between the network schema and meta-path views. Removing contrastive learning weakens the model, suggesting that cross-view alignment helps maintain semantic consistency. The degradation caused by removing meta-path attention shows that different meta-paths contribute unequally and should be adaptively weighted. Finally, the performance drop of w/o Joint indicates that end-to-end coordination among graph refinement, dual-view representation learning, and classification brings additional benefits.
The results also reveal meaningful dataset-dependent patterns. On YelpChi, the gains of HGSO-DVCL over strong baselines are more pronounced, especially on F1-macro and AUC. This suggests that the proposed framework is particularly effective when the graph contains stronger structural noise or more complex heterogeneous associations, where relation-specific graph refinement and dual-view modeling can provide clearer advantages. On Amazon, the improvements are smaller in magnitude but remain consistent on key metrics, especially AUC and G-Mean. This indicates that when the underlying graph is relatively easier to model or existing baselines already perform strongly, the proposed framework still offers a more balanced and reliable decision boundary. Taken together, these observations suggest that the benefit of HGSO-DVCL is not tied to a single metric or a single dataset, but comes from its ability to improve both graph quality and representation quality in a coordinated manner.
The sensitivity analysis provides additional support for the proposed design. Across the hyperparameter experiments, HGSO-DVCL shows relatively stable trends, and the best results are generally obtained with moderate parameter values rather than extreme settings. This is consistent with the design intuition that structural regularization, contrastive temperature, graph optimization threshold, and positive sample count should balance useful signal preservation with noise control. The meta-path leave-one-out analysis further shows that removing any single meta-path leads to performance degradation, indicating that different meta-paths provide complementary semantic information. In particular, the larger drops caused by removing R-S-R on YelpChi and U-S-U on Amazon suggest that some semantic relations are more informative than others, while the absence of performance collapse shows that the model does not rely exclusively on one specific meta-path. Overall, these observations suggest that the proposed framework is not overly sensitive to narrow hyperparameter choices or a single meta-path configuration, and that its performance improvements mainly come from the combined design of structure optimization, dual-view representation learning, and adaptive semantic fusion.
Several limitations. First, the experiments are conducted on public multi-relational fraud benchmarks rather than proprietary transaction-level financial data. Although YelpChi and Amazon share several modeling challenges with financial fraud scenarios, such as structural noise, class imbalance, and heterogeneous relations, they cannot fully represent real financial systems involving accounts, cards, merchants, devices, and institution-specific risk-control processes. Therefore, the current results should be interpreted as evidence for the proposed graph learning mechanisms under reproducible benchmark settings, rather than as direct proof of deployment readiness in real-world financial transaction networks. Second, the current framework operates on static graph snapshots and does not explicitly model the temporal evolution of fraud behaviors, which may limit its applicability under concept drift and evolving fraud strategies. Third, the scalability of HGSO-DVCL on very large heterogeneous transaction graphs with millions of nodes and edges remains to be further investigated, especially because relation-specific structure optimization and contrastive positive-pair construction may introduce additional computational cost. Fourth, although attention weights provide some clues about relation and meta-path importance, the framework does not yet offer fine-grained explanations for individual fraud predictions, which is important for high-stakes financial decision-making. Finally, under highly imbalanced fraud settings, contrastive learning may still suffer from noisy positive pairs if semantic proximity does not always imply similar risk patterns. Future work will therefore focus on temporal-aware graph structure optimization, efficient large-scale training strategies, more reliable contrastive sample construction, interpretable fraud evidence extraction, and validation on real-world financial fraud datasets.

6. Conclusions

This paper proposed HGSO-DVCL, a heterogeneous graph structure optimization framework with dual-view contrastive learning for fraud detection. The framework addresses three key challenges in graph-based fraud detection, namely unreliable heterogeneous graph structures, insufficient single-view representation learning, and the disconnection between graph refinement and downstream classification. Specifically, it combines type-aware graph structure optimization, dual-view representation learning from the network schema and meta-path perspectives, and an end-to-end joint optimization objective within a unified framework. Experimental results on the YelpChi and Amazon datasets support the effectiveness and component-wise validity of HGSO-DVCL under public multi-relational fraud detection benchmark settings.
Overall, the results suggest that jointly improving graph structure quality and multi-view representation quality is a promising direction for heterogeneous graph-based fraud detection. Since the current experiments do not include transaction-level financial networks or temporal holdout evaluation, the findings should not be interpreted as direct evidence of deployment readiness in real-world financial systems. Future work will focus on temporal fraud dynamics, large-scale training efficiency, cost-sensitive evaluation, and validation on real-world financial transaction datasets.

Author Contributions

Conceptualization, Y.W. and Y.H.; methodology, Y.W.; software, Y.W. and C.H.; validation, Y.W.; formal analysis, C.H.; investigation, Y.X. and Y.H.; resources, Y.H.; data curation, C.H.; writing—original draft preparation, Y.W.; writing—review and editing, C.H. and Y.X.; visualization, Z.L.; supervision, Z.L.; project administration, Y.X.; funding acquisition, Z.L. All authors have read and agreed to the published version of the manuscript.

Funding

The study was supported by the Key Laboratory of Data Protection and Intelligent Management, Ministry of Education, Sichuan University and also the Fundamental Research Funds for the Central Universities (No. SCUSAKFKT202506Y).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data used in this paper are public datasets: https://github.com/YingtongDou/CARE-GNN/tree/master/data (accessed on 26 May 2026).

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Summary of Notations

Table A1. Summary of main notations used in the paper.
Table A1. Summary of main notations used in the paper.
NotationDescription
G Heterogeneous graph
V , E Node set and edge set
A , R Node type set and relation type set
ϕ ( · ) , ψ ( · ) Node type mapping function and edge type mapping function
X Original node feature matrix
x v Original feature vector of node v
h v Projected common-space representation of node v
A r Original adjacency matrix of relation type r
S r Feature similarity graph under relation type r
S ^ h r , S ^ t r Head-side and tail-side feature similarity graphs under relation type r
F h r , F t r Head-side and tail-side feature propagation graphs under relation type r
A ˜ r Fused feature-driven graph under relation type r
A r Optimized adjacency matrix of relation type r
G Optimized heterogeneous graph
M r , M ^ h r , M ^ t r Learnable relation-specific feature weighting parameters
ϵ , ϵ h Sparsity thresholds for similarity graph construction
P Set of predefined meta-paths
N t ( v ) Neighbor set of node v with node type t
N P k ( v ) Meta-path-constrained neighbor set of node v under meta-path P k
e v ( s ) Network schema view embedding of node v
e v ( p ) Meta-path view embedding of node v
α v u t Node-level attention coefficient between node v and neighbor u of type t
β t Type-level attention weight of neighbor type t
γ k Semantic attention weight of meta-path P k
c ( v i , v j ) Meta-path connection strength between nodes v i and v j
P i + , P i Positive and negative sample sets for anchor node v i
KNumber of positive samples selected for contrastive learning
τ Temperature coefficient in the contrastive loss
y ^ v Predicted fraud probability of node v
L cls Supervised classification loss
L reg Graph structure regularization loss
L con Cross-view contrastive loss
α , β Balancing coefficients for structure regularization and contrastive loss

Appendix B. Runtime and Memory Cost

Table A2. Observed runtime and memory cost of HGSO-DVCL under the experimental environment.
Table A2. Observed runtime and memory cost of HGSO-DVCL under the experimental environment.
DatasetAvg. Time Per EpochTotal Training TimePeak GPU Memory
YelpChi1383.33 ms977.16 s23.82 GB
Amazon16,490.67 ms10,931.13 s22.15 GB

References

  1. Sun, G.; Ling, Z.; Li, Y.; Xie, C. Artificial intelligence and financial fraud. Pac.-Basin Financ. J. 2025, 93, 102830. [Google Scholar] [CrossRef] [Scilit]
  2. Motie, S.; Raahemi, B. Financial fraud detection using graph neural networks: A systematic review. Expert Syst. Appl. 2024, 240, 122156. [Google Scholar] [CrossRef] [Scilit]
  3. Cheng, D.; Zou, Y.; Xiang, S.; Jiang, C. Graph neural networks for financial fraud detection: A review. Front. Comput. Sci. 2025, 19, 199609. [Google Scholar] [CrossRef] [Scilit]
  4. Xu, Y.; Fang, Y.; Huang, C.; Liu, Z.; Cao, W. Hacker group identification based on dynamic heterogeneous graph node update. Appl. Soft Comput. 2024, 158, 111587. [Google Scholar] [CrossRef] [Scilit]
  5. Xu, Y.; Zhang, Q.; Deng, H.; Liu, Z.; Yang, C.; Fang, Y. Unknown web attack threat detection based on large language model. Appl. Soft Comput. 2025, 173, 112905. [Google Scholar] [CrossRef] [Scilit]
  6. Duan, M.; Zheng, T.; Gao, Y.; Wang, G.; Feng, Z.; Wang, X. Dga-gnn: Dynamic grouping aggregation gnn for fraud detection. In Proceedings of the AAAI Conference on Artificial Intelligence, Vancouver, BC, Canada, 20–27 February 2024; Volume 38, pp. 11820–11828. [Google Scholar]
  7. Amiram, D.; Bozanic, Z.; Cox, J.D.; Dupont, Q.; Karpoff, J.M.; Sloan, R. Financial reporting fraud and other forms of misconduct: A multidisciplinary review of the literature. Rev. Account. Stud. 2018, 23, 732–783. [Google Scholar] [CrossRef] [Scilit]
  8. Ashton, J.; Burnett, T.; Diaz-Rainey, I.; Ormosi, P. Known unknowns: How much financial misconduct is detected and deterred? J. Int. Financ. Mark. Instit. Money 2021, 74, 101389. [Google Scholar] [CrossRef] [Scilit]
  9. Beggs, W.; Harvison, T. Fraud and abuse in the paycheck protection program? Evidence from investment advisory firms. J. Bank. Financ. 2023, 147, 106444. [Google Scholar] [CrossRef] [Scilit]
  10. Mugerman, Y.; Hecht, Y.; Wiener, Z. On the failure of mutual fund industry regulation. Emerg. Mark. Rev. 2019, 38, 51–72. [Google Scholar] [CrossRef] [Scilit]
  11. Talukder, M.A.; Hossen, R.; Uddin, M.A.; Uddin, M.N.; Acharjee, U.K. Securing transactions: A hybrid dependable ensemble machine learning model using IHT-LR and grid search. Cybersecurity 2024, 7, 32. [Google Scholar] [CrossRef] [Scilit]
  12. Khalid, A.R.; Owoh, N.; Uthmani, O.; Ashawa, M.; Osamor, J.; Adejoh, J. Enhancing credit card fraud detection: An ensemble machine learning approach. Big Data Cogn. Comput. 2024, 8, 6. [Google Scholar] [CrossRef] [Scilit]
  13. Bala, B.S.; Yadav, P.P.; Reddy, M.R. An intelligent approach to detect and predict online fraud transaction using XGBoost algorithm. Indones. J. Electr. Eng. Comput. Sci. 2024, 35, 1491–1498. [Google Scholar] [CrossRef] [Scilit]
  14. Chen, J. LightGBM model for detecting fraud in online financial transactions. Highlights Sci. Eng. Technol. 2024, 93, 363–371. [Google Scholar] [CrossRef] [Scilit]
  15. Wijaya, M.G.; Pinaringgi, M.F.; Zakiyyah, A.Y. Comparative analysis of machine learning algorithms and data balancing techniques for credit card fraud detection. Procedia Comput. Sci. 2024, 245, 677–688. [Google Scholar] [CrossRef] [Scilit]
  16. Xia, P.; Zhu, X.; Charles, V.; Zhao, Z.; Peng, M. A novel heuristic-based selective ensemble prediction method for digital financial fraud risk. IEEE Trans. Eng. Manag. 2024, 71, 8002–8018. [Google Scholar] [CrossRef] [Scilit]
  17. Lim, Z.Y.; Pang, Y.H.; Kamarudin, K.Z.B.; Ooi, S.Y.; Hiew, F.S. Bayesian optimization driven strategy for detecting credit card fraud with extremely randomized trees. MethodsX 2024, 13, 103055. [Google Scholar] [CrossRef] [Scilit]
  18. Tayebi, M.; El Kafhali, S. A novel approach based on XGBoost classifier and Bayesian optimization for credit card fraud detection. Cyber Secur. Appl. 2025, 3, 100093. [Google Scholar] [CrossRef] [Scilit]
  19. El-Kenawy, E.S.M.; Zaki, A.M.; Lim, W.H.; Ibrahim, A.; Eid, M.M.; Osman, A.M.; Elshewey, A.M. Credit card fraud detection based on deep learning models. Mesopotamian J. Comput. Sci. 2024, 2024, 204–213. [Google Scholar] [CrossRef] [Scilit]
  20. Yu, C.; Xu, Y.; Cao, J.; Zhang, Y.; Jin, Y.; Zhu, M. Credit card fraud detection using advanced transformer model. In Proceedings of the 2024 IEEE International Conference on Metaverse Computing, Networking, and Applications (MetaCom); IEEE: New York, NY, USA, 2024; pp. 343–350. [Google Scholar]
  21. Mienye, I.D.; Swart, T.G. A hybrid deep learning approach with generative adversarial network for credit card fraud detection. Technologies 2024, 12, 186. [Google Scholar] [CrossRef] [Scilit]
  22. Du, H.; Lv, L.; Wang, H.; Guo, A. A novel method for detecting credit card fraud problems. PLoS ONE 2024, 19, e0294537. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Koo, K.; Park, M.; Yoon, B. A suspicious financial transaction detection model using autoencoder and risk-based approach. IEEE Access 2024, 12, 68926–68939. [Google Scholar] [CrossRef] [Scilit]
  24. DeLise, T. Deep semi-supervised anomaly detection for finding fraud in the futures market. arXiv 2023, arXiv:2309.00088. [Google Scholar] [CrossRef] [Scilit]
  25. Duan, Y.; Zhang, G.; Wang, S.; Peng, X.; Wang, Z.; Mao, J.; Wu, H.; Jiang, X.; Wang, K. CaT-GNN: Enhancing credit card fraud detection via causal temporal graph neural networks. arXiv 2024, arXiv:2402.14708. [Google Scholar]
  26. Wang, Y.; Zhang, J.; Huang, Z.; Li, W.; Feng, S.; Ma, Z.; Sun, Y.; Yu, D.; Dong, F.; Jin, J. Label information enhanced fraud detection against low homophily in graphs. In Proceedings of the ACM Web Conference 2023; ACM: New York, NY, USA, 2023; pp. 406–416. [Google Scholar]
  27. Wan, F.; Li, P. A novel money laundering prediction model based on a dynamic graph convolutional neural network and long short-term memory. Symmetry 2024, 16, 378. [Google Scholar] [CrossRef] [Scilit]
  28. Wang, Y.; Zheng, Q.; Li, X.; Wang, L.; Lin, L. CoSemiGNN: Blockchain fraud detection with dynamic graph neural networks based on co-association of semi-supervised. Expert Syst. Appl. 2025, 298, 129853. [Google Scholar] [CrossRef] [Scilit]
  29. Pan, J.; Liu, Y.; Zheng, X.; Zheng, Y.; Liew, A.W.-C.; Li, F.; Pan, S. A label-free heterophily-guided approach for unsupervised graph fraud detection. In Proceedings of the AAAI Conference on Artificial Intelligence, Philadelphia, PA, USA, 25 February–4 March 2025; Volume 39, pp. 12443–12451. [Google Scholar]
  30. Zou, Y.; Xiang, S.; Miao, Q.; Cheng, D.; Jiang, C. Subgraph patterns enhanced graph neural network for fraud detection. In Database Systems for Advanced Applications; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2024; Volume 14855, pp. 375–384. [Google Scholar]
  31. Wu, B.; Yao, X.; Zhang, B.; Chao, K.M.; Li, Y. SplitGNN: Spectral graph neural network for fraud detection against heterophily. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management; ACM: New York, NY, USA, 2023; pp. 2737–2746. [Google Scholar]
  32. Aschi, M.; Bonura, S.; Masi, N.; Messina, D.; Profeta, D. Cybersecurity and fraud detection in financial transactions. In Big Data and Artificial Intelligence in Digital Finance: Increasing Personalization and Trust in Digital Finance Using Big Data and AI; Springer: Berlin/Heidelberg, Germany, 2022; pp. 269–278. [Google Scholar]
  33. Xu, Y.; Zhang, Q.; Wang, K.; Liu, Z.; Huang, C.; Fang, Y. Web Page Tampering Detection Based on Dynamic Temporal Graph Pre-training. IEEE Trans. Dependable Secur. Comput. 2025, 23, 2012–2029. [Google Scholar] [CrossRef] [Scilit]
  34. Outemzabet, L.; Gaud, N.; Bertaux, A.; Nicolle, C.; Gerart, S.; Vachenc, S. Harnessing heterogeneous information networks: A systematic literature review. Comput. Sci. Rev. 2024, 52, 100633. [Google Scholar] [CrossRef] [Scilit]
  35. Altman, E.; Blanuša, J.; Von Niederhäusern, L.; Egressy, B.; Anghel, A.; Atasu, K. Realistic synthetic financial transactions for anti-money laundering models. Adv. Neural Inf. Process. Syst. 2023, 36, 29851–29874. [Google Scholar]
  36. Zhang, J.; Xu, Z.; Lv, D.; Shi, Z.; Shen, D.; Jin, J.; Dong, F. DiG-In-GNN: Discriminative feature guided GNN-based fraud detector against inconsistencies in multi-relation fraud graph. In Proceedings of the AAAI Conference on Artificial Intelligence, Vancouver, BC, Canada, 20–27 February 2024; Volume 38, pp. 9323–9331. [Google Scholar]
  37. Zhang, Q.; Wang, S.; Cao, L.; Lian, D.; Zhang, H.; Lu, W. Semantic Relation Guided Dual-view Contrastive Learning for Session-based Recommendations. ACM Trans. Inf. Syst. 2025, 43, 1–36. [Google Scholar] [CrossRef] [Scilit]
  38. Yi, M.; Lee, V.C.; Yang, P.; Li, P.; Zhang, Y.; Wei, W.; Gao, H. The distributed intelligent collaboration to uav-assisted vec: Joint position optimization and task scheduling. IEEE Internet Things J. 2025, 12, 21473–21487. [Google Scholar] [CrossRef] [Scilit]
  39. Rayana, S.; Akoglu, L. Collective opinion spam detection: Bridging review networks and metadata. In Proceedings of the 21th ACM Sigkdd International Conference on Knowledge Discovery and Data Mining, Sydney, NSW, Australia, 10–13 August 2015; pp. 985–994. [Google Scholar]
  40. McAuley, J.J.; Leskovec, J. From amateurs to connoisseurs: Modeling the evolution of user expertise through online reviews. In Proceedings of the 22nd International Conference on World Wide Web, Rio de Janeiro, Brazil, 13–17 May 2013; pp. 897–908. [Google Scholar]
  41. Wang, X.; Ji, H.; Shi, C.; Wang, B.; Ye, Y.; Cui, P.; Yu, P.S. Heterogeneous graph attention network. In Proceedings of the WWW ’19: The World Wide Web Conference, San Francisco, CA, USA, 13–17 May 2019; pp. 2022–2032. [Google Scholar]
  42. Ding, Y.; Yao, Q.; Zhao, H.; Zhang, T. Diffmg: Differentiable meta graph search for heterogeneous graph neural networks. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, Online, 14–18 August 2021; pp. 279–288. [Google Scholar]
  43. Vijayvargiya, A.; Kumar, R.; Sharma, P. PC-GNN: Pearson correlation-based graph neural network for recognition of human lower limb activity using sEMG signal. IEEE Trans. Hum. Mach. Syst. 2023, 53, 945–954. [Google Scholar] [CrossRef] [Scilit]
  44. Dou, Y.; Liu, Z.; Sun, L.; Deng, Y.; Peng, H.; Yu, P.S. Enhancing graph neural network-based fraud detectors against camouflaged fraudsters. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management, Online, 19–23 October 2020; pp. 315–324. [Google Scholar]
  45. Shi, F.; Cao, Y.; Shang, Y.; Zhou, Y.; Zhou, C.; Wu, J. H2-fdetector: A gnn-based fraud detector with homophilic and heterophilic connections. In Proceedings of the ACM Web Conference 2022, Online, 25–29 April 2022; pp. 1486–1494. [Google Scholar]
  46. Ding, K.; Zhou, Q.; Tong, H.; Liu, H. Few-shot network anomaly detection via cross-network meta-learning. In Proceedings of the Web Conference 2021, Online, 19–23 April 2021; pp. 2448–2456. [Google Scholar]
  47. Tang, J.; Li, J.; Gao, Z.; Li, J. Rethinking graph neural networks for anomaly detection. In Proceedings of the International Conference on Machine Learning; PMLR: Cambridge, MA, USA, 2022; pp. 21076–21089. [Google Scholar]
Figure 1. HIN example and related diagrams of metapath and network connection.
Figure 1. HIN example and related diagrams of metapath and network connection.
Applsci 16 05485 g001
Figure 2. Diagram of Noise in Financial Transaction Graph Relations.
Figure 2. Diagram of Noise in Financial Transaction Graph Relations.
Applsci 16 05485 g002
Figure 3. Overall architecture of HGSO-DVCL. The framework first performs relation-specific graph structure optimization, then learns node representations from the network schema and meta-path views, and finally jointly optimizes classification, structure regularization, and cross-view contrastive alignment.
Figure 3. Overall architecture of HGSO-DVCL. The framework first performs relation-specific graph structure optimization, then learns node representations from the network schema and meta-path views, and finally jointly optimizes classification, structure regularization, and cross-view contrastive alignment.
Applsci 16 05485 g003
Figure 4. Performance comparison under different module configurations.
Figure 4. Performance comparison under different module configurations.
Applsci 16 05485 g004
Figure 5. Fine-grained ablation results of HGSO-DVCL under different component configurations.
Figure 5. Fine-grained ablation results of HGSO-DVCL under different component configurations.
Applsci 16 05485 g005
Figure 6. Sensitivity analysis of the joint weight α and the temperature coefficient τ .
Figure 6. Sensitivity analysis of the joint weight α and the temperature coefficient τ .
Applsci 16 05485 g006
Figure 7. Sensitivity analysis of the optimization threshold ϵ and the positive sample count K.
Figure 7. Sensitivity analysis of the optimization threshold ϵ and the positive sample count K.
Applsci 16 05485 g007
Figure 8. Performance changes in the meta-path leave-one-out sensitivity analysis relative to the full setting.
Figure 8. Performance changes in the meta-path leave-one-out sensitivity analysis relative to the full setting.
Applsci 16 05485 g008
Table 1. Statistical information of the datasets.
Table 1. Statistical information of the datasets.
DatasetNodesEdge TypeEdge CountImbalance
YelpChi45,954R-U-R49,3156:1
R-S-R3,402,743
R-T-R573,516
Amazon11,944U-S-U3,566,47910.5:1
U-V-U1,036,737
U-P-U175,608
Table 2. Experimental environment configuration.
Table 2. Experimental environment configuration.
ItemDetails
Operating SystemUbuntu 24.04 LTS
CPUIntel Core i7-13600KF
RAM64 GB
GPUNVIDIA RTX 3090
Programming LanguagePython 3.9.12
Deep Learning FrameworkPyTorch 1.13.1
Graph Learning LibraryPyTorch Geometric 2.3.1
Table 3. Performance comparison of different methods on the YelpChi and Amazon datasets (%). Bold values indicate the best results. Results are reported as mean ± standard deviation.
Table 3. Performance comparison of different methods on the YelpChi and Amazon datasets (%). Bold values indicate the best results. Results are reported as mean ± standard deviation.
MethodYelpChiAmazon
F1-MacroAUCG-MeanF1-MacroAUCG-Mean
GAT49.03 ± 2.2157.08 ± 0.3116.82 ± 7.7464.52 ± 3.9480.96 ± 1.8366.61 ± 13.58
GraphSAGE54.51 ± 0.2644.21 ± 1.5842.04 ± 0.3775.76 ± 0.4564.30 ± 0.8159.61 ± 3.52
HAN55.63 ± 1.0474.19 ± 0.1064.29 ± 1.0569.95 ± 1.2384.22 ± 0.6766.41 ± 1.12
DiffMG73.18 ± 1.3688.11 ± 1.5078.57 ± 1.5588.36 ± 0.5192.90 ± 0.4488.50 ± 0.60
PC-GNN62.96 ± 2.0379.84 ± 0.1471.68 ± 1.2289.67 ± 0.7295.85 ± 0.1490.36 ± 0.42
CARE-GNN63.09 ± 0.9076.65 ± 2.8667.68 ± 3.4586.76 ± 1.7990.74 ± 1.6370.52 ± 0.20
H2-FDetector74.52 ± 2.3789.36 ± 1.2179.04 ± 2.6187.05 ± 0.9895.97 ± 0.7191.63 ± 0.49
GDN75.99 ± 0.6290.24 ± 0.7380.85 ± 0.0990.71 ± 0.4497.08 ± 0.1490.78 ± 0.12
BWGNN77.05 ± 0.9090.51 ± 0.4376.94 ± 1.1091.84 ± 0.8197.42 ± 0.4290.07 ± 0.35
HGSO-DVCL80.62 ± 0.8892.96 ± 0.5279.41 ± 0.4691.12 ± 0.6798.01 ± 0.2492.44 ± 0.39
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

Wu, Y.; Hao, C.; Xu, Y.; Hu, Y.; Liu, Z. Heterogeneous Graph Structure Optimization with Dual-View Contrastive Learning for Fraud Detection. Appl. Sci. 2026, 16, 5485. https://doi.org/10.3390/app16115485

AMA Style

Wu Y, Hao C, Xu Y, Hu Y, Liu Z. Heterogeneous Graph Structure Optimization with Dual-View Contrastive Learning for Fraud Detection. Applied Sciences. 2026; 16(11):5485. https://doi.org/10.3390/app16115485

Chicago/Turabian Style

Wu, Yan, Chengling Hao, Yijia Xu, Yaofeng Hu, and Zhonglin Liu. 2026. "Heterogeneous Graph Structure Optimization with Dual-View Contrastive Learning for Fraud Detection" Applied Sciences 16, no. 11: 5485. https://doi.org/10.3390/app16115485

APA Style

Wu, Y., Hao, C., Xu, Y., Hu, Y., & Liu, Z. (2026). Heterogeneous Graph Structure Optimization with Dual-View Contrastive Learning for Fraud Detection. Applied Sciences, 16(11), 5485. https://doi.org/10.3390/app16115485

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