 Advances in spatial transcriptomics technologies have enabled the gene expression profiling of tissues while retaining spatial context. Here the authors present GRAPH-SD, a graph self-supervised contrastive learning method that learns informative and discriminative spot representations from spatial transcriptomics data. This article was authored by Yahua Long, Coke Sion Yang, Meng Wei Li, and others.