Enhancing vehicle safety with cognitive Internet of Things technology