Context-Informed Sequence Classification: A Multimodal Approach to Vehicle Diagnostics

Hugo Math, Rainer LienhartTSALM @ ICLR 2026

TL;DR

This paper introduces BiCarFormer, a novel multimodal Transformer that combines vehicle diagnostic trouble codes (DTCs) with environmental sensor data to improve the accuracy of predicting vehicle faults. By effectively fusing these disparate data streams, BiCarFormer significantly outperforms existing methods that rely solely on DTCs, paving the way for more robust and predictive vehicle maintenance.

What Problem Does This Paper Address?

Modern vehicles generate a wealth of data, but current diagnostic systems often rely heavily on discrete Diagnostic Trouble Codes (DTCs) to identify issues. This approach overlooks crucial contextual information from continuous environmental sensors (like temperature, pressure, and voltage), which domain experts use to distinguish between genuine system failures and minor anomalies. This gap leads to incomplete diagnostics and can hinder predictive maintenance efforts. The challenge lies in effectively integrating these heterogeneous, asynchronous data streams – discrete DTCs and continuous sensor readings – into a unified diagnostic model.

Methods

The core innovation is BiCarFormer, a dual-stream bidirectional Transformer designed for multimodal data fusion. It tackles the problem in several key ways:

  • Hierarchical DTC Embedding: Instead of treating each DTC as a single token, BiCarFormer breaks down DTCs into three hierarchical components (ECU, Base-DTC, Fault-Byte) and embeds them. This preserves semantic structure and avoids vocabulary explosion. Time and mileage information are then added as sinusoidal embeddings.
  • Tokenized Environmental Embedding: Continuous sensor data is noisy and high-dimensional. BiCarFormer addresses this by tokenizing the sensor values into discrete "buckets" using quantile discretization. This makes the continuous data compatible with the discrete DTC tokens. The sensor description, quantized value, and unit are then combined into an environmental embedding.
  • Co-Attention Mechanism: To handle the asynchronous nature of DTCs and sensor data (they are sampled at different rates and times), BiCarFormer employs a co-attention mechanism. This allows each modality to query the other, enabling the model to learn how environmental conditions relate to specific DTCs and vice-versa. Rotary Positional Embeddings (RoPE) are used to inject relative positional information.

Datasets

The authors evaluated BiCarFormer on a real-world industrial fleet dataset. This dataset contains:

  • 22,137 unique DTC types.
  • 360 target Error Patterns (EPs).
  • 50,000 test samples.

The dataset is noted for its significant class imbalance and irregular sampling intervals, characteristic of real-world automotive data.

Key Insights and Ideas

  • Environmental context is critical: The paper strongly demonstrates that incorporating environmental sensor data significantly improves diagnostic accuracy, especially for rare error patterns.
  • Tokenization bridges the modality gap: Discretizing continuous sensor data into quantiles is an effective way to make it compatible with discrete DTC tokens for Transformer-based fusion.
  • Transformers can learn subtle fluctuations: The co-attention mechanism allows BiCarFormer to not just correlate sensor values with DTCs, but to implicitly learn to detect sudden fluctuations or "trigger points" in sensor data, acting like a soft edge detector for anomalies. This is a powerful emergent capability.
  • Co-attention for asynchrony: The co-attention mechanism is crucial for aligning and leveraging information from asynchronous data streams, a common challenge in real-world time-series data.

Key Results

  • BiCarFormer consistently outperforms unimodal baselines on multi-label Error Pattern classification.
  • The model achieved a Macro F1 score of 0.71, significantly higher than the baseline of 0.63, indicating a superior ability to detect rare error patterns despite class imbalance.
  • The AUROC (Micro) was 0.809 and F1 Score (Micro) was 0.77.

Limitations and Future Work

  • Class Imbalance: While the model performs well, the dataset exhibits significant class imbalance, which is a general challenge in real-world diagnostic tasks.
  • Interpretability of Fluctuations: The paper highlights the model's ability to detect fluctuations, but further work could explore deeper interpretability of how these fluctuations are learned and utilized.
  • Generalizability: While evaluated on a large fleet dataset, testing on diverse vehicle types and operating conditions would further validate the model's robustness.
  • Future Directions: The authors suggest that this multimodal approach can be extended to other complex industrial diagnostic scenarios. The ability to learn fluctuations could also be leveraged for more proactive anomaly detection and predictive maintenance.

Summary updated

BibTeX
@inproceedings{math2026context,
  author = {Hugo Math and Rainer Lienhart},
  title = {{Context-Informed Sequence Classification: A Multimodal Approach to Vehicle Diagnostics}},
  booktitle = {TSALM @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=G4iAE9xOpb},
}
Figure