Automatic Penalty on Traffic Rules Violations Based on Block Chain and Machine Learning