Predicting Online Gaming Behavior: A Comparative Analysis of Random Forest and Gaussian Naive Bayes Models
DOI:
https://doi.org/10.61173/5hthrr73Keywords:
Online gaming, machine learning, artificial intelligenceAbstract
With the rising impact and economic benefits of the online gaming industry, online gaming companies need to understand players’ behavior to evaluate their products better and adjust their developing strategy. This paper uses machine learning models to predict players’ online gaming behaviors. The study utilizes the dataset from Kaggle, which contains 40,034 samples with 13 features related to player demographics, game preferences, and gameplay behaviors. The primary objective is to classify two target variables: ‘EngagementLevel’ and ‘InGamePurchases.’ Data preprocessing steps included handling missing values, encoding categorical features, normalizing numerical data, and addressing class imbalances using the Synthetic Minority Over-sampling Technique (SMOTE). The Random Forests (RF) and Gaussian Naïve Bayes (GNB) models were employed to predict the target variables. The RF model significantly outperformed the GNB model in both classification tasks, especially when predicting the in-game purchases. The RF model’s robustness is attributed to its ability to handle complex, non-linear relationships and interactions between features, while the GNB model’s performance was limited by its assumptions of feature independence and normally distributed data. The findings suggest that RF is a more effective tool for predicting online gaming behaviors, particularly in scenarios with complex feature interactions. Future research could incorporate additional machine learning models and more diverse datasets to further enhance predictive accuracy and offer a more comprehensive understanding of online gaming behaviors.
References
[1] Griffiths M. Problematic online gaming: Issues, debates and controversies. Медицинская психология в России. 2015(4 (33)):5.
[2] Yahoo Finance, Global Online Gaming Market Size [2024- 2032]. 2023 Aug 8. Available from: https://finance.yahoo.com/ news/global-online-gaming-market-size-050000553.html. Accessed 2024 Aug 10.
[3] Sanghvi H, Bhavsar R, Hundlani V, Gohil L, Vyas T, Nair A, et al. MetaHate: AI‐based hate speech detection for secured online gaming in metaverse using blockchain. Security and Privacy. 2023 Sep 13;7(2).
[4] Faraz A, Ahsan F, Mounsef J, Karamitsos I, Kanavos A. Enhancing Child Safety in Online Gaming: The Development and Application of Protectbot, an AI-Powered Chatbot Framework. Information. 2024 Apr 19;15(4):233.
[5] Ribeiro VM, Bao L. Professionalization of Online Gaming? Theoretical and Empirical Analysis for a Monopoly-Holding Platform. Journal of Theoretical and Applied Electronic Commerce Research. 2021 Jan 11;16(4):682–708.
[6] Kaggle “Predict Online Gaming Behavior Dataset” 21 June 2024, www.kaggle.com/datasets/rabieelkharoua/predict-onlinegaming-behavior-dataset.
[7] Douzas G, Bacao F, Last F. Improving imbalanced learning through a heuristic oversampling method based on k-means and SMOTE. Information Sciences. 2018 Oct 1;465:1–20.
[8] Chawla NV, Bowyer KW, Hall LO, Kegelmeyer WP. SMOTE: Synthetic Minority Over-sampling Technique. Journal of Artificial Intelligence Research. 2002 Jun 1;16:321–57.
[9] Mantas CJ, Castellano JG, Moral-García S, Abellán J. A comparison of random forest based algorithms: random credal random forest versus oblique random forest. Soft Computing. 2018 Nov 17;23(21):10739–54.
[10] Breiman L. No Title. Machine Learning. 2001 Jan 1;45(1):5–32.
[11] Lou W, Wang X, Chen F, Chen Y, Jiang B, Zhang H. Sequence Based Prediction of DNA-Binding Proteins Based on Hybrid Feature Selection Using Random Forest and Gaussian Naïve Bayes. PLoS ONE. 2014 Jan 24;9(1):e86703. Available from: https://doi.org/10.1371/journal.pone.0086703
Downloads
Published
Issue
Section
License
Copyright (c) 2024 by the authors.

This work is licensed under a Creative Commons Attribution 4.0 International License.
