Using artificial intelligence to accelerate epidemic simulations and improve forecasting