The diagnostic efficacy of six genes in AF validation sets was good (AUC:TFRC 0.940, CP 0.920, SAT1 1.000, STEAP3 0.960, AKR1C1 0.900, LPCAT3 0.960, as well as in the HF validation set (AUC: TFRC 0.842, CP 0.879, SAT1 0.865, STEAP3 0.787, AKR1C1 0.812, LPCAT3 0.696).Utilizing the GOSemSim package, we conducted a functional similarity analysis on the five hub genes and discovered their significant roles in disease, ranked as follows: STEAP3>TFRC>CP>SAT1>LPCAT3. This evidence concerns the gene SAT1 and hydrops fetalis.