Markov Transition Fields & TMTF Insights
- Markov Transition Field is a method that encodes a univariate time series as a 2D image by mapping transitions between discretized quantile states.
- The Temporal Markov Transition Field segments the series to fit local transition matrices, enabling precise detection of regime change dynamics.
- TMTF maintains amplitude-invariance and order, offering robust features for deep learning models through clear texture patterns and structural insights.
A Markov Transition Field (MTF) encodes the sequential dynamics of a univariate time series as a two-dimensional image, making temporal dependencies amenable to convolutional neural network (CNN) analysis. The MTF, as introduced by Wang and Oates (2015), represents each pair of time points by the transition probability between their discretized quantile states, estimated from a single global transition matrix. While efficient for stationary series, the global MTF construction averages over temporal regimes, thereby obscuring information about when distinct dynamical regimes occur. The Temporal Markov Transition Field (TMTF) addresses this shortcoming by partitioning the time series into contiguous temporal segments, fitting a local Markov transition matrix in each, and assembling the image such that each row encodes the regime-local dynamics corresponding to its temporal segment. This methodology recovers regime timing and enhances interpretability without sacrificing the amplitude-agnostic, order-preserving properties that make MTF suitable for deep learning. The TMTF enables up to distinct row patterns and admits analysis of geometric and statistical properties central to time-series characterization (Leznik, 9 Mar 2026).
1. Markov Transition Field (MTF): Foundations and Global Construction
Let be a univariate time series of length . Choose a quantile bin count . Empirical quantile boundaries divide the range so that roughly points fall into each bin. Each observation is assigned a quantile-state
yielding the state sequence 0. This procedure is amplitude-invariant and preserves order: strictly increasing transformations of 1 leave 2 unchanged.
The global empirical transition matrix 3 has entries
4
The global MTF image 5 is defined by
6
Rows with identical 7 are identical, yielding at most 8 distinct row patterns; the image is incapable of localizing when regime changes occur, as the matrix is constructed from statistics averaged over the full series.
2. Temporal Markov Transition Field (TMTF): Segmentation and Construction
To recover temporal localization of regimes, TMTF partitions time indices into 9 contiguous chunks: 0 Let 1 iff 2. For each chunk, compute the local 3 empirical transition matrix: 4 Transitions crossing chunk boundaries are omitted.
The TMTF image 5 is defined as: 6 Viewed as a block-row matrix, 7 contains 8 horizontal bands of height 9, each encoding the local regime dynamics for its corresponding temporal segment.
3. Structural and Geometric Properties
The TMTF displays several key structural distinctions relative to the global MTF:
- Band Structure: Within chunk 0, rows 1 are identical if and only if 2. Across chunks, this is not guaranteed: even for 3, the rows may differ if 4.
- Row Diversity: The construction enables up to 5 distinct row patterns, compared to the global MTF’s maximum of 6.
- Column Asymmetry: The local index applies to rows; columns reference global state labels 7. This asymmetry permits consistent comparison across destination states, regardless of originating chunk.
- Graceful Degradation: If 8, the TMTF reduces to the global MTF, indicating robustness under stationary dynamics.
Geometrically, the local transition matrices 9 encode canonical temporal signatures:
- Persistence: Large diagonal entries (0) generate dark main diagonal texture.
- Mean-Reversion: Small diagonals, with off-diagonal concentration, produce a diffuse texture.
- Trending: Upper-triangular structure, often with 1, manifests as brightness above the diagonal.
- Random Walk: Uniform entries (2) yield a homogeneously gray band.
The spectral gap 3 of 4 signals mixing speed, with a small gap (second eigenvalue near 1) indicating strong persistence.
4. Statistical Trade-Offs in Temporal Chunking
Increasing 5 raises the temporal resolution of regime localization but introduces a bias–variance trade-off:
- Variance Inflation: Each 6 estimates transitions from approximately 7 samples, increasing standard error as 8 grows: 9 where 0 is the empirical occupancy of state 1 in chunk 2.
- Bias Reduction: When regime dynamics vary between chunks (3), the global MTF estimator is biased on each chunk; TMTF’s local estimators are unbiased within their segments.
- Practical Guideline: To ensure statistical reliability, at least 4 transitions per state per chunk are recommended, requiring
5
For 6 and 7, 8 offers robust performance.
5. Worked Example: Regime Change Detection
Given 9, with 0 and 1, quantile-states partition indices such that 2. The global transition matrix is: 3 The global MTF lacks any visible mid-series regime shift. In contrast, TMTF segmentation (4, 5) yields: 6 The assembled 7 TMTF presents a stark contrast between the two bands: binary off-diagonal texture in the first band and triangular/diagonal texture in the second, making the regime shift immediately visible to CNN filters.
6. Amplitude-Invariance and Suitability for Deep Learning
TMTF construction uses only the rank-order of series, ensuring invariance under any strictly increasing transformation (amplitude-agnostic and order-preserving). This property obviates normalization for across-series comparability. The horizontal banding of texture localizes regime timing and supports interpretable CNN features; canonical transition signatures (persistence, mean-reversion, trending, random) further enhance interpretability. CNNs can detect band boundaries, making TMTF a practical and effective input channel for automated time series characterization.
7. Algorithmic Implementation
The TMTF construction process proceeds as follows:
- Compute empirical quantile boundaries for 8 bins.
- Assign quantile-state 9 to each 0 via these boundaries.
- Partition time into 1 contiguous chunks of size 2.
- For each chunk, count within-chunk transitions to form the local 3, ensuring transitions are not counted across chunk boundaries.
- Assemble 4.
- The output is the 5 TMTF image.
The TMTF thus generalizes MTF for nonstationary dynamics, increases the diversity of encoded image patterns, enables precise regime change localization, and preserves all key invariances necessary for feature extraction by deep learning models (Leznik, 9 Mar 2026).