By combining both handcrafted and deep learning-based features, the proposed LR-NSCLC, LR-BC, LR-EGFR, and LR-HER2 achieved good prediction performance for predicting metastatic origins and EGFR/HER2 status, respectively. This evidence concerns the gene ERBB2 and non-small cell lung carcinoma.