Utilizing the Random Forest and Lasso algorithms, along with experimental validation, we successfully pinpointed four diagnostic markers (CXCR2, FCGR3B, VNN3, and FPR2) capable of predicting HF risk. This evidence concerns the gene VNN3P and hydrops fetalis.