Co-eye: A Multi-resolution Symbolic Representation to TimeSeries Diversified Ensemble Classification

Zahraa S. Abdallah, Mohamed Medhat GaberarXiv 2020

TL;DR

This paper introduces "Co-eye," a novel time series classification (TSC) ensemble method inspired by the compound eyes of flies. By leveraging multiple symbolic representations (lenses) of time series data, Co-eye achieves robust and accurate classification across diverse domains, outperforming many state-of-the-art techniques.

What Problem Does This Paper Address?

Time series classification (TSC) is a critical task with applications across many fields, but it's hampered by the inherent diversity of time series data. Different domains (e.g., medical signals, sensor data, financial trends) produce time series with vastly different characteristics, meaning a single "one-size-fits-all" model is rarely optimal. Existing methods often focus on specific aspects like whole-series similarity, pattern detection, or frequency analysis. This paper tackles the challenge of effectively classifying time series from diverse domains by proposing a method that captures multiple perspectives of the data simultaneously.

Methods

Co-eye's core innovation lies in its "compound eye" analogy. It uses multiple "lenses" to view time series data from different angles. These lenses are created by applying symbolic representations – specifically, Symbolic Aggregate Approximation (SAX) and Symbolic Fourier Approximation (SFA) – with various hyper-parameter settings. This hyper-parameterization allows for the creation of multi-resolution representations, effectively "zooming in" on fine details or "zooming out" for a broader view.

For each lens (i.e., each unique symbolic representation), a Random Forest classifier is trained. These individual Random Forests form the "eyes" of the compound eye. During classification, Co-eye uses a "soft dynamic voting" mechanism. It identifies the most confident "eyes" (Random Forests) for a given time series and combines their predictions, giving more weight to the most confident ones. This ensemble approach, combining diverse representations and confident voting, is key to Co-eye's performance.

Datasets

The authors evaluated Co-eye on the extended UCR Time Series Archive, which includes over 100 datasets across a wide range of domains. This archive is a standard benchmark in TSC research. The paper also mentions specific datasets like "DiatomSizeReduction," "PowerCons," "NonInvasiveFetalECGThorax1," and "BeetleFly" to illustrate specific aspects of their method.

Key Insights and Ideas

  • Nature-inspired diversification: The "compound eye" metaphor effectively captures the idea of combining multiple, diverse views of data for a more comprehensive understanding.
  • Multi-resolution is crucial: The paper strongly emphasizes that no single resolution (granularity) of a time series is universally best for classification. Combining fine-grained and coarse-grained views is essential.
  • Hyper-parameterization as lens creation: The clever use of hyper-parameterizing SAX and SFA (word length and alphabet size) is the mechanism for generating these diverse "lenses."
  • Confident voting for robustness: The dynamic voting mechanism, which prioritizes the most confident predictions from individual "eyes," makes the ensemble more robust and adaptable to different time series.
  • Domain diversity is handled: Co-eye's ability to perform well across a wide array of domains suggests its approach to diversification is effective in overcoming the "no one model fits all" problem.

Key Results

  • Co-eye achieved competitive accuracy compared to state-of-the-art techniques on the extended UCR repository.
  • It demonstrated significant accuracy improvements on datasets with no significant phase shifting, such as spectrum and ECG data.
  • In a case study on the "BeetleFly" dataset, Co-eye achieved 100% accuracy, outperforming individual "eyes" (which reached a maximum of 95%).
  • The ensemble approach, combining SAX and SFA, consistently outperformed using either representation alone.
  • Random Forest was identified as the most suitable base classifier for Co-eye due to its diversity and robustness.
  • The method showed a positive impact on accuracy when dealing with imbalanced datasets, with an average increase of 4% when using SMOTE.

Limitations and Future Work

  • Phase shifting: Co-eye's performance can be negatively impacted by datasets with significant phase shifting. The authors suggest that an initial alignment of series could mitigate this, though it might increase complexity.
  • Fixed-length series: Currently, Co-eye assumes fixed-length time series. The authors plan to extend it to handle variable-length series.
  • Multidimensional time series: Future work will explore applying Co-eye to multidimensional time series.
  • Alternative base classifiers: The authors intend to investigate using Rotation Forest as an alternative to Random Forest as the base classifier.

Summary updated

Abstract

Time series classification (TSC) is a challenging task that attracted many researchers in the last few years. One main challenge in TSC is the diversity of domains where time series data come from. Thus, there is no "one model that fits all" in TSC. Some algorithms are very accurate in classifying a specific type of time series when the whole series is considered, while some only target the existence/non-existence of specific patterns/shapelets. Yet other techniques focus on the frequency of occurrences of discriminating patterns/features. This paper presents a new classification technique that addresses the inherent diversity problem in TSC using a nature-inspired method. The technique is stimulated by how flies look at the world through "compound eyes" that are made up of thousands of lenses, called ommatidia. Each ommatidium is an eye with its own lens, and thousands of them together create a broad field of vision. The developed technique similarly uses different lenses and representations to look at the time series, and then combines them for broader visibility. These lenses have been created through hyper-parameterisation of symbolic representations (Piecewise Aggregate and Fourier approximations). The algorithm builds a random forest for each lens, then performs soft dynamic voting for classifying new instances using the most confident eyes, i.e, forests. We evaluate the new technique, coined Co-eye, using the recently released extended version of UCR archive, containing more than 100 datasets across a wide range of domains. The results show the benefits of bringing together different perspectives reflecting on the accuracy and robustness of Co-eye in comparison to other state-of-the-art techniques.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
UCR · Spectro domain (8 datasetsCo-eyemean classification error0.20-0.02 vs baselineTime Series Classification · domain=Spectro · dataset_count=8
Source quote
L406: Spectro │ 8 │ 0.26 │ 0.29 │ 0.26 │ 0.20
UCR · Spectrum domain (4 datasetsCo-eyemean classification error0.17-0.05 vs baselineTime Series Classification · domain=Spectrum · dataset_count=4
Source quote
L407: Spectrum │ 4 │ 0.41 │ 0.32 │ 0.22 │ 0.17
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
UCR · Spectrum domain (4 datasetsDTW with learned window (DTW_lW) baselinemean classification error0.22Time Series Classification · domain=Spectrum · dataset_count=4
Source quote
L407: Spectrum │ 4 │ 0.41 │ 0.32 │ 0.22 │ 0.17
BibTeX
@misc{abdallah2020co,
  author = {Zahraa S. Abdallah and Mohamed Medhat Gaber},
  title = {{Co-eye: A Multi-resolution Symbolic Representation to TimeSeries Diversified Ensemble Classification}},
  year = {2020},
  eprint = {2004.06668},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.06668},
}
Figure