boyang@ubuntu:~Back to terminal

On-device language models

COACH

Generating evidence-linked driving feedback with local language models.

COACH: Compact On-device AI Coaching Harness for Risk-Guided Driver Behavior Profiling

Working manuscriptBoyang Tian · First author
COACH pipeline turning driving logs and selected risk episodes into structured local language model feedback.
An offline pipeline that compresses long driving logs into route statistics and risk-centered episodes, then uses local language models to produce structured behavior profiles and actionable feedback on embedded hardware.

The problem

What needs to change

Long driving logs contain more detail than a small local language model can efficiently consume. Useful behavior feedback also needs evidence: a recommendation about following distance or braking should connect to the events that support it. Embedded hardware makes this evidence-selection problem especially concrete.

The key idea

Select the evidence that matters

Combine route-level statistics with short episodes selected around Context-aware Risk Index peaks and routine-driving contrasts. These compact evidence packages prompt a local language model to generate structured behavior profiles and recommendations whose supporting route statistics and episodes remain available for inspection.

The system

From an idea to an implementation

COACH processes CARLA route JSON logs offline, extracts statistics and risk-centered windows, and renders compact prompts for Qwen3-family models. Quantized models run locally on a Jetson Orin Nano. The pipeline produces post-drive feedback, with deterministic log processing kept separate from language generation.

A route risk trace showing selected high-risk event windows and low-risk contrast episodes.
Risk-centered event windows retain interaction evidence while route statistics provide the broader driving context.

The evidence

How the system was evaluated

The working manuscript evaluates 36 de-identified CARLA route files across urban, rural, and scenario-based routes. It examines behavioral consistency, evidence selection, feedback traceability, model capacity, and local inference cost. Jetson measurements characterize practical latency and memory trade-offs for on-device post-drive profiling. The manuscript has not yet been submitted.

Resources

Explore the work

The manuscript is in preparation. For questions about the pipeline or experiments, contact me at tby@udel.edu.

Download my CV