{'fraction_non_alphanumeric': 0.01790450928381963, 'fraction_numerical': 0.0, 'mean_word_length': 5.766816143497758, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Classification of Temporal and Sequential Data Using Bag-of-Subsequences Features

Classifying sequential data is an important problem in machine learning with applications in time series, sensor streams, and image analysis. The ordered structure of sequential data presents a difficulty for the standard classification models, which has motivated the task of generating features for vector-based discriminative models. Shapelet methods, which have been extensively studied in this topic, identify class-specific subsequence patterns and exploit dissimilarity from them. Their approach merits the classification performance and the visual interpretability of the discriminative patterns. In this paper, we aim to improve on the robustness of the pattern-based discriminative model by considering the sequential data instances a "bag" of characteristic patterns. We propose a data cleaning method for generating small clusters of class-specific patterns and a vector representation which features the distance between clustered patterns and the sequential instance seen as a bag-of-subsequences. We further employ max-margin learning and feature selection to extract few class-characterizing patterns. We present numerical experiments using time series and silhouette image data and compared the performances of the proposed methods with other time series classification models. Our visual analysis of the extracted features showed that the proposed method can extract characteristic subsequences of the data.