Six hub genes were screened and the validation of the datasets revealed that DUOX2, ACSL4, NCF2, GPX2, CBS, and LPCAT3 had positive diagnostic effects on IBD. Here, CBS is linked to inflammatory bowel disease.