The risk score of each IPF patients in the training and validation sets was calculated using the following formula: risk score = (0.012) × IL1R2 expression + 0.014 × S100A12 expression + 0.048 × CCL8 expression. Here, IL1R2 is linked to idiopathic pulmonary fibrosis.