Here, we developed an efficient deep learning method with a low computational cost to assist pathologists or cytologists with the task of detecting breast cancer metastases on H&E-stained WSIs and calculating HER2 and CEN17 signals for breast cancer anti-HER2 targeted therapy practically while minimizing individual judgment errors. This evidence concerns the gene ERBB2 and breast cancer.