Cooperative traffic alarming method based on epidemic model