Based on CST6, PPBP, CSPG4, SEMA3B, LAMB2, SERPINB4 and CTF1, our study developed and validated an ECM-related risk model that accurately predicts the outcome of IPF patients. The gene discussed is SERPINB4; the disease is idiopathic pulmonary fibrosis.