At last, we developed a predictive random forest (RF) machine learning model to predict the KRAS mutation status in CRC patients, based on the gut microbiota associated with KRAS mutation. The gene discussed is KRAS; the disease is colorectal carcinoma.