CDKN2A, VEGFA, SOX2, and FOXO3 were validated as key CS-DEGs, with high diagnostic potential for IPF. Here, SOX2 is linked to idiopathic pulmonary fibrosis.