In conclusion, we identified four key diagnostic genes: MMP2, COL1A2, CXCL1, and STAT1, which can serve as shared biomarkers for IBD and HF. Here, STAT1 is linked to inflammatory bowel disease.