Artificial intelligence can help predict the need for ventilators