[Paper Review] Finding Motif Sets in Time Series
This paper proposes three algorithms—Scan MK, Cluster MK, and Set Finder—for discovering motif sets in time series, particularly household electricity usage data. Using pairwise matching and set-quality heuristics, Set Finder outperforms Scan MK in accuracy on synthetic data, while both identify meaningful device-specific usage patterns in real electricity profiles with high precision and moderate sensitivity.
Time-series motifs are representative subsequences that occur frequently in a time series; a motif set is the set of subsequences deemed to be instances of a given motif. We focus on finding motif sets. Our motivation is to detect motif sets in household electricity-usage profiles, representing repeated patterns of household usage. We propose three algorithms for finding motif sets. Two are greedy algorithms based on pairwise comparison, and the third uses a heuristic measure of set quality to find the motif set directly. We compare these algorithms on simulated datasets and on electricity-usage data. We show that Scan MK, the simplest way of using the best-matching pair to find motif sets, is less accurate on our synthetic data than Set Finder and Cluster MK, although the latter is very sensitive to parameter settings. We qualitatively analyse the outputs for the electricity-usage data and demonstrate that both Scan MK and Set Finder can discover useful motif sets in such data.
Motivation & Objective
- To develop robust algorithms for discovering frequently occurring, non-overlapping motif sets in time series data, particularly for household electricity usage profiles.
- To address the limitation of existing motif-finding methods that focus on best-matching pairs rather than high-cardinality motif sets.
- To evaluate algorithm performance on both synthetic data and real-world electricity consumption time series.
- To demonstrate the practical utility of motif sets in identifying device usage patterns (e.g., washing machine, dishwasher) from aggregated household data.
- To explore the sensitivity of algorithms to parameter settings (especially r) and the impact of window size (n) on motif discovery accuracy.
Proposed method
- Scan MK iteratively identifies the best-matching pair using the Mueen-Keogh (MK) algorithm, adds them to a motif set, removes trivial matches, and expands the set to include all subsequences within distance 2r of the core pair.
- Cluster MK uses MK to find the best-matching pair and then applies a clustering heuristic to group all subsequences within distance 2r of the pair, forming a motif set.
- Set Finder directly evaluates motif set quality using a heuristic that maximizes the number of non-overlapping, closely matching subsequences within a threshold r, without relying on pairwise matching as a subroutine.
- All algorithms use Euclidean distance as the base similarity measure and enforce non-trivial matching by disallowing overlapping subsequences.
- The algorithms are evaluated using a range of r values and fixed window size n=4 (representing one hour of 15-minute aggregated data), with results post-processed to identify device-specific usage patterns.
- Performance is assessed via precision and sensitivity metrics on both synthetic data with known motif shapes and real electricity usage profiles.
Experimental results
Research questions
- RQ1How do different motif set discovery algorithms compare in accuracy when detecting known motif sets in synthetic time series with one or two distinct shapes?
- RQ2What is the sensitivity of motif set discovery algorithms to the choice of the distance threshold r, and how does this affect their performance on real electricity usage data?
- RQ3Can motif sets be effectively used to identify and profile individual household appliances (e.g., washing machine, dishwasher, oven) from 15-minute aggregated electricity usage data?
- RQ4How does the performance of pair-based algorithms (Scan MK, Cluster MK) compare to a direct set-quality-based approach (Set Finder) in terms of precision and recall for motif discovery?
- RQ5To what extent can post-processing of multiple motif sets improve the identification of device-specific usage patterns in real-world electricity data?
Key findings
- Set Finder achieved significantly higher accuracy than Scan MK on synthetic data with one or two distinct motif shapes, particularly when r was set to optimal values.
- Cluster MK performed competitively with Set Finder when r was well-tuned, but its performance deteriorated sharply with small changes in r, indicating high sensitivity to parameter selection.
- On real electricity usage data with n=4 and r=0.5, Set Finder correctly identified all instances of the washing machine (precision=1.0, sensitivity=1.0), demonstrating high specificity and recall for this device.
- Scan MK identified the dishwasher with a combined 4-motif and 5-motif set (precision=1.0, sensitivity=0.56), and detected two oven instances as the 6-motif set, though overall sensitivity was lower than Set Finder’s.
- The overall sensitivity of Set Finder across all devices was 0.21, and Scan MK’s was 0.24, both relatively low but better than some synthetic data results, suggesting that device-specific motif sets require varying n and r values for optimal detection.
- The study concludes that motif set discovery is promising for device profiling in electricity data, especially when combined with multi-scale analysis (varying n and r) and post-processing to merge related motif sets.
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.