In summary, based on comprehensive analysis, we obtained the IRGs signature model in cervical cancer (LTA, TFRC, TYK2, DLL4, CSK, JUND, NFATC4, SBDS, FLT1, IL17RD, IL3RA, SDC1, PLAU) and endometrial cancer (LTA, PSMC4, KAL1, TNF, SBDS, HDGF, LTB, HTR3E, NR2F1, NR3C1, PGR, CBLC), which can effectively evaluate the prognosis and risk of patients and provide justification in immunology for further researches. The gene discussed is TNF; the disease is cervical cancer.