Abstract
Spatial transcriptomics enables genome-wide expression analysis within native tissue context, yet identifying spatial domains remains challenging due to complex gene-spatial interactions. Existing methods typically process spatial and feature views separately, fusing only at output level - an "encode-separately, fuse-late" paradigm that limits multi-scale semantic capture and cross-view interaction. Accordingly, stMFG is proposed, a multi-scale interactive fusion graph network that introduces layer-wise cross-view attention to dynamically integrate spatial and gene features after each convolution. The model combines cross-view contrastive learning with spatial constraints to enhance discriminability while maintaining spatial continuity. On DLPFC and breast cancer datasets, stMFG outperforms state-of-the-art methods, achieving up to 14% ARI improvement on certain slices.
Introduction
Spatial Transcriptomics (ST) technologies allow researchers to measure gene expression while preserving the physical coordinates of cells within a tissue. A fundamental computational task in ST analysis is clustering these spots into "spatial domains"—contiguous regions of tissue that share coherent gene expression profiles and biological functions.
Recent Graph Neural Network (GNN) methods tackle this by building dual-view graphs: one representing spatial proximity and another representing gene expression similarity. However, existing models typically process these two views in isolated silos, only combining their embeddings at the final output layer. This "encode-separately, fuse-late" paradigm fails to capture complex, multi-scale interactions between a cell's physical neighborhood and its genetic profile, limiting the model's ability to accurately resolve subtle or complex tissue boundaries.
The stMFG Framework
The proposed stMFG (multi-scale interactive fusion graph network) abandons the late-fusion paradigm in favor of deep, layer-wise integration. The architecture consists of several key components designed to handle the unique sparsity and spatial structure of ST data.
Multi-scale Deep Interactive Fusion
Instead of waiting until the final layer, stMFG utilizes a Cross-view Attention Fusion module after every graph convolution layer. It dynamically calculates attention weights to merge spatial and feature embeddings, feeding this unified representation into the subsequent layer. This allows the network to learn hierarchical representations where spatial and genetic contexts continuously inform each other.
Contrastive Learning and Constraints
To ensure the spatial and feature views remain semantically aligned, the model applies a cross-view contrastive loss. It treats the spatial and feature embeddings of the same spot as positive pairs, forcing the model to identify the underlying biological signal common to both views. Additionally, a spatial regularization loss ensures physical neighbors remain close in latent space, while a Zero-Inflated Negative Binomial (ZINB) decoder handles the high sparsity and over-dispersion characteristic of RNA-seq count data.
Experimental Evaluation
The model was evaluated on two standard benchmark datasets generated by the 10x Visium platform:
- DLPFC (Dorsolateral Prefrontal Cortex): Five slices (151510, 151669, 151670, 151671, 151672) containing 5 to 7 manually annotated spatial domains.
- Human Breast Cancer (HBC): A complex tumor dataset containing 20 distinct spatial domains.
Data was preprocessed using the SCANPY toolkit to filter low-expression genes and normalize counts.
Results and Discussion
stMFG significantly outperformed baselines including SCANPY, Spatial-MGCN, and MAFN. On DLPFC slices with clear layered structures (e.g., 151671 and 151672), stMFG achieved an Adjusted Rand Index (ARI) of 0.89 and 0.88, respectively, representing a 10% to 14% improvement over the second-best method.
Qualitatively, stMFG generates spatial domains with remarkably clear boundaries and superior spatial continuity. As shown in the comparative visualizations, stMFG is particularly adept at capturing subtle structural variations in complex transitional areas where baseline methods tend to produce noisy or fragmented clusters. Ablation studies confirmed that every component—from the multi-scale fusion to the ZINB decoder—contributes significantly to this performance.
Conclusion
stMFG demonstrates that early and frequent fusion of spatial and genetic information is superior to late-fusion strategies for ST data clustering. By leveraging layer-wise attention and contrastive learning, the model achieves state-of-the-art accuracy and biological interpretability. Future work will focus on improving computational efficiency and extending the framework to integrate additional modalities, such as histology images or multi-omics data.
Summary updated