Early prediction of respiratory failure in the intensive care unit