Supervised Contrastive Learning for Detecting Anomalous Driving Behaviours from Multimodal Videos

Shehroz S. Khan, Ziting Shen, Haoying Sun, Ax Patel, Ali Abedi
9/9/2021
cs.CV
contrastive-ssl

Official code: abediai/SCL-DAD (6 stars, Python, last commit 2022-03-05).

Abstract

Distracted driving is one of the major reasons for vehicle accidents. Therefore, detecting distracted driving behaviors is of paramount importance to reduce the millions of deaths and injuries occurring worldwide.

Show full abstract

Distracted or anomalous driving behaviors are deviations from 'normal' driving that need to be identified correctly to alert the driver. However, these driving behaviors do not comprise one specific type of driving style and their distribution can be different during the training and test phases of a classifier. We formulate this problem as a supervised contrastive learning approach to learn a visual representation to detect normal, and seen and unseen anomalous driving behaviors. We made a change to the standard contrastive loss function to adjust the similarity of negative pairs to aid the optimization. Normally, in a (self) supervised contrastive framework, the projection head layers are omitted during the test phase as the encoding layers are considered to contain general visual representative information. However, we assert that for a video-based supervised contrastive learning task, including a projection head can be beneficial. We showed our results on a driver anomaly detection dataset that contains 783 minutes of video recordings of normal and anomalous driving behaviors of 31 drivers from the various top and front cameras (both depth and infrared). Out of 9 video modalities combinations, our proposed contrastive approach improved the ROC AUC on 6 in comparison to the baseline models (from 4.23% to 8.91% for different modalities). We performed statistical tests that showed evidence that our proposed method performs better than the baseline contrastive learning setup. Finally, the results showed that the fusion of depth and infrared modalities from the top and front views achieved the best AUC ROC of 0.9738 and AUC PR of 0.9772.

View on arXivView PDF

Code Implementations(1)

abediai/SCL-DADOfficial100%

Supervised Contrastive Learning for Detecting Anomalous Driving Behaviours

62PythonSep 9, 20214 years ago

Similar Papers

Cite this paper

@article{khan2021supervised,
  title  = {Supervised Contrastive Learning for Detecting Anomalous Driving Behaviours from Multimodal Videos},
  author = {Shehroz S. Khan and Ziting Shen and Haoying Sun and Ax Patel and Ali Abedi},
  year   = {2021},
  eprint = {2109.04021},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.04021}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.04021.svg)](https://codeofpaper.com/paper/2109.04021)

Discussion