In this study, we developed and validated a nomogram that incorporates sex, haemoglobin (HGB) levels, carcinoembryonic antigen (CEA) levels, and the radiomics signature (RS) to predict the origin of liver metastases, specifically distinguishing between gastric cancer and colorectal cancer. The gene discussed is CEACAM5; the disease is gastric cancer.