Skip to main content
QUICK REVIEW

[Paper Review] Motif Difference Field: A Simple and Effective Image Representation of Time Series for Classification

Yadong Zhang, Xin Chen|arXiv (Cornell University)|Jan 21, 2020
Time Series Analysis and ForecastingComputer Science14 references5 citations
TL;DR

This paper proposes the Motif Difference Field (MDF), a simple and effective image representation of time series that encodes temporal motifs of varying lengths and displacements into a 2D image for classification. Using a Fully Convolutional Network (FCN) on MDF images, the method achieves state-of-the-art performance on the UCR time series benchmark, with triadic motifs (length-3) yielding the best results, and enables interpretable identification of significant ordinal patterns via Grad-CAM.

ABSTRACT

Time series motifs play an important role in the time series analysis. The motif-based time series clustering is used for the discovery of higher-order patterns or structures in time series data. Inspired by the convolutional neural network (CNN) classifier based on the image representations of time series, motif difference field (MDF) is proposed. Compared to other image representations of time series, MDF is simple and easy to construct. With the Fully Convolution Network (FCN) as the classifier, MDF demonstrates the superior performance on the UCR time series dataset in benchmark with other time series classification methods. It is interesting to find that the triadic time series motifs give the best result in the test. Due to the motif clustering reflected in MDF, the significant motifs are detected with the help of the Gradient-weighted Class Activation Mapping (Grad-CAM). The areas in MDF with high weight in Grad-CAM have a high contribution from the significant motifs with the desired ordinal patterns associated with the signature patterns in time series. However, the signature patterns cannot be identified with the neural network classifiers directly based on the time series.

Motivation & Objective

  • To develop a simple, interpretable image representation of time series that captures higher-order temporal structures for improved classification.
  • To address the limitation of existing image encodings in locating significant motif patterns, especially signature temporal structures.
  • To enable interpretability in deep learning-based time series classification by linking learned features to meaningful ordinal motif patterns.
  • To benchmark MDF against state-of-the-art methods and demonstrate its superiority on standard time series datasets.

Proposed method

  • Constructs Motif Difference Fields (MDF) by computing pairwise differences between time series motifs of varying lengths (n) and displacements (d), forming a 2D image representation.
  • Defines generalized motifs with arbitrary displacement d, allowing detection of long-range temporal patterns beyond unit-step neighbors.
  • Uses ordinal pattern encoding (e.g., 112, 211) to represent relative order in triadic motifs, enabling compact representation of structural patterns.
  • Applies Fully Convolutional Network (FCN) as the classifier on MDF images to learn spatial features and perform end-to-end classification.
  • Employs Gradient-weighted Class Activation Mapping (Grad-CAM) on MDF-FCN to visualize and identify regions of high contribution, linking model decisions to specific motif ordinal patterns.
  • Ranks motif significance using a normalized contribution score E_j based on Grad-CAM activation intensity across motif instances.

Experimental results

Research questions

  • RQ1Can a simple image representation based on time series motifs improve classification accuracy compared to existing methods?
  • RQ2Which motif length (e.g., dual, triadic, quad) yields the best classification performance in the MDF framework?
  • RQ3Can Grad-CAM applied to MDF-FCN effectively identify and localize the most significant ordinal motif patterns in time series?
  • RQ4How does the MDF-FCN approach compare to direct time series classification using FCN (TS-FCN) in terms of performance and interpretability?
  • RQ5To what extent does encoding higher-order temporal structure via MDF enhance model generalization and feature interpretability?

Key findings

  • The triadic MDF (n=3) with FCN achieves the best overall classification accuracy across 20 UCR benchmark datasets, outperforming other motif lengths and existing image-based methods.
  • The top two most significant motif ordinal patterns identified by Grad-CAM—{112, 211}—correspond directly to the four-plateau signature pattern in the TwoPatterns dataset, confirming their relevance to classification.
  • Grad-CAM on MDF-FCN highlights regions of high activation that align with the actual motif instances of high significance, validating the interpretability of the model.
  • In contrast, Grad-CAM on TS-FCN (direct raw time series input) assigns high weights to fluctuating regions rather than the stable plateaus, explaining its poorer performance on structured time series.
  • The MDF representation effectively encodes both short- and long-range temporal structures due to variable displacement (d) in motif definition, enhancing model sensitivity to complex patterns.
  • The significance score E_j enables quantitative ranking of motif ordinal patterns, with E_v(1) ≥ E_v(2) ≥ … ≥ E_v(m) indicating the most discriminative patterns for classification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.