A Temporal Vision Transformer-Based Framework for Driver in-Cabin Activity Recognition
K.L. Santhosh KumarPresidency School of Artificial Intelligence and Advanced Computing, Presidency University, Bengaluru, Karnataka, India. santhosh.kumarkl@presidencyuniversity.in0000-0002-1706-8867
S. Pravinth RajaPresidency School of Artificial Intelligence and Advanced Computing, Presidency University, Bengaluru, Karnataka, India. pravinth.raja@presidencyuniversity.in0000-0001-5196-908X
Monitoring activities performed by drivers inside a vehicle is an important aspect of intelligent transportation systems, particularly for identifying behaviours that may interfere with safe driving. This research investigates a Vision Transformer-based approach for recognizing different driver in-cabin activities from visual data. The proposed framework utilizes an ImageNet-1K pretrained Vision Transformer Base/16 (ViT-B/16) model to classify six activity categories: normal driving, texting, on-call activity, drinking, operating the radio, and talking to a passenger. A customized dataset containing 10,000 images is used for the experimental investigation, with 70% allocated for training, 20% for validation, and the remaining 10% for testing. All images are resized to 224 × 224 pixels before being supplied to the network. Beyond individual image classification, the trained model is applied to video input by organizing consecutive frames into sequences of 16 frames. A sliding-window approach with a stride of four frames is adopted for sequence generation, and a five-prediction smoothing window is used to improve the consistency of activity labels during video analysis. The performance of the selected approaches is examined using a common dataset, with accuracy, precision, recall, F1-score, and confusion matrix analysis serving as the evaluation measures. This investigation examines the suitability of Transformer-based visual representations and sequence-based video processing for distinguishing multiple driver activities. The resulting framework offers a basis for further development of driver monitoring applications that require the identification of potentially distracting in-cabin behaviours.