Mechanical ventilators are used to provide life support in patients with respiratory failure. Assessing autonomic control during the ventilator weaning provides information about physiopathological imbalances. Autonomic parameters can be derived and used to predict success in discontinuing from the mechanical support. Time-frequency analysis is used to derive cardiac and respiratory parameters, as well as their evolution in time, during ventilator weaning in 130 patients. Statistically significant differences have been observed in autonomic parameters between patients who are considered ready for spontaneous breathing and patients who are not. A classification based on respiratory frequency, heart rate and heart rate variability spectral components has been proposed and has been able to correctly classify more than 80% of the cases.