Here is the design of a clinical trial:

Official Title: Effect of Automated Closed-Loop Ventilation Versus Conventional Ventilation on Duration and Quality of Ventilation ('ACTiVE') - a Randomized Clinical Trial in Intensive Care Unit Patients

Included conditions:
- Ventilator-free Days
- Quality of Breathing

Study Armgroups:
- {'label': 'INTELLiVENT-ASV', 'type': 'EXPERIMENTAL', 'description': 'Use of INTELLIVENT-ASV after intubation and during all mechanical ventilation in the ICU.', 'interventionNames': ['Procedure: INTELLiVENT-ASV']}
- {'label': 'Conventional ventilation', 'type': 'ACTIVE_COMPARATOR', 'description': 'Use of conventional ventilation after intubation and during all mechanical ventilation in the ICU.', 'interventionNames': ['Procedure: CONVENTIONAL VENTILATION']}

Interventions:
- {'type': 'PROCEDURE', 'name': 'INTELLiVENT-ASV', 'description': "INTELLiVENT-ASV is activated as soon possible. The sensors for ETCO2 and SpO2 are connected and activated. Patient's gender and height are set on the ventilator and patient condition is chosen if applicable.", 'armGroupLabels': ['INTELLiVENT-ASV']}
- {'type': 'PROCEDURE', 'name': 'CONVENTIONAL VENTILATION', 'description': "Conventional ventilation consists of VCV or PCV and PSV, depending on patient's activity. None of the semi or fully automated modes of ventilation is allowed at any time.", 'armGroupLabels': ['Conventional ventilation']}

Primary Outcomes:
- {'measure': 'Ventilator-free days and alive at day 28', 'description': 'The number of days from day 1 to day 28 the patient is alive and breathes without assistance of the mechanical ventilator, if the period of unassisted breathing lasted at least 24 consecutive hours', 'timeFrame': 'first 28 days after start of ventilation'}

Please estimate the sample size based on the assumption: 
Beta of 80% power, two-tailed alpha of 0.05, and a dropout rate of 5%.
Sample size calculation
        We will include a total of 1200 patients. The sample size is based on the hypothesis that INTELLiVENTâASV will shorten ventilation duration by 1.5âdays with no changes in mortality rate. Based on previously performed studies in which the mean number of VFDâ28 was 20 Â± 9âdays [26, 27], a sample of 1200 patients (600 in each treatment group) is needed to have beta of 80% power and a two-tailed alpha of 0.05, to detect a mean between-group difference of 1.5 VFDâ28, allowing a dropout rate of 5%.