We identified that HER2 status, tumor size, radiotherapy, chemotherapy, surgical treatment, and TN staging are risk factors for cancer metastasis in IDC. Here, ERBB2 is linked to neoplasm.