Machine learning-based sports preference classification using demographic and behavioral factors
DOI:
https://doi.org/10.35335/mandiri.v15i1.530Kata Kunci:
Behavioral Factors, Decision Tree, Demographic Factors, Machine Learning, Naive Bayes, Sports Preference ClassificationAbstrak
Sports preference is influenced by demographic and behavioral factors, making data-driven classification important for supporting personalized physical activity programs and public health decision-making. However, previous studies have mostly relied on descriptive analysis and have rarely integrated demographic and behavioral variables into a predictive machine learning framework. This study aims to classify community sports preferences using the Naive Bayes algorithm and compare its performance with the Decision Tree model. A quantitative data mining approach was applied using questionnaire data collected from 286 respondents selected from a population of 1,000 individuals using the Slovin formula with a 5% margin of error. The dataset included demographic attributes, such as age, gender, location, occupation, and socioeconomic status, as well as behavioral attributes, including exercise frequency, exercise place, motivation, barriers, and activity preference. Data preprocessing involved data cleaning, attribute transformation, binary label construction, and data leakage removal. Model evaluation was conducted using 10-fold stratified cross-validation with accuracy, precision, recall, F1-score, and Cohen’s kappa. The results show that Naive Bayes outperformed Decision Tree, achieving 63.63% accuracy, 57.84% precision, 56.14% recall, 56.97% F1-score, and 0.132 kappa. These findings indicate that Naive Bayes provides moderate but better predictive performance and can serve as an initial baseline for data-driven sports recommendation systems, although further model development is needed to improve reliability.
Referensi
Avsar, F., & Kizilaslan, N. (2025). Life Satisfaction and Healthy Lifestyle Behaviors of Individuals According to Exercise Preferences of Outdoor and Indoor. Public Health Nursing, 42(3), 1261–1271. https://doi.org/10.1111/PHN.13538
Chen, H., Hu, S., Hua, R., & Zhao, X. (2021). Improved naive Bayes classification algorithm for traffic risk management. EURASIP Journal on Advances in Signal Processing 2021 2021:1, 2021(1), 30-. https://doi.org/10.1186/S13634-021-00742-6
Cho, E., Chang, T. W., & Hwang, G. (2022). Data Preprocessing Combination to Improve the Performance of Quality Classification in the Manufacturing Process. Electronics 2022, Vol. 11, Page 477, 11(3), 477. https://doi.org/10.3390/ELECTRONICS11030477
Farrahi, V., Niemelä, M., Kärmeniemi, M., Puhakka, S., Kangas, M., Korpelainen, R., & Jämsä, T. (2020). Correlates of physical activity behavior in adults: A data mining approach. International Journal of Behavioral Nutrition and Physical Activity, 17(1). https://doi.org/10.1186/S12966-020-00996-7
Islam, S. S., Haque, M. S., Miah, M. S. U., Sarwar, T. Bin, & Nugraha, R. (2022). Application of machine learning algorithms to predict the thyroid disease risk: an experimental comparative study. PeerJ Computer Science, 8. https://doi.org/10.7717/PEERJ-CS.898
Jadhav, S. D., & Channe, H. P. (2013). Comparative Study of K-NN, Naive Bayes and Decision Tree Classification Techniques. International Journal of Science and Research (IJSR) ISSN, 5. www.ijsr.net
Katzmarzyk, P. T., Friedenreich, C., Shiroma, E. J., & Lee, I. M. (2022). Physical inactivity and non-communicable disease burden in low-income, middle-income and high-income countries. British Journal of Sports Medicine, 56(2), 101–106. https://doi.org/10.1136/BJSPORTS-2020-103640
Li, W., Procter-Gray, E., Churchill, L., Crouter, S. E., Kane, K., Tian, J., Franklin, P. D., Ockene, J. K., & Gurwitz, J. (2017). Gender and Age Differences in Levels, Types and Locations of Physical Activity among Older Adults Living in Car-Dependent Neighborhoods. The Journal of Frailty & Aging, 6(3), 129–135. https://doi.org/10.14283/JFA.2017.15
Martín-Rodríguez, A., Gostian-Ropotin, L. A., Beltrán-Velasco, A. I., Belando-Pedreño, N., Simón, J. A., López-Mora, C., Navarro-Jiménez, E., Tornero-Aguilera, J. F., & Clemente-Suárez, V. J. (2024). Sporting Mind: The Interplay of Physical Activity and Psychological Health. Sports, 12(1). https://doi.org/10.3390/SPORTS12010037
Mienye, I. D., & Jere, N. (2024). A Survey of Decision Trees: Concepts, Algorithms, and Applications. IEEE Access, 12, 86716–86727. https://doi.org/10.1109/ACCESS.2024.3416838
Mohammed, S., Budach, L., Feuerpfeil, M., Ihde, N., Nathansen, A., Noack, N., Patzlaff, H., Naumann, F., & Harmouch, H. (2025). The effects of data quality on machine learning performance on tabular data. Information Systems, 132, 102549. https://doi.org/10.1016/J.IS.2025.102549
Reddy, G. S., & Chittineni, S. (2021). Entropy based C4.5-SHO algorithm with information gain optimization in data mining. PeerJ Computer Science, 7, 1–22. https://doi.org/10.7717/PEERJ-CS.424
Rizki, M., Arhami, M., & Huzeni, H. (2021). Perbaikan Algoritma Naive Bayes Classifier Menggunakan Teknik Laplacian Correction. Jurnal Teknologi, 21(1), 39. https://doi.org/10.30811/TEKNOLOGI.V21I1.2209
Strain, T., Flaxman, S., Guthold, R., Semenova, E., Cowan, M., Riley, L. M., Bull, F. C., Stevens, G. A., Raheem, R. A., Agoudavi, K., Anderssen, S. A., Alkhatib, W., Aly, E. A. H., Anjana, R. M., Bauman, A., Bovet, P., Moniz, T. B., Bulotait, G., Caixeta, R., … Zoma, L. R. (2024). National, regional, and global trends in insufficient physical activity among adults from 2000 to 2022: a pooled analysis of 507 population-based surveys with 5·7 million participants. The Lancet Global Health, 12(8), e1232–e1243. https://doi.org/10.1016/S2214-109X(24)00150-5
Sun, Y., Zhao, Y., & Yang, J. (2025). The impact of sports preferences on physical activity participation among college students: the mediating role of sports achievement emotions and exercise motivation. Frontiers in Psychology, 16. https://doi.org/10.3389/FPSYG.2025.1565998
Tangirala, S. (2020). Evaluating the impact of GINI index and information gain on classification using decision tree classifier algorithm. International Journal of Advanced Computer Science and Applications, (2), 612–619. https://doi.org/10.14569/IJACSA.2020.0110277
Tsartsapakis, I., Zafeiroudi, A., Trigonis, I., & Kouthouris, C. (2026). Exercise Participation Among Physically Active Adults: A Multidimensional Analysis of Demographic, Anthropometric, Personality, and Behavioral Factors. International Journal of Environmental Research and Public Health, 23(2). https://doi.org/10.3390/IJERPH23020209
Van Uffelen, J. G. Z., Khan, A., & Burton, N. W. (2017). Gender differences in physical activity motivators and context preferences: A population-based study in people in their sixties. BMC Public Health, 17(1). https://doi.org/10.1186/S12889-017-4540-0
Wickramasinghe, I., & Kalutarage, H. (2021). Naive Bayes: applications, variations and vulnerabilities: a review of literature with code snippets for implementation. Soft Computing, 25(3), 2277–2293. https://doi.org/10.1007/S00500-020-05297-6
Yilmaz, A. E., & Demirhan, H. (2023). Weighted kappa measures for ordinal multi-class classification performance. Applied Soft Computing, 134. https://doi.org/10.1016/J.ASOC.2023.110020
Zhang, Z. (2016). Naïve Bayes classification in R. Annals of Translational Medicine, 4(12), 241–241. https://doi.org/10.21037/ATM.2016.03.38
Zhao, L., Lee, S., & Jeong, S. P. (2021). Decision Tree Application to Classification Problems with Boosting Algorithm. Electronics 2021, Vol. 10, Page 1903, 10(16), 1903. https://doi.org/10.3390/ELECTRONICS10161903
Unduhan
Diterbitkan
Cara Mengutip
Terbitan
Bagian
Lisensi
Hak Cipta (c) 2026 Hendra Apriawan, Suhendro Yusuf Irianto

Artikel ini berlisensi Creative Commons Attribution-NonCommercial 4.0 International License.




