Recognition of effective ventilation