arrow
Return

Categorical variable encoding methods for tabular data: a benchmarking study

delete2026-02-04
delete0
PRE
AI
F
Federico Clerici *
N
Navid Nobani
DOI:10.1007/s41060-025-00886-wdelete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Machine learning models often require numerical inputs, making the encoding of categorical features a critical step in the data preprocessing pipeline. A wide range of encoding methods, such as the commonly used one-hot encoding, are available, but they may not always be optimal due to increased dimensionality and a lack of sensitivity to the inherent relationships between categories. This paper presents a comprehensive evaluation of 26 categorical encoding techniques, benchmarked across 13 real-world datasets and 7 different machine learning algorithms. Our study categorizes these methods based on predictive task type, model performance, and computational efficiency, offering a taxonomy for selecting encoders. In addition, we illustrate how Safe AI metrics can be applied to encoding pipelines, showing that they provide complementary insights into model robustness and fairness. Finally, we provide a Python tool called EncodeHero that enables researchers and practitioners to (1) extend the results by augmenting the benchmark with their own data and (2) choose the best encoding methodology based on their data and technical constraints.
Keywords:
Variable encoding
Categorical data
Tabular data

Journal

I
International Journal of Data Science and Analytics
IF:
2.8
Papers:
1.1K
Citations:
1.3K

Organization

M
mathematics
Scholars:
913
Papers: 533
Citations: 0
S
statistics and quantitative methods
Scholars:
14
Papers: 12
Citations: 0
Cited Papers

Cited Papers

Multi-population Black Hole Algorithm for the problem of data clustering
err2023-07-05
err0
errOAAI
errSinan Q. Salih; AbdulRahman A. Alsewari; H. A. Wahab; Mustafa K. A. Mohammed; Tarik A. Rashid; Debashish Das; Shadi S. Basurra
errShare
errSave
Fair Kernel Learning
err2017-12-30
err0
PREAI
errAdrián Pérez-Suay; Valero Laparra; Gonzalo Mateo-García; Jordi Muñoz-Marí; Luis Gómez-Chova; Gustau Camps-Valls
errShare
errSave
Effective Methods of Categorical Data Encoding for Artificial Intelligence Algorithms
err2024-08-18
err0
errOAAI
errFurkat Bolikulov; Rashid Nasimov; Akbar Rashidov; Farkhod Akhmedov; Young-Im Cho
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
PrivBayes
err2017-10-27
err0
errOAAI
errJun Zhang; Graham Cormode; Cecilia M. Procopiuc; Divesh Srivastava; Xiaokui Xiao
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
errShare
errSave
researcher View more