Machine learning can help slow down future pandemics