Real-time driver behaviour characterization through rule-based machine learning