Overall, our study elucidates the pathway of pyroptosis in IBD and reveals AIM2 expression level as a potential biomarker for predicting the effectiveness of anti-TNF therapy. This evidence concerns the gene TNF and inflammatory bowel disease.