[Paper Review] From BOP to BOSS and Beyond: Time Series Classification with Dictionary Based Classifiers
This paper investigates the performance gap between two dictionary-based time series classification (TSC) algorithms, BOP and BOSS, by deconstructing their four key differences. It proposes SP-HI, a novel method combining BOSS with spatial pyramids and histogram intersection, which achieves state-of-the-art accuracy—significantly outperforming standard BOSS and benchmarks, and rivaling the best shapelet-based methods and HIVE-COTE.
A family of algorithms for time series classification (TSC) involve running a sliding window across each series, discretising the window to form a word, forming a histogram of word counts over the dictionary, then constructing a classifier on the histograms. A recent evaluation of two of this type of algorithm, Bag of Patterns (BOP) and Bag of Symbolic Fourier Approximation Symbols (BOSS) found a significant difference in accuracy between these seemingly similar algorithms. We investigate this phenomenon by deconstructing the classifiers and measuring the relative importance of the four key components between BOP and BOSS. We find that whilst ensembling is a key component for both algorithms, the effect of the other components is mixed and more complex. We conclude that BOSS represents the state of the art for dictionary based TSC. Both BOP and BOSS can be classed as bag of words approaches. These are particularly popular in Computer Vision for tasks such as image classification. Converting approaches from vision requires careful engineering. We adapt three techniques used in Computer Vision for TSC: Scale Invariant Feature Transform; Spatial Pyramids; and Histrogram Intersection. We find that using Spatial Pyramids in conjunction with BOSS (SP) produces a significantly more accurate classifier. SP is significantly more accurate than standard benchmarks and the original BOSS algorithm. It is not significantly worse than the best shapelet based approach, and is only outperformed by HIVE-COTE, an ensemble that includes BOSS as a constituent module.
Motivation & Objective
- To investigate why BOSS significantly outperforms BOP despite their structural similarity as bag-of-words TSC methods.
- To isolate and evaluate the relative impact of four key algorithmic differences between BOP and BOSS: ensembling, Fourier transform, data-driven discretization, and distance measure.
- To adapt computer vision techniques—spatial pyramids, histogram intersection, and SIFT—to improve dictionary-based TSC.
- To develop and evaluate a new classifier, SP-HI, that combines BOSS with spatial pyramids and histogram intersection for enhanced accuracy.
- To provide empirical evidence on when dictionary-based classifiers are most effective, particularly for long, noisy time series with repetitive patterns.
Proposed method
- Deconstruct BOP and BOSS by systematically varying their four core components: ensembling, Fourier transform, data-driven discretization, and distance measure.
- Apply spatial pyramids to BOSS by dividing time series into hierarchical sub-windows and generating separate histograms for each level.
- Introduce histogram intersection (HI) distance as a similarity measure between histogram representations to improve robustness to noise and scale variation.
- Construct a new classifier, SP-HI, by combining BOSS with spatial pyramids and histogram intersection distance.
- Evaluate all variants on a benchmark suite of 128 time series datasets using 10-fold cross-validation and statistical significance testing.
- Use ensembling across multiple parameter settings to improve generalization, with each base classifier stored for inference.
Experimental results
Research questions
- RQ1What is the relative contribution of ensembling, Fourier transform, data-driven discretization, and distance measure to the performance gap between BOP and BOSS?
- RQ2Can computer vision techniques such as spatial pyramids and histogram intersection improve dictionary-based TSC performance?
- RQ3Does the SP-HI method, combining BOSS with spatial pyramids and histogram intersection, achieve significantly better accuracy than standard BOSS and other benchmarks?
- RQ4In what types of time series data does the SP-HI method show particular advantage, especially in the presence of noise or complex patterns?
- RQ5How does the performance of SP-HI compare to state-of-the-art TSC methods like ST-HESCA and HIVE-COTE across diverse datasets?
Key findings
- Ensembling over different parameter values significantly improves performance for both BOP and BOSS, but only ensembling is universally beneficial across both algorithms.
- The BOSS distance measure is critical to BOSS’s performance but degrades BOP’s accuracy, demonstrating non-linear interactions between algorithm components.
- The SP-HI method, combining BOSS with spatial pyramids and histogram intersection, achieves significantly higher accuracy than standard BOSS and all standard benchmarks.
- SP-HI is not significantly worse than ST-HESCA, the best shapelet-based method, and only outperformed by HIVE-COTE, which includes BOSS as a component.
- The spatial pyramid component enhances performance on datasets where discriminatory patterns are embedded in confounding noise, suggesting utility in complex, long time series.
- While SP-HI improves accuracy, the memory overhead of storing multiple histogram representations across pyramid levels may limit practical adoption unless further optimized.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.