Self-adaptive attribute weighting for Naive Bayes classification

Jia Wu, Shirui Pan, Xingquan Zhu, Zhihua Cai, Peng Zhang, Chengqi Zhang

TL;DR

This paper introduces AISWNB, a novel method that uses Artificial Immune Systems (AIS) to adaptively learn attribute weights for Naive Bayes classifiers. By integrating attribute weighting directly into the learning process, AISWNB aims to overcome the limitations of the conditional independence assumption in Naive Bayes, leading to improved classification accuracy, class probability estimation, and class ranking.

What Problem Does This Paper Address?

Naive Bayes (NB) is a popular classification algorithm due to its simplicity and efficiency, especially for high-dimensional data like text. However, its core assumption that attributes are conditionally independent given the class label often hinders its performance when attributes are actually correlated. While various methods exist to improve NB by addressing this assumption (e.g., attribute selection, weighting, instance weighting), many of these approaches treat attribute weighting as a separate step from the main classification learning process. This separation can lead to suboptimal attribute weights that don't directly optimize the NB classifier's objective function, thus limiting their effectiveness across different learning goals (accuracy, ranking, probability estimation). This paper aims to bridge this gap by proposing an integrated, self-adaptive approach to attribute weighting for NB.

Methods

The core of the proposed method, AISWNB, is an Artificial Immune System (AIS) that mimics the human immune system's learning and adaptation capabilities. Here's how it works:

  • Antibodies as Weight Vectors: In AISWNB, each "antibody" represents a potential attribute weight vector for the Naive Bayes classifier. The "antigens" are the training instances.
  • Immune System Analogy: The "binding" between an antibody (weight vector) and an antigen (training instance) is evaluated by the classifier's performance (e.g., accuracy, AUC, or CLL) on that instance. This performance metric serves as the "affinity" score.
  • Evolutionary Process: AISWNB employs an evolutionary process inspired by the immune system:
  • Initialization: A population of random attribute weight vectors (antibodies) is generated.
  • Recognition & Affinity Calculation: The system evaluates the "affinity" (performance) of each weight vector on the training data.
  • Clonal Selection & Expansion: Weight vectors with higher affinity are "cloned" and used to replace those with lower affinity, effectively propagating good solutions.
  • Mutation: A mutation operation is applied to the cloned antibodies to maintain diversity within the population and explore new weight combinations.
  • Memory Cell: The best-performing weight vector across generations is retained as a "memory cell," representing the optimal learned weights.
  • Self-Adaptation: The key novelty is that this evolutionary process directly optimizes the attribute weights to maximize the NB classifier's performance, adapting to the specific characteristics of the training data and the chosen evaluation criterion (accuracy, AUC, or CLL).

Datasets

The authors evaluated AISWNB on a comprehensive set of datasets:

  • UCI Benchmark Datasets: 36 datasets from the UCI Machine Learning Repository were used. These datasets cover a wide range of domains and characteristics, serving as standard benchmarks for machine learning algorithms.
  • Corel Image Repository Datasets: Six image classification datasets derived from the Corel Image repository were also used. These datasets were preprocessed to create six binary learning problems, each containing 200 images.

Key Insights and Ideas

  • Integrated Learning is Crucial: Separating attribute weighting from the core classification learning process can lead to suboptimal results. AISWNB's strength lies in its integrated approach, where weights are learned to directly optimize the classifier's performance.
  • Immune Systems as Powerful Optimizers: The paper demonstrates that the principles of artificial immune systems (clonal selection, mutation, memory) provide a robust and adaptive framework for optimizing complex problems like attribute weighting.
  • Flexibility in Evaluation Criteria: AISWNB's "affinity function" can be dynamically adjusted to match different learning goals (accuracy, ranking, probability estimation), making it versatile for various applications.
  • Addressing the "Curse of Dimensionality" Indirectly: By adaptively weighting attributes, AISWNB implicitly handles the challenge of high-dimensional data by focusing on the most relevant features for classification.

Key Results

  • Superior Performance: AISWNB consistently outperformed standard Naive Bayes and several other attribute-weighted Naive Bayes methods across three key metrics: classification accuracy (ACC), area under the ROC curve (AUC), and conditional log-likelihood (CLL) on the 36 UCI datasets.
  • Significant Gains: Statistical tests (t-tests) confirmed that AISWNB achieved statistically significant improvements over most baseline methods.
  • Image Classification Success: AISWNB also demonstrated strong performance on image classification tasks, outperforming baseline methods in ACC, AUC, and CLL.
  • Fast Convergence: The convergence curves showed that AISWNB achieved high classification accuracy relatively quickly, often within a few iterations.
  • Random Weights are Ineffective: A baseline method using randomly selected attribute weights (RMWNB) performed poorly, highlighting the importance of the adaptive learning process.

Limitations and Future Work

  • Computational Cost: While AISWNB shows strong performance, its evolutionary nature implies a higher computational cost compared to simpler methods, especially with large populations and many generations. The paper notes that the termination condition (threshold T) helps reduce computational costs.
  • Parameter Tuning: Like most evolutionary algorithms, AISWNB has parameters (e.g., population size, clone factor, mutation rate) that might require tuning for optimal performance on specific datasets.
  • Future Directions: The authors suggest that the AISWNB framework can be extended to other weight optimization problems, such as weighted one-dependence estimators. They also propose further research into integrating different affinity functions to achieve trade-offs between various evaluation criteria for even better performance.

Summary updated

Abstract

Highlights • Self-adaptive attribute weighting for Naive Bayes classification. • Using Artificial Immune Systems (AIS) for attribute weighting. • Seamlessly integrating learning objective and AIS affinity function for attribute weighting. • Experiments on 42 real-world datasets demonstrating superb performance gain. Abstract Naive Bayes (NB) is a popular machine learning tool for classification, due to its simplicity, high computational efficiency, and good classification accuracy, especially for high dimensional data such as texts. In reality, the pronounced advantage of NB is often challenged by the strong conditional independence assumption between attributes, which may deteriorate the classification performance. Accordingly, numerous efforts have been made to improve NB, by using approaches such as structure extension, attribute selection, attribute weighting, instance weighting, local learning and so on. In this paper, we propose a new Artificial Immune System (AIS) based self-adaptive attribute weighting method for Naive Bayes classification. The proposed method, namely AISWNB, uses immunity theory in Artificial Immune Systems to search optimal attribute weight values, where self-adjusted weight values will alleviate the conditional independence assumption and help calculate the conditional probability in an accurate way. One noticeable advantage of AISWNB is that the unique immune system based evolutionary computation process, including initialization, clone, section, and mutation, ensures that AISWNB can adjust itself to the data without explicit specification of functional or distributional forms of the underlying model. As a result, AISWNB can obtain good attribute weight values during the learning process. Experiments and comparisons on 36 machine learning benchmark data sets and six image classification data sets demonstrate that AISWNB significantly outperforms its peers in classification accuracy, class probability estimation, and class ranking performance.
BibTeX
@article{wu2015self,
  author = {Jia Wu and Shirui Pan and Xingquan Zhu and Zhihua Cai and Peng Zhang and Chengqi Zhang},
  title = {{Self-adaptive attribute weighting for Naive Bayes classification}},
  journal = {Expert Systems with Applications},
  year = {2015},
  doi = {10.1016/j.eswa.2014.09.019},
}

Loading related content...

Figure