Translation Between Waves, wave2wave

Tsuyoshi Okita, Hirotaka Hachiya, Sozo Inoue, Naonori UedaarXiv 2020

In the world of deep learning, sequence-to-sequence (seq2seq) models have revolutionized how we handle text, enabling everything from Google Translate to sophisticated chatbots. But what happens when the "sentences" aren't made of words, but of continuous physical signals like earthquake tremors or human motion data?

A team of researchers from Riken AIP and the Kyushu Institute of Technology recently introduced wave2wave, a novel framework designed to translate between different types of continuous signal waves. Their work addresses the "opportunistic sensor problem"—the challenge of missing data in one modality (like video in a private setting) that could potentially be reconstructed from another (like wearable accelerometers).

TL;DR

The paper introduces wave2wave, a seq2seq variant that translates continuous signal waves by using trainable sliding windows to handle massive sequence lengths and an iterative back-translation approach for high-dimensional data. It achieves a 46% improvement in test loss for 1D earthquake data and a staggering 1625% improvement in perplexity for high-dimensional human activity translation compared to standard seq2seq models.

What Problem Does This Paper Address?

Standard seq2seq models, designed for natural language, struggle with physical sensor data for two main reasons:

  1. Extreme Length Discrepancies: In text, a source and target sentence are usually of similar length. In sensor data, they can differ by orders of magnitude. For instance, an earthquake sensor sampling at 100Hz produces 10,000 data points for a 10-second event. Standard attention mechanisms break down at these scales.
  2. High Dimensionality: While a word is a single discrete token, a "time step" in sensor data might be a 129-dimensional vector (e.g., motion capture data). Translating between these high-dimensional spaces simultaneously is computationally taxing and prone to optimization failures.

The authors aim to bridge this gap, allowing us to "translate" uninterpretable signals (like accelerometer data) into human-understandable ones (like video or motion capture).

Methods

The core innovation of wave2wave lies in its window-based representation.

Fig. 1: Overall architecture of our method, wave2wave, consisting RNN encoder and decoder with context vector and sliding window representation. Input and output time-series data are toy examples where the input is generated by com- bining sine waves with random magnitudes and pepriods. The output is the version of the input flipped horizontally.

1. Sliding Window Representation

Instead of feeding raw time steps into the RNN, the model groups signals into trainable windows ($W^{enc}$). A representation function $R(\cdot)$ (a fully-connected network) compresses these windows into vectors ($r^{enc}$) that the encoder can process. The decoder does the opposite, using an inverse function $R^{-1}(\cdot)$ to reconstruct the wave from the hidden states. This drastically reduces the number of steps the RNN needs to track, making the global attention mechanism effective again.

2. Wave2wave Iterative Model

For high-dimensional data, the authors found that standard joint embeddings often fail to converge. They propose the Wave2WaveIterative model, which builds independent embeddings for each 1-dimensional target signal while sharing the source signal embeddings. This "divide and conquer" approach is particularly effective when sensor channels are relatively independent.

3. Iterative Back-Translation

Borrowing a trick from Neural Machine Translation, they use back-translation (translating from $Y$ back to $X$) to refine the model and remove noise, leading to more robust bi-directional translation.

Datasets

The researchers evaluated their model on two distinct real-world scenarios:

  • Earthquake Ground Motion: Predicting broadband (high-frequency) ground motion from long-period (low-frequency) motion using data from Japan's K-NET.
  • Berkeley MHAD (Multimodal Human Action Database): A high-dimensional dataset containing synchronized video (48-dim pose vectors), optical motion capture (129-dim), and accelerometers (18-dim) across 12 subjects performing various tasks.

Key Insights and Ideas

  • Windows as Feature Extractors: The windowing isn't just a compression trick; it allows the model to learn the "shape" of local wave segments, which is often more informative than individual point values.
  • Dimensionality vs. Correlation: The success of the "Iterative" model suggests that for many sensor tasks, treating dimensions independently is a powerful regularizer that prevents the model from getting lost in the complexity of a massive joint distribution.
  • Human Interpretability: One of the most compelling use cases is "translating" abstract data into visual data. The model can turn accelerometer readings into video-like sequences that humans can actually recognize.

Key Results

The quantitative gains were significant across both tasks:

  • Earthquake Translation: The wave2wave model outperformed simple encoder-decoders and standard seq2seq models. As shown in the table below, the best wave2wave configuration achieved a test loss of 0.34, compared to 2.60 for a standard seq2seq approach.
Table 1: Mean squared loss comparison for earthquake data.
  • Activity Translation (acc2moc): In the high-dimensional task of translating accelerometer data to motion capture, the iterative back-translation model achieved a perplexity of 3.40 for 129-dimensional data, whereas the baseline seq2seq model exploded to over 52,000.
Table 2: Experimental results for accelerometer to motion capture translation.
  • Qualitative Success: In human-subject tests, people could correctly identify the activity in 96% of the cases when accelerometer data was translated into a visual format.

Limitations and Future Work

While the results are impressive, the authors note a few hurdles:

  • Small Data Overfitting: The earthquake dataset was relatively small, leading to some overfitting.
  • Sensor Independence: The iterative model assumes a degree of independence between sensor dimensions. If dimensions are highly correlated in a complex, non-linear way, this approach might need further refinement.
  • Computational Scaling: While windowing helps, very high-resolution spatial pyramids (used for multi-modal synchronization) can still be computationally expensive.

Future work could involve exploring more complex windowing strategies or applying this to even more diverse signal types, such as medical EEG or financial time-series data.

Summary updated

BibTeX
@misc{okita2020translation,
  author = {Tsuyoshi Okita and Hirotaka Hachiya and Sozo Inoue and Naonori Ueda},
  title = {{Translation Between Waves, wave2wave}},
  year = {2020},
  eprint = {2007.10394},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.10394},
}
Figure