Probabilistic calibration of a binary classifier, applied to detecting sleeping state in a car drive