Based on the pathological mechanism of IPF, this research integrated differential gene expression, ECM remodeling, and immune factors to explore the application value of non-invasive gene analysis in this disorder and identified three ECM-related genes (BAAT, COMP, and CXCL13) highly correlated with IPF. This evidence concerns the gene COMP and idiopathic pulmonary fibrosis.