Self-adjusting harmony search-based feature selection

Ling Zheng, Ren Diao, Qiang Shen

Introduction

In the era of "Big Data," researchers and practitioners frequently encounter the curse of dimensionality. Datasets in fields such as genomics, text mining, and semiconductor manufacturing often contain thousands of features, many of which are redundant, noisy, or irrelevant. Feature Selection (FS) is the critical process of identifying the smallest subset of features that preserves or enhances the predictive power of a model. However, finding the optimal subset is an NP-hard problem; for a dataset with $n$ features, there are $2^n$ possible combinations to evaluate.

This paper introduces HSFS<sub>SA</sub>, a self-adjusting version of the Harmony Search (HS) algorithm specifically optimized for feature selection. By dynamically managing its search space and leveraging feature similarity, the algorithm consistently identifies smaller, more accurate feature subsets compared to traditional meta-heuristics.

Harmony Search is a nature-inspired meta-heuristic that mimics the process of musicians improvising to find a pleasing harmony. While it has been applied to feature selection, standard HS implementations suffer from two primary flaws:

  1. Inflexibility: They typically require users to pre-define the size of the feature subset, which is often unknown in advance.
  2. Inefficient Search: Standard HS uses "pitch adjustment" (shifting a note slightly). In the context of feature selection, shifting from "Feature 10" to "Feature 11" is often mathematically arbitrary, as numerical proximity does not imply statistical relevance.

The HSFS<sub>SA</sub> Framework

To address these limitations, the authors propose a framework that maps musical improvisation concepts directly to the optimization of feature subsets.

Mapping of Harmony Search (HS) terminology to Optimization and Feature Selection (FS) concepts.

The algorithm follows a structured lifecycle of initialization and iterative refinement, but introduces three novel self-adjusting strategies:

1. Restricted Feature Domain (RFD)

Instead of every "musician" (feature selector) considering the entire feature pool, each is assigned a random but overlapping subset of features. This reduces memory overhead and prevents the algorithm from becoming overwhelmed by irrelevant options during the early stages of the search.

2. Harmony Memory Consolidation (HMC)

This serves as the algorithm's "self-configuring" engine. During the search, the algorithm identifies "non-contributing" musicians—those whose feature choices are redundant or consistently discarded. It then dynamically shrinks or expands the population size, allowing the algorithm to discover the optimal subset size on the fly without human intervention.

3. Similarity-Based Pitch Adjustment

Rather than shifting to a numerically adjacent feature index, the algorithm uses similarity measures (such as Linear Correlation or Fuzzy Rough Set-based dependency) to find a "neighboring" feature that is statistically related. This ensures that the "improvisation" is context-aware and meaningful.

The standard Harmony Search process consisting of initialization and iteration phases.

Experimental Evaluation and Results

The researchers evaluated HSFS<sub>SA</sub> using 10 real-valued benchmark datasets from the UCI repository, ranging from low-dimensional sets like ionosphere (35 features) to high-dimensional sets like web (2,557 features). The proposed method was compared against the original Harmony Search (HSFS<sub>O</sub>), Genetic Algorithms (GA), Particle Swarm Optimization (PSO), and Hill Climbing (HC).

Key Findings

  • Accuracy Improvements: On the arrhythmia dataset, HSFS<sub>SA</sub> improved classification accuracy by 13.4% compared to the original algorithm.
  • Enhanced Compactness: The self-adjusting version consistently found smaller subsets. For the web dataset, it reduced 2,557 features to a mere 18–33 features while maintaining or improving accuracy.
  • The 80% Rule: Empirical testing revealed that a "Restricted Ratio" ($\lambda$) of 0.8 is most effective, providing enough diversity to find a global optimum while maintaining computational efficiency.
  • Statistical Significance: Paired t-tests ($p = 0.01$) confirmed that HSFS<sub>SA</sub> statistically outperformed baselines in both evaluation scores and subset reduction across the majority of datasets.

Conclusion and Future Work

HSFS<sub>SA</sub> represents a significant advancement in meta-heuristic feature selection by replacing arbitrary search parameters with data-driven, self-adjusting mechanisms. While the initial computational cost of building feature similarity matrices is high—$O(|A|^2 \times |X|^2)$—the resulting gains in model accuracy and subset compactness are substantial.

Future research will explore applying these self-adjusting mechanisms to Dynamic Feature Selection, where data distributions change over time, and Classifier Ensemble Reduction to further optimize machine learning pipelines.

Summary updated

BibTeX
@article{zheng2015self,
  author = {Ling Zheng and Ren Diao and Qiang Shen},
  title = {{Self-adjusting harmony search-based feature selection}},
  journal = {Soft Comput},
  year = {2015},
  doi = {10.1007/s00500-014-1307-8},
}
Figure