Hostname: page-component-76d6cb85b7-hqrjx Total loading time: 0 Render date: 2026-07-11T03:10:15.888Z Has data issue: false hasContentIssue false

Assessing driving risk through unsupervised detection of anomalies in telematics time series data

Published online by Cambridge University Press:  22 May 2025

Ian Weng Chan*
Affiliation:
Department of Statistical Sciences, University of Toronto. Ontario Power Building, 700 University Avenue, 9th Floor, Toronto, ON M5G 1Z5, Canada.
Andrei L. Badescu
Affiliation:
Department of Statistical Sciences, University of Toronto. Ontario Power Building, 700 University Avenue, 9th Floor, Toronto, ON M5G 1Z5, Canada.
X. Sheldon Lin
Affiliation:
Department of Statistical Sciences, University of Toronto. Ontario Power Building, 700 University Avenue, 9th Floor, Toronto, ON M5G 1Z5, Canada.
*
*Corresponding author: Ian Weng Chan; Email: ianweng.chan@mail.utoronto.ca
Rights & Permissions [Opens in a new window]

Abstract

Vehicle telematics provides granular data for dynamic driving risk assessment, but current methods often rely on aggregated metrics (e.g., harsh braking counts) and do not fully exploit the rich time-series structure of telematics data. In this paper, we introduce a flexible framework using continuous-time hidden Markov model (CTHMM) to model and analyse trip-level telematics data. Unlike existing methods, the CTHMM models raw time-series data without predefined thresholds on harsh driving events or assumptions about accident probabilities. Moreover, our analysis is based solely on telematics data, requiring no traditional covariates such as driver or vehicle characteristics. Through unsupervised anomaly detection based on pseudo-residuals, we identify deviations from normal driving patterns—defined as the prevalent behaviour observed in a driver’s history or across the population—which are linked to accident risk. Validated on both controlled and real-world datasets, the CTHMM effectively detects abnormal driving behaviour and trips with increased accident likelihood. In real data analysis, higher anomaly levels in longitudinal and lateral accelerations consistently correlate with greater accident risk, with classification models using this information achieving ROC-AUC values as high as 0.86 for trip-level analysis and 0.78 for distinguishing drivers with claims. Furthermore, the methodology reveals significant behavioural differences between drivers with and without claims, offering valuable insights for insurance applications, accident analysis, and prevention.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - ND
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NoDerivatives licence (https://creativecommons.org/licenses/by-nd/4.0/), which permits re-use, distribution, and reproduction in any medium, provided that no alterations are made and the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of The International Actuarial Association
Figure 0

Figure 1. Speed time series (in $km/h$) of a sample trip. Top: assuming observations are recorded regularly; Bottom: considering the actual observation times (in seconds).

Figure 1

Table 1. Telematics response alignments.

Figure 2

Table 2. UAH-DriveSet: Summary of state-dependent distributions from a 5-state individual-specific CTHMM for D1. SD: standard deviation.

Figure 3

Algorithm 1 Expm Algorithm for Computing $\mathbb{E} \left(\tau_{u}|\mathbf{Y}^*, \mathbf{T}^*, \boldsymbol{\Phi}^{(m-1)} \right)$ and $\mathbb{E} \left(n_{uv}|\mathbf{Y}^*, \mathbf{T}^*, \boldsymbol{\Phi}^{(m-1)} \right)$

Figure 4

Table 3. UAH-DriveSet: Anomaly index in each dimension of telematics observations, computed from individual-specific CTHMMs with 20 states for each driver and averaged over 100 random initializations. Note: S stands for Secondary Road and M stands for Motorway; Z and Y are longitudinal and lateral accelerations, respectively.

Figure 5

Table 4. UAH-DriveSet: Alternative thresholds (2 and 4 standard deviations (SDs)) for calculating anomaly index in each dimension of telematics observations, computed from individual-specific CTHMMs with 20 states for each driver and averaged over 100 random initializations. Note: S stands for Secondary Road and M stands for Motorway; Z and Y are longitudinal and lateral accelerations, respectively.

Figure 6

Table 5. Snapshot of D1’s aggressive trip on motorway with pseudo-residuals of Z_KF. Note: Z and Y are longitudinal and lateral accelerations, respectively.

Figure 7

Table 6. Snapshot of D2’s aggressive trip on motorway with pseudo-residuals of Z_KF. Note: Z and Y are longitudinal and lateral accelerations, respectively.

Figure 8

Table 7. UAH-DriveSet: Anomaly index in each dimension of telematics observations, computed from pooled CTHMM with 20 states from all drivers and averaged over 100 random initializations. Note: S stands for Secondary Road and M stands for Motorway; Z and Y are longitudinal and lateral accelerations, respectively.

Figure 9

Figure 2. Speed time series (in $km/h$) of a sample trip. Shaded regions indicate intervals of non-zero speed, where all intervals are used for anomaly detection, but only the blue ones are used for model fitting.

Figure 10

Table 8. Summary statistics of anomaly indices (%), computed from CTHMMs with 20 states

Figure 11

Figure 3. Empirical densities of target trips and all other trips for their anomaly indices. The left column shows the raw indices, while the right column shows the normalized indices. Red: target trips, and blue: all other trips.

Figure 12

Table 9. Summary statistics of normalized anomaly indices, computed from CTHMMs with 20 states

Figure 13

Table 10. Fivefold cross-validation ROC-AUC of logistic models with raw or normalized anomaly indices as covariates.

Figure 14

Table 11. Fivefold cross-validation window-based ROC-AUC of logistic models with raw or normalized anomaly indices as covariates.

Figure 15

Table 12. Model summary of logistic GAMs, with raw or normalized anomaly indices as covariates. Note: x1, x2, and x3 denote indices for speed, longitudinal, and lateral accelerations, respectively.

Figure 16

Table 13. Comparison of anomaly indices (%) in each telematics response dimension for claimed and no-claim rentals, computed from pooled CTHMMs trained on training sets with a 10% claim rate.

Figure 17

Figure 4. Empirical densities of claimed and no-claim groups for their anomaly indices on a rental basis. The left column shows the mean indices over rentals, while the right column shows the maximum over rentals. Red: with claims, and blue: without claims.

Figure 18

Table 14. Fivefold cross-validation ROC-AUC of logistic GLMs with different sets of covariates. Set 1: maximum anomaly indices, Set 2: right tail of the anomaly index empirical distribution, Set 3: right tail and the number of trips as an offset.

Figure 19

Table 15. Model summary of logistic GLM with the right tail of the anomaly index empirical distribution and the number of trips as an offset.

Supplementary material: File

Chan et al. supplementary material

Chan et al. supplementary material
Download Chan et al. supplementary material(File)
File 145.6 KB