Abstract
This paper introduces a novel framework for classifying long-duration time series data by combining Multiple Instance Learning (MIL) with Bayesian Neural Networks (BNNs). By treating segments of a long trajectory as "instances" in a "bag," the model utilizes predictive uncertainty to automatically identify discriminant sub-sequences (shapelets) while filtering out irrelevant noise. Evaluated on maritime vessel tracking data, the approach significantly improves classification accuracy and provides enhanced interpretability by highlighting the specific segments driving model decisions.
Introduction
Long Time Series Classification (L-TSC) is notoriously difficult because the defining signal—the part of the data that identifies the class—is often buried under a vast amount of noise. For example, in a fishing vessel's month-long trajectory, only the few hours spent actually casting nets are discriminant for identifying its activity.
Traditional methods attempt to find these "shapelets" through exhaustive searches, which are computationally prohibitive for large-scale data. Furthermore, standard Deep Neural Networks (DNNs) often overfit to noise in long sequences, leading to poor generalization and a lack of transparency. The proposed framework addresses these challenges by leveraging uncertainty to focus on relevant data segments.
Methodology
The Uncertainty-Aware MIL framework decomposes the classification problem into three main components:
- Multiple Instance Learning (MIL) Formulation: Instead of classifying the entire sequence at once, a sliding window splits the sequence into multiple "instances." The whole sequence is treated as a "bag." If at least one instance is a "shapelet" (e.g., a fishing maneuver), the bag is labeled positive.
- Uncertainty-Driven Attention: The model employs a Bayesian Neural Network (BNN) as the classification head. Unlike standard networks, a BNN provides both a prediction and a measure of confidence (variance). The model uses this uncertainty to drive an attention mechanism, prioritizing instances where the model is both confident and predicts a positive label, effectively filtering out noisy segments during training.
- Uncertainty-Aware Multimodal Fusion: Recognizing that trajectory data (AIS) can be incomplete, the authors incorporate SAR (Synthetic-Aperture Radar) imagery. The BNN's confidence scores are used to adaptively weight the two modalities, allowing the model to trust the more certain data source for any given sample.
Experimental Setup
The framework was evaluated on real-world maritime data:
- AIS Data: Automated Identification System data from the U.S. Coast Guard (8.1 GB), including variables like Latitude, Longitude, Speed Over Ground (SOG), and Course Over Ground (COG).
- OpenSARShip Dataset: A collection of 5,673 SAR image instances matched with their corresponding AIS trajectories via vessel ID numbers.
Results and Discussion
The proposed method consistently outperformed state-of-the-art baselines like TapNet, LSTM-FCNs, and MiniRocket. In the "Fishing vs. Non-fishing" task, it achieved an AUC-ROC of 84.99%, significantly higher than MiniRocket's 68.70%.
A key insight is the reliability of the model's confidence. As shown in the evaluation of different vessel types, there is a strong correlation between model confidence and actual accuracy. By increasing the confidence threshold, the accuracy of the remaining predictions approaches 100%, demonstrating the model's ability to "know what it doesn't know."
Furthermore, the adaptive uncertainty-aware fusion achieved a Recall of 0.79, significantly outperforming naive equal-weight fusion (0.68). This confirms that the model successfully identifies which data source to trust in ambiguous situations.
Conclusion
The Uncertainty-Aware MIL framework provides a robust solution for long time series classification by using predictive uncertainty as a training signal. While challenges remain regarding data imbalance and the computational overhead of BNN inference, the framework offers a significant step forward in both performance and interpretability for large-scale temporal data analysis.
Summary updated