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. The gene discussed is GPX2; the disease is inflammatory bowel disease.