Idiopathic pulmonary fibrosis (IPF) is a long-term condition with an unidentified cause, and currently there are no specific treatment options available. Alveolar epithelial type II cells (AT2) constitute a heterogeneous population crucial for secreting and regenerative functions in the alveolus, essential for maintaining lung homeostasis. However, a comprehensive investigation into their cellular diversity, molecular features, and clinical implications is currently lacking. In this study, we conducted a comprehensive examination of single-cell RNA sequencing data from both normal and fibrotic lung tissues. We analyzed alterations in cellular composition between IPF and normal tissue and investigated differentially expressed genes across each cell population. This analysis revealed the presence of two distinct subpopulations of IPF-related alveolar epithelial type II cells (IR_AT2). Subsequently, three unique gene co-expression modules associated with the IR_AT2 subtype were identified through the use of hdWGCNA. Furthermore, we refined and identified IPF-related AT2-related gene (IARG) signatures using various machine learning algorithms. Our analysis demonstrated a significant association between high IARG scores in IPF patients and shorter survival times (