Abstract
This paper introduces Deep Unsupervised Binary Coding Networks (DUBCNs), a novel framework for efficient retrieval in large-scale multivariate time series (MTS) databases. By leveraging LSTM autoencoders enhanced with temporal encoding, clustering loss, and adversarial training, DUBCNs compress complex MTS data into compact binary codes. This approach enables rapid similarity searches using Hamming distance, achieving state-of-the-art accuracy and significant speedups over traditional distance-based methods without requiring labeled data.
Introduction
In the era of IoT sensors, smart cities, and wearable technology, we are generating vast amounts of Multivariate Time Series (MTS) data—where multiple variables are tracked simultaneously over time. A critical task is "retrieval": given a current segment of data, how do we quickly find similar patterns in years of historical records? Traditional approaches using Euclidean Distance or Dynamic Time Warping (DTW) are computationally crushing for large datasets.
Problem Statement: The Need for Hashing
To solve the scalability problem, researchers use Binary Coding (Hashing), which transforms high-dimensional data into short strings of 0s and 1s. Comparing these "hashes" using Hamming distance is incredibly fast. However, most existing hashing methods are designed for images or require labeled data. MTS data is unique due to its complex temporal dynamics and frequent lack of labels.
Methodology: Deep Unsupervised Binary Coding Networks (DUBCNs)
The authors propose DUBCNs, built on an LSTM encoder-decoder framework with three key enhancements to make binary codes more effective:
- Temporal Encoding (TE): Standard models look at segments in isolation. DUBCNs use temporal encoding to capture the order of different segments within a training batch, leveraging the intuition that segments close in time are likely similar.
- Clustering Loss: To make binary codes more discriminative, a clustering objective (based on Student’s t-distribution) forces hidden features into distinct groups, ensuring "like" segments stay together.
- Adversarial Loss (GAN-based): A discriminator tries to distinguish between real hidden features and generated ones, pushing the encoder to produce more robust, representative features.
The final binary code is generated by passing the encoder's hidden state through a tanh function and then a sign function to produce the final bits.
Experimental Results
The model was evaluated on three diverse real-world MTS datasets: EEG Eye State, IoT (GPU fan monitoring), and Twitter activity. Because these are unsupervised tasks, K-Nearest Neighbors (KNN) in the raw data space was used as the ground truth for similarity.
Key Insights
- Efficiency Gains: DUBCNs can generate a binary code in about $1.65 \times 10^{-5}$ seconds. Retrieving the top 100 matches from a database takes roughly 0.5 milliseconds—significantly faster than raw Euclidean distance searches.
- Accuracy: On the IoT dataset with 256-bit codes, DUBCNs achieved a Mean Average Precision (MAP) of 0.5646, compared to 0.5211 for a standard LSTM Encoder-Decoder and 0.2452 for HashGAN.
- Ablation Success: Removing Temporal Encoding or Adversarial Loss led to a measurable drop in retrieval performance across all datasets, proving every component matters.
Conclusion
DUBCNs offer a novel way to search through massive multivariate time series databases by compressing complex data into compact binary codes. While the current model uses fixed window sizes, it sets a new benchmark for unsupervised MTS retrieval. Future work may explore adaptive window sizes or integrating more complex attention mechanisms to further improve the capture of long-term dependencies.
Summary updated