This study is a retrospective, multicenter, observational cohort study in patients with advanced or locally advanced non-small cell lung cancer (NSCLC). The aim of this study was to establish a long-term survival (LTS) versus short-term survival (STS) real-world cohort, to systematically characterize the multi-omics landscapes, and to develop and validate an artificial intelligence (AI) pathological prediction model based on routine H\&E-stained images for predicting immune microenvironment features and long-term survival outcomes following immunotherapy.