{'fraction_non_alphanumeric': 0.01680672268907563, 'fraction_numerical': 0.0, 'mean_word_length': 5.527397260273973, '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}}
Discriminative Spatial Tree for Image Classification

Spatial pyramid is a very popular method for preserving the spatial information of local features, which partitions an image into multiple blocks at different resolution levels. Nevertheless, the strategy for partitioning an image is designed by hand and same for all the codewords in a codebook. To address this problem, we propose a novel partition method named discriminative spatial tree (ST), and implement it from two different viewpoints: class and image. Discriminative ST builds one spatial tree for each codeword, and each node in each tree corresponds to one image region. For better performance evaluation, we also introduce a simplified coding scheme. Experimental results on two challenging datasets show that our simplified coding scheme leads to comparable results to some sophisticated ones, and discriminative ST can achieve better classification performance than spatial pyramid.