Skip to content
SK Subham KumarTSF Hub · time-series forecasting
Guide · multi-view learning

One series, many views

Multi-view learning trains on several complementary representations of the same data and fuses what each one learns. For forecasting, that means looking at a single series as raw values, as changes, at several time scales and in frequency, then combining the results. It’s the idea behind my papers MvS CNN-BiLSTM and MvGR2.

Time series Raw lagsy[t-1 … t-k] DifferencesΔy, returns Multi-scale statsrolling mean/std Frequency / calendarFFT, hour, weekday Model Ae.g. CNN Model Be.g. BiLSTM Model Ce.g. boosting Model De.g. linear Fusionmeta-learner(stacking) Forecastŷ[t+h]

A general multi-view stacking pipeline. Real models choose their own views, base learners and fusion strategy.

Step 1

Build views that disagree in useful ways

A good view exposes structure the others hide. If two views always tell the same story, one of them is redundant.

Raw window

The last k values as they are. Keeps level and shape, so it’s the natural input for sequence models.

Differences & returns

Δy or percentage change removes the level and trend, so the model focuses on short-term dynamics. Standard for prices.

Multi-scale statistics

Rolling means and volatility over short, medium and long windows, so slow drifts and fast shocks each get a voice.

Decomposition

Trend, seasonal and residual components. Fit them causally, using only past data at each step, or the view leaks the future.

Frequency domain

Fourier or wavelet coefficients of recent windows reveal periodicities that are hard to see in the raw series.

Context & exogenous

Calendar features and outside drivers such as weather (for PM2.5) or market indices (for stocks).

Step 2

Fuse them: early, intermediate or late

StrategyHow it worksGood forWatch out for
Early fusionConcatenate every view’s features and train one model.Small feature sets; tree ensembles.High dimension; one view can drown out the rest.
Intermediate fusionA separate encoder per view (for example a CNN branch and a BiLSTM branch), merged inside the network.Deep models that can learn interactions between views.More parameters; needs more data.
Late fusion / stackingOne model per view; a meta-learner combines their out-of-fold forecasts.Mixing very different models; seeing which view matters.The meta-learner must train on out-of-fold predictions, or it overfits.

Why it helps

Views carry complementary information, so errors from different views are partly uncorrelated and cancel when combined. That’s the same reason ensembles work.

When it doesn’t

Redundant views add cost without adding signal, and tiny datasets can’t support a model per view.

The leakage rule

Every view must be computed only from data available at forecast time. Rolling windows must look backwards; scalers fit on training data only.

Try it

Multi-view stacking in 40 lines

A teaching sketch with pandas and scikit-learn, not the code from my papers. Three causal views, one gradient-boosting model per view, and a ridge meta-learner trained on out-of-fold forecasts.

import numpy as np
import pandas as pd
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.linear_model import Ridge
from sklearn.model_selection import TimeSeriesSplit

def make_views(y: pd.Series, lags=24):
    """Causal views of y, aligned with a one-step-ahead target."""
    d = y.diff()
    views = {
        "raw":   pd.concat({f"lag{k}": y.shift(k) for k in range(lags)}, axis=1),
        "diff":  pd.concat({f"d{k}": d.shift(k) for k in range(lags)}, axis=1),
        "scale": pd.concat({f"{s}{w}": getattr(y.rolling(w), s)()
                            for w in (6, 24, 168) for s in ("mean", "std")}, axis=1),
    }
    frame = pd.concat({**views, "y": y.shift(-1).to_frame("next")}, axis=1).dropna()
    return {v: frame[v].to_numpy() for v in views}, frame["y"]["next"].to_numpy()

def fit_multiview(X: dict, y: np.ndarray, n_splits=5):
    oof = np.full((len(y), len(X)), np.nan)          # out-of-fold forecasts per view
    for tr, te in TimeSeriesSplit(n_splits).split(y):
        for j, Xv in enumerate(X.values()):
            oof[te, j] = GradientBoostingRegressor().fit(Xv[tr], y[tr]).predict(Xv[te])
    ok = ~np.isnan(oof).any(axis=1)
    meta = Ridge(alpha=1.0).fit(oof[ok], y[ok])     # learns how much to trust each view
    base = {v: GradientBoostingRegressor().fit(Xv, y) for v, Xv in X.items()}
    return base, meta

def predict_multiview(base, meta, X_new: dict):
    return meta.predict(np.column_stack([base[v].predict(X_new[v]) for v in base]))

# usage: hourly PM2.5 series indexed by timestamp
y = pd.read_csv("pm25.csv", parse_dates=["date"], index_col="date")["pm25"]
X, target = make_views(y)
cut = int(len(target) * 0.8)                        # time-ordered split
base, meta = fit_multiview({v: a[:cut] for v, a in X.items()}, target[:cut])
pred = predict_multiview(base, meta, {v: a[cut:] for v, a in X.items()})
print("MAE:", np.abs(pred - target[cut:]).mean().round(2))
print("view weights:", dict(zip(X, meta.coef_.round(3).tolist())))

Try it on the PM2.5 dataset. The view weights show how much the meta-learner trusts each view.

In my research

Where these ideas show up

MvS CNN-BiLSTM (J. Cleaner Production, 2024) applies multi-view stacking with CNN and BiLSTM layers to urban PM2.5 prediction. MvGR2 (Applied Intelligence, 2026) brings multi-view learning to univariate forecasting, with a focus on reducing forecast error.

See the papers →
Further reading
  1. Xu, C., Tao, D., & Xu, C. (2013). A survey on multi-view learning. arXiv:1304.5634.
  2. Zhao, J., Xie, X., Xu, X., & Sun, S. (2017). Multi-view learning overview: Recent progress and new challenges. Information Fusion, 38, 43–54.
  3. Wolpert, D. H. (1992). Stacked generalization. Neural Networks, 5(2), 241–259.