Sample KNN algorithm Basic KNN algorithm to find the similarity between current situation of driver and past data to know likelihood of accident happening.