Prediction of Epidemic Disease Dynamics on the Infection Risk Using Machine Learning Algorithms