Inclusion Criteria:  Age > 18 years Invasive mechanical ventilation for at least 48 hours Criteria for ventilatory weaning are present T-piece spontaneous breathing trial planned Patients with a social security program  Exclusion Criteria:  Patients already included in this study during the same stay in intensive care Resuscitation neuromyopathy defined by an MRC (Medical Research Council) score < 48/60 Surgery planned within 72 hours Prolonged ventilatory weaning (>7 days after the first SBT) Patients with tracheostomy Patients with non-reintubation decision or terminal extubation Brain damaged patients Patients with ECMO/ECLS Tetraplegic or paraplegic patients with lesion level higher than T8 Nasotracheal intubated patients Pregnant or breastfeeding women Refusal to participate in the study (refusal by patient or family member/trusted person). Patients under guardianship