Furthermore, we evaluated the performance of the DenseNet121-CBAM model in a five-class classification task encompassing the following molecular subtypes of breast cancer: Luminal A, Luminal B, HER2+/HR+, HER2+/HR− and TN. Here, ERBB2 is linked to breast carcinoma.