Research Article
Public Transport Driver Identification System Using Histogram of Acceleration Data
Algorithm 4
Impostor detection using the KNN.
Input:testing histogram testData | training data trainData | k constant in KNN k | threshold for driver d tresholdd | Output:identification result (driver label or impostor) result | 1:kListd = from testData find k nearest neighbor in trainData | 2:nearest = minimum distance in kListd | 3:predictedDriver = driver label that is the majority in kListd | 4:if nearest is more than do: | 5:result = “impostor” | 6:else do: | 7:result = predictedDriver |
|