NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An efficient method to classification with missing data

Haojian HuangAcademic 2021

Abstract

Missing data is widely existing in life. Processing missing data is essential in classification. Therefore, it is a common and essential method to use the existing reliable data set to impute the missing data. These methods have a significant effect on the processing of ambiguity and uncertainty in the data set. At the same time, the processing of missing data sets widely exists in the fields of noise processing and enhancing system robustness. Therefore, using accurate data and imputation methods to impute missing data sets is essential and effective. In this paper, a new method for classification with missing data is proposed. First of all, the training data set is optimized so that classifiers can get trained well. Then it will be used to estimate missing values with the proposed method. By comparing the Precision, Recall, F1, and ARI indicators of the classifier in the classification test with different testing data sets by four different imputation methods, the final result shows that the proposed method performs best on the whole.

Introduction

In real-world applications, datasets are frequently incomplete due to sensor failures, human error, or data loss. Since most machine learning classifiers require complete data, handling missing values is a critical preprocessing step. Traditional approaches often fall short: discarding incomplete rows wastes information, while simple methods like Zero or Mean Imputation distort the data's distribution. Even standard K-Nearest Neighbor Imputation (KNNI) can be problematic, as it may draw values from different classes if a sample lies near a boundary, or be skewed by noise in the training set. This paper proposes a refined approach that combines noise reduction with class-aware imputation to improve classification robustness.

Proposed Methodology

The proposed method introduces a two-stage process to ensure imputation is both reliable and contextually accurate.

  1. Training Set Optimization (Noise Reduction): To ensure the reference data is high-quality, the algorithm first calculates the center of each class in the training set. It measures the Euclidean distance of every sample from its respective class center. Samples exceeding a specific threshold ($\delta$) are discarded as noise, preventing outliers from negatively influencing the imputation process.
  2. Class-Aware Weighted Imputation: When a sample with missing data is encountered, the algorithm performs a targeted search:
  3. Category Matching: It first estimates the most likely class for the sample by comparing its available features to the cleaned class centers.
  4. Targeted Neighbor Search: Once the class is identified, the algorithm searches for the $k$-nearest neighbors only within that specific class.
  5. Weighted Imputation: Missing values are estimated using a weighted Euclidean distance formula, where closer neighbors exert more influence on the final imputed value.
Overview of the proposed class-aware weighted imputation process.

Experimental Evaluation

The method was evaluated using four benchmark datasets from the UCI Machine Learning Repository: Iris, Seeds, Vehicle, and Heart. These datasets represent varying levels of complexity, from single-attribute missingness to higher-complexity scenarios where five attribute values are missing. To test robustness, more than 25% of the values were removed using a Missing Completely at Random (MCAR) mechanism.

Performance was measured using four key metrics: Precision, Recall, $F_1$-score, and the Adjusted Rand Index (ARI).

Results and Analysis

The proposed method was compared against Zero Imputation (ZI), Mean Imputation (MI), and standard KNNI. The results consistently demonstrate the superiority of the class-aware approach.

Performance comparison of the proposed method against ZI, MI, and KNNI across four datasets.

As shown in the table above, the proposed method achieved the highest scores across all metrics for every dataset. For instance, on the Iris dataset, it reached 97% Precision, outperforming standard KNNI (96%) and significantly exceeding ZI and MI (~68%). The gains were even more pronounced on complex datasets like Vehicle, where the proposed method achieved 82% Precision, a 9% improvement over standard KNNI.

These results highlight two key advantages:

  • Contextual Accuracy: By identifying the class first, the imputation remains within a realistic range for that specific category.
  • Reliability: Pruning outliers from the training set ensures that the "neighbors" used for imputation are representative of the true data distribution.

Conclusion and Future Work

This paper demonstrates that class-aware weighted imputation, combined with training set optimization, significantly enhances classification performance in the presence of missing data. While effective, the current method focuses on single-value imputation and relies on an empirically determined noise threshold. Future research will explore multi-value imputation for predicting multiple missing features simultaneously and investigate automated methods for threshold selection to improve the algorithm's generalizability across diverse datasets.

Summary updated

BibTeX
@inproceedings{huang2021efficient,
  author = {Haojian Huang},
  title = {{An efficient method to classification with missing data}},
  booktitle = {Academic},
  year = {2021},
  doi = {10.25236/ajcis.2021.040812},
}
Figure