In the HER2‐positive breast cancer dataset, SpaBatch employs semi‐supervised learning by leveraging limited manual annotations from the first slice to guide the training process, achieving accurate spatial domain identification in the other slices, and precisely labeling regions of carcinoma in situ, invasive carcinoma and other areas. Here, ERBB2 is linked to breast cancer.