Intelligent driving diagnostics