In this study the investigators aim to compare primary extubation failure rates in infants/participants managed by NIPPV vs. NI-NAVA (non invasive NAVA). Eligible infants/participants will be randomized to be extubated to predefined NIPPV or NI-NAVA ventilator settings and will be assessed for primary extubation failure (defined as reintubation within 5 days after an elective extubation).