Behavioral Changes and Adaptation Induced by Epidemics