Objective To investigate the value of diaphragmatic excursion(DE),diaphragmatic thickening fraction(DTF),and intercostal muscle thickening fraction(TFic)measured by ultrasound in predicting successful weaning from mechanical ventila-tion in critically ill patients.Methods A total of 85 patients who underwent invasive mechanical ventilation in our hospital from June 2021 to September 2022 were enrolled,with 71 patients in successful weaning group and 14 patients in failed weaning group.Sensitivity,specificity,and area under the receiver operating characteristic curve(AUC)were used to investigate the value of DE,DTF,TFic,and their combination in predicting successful weaning from mechanical ventilation in critically ill patients.Results Compared with the failed weaning group,the successful weaning group had significantly higher DE and DTF(t=4.74,4.76,P<0.05)and a significantly lower TFic(t=3.78,P<0.05).The combination of DE,DTF,and TFic had a relatively high value in predicting successful ventilator weaning,with an AUC of 97.2%,a sensitivity of 95.8%,and a specificity of 92.9%.Conclusion The combination of DE,DTF,and TFic has good guiding significance for ventilator weaning in critically ill patients.