ROC curve analysis was utilized to investigate the diagnostic potential of the key genes CDK2 and CCND1 across training datasets GSE57345 for HF and GSE37171 for KF, as well as validation datasets GSE135055 for HF and GSE97709 for KF. This evidence concerns the gene CDK2 and hydrops fetalis.