We successfully established a predictive model according to four key genes, namely TAP1, MMP9, CFTR, and APOE. This model effectively distinguished between high- and low-risk populations, and identified gene clusters with distinct treatment responses in IBD. Here, MMP9 is linked to inflammatory bowel disease.