Time Series Geometric Structure Index
- TGSI is a metric that converts time series into grayscale images to capture and quantify geometric or structural similarity.
- It employs an SSIM-inspired method focusing on luminance and covariance, effectively mapping temporal shapes rather than point-wise values.
- TGSI complements traditional metrics like MSE and MAE by evaluating the preservation of temporal patterns and structural fidelity.
Searching arXiv for the cited TGSI paper and closely related work to ground the article in current literature. arXiv search query: "(Yu et al., 31 Jul 2025) Towards Measuring and Modeling Geometric Structures in Time Series Forecasting via Image Modality" The Time Series Geometric Structure Index (TGSI) is a metric for quantifying geometric or structural similarity between time series by transforming each series into a grayscale image and then computing an SSIM-inspired similarity score on the resulting two-dimensional representations. It was introduced to address a specific limitation of point-wise forecasting metrics: Mean Squared Error (MSE) and Mean Absolute Error (MAE) compare values at each time step, but they do not evaluate how those values connect to form temporal shapes. TGSI is therefore intended as a complement to numerical accuracy measures, with the explicit goal of capturing temporal geometry through image modality (Yu et al., 31 Jul 2025).
1. Motivation and problem formulation
The central motivation for TGSI is that conventional forecasting evaluation is largely point-wise. Metrics such as MSE or MAE quantify local deviations, but they ignore whether a forecast preserves periodicity, trend morphology, or other geometric aspects of temporal evolution. The underlying claim is not that point-wise errors are uninformative, but that they are incomplete when structural fidelity is important (Yu et al., 31 Jul 2025).
A canonical illustration is the toy example in which is a noisy periodic series, is shifted vertically with different noise, and is the zero series. Both pairs and have identical MSE, approximately $0.79$, even though clearly shares more of 's periodic shape. TGSI was proposed precisely to separate these cases by evaluating the geometry of the curve traced by the series rather than only the value discrepancy at aligned time indices (Yu et al., 31 Jul 2025).
The same motivation is used to distinguish TGSI from Dynamic Time Warping and related -based losses. In the formulation accompanying TGSI, such methods still operate in one dimension and therefore cannot fully capture two-dimensional geometric patterns. The proposed remedy is to embed a univariate time series into an image, with time on the horizontal axis and amplitude on the vertical axis, and then assess structural similarity in that image domain (Yu et al., 31 Jul 2025).
2. Formal definition
After transforming two series 0 and 1 into grayscale images 2, TGSI is defined in direct analogy to the Structural Similarity Index (SSIM), but with the contrast term omitted. The required image statistics are the means 3, standard deviations 4, and covariance 5 of the two images (Yu et al., 31 Jul 2025).
The constants are
6
and
7
The luminance component is
8
and the covariance component is
9
TGSI is then
0
Higher TGSI indicates greater geometric or structural similarity of the underlying time-series shapes. The omission of the contrast term is deliberate: in the accompanying analysis, vertical variance is fixed by the decay kernel used in the image construction, so a separate contrast measure is treated as redundant (Yu et al., 31 Jul 2025).
3. Time-series-to-image mapping
The time-series-to-image mapping is the defining design choice behind TGSI. Each sequence is first normalized independently to 1: 2 This normalization ensures consistent mapping across sequences (Yu et al., 31 Jul 2025).
The image canvas has width 3, so that each time step occupies one column, and a fixed height 4, with 5 given as an example. Pixel values lie in 6, usually with 7. For each time index 8, the method activates the pixel at row 9 and column 0 with intensity 1. This creates a one-pixel-wide ridge corresponding to the sampled time series (Yu et al., 31 Jul 2025).
A vertical expansion, or thickening, is then applied. Around each activated pixel, the representation extends by 2 rows using a one-dimensional vertical decay kernel. If
3
the intensity is
4
The resulting image is described as a “probability-like” two-dimensional map whose bright ridge traces the original series. Optional uniform down-sampling can be applied before computing covariances to compensate for the effects of vertical thickening (Yu et al., 31 Jul 2025).
This construction is essential to the metric’s interpretation. TGSI does not compare sequences directly in value space; it compares geometric traces in image space after a controlled rasterization and smoothing procedure (Yu et al., 31 Jul 2025).
4. Parameters and theoretical behavior
The principal design parameters are image height 5, vertical half-width 6, and pixel dynamic range 7. In the reported experiments, 8 and (