To evaluate the ability of a computer driven system to predict weaning readiness and to compare this to a physician-directed protocol. The CDS continuously adapts pressure support, gradually decreasing ventilator assistance according to patient ability, and thus indicates weaning readiness. Patients who maintain spontaneous breathing for 7 days following weaning will be considered to be successfully weaned from mechanical ventilation.