Categorical Variable Coding for Machine Learning in Engineering Education

This work-in-progress research paper describes a study of different categorical data coding procedures for machine learning (ML) in engineering education. Often left out of methodology sections, preprocessing steps in data analysis can have important ramifications on project outcomes. In this study, we applied three different coding schemes (i.e., scalar conversion, one-hot encoding, and binary) for the categorical variable of Race across three different ML models (i.e., Neural Network, Random Forest, and Naïve Bayes classifiers) looking at the four standard measures of ML classification models (i.e., accuracy, precision, recall, and F1-score). Results showed that in general, the coding scheme did not affect predictive outcomes as much as ML model type did. However, one-hot encoding - the strategy of transforming a categorical variable with <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$k$</tex> possible values to <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$k$</tex> binary nodes, a common practice in educational research - does not work well with a Naïve Bayes classifier model. Our results indicate that such sensitivity studies at the beginning of ML modeling projects are necessary. Future work includes performing a full range of sensitivity studies on our complete, grant-funded project dataset that has been collected, and publishing our findings.

Authors

Institutions

Publication Details

Published
2024-10-13
DOI
https://doi.org/10.1109/fie61694.2024.10893080
Citations
1
Primary Topic
Experimental Learning in Engineering
Type
article
Field-Weighted Citation Impact
0.32
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Categorical Variable Coding for Machine Learning in Engineering Education

Christian Zuniga-Navarrete, Luis Javier Segura, Arinan Dourado, Campbell R. Bego et al.
1 citations
Experimental Learning in Engineering
0.32
article

Categorical Variable Coding for Machine Learning in Engineering Education

Christian Zuniga-Navarrete, Luis Javier Segura, Arinan Dourado, Campbell R. Bego, Xiaomei Wang, Alvin Tran
article en
1 citations

Abstract

This work-in-progress research paper describes a study of different categorical data coding procedures for machine learning (ML) in engineering education. Often left out of methodology sections, preprocessing steps in data analysis can have important ramifications on project outcomes. In this study, we applied three different coding schemes (i.e., scalar conversion, one-hot encoding, and binary) for the categorical variable of Race across three different ML models (i.e., Neural Network, Random Forest, and Naïve Bayes classifiers) looking at the four standard measures of ML classification models (i.e., accuracy, precision, recall, and F1-score). Results showed that in general, the coding scheme did not affect predictive outcomes as much as ML model type did. However, one-hot encoding - the strategy of transforming a categorical variable with <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$k$</tex> possible values to <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$k$</tex> binary nodes, a common practice in educational research - does not work well with a Naïve Bayes classifier model. Our results indicate that such sensitivity studies at the beginning of ML modeling projects are necessary. Future work includes performing a full range of sensitivity studies on our complete, grant-funded project dataset that has been collected, and publishing our findings.

University of Louisville (US)
Quality Education
Openalex Percentile: Top 32%
Experimental Learning in Engineering
0.32
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.