[Paper Review] Feature-Based Time-Series Analysis in R using the theft Package
The paper introduces the R package 'theft'—a unified, open-source framework that integrates six major time-series feature extraction libraries (catch22, feasts, tsfeatures, Kats, tsfresh, TSFEL) into a single workflow. It enables end-to-end feature-based time-series analysis, including extraction, visualization, normalization, classification, and interpretability, with demonstrated success on EEG classification using minimal, high-performing functions.
Time series are measured and analyzed across the sciences. One method of quantifying the structure of time series is by calculating a set of summary statistics or `features', and then representing a time series in terms of its properties as a feature vector. The resulting feature space is interpretable and informative, and enables conventional statistical learning approaches, including clustering, regression, and classification, to be applied to time-series datasets. Many open-source software packages for computing sets of time-series features exist across multiple programming languages, including catch22 (22 features: Matlab, R, Python, Julia), feasts (42 features: R), tsfeatures (63 features: R), Kats (40 features: Python), tsfresh (779 features: Python), and TSFEL (390 features: Python). However, there are several issues: (i) a singular access point to these packages is not currently available; (ii) to access all feature sets, users must be fluent in multiple languages; and (iii) these feature-extraction packages lack extensive accompanying methodological pipelines for performing feature-based time-series analysis, such as applications to time-series classification. Here we introduce a solution to these issues in an R software package called theft: Tools for Handling Extraction of Features from Time series. theft is a unified and extendable framework for computing features from the six open-source time-series feature sets listed above. It also includes a suite of functions for processing and interpreting the performance of extracted features, including extensive data-visualization templates, low-dimensional projections, and time-series classification operations. With an increasing volume and complexity of time-series datasets in the sciences and industry, theft provides a standardized framework for comprehensively quantifying and interpreting informative structure in time series.
Motivation & Objective
- Address the lack of a centralized, unified interface for accessing diverse time-series feature extraction libraries across multiple programming languages.
- Overcome the challenge of requiring proficiency in multiple languages to leverage different feature sets.
- Provide a comprehensive, extendable pipeline for feature-based time-series analysis, including visualization, classification, and interpretation, within a single R package.
- Enable researchers to perform full analytical workflows—from feature extraction to model interpretation—without stitching together incompatible tools.
- Facilitate the integration of new features and feature sets as they emerge, supporting ongoing methodological advancement in time-series analysis.
Proposed method
- Implement a unified R package, 'theft', that provides a single interface to extract features from six open-source time-series feature libraries: catch22, feasts, tsfeatures, Kats, tsfresh, and TSFEL.
- Integrate feature extraction with downstream processing, including normalization, low-dimensional projections (e.g., t-SNE), and feature correlation analysis.
- Provide built-in functions for time-series classification using extracted feature matrices, including performance evaluation and model interpretation.
- Develop an interactive Shiny web application that enables non-R users to upload data, compute features, and visualize results directly in a browser.
- Support extensibility by allowing users to plug in new feature sets or modify existing pipelines for custom use cases.
- Include standardized data visualization templates and interpretability tools, such as top feature identification and discrimination analysis, to guide insight generation.
Experimental results
Research questions
- RQ1Can a single, unified R package effectively integrate and streamline feature extraction from multiple heterogeneous time-series feature libraries?
- RQ2To what extent can a unified framework improve the efficiency and accessibility of feature-based time-series analysis for non-expert users?
- RQ3How well does the combined feature set from multiple libraries perform in classification tasks compared to individual feature sets?
- RQ4Can the framework support interpretable, end-to-end workflows—from feature extraction to model interpretation—without requiring users to manage multiple tools?
- RQ5What is the impact of integrating diverse feature sets on the detection of meaningful patterns in complex time-series data, such as EEG signals?
Key findings
- The 'theft' package successfully unifies six major time-series feature extraction libraries into a single, cohesive R framework, enabling seamless feature extraction and analysis.
- The package enables full analytical workflows—from feature extraction to classification and interpretation—using just a few key functions, significantly reducing implementation complexity.
- On the five-class Bonn EEG dataset, the 'theft' pipeline achieved effective classification performance using a minimal, high-performing feature set, demonstrating practical utility.
- The inclusion of low-dimensional projections and feature correlation matrices allows users to identify and interpret the most discriminative features, enhancing model interpretability.
- The interactive Shiny web application enables non-R users to perform feature extraction and visualization directly in a browser, broadening accessibility.
- The framework supports extensibility, allowing future integration of new feature sets and enabling systematic evaluation of their performance across diverse time-series problems.
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.