The glmBoost+GBM ensemble learning model combined with feature selection can effectively predict postoperative prognosis in CRSwNP patients, with good predictive efficacy and interpretability. This model provides a reliable tool for clinical risk stratification of CRSwNP patients.