MATICS : Jurnal Ilmu Komputer dan Teknologi Informasi (Journal of Computer Science and Information Technology)
Vol 17, No 2 (2025): MATICS

Comparison of Linear Regression, Decision Tree Regression, and Random Forest Regression Algorithms in Predicting Baldness Risk

Mola, Sebastianus Adi Santoso (Unknown)
Goru, Alfonsus Maria De Liguori (Unknown)
Lamapaha, Christian Jaquelino (Unknown)
Bekayo, Yoseph Kurubingan (Unknown)



Article Info

Publish Date
29 Sep 2025

Abstract

Abstract—Baldness is a common condition affecting both men and women, primarily caused by age, hormones, and genetics. Predicting the risk of baldness is crucial for early diagnosis and prevention of further hair loss. This study aims to compare the performance of Linear Regression (LR), Decision Tree Regression (DTR), and Random Forest Regression (RFR) in predicting baldness risk using data with variables such as age, gender, occupation, stress levels, and other lifestyle factors. A dataset of 5925 samples was processed through a series of steps, including normalization, parameter tuning, cross-validation, and residual analysis. The results show that Random Forest Regression outperformed other models with the lowest MSE (0.0979) and the highest R² (0.9056) on both training and testing data, followed by Decision Tree Regression and Linear Regression. Hyperparameter optimization using Grid Search significantly enhanced model performance. In conclusion, Random Forest Regression is the most suitable model for predicting baldness risk with complex datasets, while Linear Regression remains a viable alternative for simpler datasets.

Copyrights © 2025






Journal Info

Abbrev

saintek

Publisher

Subject

Computer Science & IT

Description

MATICS is a scientific publication for widespread research and criticism topics in Computer Science and Information Technology. The journal is published twice a year, in March and September by Department of Informatics Engineering, Faculty of Science and Technology, Universitas Islam Negeri Maulana ...