All handcrafted and deep learning-based features were extracted from the partationed subregions and selected to develop logistic regression models for predicting brain metastasis originated from primary NSCLC (LR-NSCLC) and breast cancer (LR-BC), and for predicting the EGFR mutation (LR-EGFR) status and HER2 (LR-HER2) status. The gene discussed is EGFR; the disease is breast cancer.