Adherence strategy based on evolutionary games in epidemic spreading