ERBB2 and neoplasm: Attention heatmaps revealed that the model’s discriminative regions were primarily located at tumor margins, suggesting HER2+/HR− and TNBC molecular subtypes may be associated with peritumoral cellular microenvironments.