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. Here, ERBB2 is linked to non-small cell lung carcinoma.