TL;DR
This paper challenges the common assumption that incorporating spatial information always improves cell type annotation in spatial omics data. Through a comprehensive benchmarking study, they demonstrate that non-spatial models can perform as well as, and sometimes better than, spatial models, especially in the presence of noise. This work highlights the need for careful consideration of model design and data characteristics when leveraging spatial information.
What Problem Does This Paper Address?
Spatial omics technologies have revolutionized biology by providing molecular information within its spatial context. A key task in analyzing this data is "cell type annotation," where researchers identify the type of each cell. A prevailing hypothesis is that explicitly encoding the spatial relationships between cells, often using graph-based approaches, significantly boosts performance on this task. However, there's been a lack of systematic evaluation to confirm this assumption across various datasets and model architectures. This paper aims to fill that gap by rigorously comparing spatial and non-spatial models for cell type annotation, investigating whether spatial encoding truly offers a consistent advantage and under what conditions.
Methods
The authors conducted a benchmarking study comparing three non-spatial models (random assignment, k-Nearest Neighbors (kNN), and a fully connected neural network (FCNN)) against three spatial models: Graph Convolutional Networks (GCN), Graph Attention Networks (GAT), and STELLAR (a state-of-the-art spatial cell type classification model).
- Spatial Models: These models represent cells as nodes in a graph, with molecular features as node attributes. Edges connect spatially proximal cells, typically determined by a kNN approach based on Euclidean distance. The models then use graph neural networks (GNNs) to aggregate information from neighboring cells.
- GCN: Aggregates neighbor features with fixed contributions.
- GAT: Uses self-attention to learn adaptive neighbor contributions.
- STELLAR: Combines a GraphSAGE layer with a fully connected layer.
- Non-spatial Models: These models treat each cell independently, using only its molecular features without considering spatial relationships.
- Graph Design: The spatial graph was constructed by connecting each cell to its k nearest neighbors in the spatial plane, allowing for the evaluation of different neighborhood sizes.
- Hyperparameter Optimization: All models were optimized using the Adam optimizer with a cross-entropy loss, and extensive hyperparameter searches were performed for each model-dataset pair.
Datasets
The study evaluated models on four public spatial omics datasets:
- TonsilBE: A single-cell resolution spatial proteomics dataset.
- STARmap: A spatial transcriptomics dataset from the adult mouse brain and spinal cord.
- MOSTA: A single-cell resolution spatial transcriptomics dataset from mouse embryos.
- ARTISTA: A single-cell resolution spatial transcriptomics dataset from the axolotl telencephalon.
These datasets vary in modality (proteomics vs. transcriptomics), number of features, number of cell types, and label source (manual annotation vs. reference-based).
Key Insights and Ideas
- Spatial Information is Not Always Superior: The most striking finding is that spatial models do not consistently outperform non-spatial models. In many cases, the non-spatial FCNN achieved comparable or even better performance.
- Robustness to Noise is Crucial: Non-spatial models, particularly the FCNN, demonstrated significantly greater robustness to both label noise and feature noise compared to spatial models. This suggests that spatial encoding can amplify the negative effects of noisy data.
- "Ill-posed Task" Hypothesis: The authors propose that cell type annotation might be an "ill-posed task" in some contexts. If marker expression alone is highly discriminative, spatial information might be redundant.
- Suboptimal Spatial Encoding: Current GNN-based spatial encoding methods might not be optimal for capturing the complex spatial relationships relevant to cell identity. The assumption of homophily (similar nodes connecting) might not always hold true in biological spatial graphs.
- Over-smoothing Concerns: GNNs are susceptible to over-smoothing, where information from different nodes gets mixed, potentially making it harder to distinguish spatially proximal but distinct cell types.
- Impact of Dataset Characteristics: The performance advantage of spatial models, if any, appears to be highly dependent on the dataset, potentially linked to how cell type labels were derived (e.g., STARmap's labels tied to spatial domains).
Key Results
- Performance Parity: On average, the non-spatial FCNN model performed on par with spatial models across most datasets, with only marginal gains observed for spatial models on STARmap.
- Robustness Advantage: Figure 1 clearly shows that the FCNN is more robust to label noise than any spatial model. It also shows better robustness to feature noise, especially in high-dimensional datasets. GAT models were particularly sensitive to noise.
- Graph Topology Impact: Varying the neighborhood size (k) for graph construction yielded modest performance gains, with GAT showing some benefit from optimized attention weights.
Limitations and Future Work
- Limitations:
- The study focused on graph-based spatial encoding strategies. Other methods for incorporating spatial information might yield different results.
- The "ill-posed task" hypothesis suggests that for certain datasets, spatial information might inherently be less informative for cell type annotation.
- Future Work:
- Developing more sophisticated spatial encoding strategies that better capture complex spatial relationships and biological interactions.
- Investigating the impact of different graph construction methods beyond kNN.
- Further exploring the trade-offs between spatial encoding and robustness to noise.
- The authors strongly recommend fair model comparisons by specifying hyperparameter selection procedures and ranges to avoid inflating perceived performance benefits.
Summary updated