Based on the LASSO regression model and SVM-RFE analysis, COMP, SPP1, SLC6A4, COL10A1, CRTAC1, IGFL2, NECAB1, and SCG5 were identified as diagnostic markers of IPF. The gene discussed is NECAB1; the disease is idiopathic pulmonary fibrosis.