Weaning from a mechanical ventilator is a vital process when caring for patients while receiving mechanical ventilation. To reduce complications caused by the mechanical ventilator, it is necessary to wean the mechanical ventilator and remove the artificial airway as soon as possible