from SHAP explanations to behavioural archetypes and targeted recommendations
Joint work with A. Mancuso, R. Simone and F. Palumbo
2026-06-03
Sustainability
Aggressive driving can increase fuel consumption and CO₂ emissions by up to 40% (McConky, Chen, & Gavi, 2018; Xu, Li, Liu, Rodgers, & Guensler, 2017).Green driving improves efficiency and reduces emissions (Zhou, Jin, & Wang, 2016).Safety
Aggressive driving is correlated with higher crash risk (Adavikottu & Velaga, 2021).Structured green driving programs have achieved up to 10% fuel savings and a 33% reduction in property-damage accidents (Nævestad, 2022).How to measure, explain, and improve driving behavior at scale?
Ecoscoring project
A partnership between an Italian insurance company and University of Naples Federico II
Project objective
Develop an eco-scoring system to:
Our focus in this work
Design an interpretable emission recommendation framework that:
This system is complementary to the eco-score and enables actionable intervention.
from raw telematics to actionable recommendations
Data reconstruction and enrichment derive acceleration, slope, and environmental context from 2-minute GPS data
DL-based estimation of microscopic CO₂ emission rates
Customer-level surrogate modelling
structural + behavioural + contextual drivers
Model-agnostic explanations
individual drivers and global effect shapes
Behavioural archetypes
segmentation of explanation patterns → targeted recommendations
Boxes Data
customers data (provided by the insurance company)
main structural limitation
Two-minute resolution is too coarse to directly observe microscopic driving dynamics (acceleration, harsh braking, slope effects).
The method
Open street maps / Google maps)Why it’s attractive
The bottleneck
At our scale, continuous API calls are too slow (Open Street map) or too expensive (Google Maps).
Free option
Need for plan B
External APIs are unscalable for moderately high frequency telematics.
Key point
Emissions are driven by vehicle dynamics and resistive forces, not only distance.
Vehicle Specific Power (VSP)
\[VSP_t = \frac{A v_t + B v_t^2 + C v_t^3 + m v_t (a_t + g \sin\theta)}{m}\]
A: rolling resistance; B: rotation resistance; C: aerodynamic drag.
\(m\) is the vehicle mass, \(g\) is the gravity;
We needed: speed (\(v_t\)), acceleration (\(a_t\)), road grade (\(\theta\))
a validated physical model
The gold standard is MOVES
(Motor Vehicle Emission Simulator, US EPA). (Koupal, Cumberworth, Michaels, & Beardsley, 2003; Park, Lee, & Lee, 2016)
MOVES pros
MOVES cons
MOVES is designed for macroscopic studies (cities, regions)
Heavy database infrastructure
13+ complex input files
evaluating a single 10-minute trip: 2–5 minutes of processing
for hundreds of thousands of trips: computationally infeasible
NeuralMOVES is a set of specialized neural networks trained on vehicle-specific subsets of the MOVES simulation data.
Why NeuralMOVES
Trained on millions of MOVES-generated scenarios
Tiny (MB-scale package)
Millisecond-level evaluation
highly accurate
Architecture
Inputs: speed, acceleration, grade
Context: temperature, humidity
2 hidden layers
5 neurons each
Activation: hyperbolic tangent
rationale
Separate models by vehicle type
Avoid unrealistic mixing
Fast execution
Smooth, differentiable output
Training
70/30 train/test
Early stopping (~300 epochs)
avoid negative emissions:
\[ \text{NeuralMOVES}(x) = \max\{\hat{e}(x), e_{idle}\} \]
NeuralMOVES required inputs
reconstruct from boxes data:
road slope
air temperature & humidity
acceleration
Enrichment process
what’s next?
customer-level understanding
key emission drivers
actionable guidance
Learning task
model NeuralMOVES-estimated emissions as a function of structural, behavioural, and contextual features.
setup
observations: box-recording -> trip -> customer
target: log-transformed NeuralMOVES estimated emissions per km
vehicle & driver context features
driving behaviour features
baseline
Tree-based models
Takeaway
XGBoost achieves the lowest RMSE (≈18% improvement over Random Forest), while Elastic Net underfits — nonlinear behavioural effects are essential.
Linear regression (observation \(i\))
\[ \hat y_i = \mathbb{E}[\hat y] + \sum_{j=1}^{p} \hat{\beta}_j \left( x_{ij} - \mathbb{E}[X_j] \right) \]
Each term \(\hat{\beta}_j\left(x_{ij}-\mathbb{E}[X_j]\right)\) is the contribution of feature \(j\) for observation \(i\), measured as a deviation from the average prediction.
SHAP decomposition (any model)
\[ f(\mathbf{x}_i) = \phi_0 + \sum_{j=1}^p \phi_{ij} \]
Each \(\phi_{ij}\) is the SHAP value associated with feature \(j\) for observation \(i\).
Cooperative game theory
SHAP stands for:
SHapley Additive exPlanations
It is based on Shapley values from cooperative game theory (Shapley, 1953).
game theory
The Shapley value is a method for assigning payouts to players depending on their contribution to the total payout. Players cooperate in a coalition and receive a certain profit from this cooperation (Molnar, 2025).
mapping
Formal definition
For observation \(i\) and feature \(j\):
\[ \phi_{ij} = \sum_{S \subseteq N \setminus \{j\}} \frac{|S|! (p-|S|-1)!}{p!} \Big[ f_{S\cup\{j\}}(\mathbf{x}_i) - f_S(\mathbf{x}_i) \Big], \]
where \(N = \{1,\dots,p\}\) and
\(f_S(\mathbf{x}_i)=\mathbb{E}[f(X)\mid X_S=x_{iS}]\).
Main intuition
The Shapley value is the average marginal contribution of feature \(j\) to the prediction for observation \(i\), averaged over all possible feature orders.
Weight
The term
\[ \frac{|S|!(p-|S|-1)!}{p!} \]
is the probability that subset \(S\) appears before feature \(j\) in a random ordering of features.
Marginal contribution
For a subset \(S\), the quantity
\[ f_{S\cup\{j\}}(\mathbf{x}_i) - f_S(\mathbf{x}_i) \]
measures how much feature \(j\) changes the prediction when added to the features in \(S\).
Structure of gradient boosting
An XGBoost model is additive:
\[ f(\mathbf{x}_i) = f_0 + \sum_{t=1}^{T} \lambda \, f_t(\mathbf{x}_i), \]
where:
Each tree is fitted to the pseudo-residuals.
SHAP and boosting
Shapley values are linear:
\[\begin{equation*} \begin{split} \phi_{ij}(f + g) &= \phi_{ij}(f) + \phi_{ij}(g)\\ \phi_{ij}(a f)&= a \ \phi_{ij}(f) \end{split} \end{equation*}\]
Therefore,
\[ \phi_{ij}(f) = \sum_{t=1}^{T} \lambda \, \phi_{ij}\!\left(f_t\right). \]
SHAP values can be computed tree-by-tree and then aggregated.
Active path intuition
A regression tree partitions the feature space and assigns a constant prediction at each leaf.
For each observation \(\mathbf{x}_i\), only one root-to-leaf path is active.
Therefore, only the variables used along that path can affect the prediction for that tree.
TreeSHAP payoff
Instead of averaging over all possible feature subsets by brute force, TreeSHAP:
This makes exact SHAP values feasible for tree ensembles such as XGBoost.
What drives predicted emissions?
Takeaway
Emissions are not explained only by vehicle structure:
they are also shaped by how people drive.
What drives predicted emissions?
From explanations to behavioural profiles
SHAP provides individual-level explanations.
For each customer \(i\) we obtain a SHAP vector
\[ \boldsymbol{\phi}_i = (\phi_{i1}, \dots, \phi_{ip}) \]
describing how behavioural variables contribute to predicted emissions.
The scalability problem
With 100,000 customers, SHAP yields 100,000 explanations.
Insurers cannot design 100,000 personalized interventions.
Instead, we need behavioural profiles that summarize recurring emission-driving patterns.
Idea
Cluster explanations, not customers.
We apply Archetypal Analysis to the SHAP vectors.
Data representation
Each customer is described by a SHAP explanation vector \(\boldsymbol{\phi}_i = (\phi_{i1},\dots,\phi_{ip})\)
Collecting them yields the SHAP matrix
\[ \boldsymbol{\Phi} = \begin{bmatrix} \boldsymbol{\phi}_1 \\ \vdots \\ \boldsymbol{\phi}_n \end{bmatrix} \in \mathbb{R}^{n\times p}. \]
Archetypal decomposition (Cutler & Breiman, 1994)
Archetypal Analysis approximates
\[ \boldsymbol{\Phi} \approx \mathbf{A}\mathbf{B}\boldsymbol{\Phi} \]
where
\(A_{n\times k}\) : customer → archetype mixture weights
\(B_{k\times}\) : archetype → customer mixture weights
Rows of both matrices are non-negative and sum to one.
Archetypes on SHAP
Archetypes are the rows of
\[ \mathbf{Z} = \mathbf{B}\boldsymbol{\Phi} \]
Each archetype is therefore a convex combination of SHAP vectors:
\[ \mathbf{z}_h = \sum_{\ell=1}^{n} B_{h\ell}\boldsymbol{\phi}_\ell \]
Interpretation
Archetypes represent extreme emission mechanisms,
i.e. extreme patterns of feature contributions to predicted emissions.
Each customer is expressed as a convex combination of archetypes
\[ \boldsymbol{\phi}_i \approx \sum_{h=1}^{k} A_{ih}\mathbf{z}_h \]
→ enabling behavioural segmentation and targeted recommendations.
Clustering vs archetypes
K-means
Archetypal Analysis
Takeaway
Predicted emissions are mainly increased by vehicle age and fuel-type effects, while trip-structure variables partly offset the prediction. Speeding behaviour remains a secondary behavioural lever
Takeaway
Emissions are driven upward by sustained trip duration and vehicle age, partially offset by average trip length and speed-related effects
Takeaway
Very short average trip length is the dominant positive contribution, consistent with a short-trip inefficiency regime
Takeaway
Very long trip duration pushes emissions upward, but long average trip length and recent vehicle age compensate, producing a mixed profile
Mechanism
Predicted emissions are mainly driven by structural vehicle characteristics
(e.g., vehicle age and technology).
Behavioural recommendations
Limited behavioural leverage; focus on vehicle efficiency improvements:
Insurer action
Target vehicle upgrade incentives or eco-bonus programs rather than behavioural coaching
Mechanism
Long duration for moderatly long trips drives emissions upward
Behavioural recommendations
Prefer routes with less stop–go congestion
Encourage steady cruising instead of speed oscillations
Insurer action
Introduce long-trip coaching through periodic feedback and driving goals
Mechanism
Frequent short trips create inefficiency due to cold starts and incomplete engine warm-up
Behavioural recommendations
Insurer action
Introduce a short-trip reduction challenge rewarding reductions in short-trip frequency
Mechanism
Long trips tend to be efficient per km; the main risk comes from sustained high speeds
Behavioural recommendations
Insurer action
Provide lightweight feedback and eco-driving recognition incentives
guidance
Instead of producing 100,000 individual recommendations,
we design archetype-specific guidance
This enables:
What we did
Take-home messages
Outlook