We screened 98 immune genes associated with HF and identified 10 hub genes from them, including CXCL8, IL18, CXCL10, CD8A, IL7, PTPRC, CCL5, IL7R, CXCL9 and CCL2. Here, IL18 is linked to hydrops fetalis.