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. The gene discussed is S100A12; the disease is idiopathic interstitial pneumonia.