Manuscript Offprint

arXiv:2611.02806

CARE: Contrastive Representation Learning with Environment-Invariance Regularization for Behavioural Intention Prediction

Shang Gao, Zhixin Huang, Franz Götz-Hahn, Konrad Doll, Bernhard Sick

Abstract

Trajectory-based behavioural intention prediction faces environmental variation, and representations learned with a pooled contrastive objective may retain environment-specific regularities. We present CARE, a self-supervised trajectory-learning framework that couples temporally asymmetric contrastive views with an invariant-risk-minimisation (IRM)-style gradient penalty on environment-wise contrastive risks. Each input window yields an anchor, a partially masked positive view, and a temporally perturbed negative view. Masked reconstruction and observability-aware evidence consistency complement this objective by promoting temporal information retention under partial input. On an IMPTC-derived four-class intention task, CARE achieves 0.840 accuracy and 0.023 expected calibration error (ECE) under IID fine-tuning, and 0.806 accuracy with a Brier score of 0.308 on the reported held-out environment. Under frozen-encoder linear probing, reconstruction provides the largest individual held-out accuracy gain, whereas the complete objective yields the lowest held-out ECE (0.049) among tested variants. These results support the combined objective as a competitive representation-learning approach under the evaluated shift, while the IRM-style regulariser is not taken as evidence of formal invariance.

Keywords: behavioural intention prediction; contrastive representation learning; environment regularization; invariant risk minimization; trajectory self-supervision; probability calibration

1 Introduction

Behavioural Intention Prediction (BIP) estimates a road user's upcoming manoeuvre from a short observed motion history. For vulnerable road users (VRUs), including pedestrians and cyclists, such estimates are relevant to proactive planning in autonomous driving [1]. Models are expected not only to distinguish intentions such as moving straight, turning or stopping, but also to retain predictive value when conditions at deployment differ from those seen during training.

Trajectory data are often heterogeneous: lighting, precipitation and time of day can vary across recordings. Standard supervised learning and conventional self-supervised pretraining do not,

*ORCID: 0009-0005-5474-1888 †ORCID: 0000-0002-6124-0206 ‡ORCID: 0000-0003-3465-5040 §ORCID: 0000-0002-3746-2319 ¶ORCID: 0000-0001-9467-656X

Figure

Figure 1: CARE combines temporally asymmetric contrastive views with an environment-wise IRM-style penalty; reconstruction and evidence consistency provide auxiliary regularization. The architecture and computation graph are retained from the original manuscript.

by themselves, require an encoder to avoid environment-specific shortcuts. This motivates a testable methodological question: can contrastive trajectory learning be regularized toward shared behaviour across predefined environments without sacrificing intention-prediction performance? Invariance here is a learning objective, not a property established by the use of an IRM penalty alone [2].

CARE addresses this question by combining temporally asymmetric trajectory views with an environment-wise penalty on contrastive risk. For each input window, an anchor is compared with a masked positive and a temporally corrupted negative. The earlier part of the observed input window remains fixed while the later part is perturbed. The distinction is important: the perturbed segment is still observed input and is not the separate future interval used to derive the intention label. Contrastive learning encourages discrimination between these views; an IRM-inspired objective penalizes disparities in optimality of a shared projection head across training environments.

To complement the environment-regularised contrastive objective, CARE also reconstructs masked motion steps and constrains the evidential head across differently observed views. The resulting joint objective couples discriminative trajectory structure, environment-wise regularisation, and observability-dependent auxiliary learning without assuming that a single constraint can guarantee robustness.

The contributions of this study are as follows:

  1. Environment-regularized contrastive training. We formulate a contrastive loss over asymmetric motion views and add an IRM-style gradient penalty on contrastive risks computed within precipitation/time-of-day environment groups.

  2. A controlled BIP evaluation. We retain the original IMPTC-derived four-class proxy-label task and report IID and selected held-out-environment results for the same baseline and CARE configurations.

  3. A component-level reliability assessment. Using full-model evaluations and frozen-encoder ablations, we distinguish the accuracy contribution of reconstruction from the probability-quality improvement associated with the combined objective, without attributing unverified gains to IRM alone.

References (20)