The five candidate m6A regulators (IGFBP2, YTHDC1, IGFBP3, ZC3H13, and METTL3) based on the RF model were utilized for the construction of nomogram model to predict the prevalence of patients with CHP or IPF. Here, YTHDC1 is linked to idiopathic pulmonary fibrosis.