BTBD8 and diabetes mellitus: In the present cohort, diabetes and high APACHE II scores were independent risk factors for weaning failure.