The invention relates to the technical field of multi-slice spatial transcriptomics
data set clustering analysis, and discloses a
spatial domain identification and batch effect removal method for a multi-slice spatial transcriptomics
data set. According to the method, multi-layer stacking of the graph neural network serves as a backbone module of a feature
encoder, in order to enable the model to have higher robustness, a
mask mechanism is fused into the backbone module, meanwhile, a target function is calculated for masked genes, and the stability of embedded representation learning is enhanced through normalized cosine errors; secondly, in order to improve the
spatial domain recognition performance of multiple slices, a slice
discriminator is constructed by utilizing an anti-learning thought, and the problem that accurate clustering cannot be performed in multi-slice ST data can be effectively solved; finally, the invention further provides a GGN greedy
global information neighbor pair method, and the problem of batch effect between slices caused by different technologies, different time and different conditions is well relieved. According to the method, the
spatial domain of the multi-slice data can be effectively identified, and the batch effect problem among multiple slices can be well solved.