Stratification of difficulty in weaning