Manuscript Offprint
arXiv:2611.02806CARE: Contrastive Representation Learning with Environment-Invariance Regularization for Behavioural Intention Prediction
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 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:
-
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.
-
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.
-
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.
2.1 Behavioural Intention Prediction and Trajectory Representations
Behavioural intention prediction uses motion histories and contextual cues to distinguish the likely actions of road users [1, 3]. Learning from unlabelled motion is attractive when manually annotated trajectories are scarce. Contrastive predictive coding and TS2Vec demonstrate how self-supervised objectives can extract structure from sequential data [4, 5]; masked autoencoding supplies a complementary reconstruction signal [6]. CARE uses both mechanisms but directs its main regularization toward the differences between training environments.
2.2 Environment Shift and Invariance Regularization
Domain generalization methods seek predictors that continue to work under distribution shifts. Domain-adversarial training suppresses domain-discriminative features [7], whereas invariant risk minimization (IRM) seeks representations for which one predictor is simultaneously adequate across environments [2]. Causal representation learning motivates, but does not guarantee, invariance under changes in nuisance conditions [8]. CARE adapts an IRM-style gradient penalty to an environment-wise contrastive risk instead of applying it directly to supervised intention classification. It is therefore an invariance-regularized objective, not a proof that the learned embeddings contain only causal or invariant factors.
2.3 Reconstruction and Observability-Aware Regularisation
Masked reconstruction complements contrastive learning by encouraging an encoder to retain local trajectory information even when parts of its input are missing [6]. Evidential learning introduces structured uncertainty parameters [9, 10]; their interpretation under partial observability motivates regularisation of the response to missing context. In particular, the visible-mean consistency and masked-evidence principles developed for evidential masked pretraining in eCoMAE [11] motivate CARE's auxiliary constraints. Work on observability-dependent uncertainty, including MORSE [12], further illustrates the importance of relating uncertainty claims to measurable changes in input context. CARE incorporates observability-sensitive constraints into a temporally asymmetric, environment-regularised contrastive objective and evaluates prediction and classification calibration with accuracy, expected calibration error (ECE), negative log-likelihood (NLL), and Brier score [13].
3 Method
CARE targets environment-regularized contrastive representation learning for BIP. Table 1 summarizes notation. An input window and an environment label are available at pretraining time. The learned encoder is subsequently evaluated on four rule-derived intention classes: straight, left, right and stop. No causal graph or physical causal effect is estimated.
Three components appear in the objective: temporally asymmetric contrastive views, an environment-wise IRM-style contrastive penalty, and auxiliary masked reconstruction/evidence consistency. The components and their loss equations are defined below. Here, and refer to the early and late input segments; the later input segment must not be confused with the separate prediction horizon used to construct proxy intention labels.
Table 1: Notation.
| Symbol | Meaning |
|---|---|
| input trajectory window, length , feature dim | |
| feature vector at time step | |
| past length, future length | |
| anchor, masked positive, corrupted negative views | |
| masked time index set used to form | |
| mask rate, block length | |
| encoder, | |
| projection head for contrastive vectors | |
| environment index, number of environments | |
| training batch and its subset in environment | |
| decoder for reconstruction | |
| evidential head outputting NIG parameters | |
| InfoNCE temperature and loss weights |
Algorithm 1 Temporally asymmetric contrastive views (original CARE procedure)
1: Input: , past length , mask rate , block length , mask token 2: Anchor: 3: Positive: 4: Partition later-input indices into consecutive blocks of length 5: Uniformly sample blocks without replacement 6: for each sampled block with indices do 7: ; set for all 8: end for 9: Negative: 10: apply one random corruption to the late segment : 11: Rotate (temporal roll), Swap (batch roll), or Reverse (time flip) 12: Output:
3.1 Temporally Asymmetric Contrastive Views
CARE forms anchor, positive and negative views from the same input window. The anchor is unmodified. Positive views mask contiguous blocks within the later input segment , replacing the selected entries with a learnable token. Negative views apply one of three temporal corruptions to this same segment: rotation, reversal or swapping across a batch. The early input steps remain identical across all three views.
The mask ratio and block length determine the positive-view perturbation. The purpose of this asymmetry is to preserve a common earlier context while making the later input portion informative for distinguishing views; it is not an intervention on a physical cause, nor evidence that the downstream model is protected from future-label leakage. Algorithm 1 specifies the view construction procedure.
3.2 Environment-Invariance Regularization of Contrastive Risk
The encoder processes the three views, producing latent sequences . A projection head produces contrastive vectors . The InfoNCE loss aligns anchor and positive while repelling the negative:
(1) where sim is cosine similarity and is the temperature.
To discourage reliance on environment-specific shortcuts, CARE applies an IRM-style penalty to the environment-wise contrastive risk. Each sample is associated with an environment index . Let denote the set of all training samples from environment . During training, a batch of samples is drawn and partitioned by environment. Let denote the subset of the current batch from environment . The environment-wise contrastive risk is estimated as
CARE adopts an IRM-style gradient penalty intended to favour a shared projection mechanism across training environments; minimizing this surrogate does not itself establish causal or statistical invariance. Following the IRM principle, the penalty is measured by the gradient of each environment risk with respect to the head parameters, evaluated at a fixed reference head ,
Here is a shared and frozen initialization, and is not updated during training. Minimising updates the encoder parameters such that the same simple head can achieve low contrastive risk in all environments. The penalty encourages shared-head compatibility across the observed training groups, although stability on unobserved groups requires empirical assessment.
The environment-regularized contrastive objective is
where is averaged over samples in the batch . The term penalises environment-wise gradients as a surrogate for a common predictor; it does not enforce exact invariance across either the observed groups or unseen environments.
3.3 Auxiliary Reconstruction and Evidence Consistency
In addition to contrastive learning, CARE retains masked reconstruction and an observability-dependent evidential consistency penalty on the positive view . A decoder reconstructs the input sequence from the latent representation ,
Let denote the set of masked time indices used to form . The reconstruction loss is computed only on masked steps and encourages the encoder to preserve fine-grained temporal structure under partial observability,
Reconstruction alone does not constrain the outputs of an evidential head. As an auxiliary regularizer, CARE also uses a head that outputs Normal-Inverse-Gamma parameters for each time step,
The parameter represents a predictive mean, while is the NIG shape parameter regularised at masked positions. These observability-dependent constraints follow the motivation of evidential masked pretraining [11]. Because the specified auxiliary objective does not include an NIG likelihood, the parameters are used as training signals rather than interpreted as validated calibrated uncertainty estimates.
The evidence-consistency regularizer relates outputs to observability through two complementary constraints defined on the anchor view and the positive view . Let and , where . Let denote visible indices. First, on visible steps, predictive means are encouraged to agree between the anchor and the masked view,
Second, on masked steps, large values of the NIG shape parameter are penalised,
The evidence-consistency regulariser is then
3.4 Combined Training Objective
CARE combines reconstruction and evidence consistency as an auxiliary objective:
Together with the environment-regularized contrastive objective in Sec. 3.2, the total self-supervised objective is
where and are scalar weights.
CARE is trained under two alternative protocols: two-stage training and joint training. In the two-stage protocol, the encoder is first pretrained by minimising , and then frozen while a linear classifier is trained for intention prediction. In the joint protocol, the same is added as a regulariser to the supervised cross-entropy loss, enabling end-to-end optimisation while preserving the same objective components.
4 Experiments: Predictive Performance and Component Trade-offs
4.1 Dataset Construction and Task
A window level behavioural intention prediction dataset is constructed from IMPTC trajectory data. The raw data are frame wise tables grouped by an entity identifier, together with an entity level metadata table. For each identifier, the sequence is sorted by a time field and samples are generated via sliding windows. Given a sequence of length , a start index is advanced with stride , a history window is extracted as the model input, and the subsequent segment is used to derive manoeuvre cues for label generation. Unless otherwise stated, the window length is , the stride is , and the future horizon for cue extraction is .
The downstream task is a four class intention classification problem with labels: 0 straight, 1 left turn, 2 right turn, 3 stop.
Table 2: IMPTC BIP dataset overview and window construction settings.
| Split | Samples | Unique IDs | Window length | Past length | Future length | Stride |
|---|---|---|---|---|---|---|
| Train | 28272 | 3328 | 100 | 60 | 40 | 80 |
| Test | 8155 | 1065 | 100 | 60 | 40 | 80 |
Table 3: Intention label distribution. Percentages are computed within each split.
| Split | Straight | Left | Right | Stop |
|---|---|---|---|---|
| Train | 15099 (53.41%) | 2347 (8.30%) | 2319 (8.20%) | 8507 (30.09%) |
| Test | 4761 (58.38%) | 698 (8.56%) | 677 (8.30%) | 2019 (24.76%) |
Input features Each sample contains a trajectory tensor with seven per timestep features in a fixed order: . In addition, each sequence is associated with two context variables used for environment construction: precipitation intensity and part of day.
Rule derived intention labels Window level intention annotations are derived from kinematic rules. Stop is assigned if the mean speed over the last steps of the history window is below . The configuration uses and . Otherwise, the signed angle between the last displacement in the history and the displacement from the history end to the future end is computed. Left is assigned if , right is assigned if , and straight is assigned otherwise. The configuration uses . These are proxy labels, and their utility is assessed through calibration and robustness metrics in addition to accuracy.
Dataset scale and label distribution Tables 2 and 3 report dataset scale and label distribution. All supervised models are trained with class-weighted cross-entropy to reduce bias towards frequent classes. For evaluation, accuracy is used to enable a fair comparison with standard time-series baselines under identical settings. Although accuracy can be influenced by imbalance, the comparisons remain consistent because the same metric and splits are used for all methods.
4.2 Environment Construction and Robustness Setup
Robustness under domain shift is evaluated using discrete environment labels. Each sample is assigned an environment index defined by the joint condition of precipitation intensity and part of day. Precipitation intensity is discretised into three ordered levels using quantile binning on the training split, which yields balanced partitions while preserving the ordering from light to heavy precipitation. Part of day is discretised into four six-hour intervals in local time: 00:00–06:00, 06:00–12:00, 12:00–18:00, and 18:00–24:00. The nominal cross-product comprises up to twelve precipitation-time categories; the original experiment uses the environment indices produced by its data preparation pipeline.
The realized environment distribution is long tailed. In the training split, the largest realized group contains 4,396 samples, while the smallest realized group contains 97 samples, corresponding to a ratio of approximately 45:1 between the largest and smallest groups. In the test split, the largest realized group contains 1,946 samples, while the smallest realized group contains 74 samples, corresponding to a ratio of approximately 26:1. Some environment codes appear in training but are absent in testing, and several realized groups remain rare with fewer than one hundred samples.
These environment labels are used in two ways. First, for invariance learning, each training batch is partitioned into environment-specific subsets , and the IRM-style penalty in Eq. 3 is computed from the corresponding environment-wise risks . Second, for robustness evaluation, a leave-one-environment-out protocol is adopted: one large realised environment is held out as test data and the remaining environments are used for training. This evaluates generalisation to an unseen group defined by precipitation and time-of-day metadata under a naturally imbalanced environment distribution; the setup does not isolate the effect of either environmental factor.
4.3 Evaluation Protocols
IID evaluation IID evaluation uses the provided train split for training and the provided test split for evaluation. In addition to accuracy, worst group accuracy is reported, defined as the minimum accuracy across realized environment groups.
Leave one environment out evaluation Leave one environment out evaluation holds out a target environment group as the test domain and trains on the remaining environment groups. Due to the long tailed distribution, exhaustive leave one environment out across all groups can be unstable when the held out group is small. A selected leave-one-environment-out protocol is therefore used: the selected held-out environment is described as the largest realised group, providing a more populated evaluation set while limiting the conclusions to this particular environment shift.
Two stage training A two stage pipeline is used. Stage one is linear probing, where the encoder is frozen and a linear classifier is trained to probe representation quality. Stage two is global finetuning, where the full model is finetuned end to end for final downstream performance. Baseline comparisons are reported using stage-two fine-tuning, whereas component ablations use stage-one linear probing. The two protocols must not be interpreted as directly interchangeable.
4.4 Baselines, Metrics, and Implementation Details
Baselines CARE is compared with DLinear [14], LiST [15], PatchTST [16], TCN [17], DAE [18] and EAE [19]. All baselines follow the same splits and evaluation protocols.
Metrics Accuracy and worst group accuracy measure predictive performance. Negative log likelihood and Brier score evaluate probability quality. Calibration is assessed using expected calibration error (ECE),
where denotes the index set of samples whose predicted confidence falls into the -th bin, and is the number of evaluated samples.
Implementation details Unless otherwise stated, a Transformer backbone is used with hidden dimension , feed-forward dimension , and number of encoder layers . Batch size is 16 and the random seed is 2. Self supervised pretraining uses 50 epochs with learning rate . Stage one linear probing uses 5 epochs with learning rate .
Table 4: IID results using stage two global finetuning. Higher is better for accuracy and worst group accuracy. Lower is better for calibration and probability quality metric. Best values per column are in bold.
| Model | Acc | Worst group | ECE | NLL | Brier |
|---|---|---|---|---|---|
| CARE | 0.840 | 0.800 | 0.023 | 0.453 | 0.233 |
| DLinear | 0.821 | 0.794 | 0.044 | 0.539 | 0.254 |
| LiST | 0.830 | 0.782 | 0.030 | 0.459 | 0.236 |
| PatchTST | 0.817 | 0.774 | 0.070 | 0.544 | 0.269 |
| TCN | 0.771 | 0.738 | 0.025 | 0.717 | 0.356 |
| DAE | 0.791 | 0.770 | 0.041 | 0.677 | 0.334 |
| EAE | 0.795 | 0.771 | 0.043 | 0.665 | 0.327 |
Table 5: Representative leave one environment out results using stage two global finetuning. The held out environment is chosen from the largest environment groups due to long tailed environment distribution. Higher is better for accuracy. Lower is better for calibration and probability quality metrics. Best values per column are in bold.
| Model | Acc | ECE | NLL | Brier |
|---|---|---|---|---|
| CARE | 0.806 | 0.090 | 0.623 | 0.308 |
| DLinear | 0.794 | 0.095 | 0.756 | 0.333 |
| LiST | 0.785 | 0.070 | 0.622 | 0.312 |
| PatchTST | 0.779 | 0.124 | 0.719 | 0.350 |
| TCN | 0.741 | 0.039 | 0.773 | 0.396 |
| DAE | 0.774 | 0.053 | 0.753 | 0.377 |
| EAE | 0.771 | 0.061 | 0.747 | 0.375 |
Stage two global finetuning uses 5 epochs with learning rate . The past window length is 60 and the total sequence length is 100.
4.5 Downstream Performance after Global Fine-Tuning
IID results Table 4 reports stage two IID results. CARE leads the reported IID fine-tuning comparison on accuracy (0.840), worst-group accuracy (0.800), ECE (0.023), NLL (0.453), and Brier score (0.233). These are downstream classification metrics, rather than direct measurements of the NIG head.
Leave one environment out results Table 5 reports stage two representative leave one environment out results. CARE leads the reported selected held-out-environment comparison in accuracy (0.806) and Brier score (0.308). In terms of negative log-likelihood, CARE is competitive and essentially tied with the strongest baseline (0.623 vs. 0.622). TCN has the lowest ECE (0.039, compared with CARE's 0.090), so this evaluation supports a trade-off rather than a uniformly best-calibrated model.
4.6 Component Analysis with Frozen Representations
This experiment evaluates the contribution of CARE components to encoder representation quality using stage one linear probing. The encoder is frozen and only a linear classifier is trained. Three components are ablated: reconstruction constraint REC, invariance regularization IRM, and evidential regularization EVI with weight 0.05.
Table 6: IID component ablation with a frozen encoder (linear probing). Base denotes contrastive NCE; REC, IRM and EVI denote reconstruction, IRM-style regularisation and auxiliary evidence consistency. Best values per column are bold (Acc/worst-group Acc ↑, NLL/Brier/ECE ↓).
| Setting | Acc | Worst group | NLL | Brier | ECE |
|---|---|---|---|---|---|
| Base | 0.783 | 0.755 | 0.695 | 0.342 | 0.040 |
| REC | 0.803 | 0.778 | 0.625 | 0.302 | 0.053 |
| IRM | 0.784 | 0.755 | 0.694 | 0.341 | 0.038 |
| EVI | 0.783 | 0.756 | 0.696 | 0.343 | 0.038 |
| REC+IRM | 0.792 | 0.768 | 0.661 | 0.327 | 0.028 |
| REC+EVI | 0.792 | 0.768 | 0.662 | 0.327 | 0.028 |
| IRM+EVI | 0.781 | 0.754 | 0.700 | 0.344 | 0.041 |
| All | 0.804 | 0.782 | 0.625 | 0.303 | 0.047 |
Table 7: Held-out-environment component ablation with a frozen encoder (linear probing). Base denotes contrastive NCE; REC, IRM and EVI denote reconstruction, IRM-style regularisation and auxiliary evidence consistency. Best values per column are bold (Acc ↑, NLL/Brier/ECE ↓).
| Setting | Acc | NLL | Brier | ECE |
|---|---|---|---|---|
| Base | 0.765 | 0.750 | 0.381 | 0.066 |
| REC | 0.779 | 0.720 | 0.356 | 0.068 |
| IRM | 0.765 | 0.746 | 0.380 | 0.073 |
| EVI | 0.765 | 0.749 | 0.381 | 0.070 |
| REC+IRM | 0.774 | 0.731 | 0.370 | 0.069 |
| REC+EVI | 0.774 | 0.731 | 0.370 | 0.070 |
| IRM+EVI | 0.762 | 0.752 | 0.382 | 0.075 |
| All | 0.777 | 0.714 | 0.356 | 0.049 |
IID ablation Table 6 reports IID linear-probe results. Adding reconstruction (REC) provides the largest single-component improvement, increasing accuracy and yielding the best probability quality, with the lowest NLL and the lowest Brier score. Enabling all components (All) achieves the best accuracy and worst-group accuracy, while its ECE is higher than the best combined settings (REC+IRM and REC+EVI), which attain the lowest ECE. Overall, REC is the main driver for probability quality, whereas the full configuration offers the strongest accuracy under the linear-probe protocol.
Leave one environment out ablation Table 7 reports selected leave-one-environment-out linear-probe results. On the reported held-out environment, the full configuration (All) has the lowest ECE (0.049) and NLL (0.714), and matches REC on Brier score (0.356). REC has the highest accuracy in this linear-probing ablation (0.779), versus 0.777 for All; the combination therefore provides a calibration/likelihood trade-off rather than uniformly improving every metric.
4.7 Qualitative Inspection of Representation Geometry
Beyond quantitative metrics, a qualitative inspection of the representation geometry learned by CARE is provided. Embeddings are projected to two dimensions using UMAP [20]. Each point corresponds to one trajectory window of length with per-timestep features. Points are coloured by attributes derived from the input window to assess whether the embedding manifold reflects behaviour-relevant structure.

Figure 2: UMAP visualisation of CARE encoder embeddings on the test split, coloured by the discrete environment ID (used by CARE for environment-aware learning and evaluation). Colours appear interleaved in this two-dimensional projection; this alone does not establish environment invariance. Environment IDs 2 and 3 are absent in the test split and therefore do not appear in the plot.

Figure 3: UMAP visualisation of CARE encoder embeddings on the test split, coloured by trajectory-level statistics of the x coordinate over each window (L=100). Left: mean(x); right: std(x). The smooth gradient in mean(x) suggests coherent geometric organisation, while localised high std(x) highlights windows with larger spatial variability.
Fig. 2 shows that samples from different environments are largely interleaved across the embedding manifold, without forming clearly environment-separated islands. This descriptive visualization does not show obvious environment-separated islands, but UMAP projections alone cannot establish statistical independence of features and environment labels. Figure 3 colours the same embeddings by trajectory-level statistics of the x coordinate. A smooth gradient in mean(x) over the manifold suggests coherent geometric organisation, while localised regions with high std(x) highlight windows with larger motion variability. Finally, Figure 4 colours embeddings by ground-type context. The modal ground_type is dominated by the most common VRU surfaces and does not partition the manifold into isolated semantic clusters. Instead, regions with higher ground-type diversity tend to concentrate in specific parts of the manifold and align with areas of higher motion variability, suggesting that CARE preserves interpretable scene-context cues in addition to continuous geometric factors. These qualitative

Figure 4: UMAP projection of CARE encoder embeddings on the test split, coloured by ground-type context aggregated within each trajectory window (). Left: modal ground_type in the window. Right: number of unique ground_type values observed in the window, serving as a proxy for local context diversity. The dominant mode is consistent with typical VRU trajectories occurring on sidewalks or road surfaces. Colours remain largely interleaved across the manifold rather than forming isolated semantic islands, while regions with higher context diversity concentrate locally and align with areas of higher motion variability in other statistics, providing interpretable context cues without the representation being driven by discrete ground-type labels.
patterns suggest locally interpretable geometry. They do not constitute a quantitative test of environment invariance.
5 Discussion
5.1 Predictive Performance and Component Contributions
The reported global fine-tuning comparison favours CARE on all five IID measures, including accuracy of 0.840 and ECE of 0.023. In the selected held-out-environment test, CARE achieves the highest reported accuracy (0.806) and the lowest Brier score (0.308), but TCN has a lower ECE (0.039 versus 0.090) and LiST has a marginally lower NLL (0.622 versus 0.623). These distinctions matter: a strong score under one particular environment shift does not imply invariance or uniformly superior calibration.
Component ablations tell a more selective story. With a frozen encoder, masked reconstruction gives the clearest individual gain in held-out-environment accuracy (0.779 versus 0.765 for the contrastive baseline). IRM alone matches the baseline in held-out-environment accuracy and has higher ECE, while EVI alone does not improve that accuracy. The full configuration improves held-out-environment ECE to 0.049 and NLL to 0.714 at accuracy 0.777, slightly below the 0.779 of REC. This pattern motivates studying interactions among regularizers; it does not justify treating all auxiliary penalties as independently beneficial.
5.2 Limitations and Reproducibility
The benchmark uses rule-derived proxy intention labels and the reported environment groups are long-tailed. The reported leave-one-environment-out results represent one fixed, large held-out group, not an exhaustive average across all environment groups. Experiments use the reported random seed of 2 and do not quantify seed-to-seed variability. UMAP visualizations provide qualitative interpretation but cannot establish learned invariance. The temporal perturbations affect the later portion of the input window; the paper makes no causal intervention or future-label-leakage claim. The exact correspondence between numeric environment codes and the nominal precipitation-time categories is not fully documented in the available manuscript, limiting independent verification of environment group membership.
Future work could evaluate all adequately populated held-out environment groups, quantify multiple-seed uncertainty, and isolate the temporal-asymmetry and environment-risk penalty contributions under otherwise matched protocols.
6 Conclusion
CARE studies an environment-regularised contrastive objective for motion representation learning, combining temporally asymmetric views with an IRM-style penalty on environment-wise risks. Reconstruction and evidence consistency complement this main objective as auxiliary losses. On the IMPTC-derived intention benchmark, CARE obtains 0.840 IID accuracy and 0.806 accuracy on the selected held-out environment after fine-tuning. Under frozen-encoder evaluation, reconstruction is the strongest individual contributor to held-out accuracy, whereas the full objective provides the lowest ECE among the tested combinations. These results support the practical value of the proposed combination under the evaluated conditions, but do not establish causal invariance, broad environment-generalisation guarantees, or calibrated NIG uncertainty. The study provides an environment-wise contrastive regularisation formulation and a component-level evaluation of its predictive trade-offs in behavioural intention prediction.
Acknowledgments
This research has been partly funded by the Hessian State Ministry for Higher Education, Research, Science and the Arts (HMWK) as part of the LOEWE program (Kapitel 15 02, Förderbuchungskreis 2995, Förderprodukt 11 – Landes-Offensive zur Entwicklung Wissenschaftlich-ökonomischer Exzellenz).
References
[1] Jianwu Fang, Fan Wang, Jianru Xue, and Tat-Seng Chua. Behavioral intention prediction in driving scenes: A survey. IEEE Transactions on Intelligent Transportation Systems, 25(8):8334–8355, 2024. doi: 10.1109/TITS.2024.3374342.
[2] Martin Arjovsky, Léon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization, 2020. URL https://arxiv.org/abs/1907.02893.
[3] Stefan Zernetsch, Viktor Kress, Maarten Bieshaar, Jan Schneegans, Günther Reitberger, Erich Fuchs, Bernhard Sick, and Konrad Doll. Detecting intentions of vulnerable road users based on collective intelligence as a basis for automated driving. In Christoph Stiller, Matthias Althoff, Christoph Burger, Barbara Deml, Lutz Eckstein, and Frank Flemisch, editors, Cooperatively Interacting Vehicles: Methods and Effects of Automated Cooperation in Traffic, pages 35–87. Springer International Publishing, Cham, 2024. ISBN 978-3-031-60494-2. doi: 10.1007/978-3-031-60494-2_3. URL https://doi.org/10.1007/978-3-031-60494-2_3.
[4] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding, 2019. URL https://arxiv.org/abs/1807.03748.
[5] Zhihan Yue, Yujing Wang, Juanyong Duan, Tianmeng Yang, Congrui Huang, Yunhai Tong, and Bixiong Xu. Ts2vec: Towards universal representation of time series, 2022. URL https://arxiv.org/abs/2106.10466.
[6] Zhe Li, Zhongwen Rao, Lujia Pan, Pengyun Wang, and Zenglin Xu. Ti-mae: Self-supervised masked time series autoencoders, 2023. URL https://arxiv.org/abs/2301.08871.
[7] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks, 2016. URL https://arxiv.org/abs/1505.07818.
[8] Bernhard Schölkopf, Francesco Locatello, Stefan Bauer, Nan Rosemary Ke, Nal Kalchbrenner, Anirudh Goyal, and Yoshua Bengio. Towards causal representation learning, 2021. URL https://arxiv.org/abs/2102.11107.
[9] Murat Sensoy, Lance Kaplan, and Melih Kandemir. Evidential deep learning to quantify classification uncertainty, 2018. URL https://arxiv.org/abs/1806.01768.
[10] Alexander Amini, Wilko Schwarting, Ava Soleimany, and Daniela Rus. Deep evidential regression, 2020. URL https://arxiv.org/abs/1910.02600.
[11] Shang Gao, Franz Götz-Hahn, Konrad Doll, and Bernhard Sick. Observability-aligned evidential masked pretraining for reliable vru motion prediction, 2026. URL https://arxiv.org/abs/2610.39958.
[12] Shang Gao, Bernhard Sick, and Franz Götz-Hahn. Grounding predictive reliability through masked observability, 2026. URL https://arxiv.org/abs/2610.39728.
[13] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks, 2017. URL https://arxiv.org/abs/1706.04599.
[14] Ailing Zeng, Muxi Chen, Lei Zhang, and Qiang Xu. Are transformers effective for time series forecasting?, 2022. URL https://arxiv.org/abs/2205.13504.
[15] Zhixin Huang, Christian Gruhl, and Bernhard Sick. List: An all-linear-layer spatial-temporal feature extractor with uncertainty estimation for rul prediction. In 2024 IEEE 19th Conference on Industrial Electronics and Applications (ICIEA), pages 1–7, 2024. doi: 10.1109/ICIEA61579.2024.10665236.
[16] Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, and Jayant Kalagnanam. A time series is worth 64 words: Long-term forecasting with transformers, 2023. URL https://arxiv.org/abs/2211.14730.
[17] Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling, 2018. URL https://arxiv.org/abs/1803.01271.
[18] Ghassan Al-Falouji, Shang Gao, Lukas Haschke, Dirk Nowotka, and Sven Tomforde. Enhancing maritime behaviour analysis through novel feature engineering and digital shadow modelling: A case study in the kiel fjord. In International Conference on Architecture of Computing Systems, pages 97–111. Springer, 2024.
[19] Shang Gao, Zhixin Huang, Ghassan Al-Falouji, Bernhard Sick, and Sven Tomforde. Towards cognitive situational awareness in maritime traffic using federated evidential learning. In 2025 IEEE Conference on Cognitive and Computational Aspects of Situation Management (CogSIMA), pages 9–16, 2025. doi: 10.1109/CogSIMA64436.2025.11079521.
[20] Leland McInnes, John Healy, and James Melville. Umap: Uniform manifold approximation and projection for dimension reduction, 2020. URL https://arxiv.org/abs/1802.03426.