The CDSS is demonstrated to be effective in identifying the earliest time of ventilator weaning for patients to resume and sustain spontaneous breathing , thereby avoiding unnecessary prolonged ventilator use and decreasing healthcare cost .