Abstract
Traditional time series forecasting relies on numerical sequences, often producing point estimates that fail to capture the full distribution of potential outcomes. Researchers at J.P. Morgan AI Research have introduced VisualAE, a convolutional autoencoder designed to treat forecasting as a computer vision task. By training the model to "see" and predict future frames of charts, the approach leverages structural information and communicates uncertainty through visual "blur," outperforming traditional statistical methods on complex, non-linear datasets.
Introduction
While computers process time series as raw numbers, human experts—particularly professional traders—frequently rely on visual representations like line charts and candlestick plots to identify trends and make decisions. Traditional models such as ARIMA or LSTMs typically focus on "point estimates," providing a single predicted value for each future time step. However, these estimates often ignore the rich structural context and the "shape" of uncertainty inherent in visual data.
The VisualAE framework aims to mimic this human intuition by shifting the forecasting problem into the image domain. By treating a chart as a spatial distribution of pixel intensities, the model can capture complex patterns and provide a more robust representation of future possibilities than numerical sequences alone.
Methodology: The VisualAE Model
The core of this approach is VisualAE, an undercomplete convolutional autoencoder. The process involves several key steps:
- Image Conversion: Numeric time series are plotted into 80x80 grayscale images. Each column is normalized so that pixel intensities represent a discrete probability distribution of the value at that time step.
- Architecture: A standard encoder-decoder structure is employed. The encoder compresses the input image into a 512-length embedding vector using 2D convolutional layers, which the decoder then uses to reconstruct and extend the image.
- Forecasting Task: The model is trained to reconstruct the first 75% of the input image while predicting the final 25% as a visual forecast of the future.
- Loss Function: Instead of Mean Squared Error, the researchers utilize Jensen-Shannon Divergence (JSD). Calculated column-by-column, JSD encourages the model to predict the likelihood of a value's position, effectively modeling the probability distribution rather than a single point.
Datasets and Evaluation
The model was evaluated across four datasets with varying degrees of complexity, measured by Weighted Permutation Entropy (WPE):
- Harmonic: Synthetic multi-periodic signals.
- Ornstein–Uhlenbeck (OU): A mean-reverting stochastic process common in financial modeling.
- ECG: Real-world heartbeat data characterized by periodic, sharp spikes.
- Financial: Daily adjusted close values for S&P 500 stocks, representing the most challenging, high-entropy data.
Key Results and Insights
VisualAE consistently outperformed baselines, including ARIMA and numeric autoencoders, particularly when evaluated using image-based metrics like Intersection-over-Union (IoU).
- Cyclic Mastery: The model proved highly effective at capturing the periodic oscillations in the Harmonic and ECG datasets, where traditional statistical models often struggled to maintain phase or amplitude.
- Uncertainty Representation: A unique feature of VisualAE is its handling of doubt. When the model is uncertain, the predicted output appears as a "blur" or cloud. This visual spread represents a probability distribution, offering more insight than a flat-line prediction.
- Financial Trends: In the volatile financial dataset, VisualAE was better at identifying non-linear trends compared to the linear extrapolations of traditional baselines.
- Metric Alignment: The study found that traditional numeric metrics (e.g., SMAPE) often fail to reflect visual quality. The authors argue that IoU is a superior metric for capturing whether the predicted "shape" of the data aligns with reality.
Conclusion
VisualAE represents a significant shift toward image-driven time series analysis. By discretizing continuous numbers into a bounded pixel space, the model gains robustness against outliers and provides a natural way to visualize uncertainty. While current iterations do not yet incorporate sequential components like Transformers, future work aims to explore video prediction techniques and hybrid architectures that combine numerical precision with visual distributional awareness.
Summary updated