In this study, two datasets of WSIs were built and collected from two different hospitals, including a dual staining breast cancer dataset with 43 H&E slides and 43 IHC CK(AE1/AE3) slides collected from National Taiwan University Hospital, Taipei, Taiwan with an ethical approval (NTUH-REC 201810082RINB) and a triple staining prostate cancer dataset with 30 H&E slides, 30 IHC CK18 slides, and 30 IHC HMCK slides collected from Tri-Service General Hospital, Taipei, Taiwan, with an ethical approval (TSGHIRBI-107-05-171). This evidence concerns the gene KRT18 and breast carcinoma.