Classification of Online Game Player Engagement Levels using the Random Forest Algorithm

Febrian Joseph Laia, Charitas Fibriani (SCOPUS ID=57192643331)

Abstract


The rapid growth in the number of online game players has generated large volumes of behavioral data that can be leveraged to analyze player engagement levels. However, the primary challenges include class imbalance in engagement data and the limited interpretability of predictive models regarding the factors influencing their decisions. This study aims to develop a classification model for online game player engagement levels using the Random Forest algorithm, while addressing class imbalance through the Synthetic Minority Over-sampling Technique (SMOTE) and identifying the most influential features using Feature Importance analysis. The study utilized the Online Gaming Behavior Dataset from Kaggle, comprising 40,034 records. The Random Forest model was optimized using RandomizedSearchCV with five-fold cross-validation to determine the optimal hyperparameter configuration. The experimental results demonstrate that the proposed model achieved an overall accuracy of 92%, with recall values of 90%, 94%, and 89% for the Low, Medium, and High engagement classes, respectively. Feature Importance analysis using both impurity-based and permutation approaches consistently identified SessionsPerWeek (0.4375 and 0.4309) and AvgSessionDurationMinutes (0.3371 and 0.3540) as the two most influential features, jointly accounting for more than 77% of the model's predictive decisions, whereas demographic features contributed only marginally. The novelty of this study lies in the integration of Random Forest, SMOTE, and Feature Importance to develop a classification model that is not only highly accurate but also interpretable. These findings provide valuable insights for game developers in designing evidence-based player retention strategies, such as implementing daily login rewards to increase session frequency and time-limited events to encourage longer gameplay sessions.

Keywords


player engagement; online game; random forest; SMOTE; feature importance

Full Text:

PDF

References


L. Suciasih and S. Santoso, “Analysis of Strategies for Strengthening the Online Game Industry using an Industrial Cluster Approach,” Indonesian Journal of Business Analytics, Vol. 4, No. 4, pp. 1629–1642, Aug. 2024, DOI: 10.55927/ijba.v4i4.10833.

M. Mustofa, H. Purwanto, and F. Fandi Dwi Imaniawan, “Klasifikasi Tingkat Retensi Pemain Video Game Online,” Informatics and Computer Engineering Journal, Vol. 4, No. 2, pp. 75–82, Aug. 2024, DOI: 10.31294/icej.v4i2.4910.

N. Rismayanti, “Predicting Online Gaming Behaviour using Machine Learning Techniques,” Indonesian Journal of Data and Science, Vol. 5, No. 2, Jul. 2024, DOI: 10.56705/ijodas.v5i2.166.

Laurence, A. Hermawan, I. Bernarto, and F. Antonio, “Video Game Engagement: A Passkey to the Intentions of Continue Playing, Purchasing Virtual Items, and Player Recruitment (3Ps),” International Journal of Computer Games Technology, Vol. 2023, pp. 1–13, Apr. 2023, DOI: 10.1155/2023/2648097.

R. Mulla et al., “Predicting Player Churn in the Gaming Industry: A Machine Learning Framework for Enhanced Retention Strategies,” J. Curr. Sci. Technol., Vol. 15, No. 2, p. 103, Mar. 2025, DOI: 10.59796/jcst.V15N2.2025.103.

Y. Qiu, Y. Gong, and G. Liu, “User Behavior Analysis and Clustering in a MMO Mobile Game: Insights and Recommendations,” Sep. 2024, [Online]. Available: http://arxiv.org/abs/2407.11772

A. Perišić and M. Pahor, “Clustering Mixed-Type Player Behavior Data for Churn Prediction in Mobile Games,” Cent. Eur. J. Oper. Res., Vol. 31, No. 1, pp. 165–190, Mar. 2023, DOI: 10.1007/s10100-022-00802-8.

T. M. U. Sree, P. Sasikumar, S. Ayesha, M. S. Amzad Basha, and M. Martha Sucharitha, “Predicting Player Engagement in Online Gaming: A Machine Learning Approach,” in 2024 IEEE North Karnataka Subsection Flagship International Conference (NKCon), IEEE, Sep. 2024, pp. 1–6. DOI: 10.1109/NKCon62728.2024.10774748.

P. T. Prasetyaningrum, P. Purwanto, and A. F. Rochim, “Enhancing Element Game Classification: Effective Techniques for Handling Imbalanced Classes,” International Journal of Intelligent Engineering and Systems, Vol. 17, No. 1, pp. 555–571, Feb. 2024, DOI: 10.22266/ijies2024.0229.47.

A. V. Alzuhdi, H. Ar Rosyid, M. Y. Chuttur, and S. Nazir, “Optimizing Random Forest Algorithm to Classify Player’s Memorisation via in-game Data,” Knowledge Engineering and Data Science, Vol. 6, No. 1, pp. 103–113, Jul. 2023, DOI: 10.17977/um018v6i12023p103-113.

Y. Durachman, “Investigating the Impact of Gameplay Hours on Player Recommendations in Steam Games: A Comparative Analysis using Logistic Regression and Random Forest Classifiers,” International Journal Research on Metaverse, Vol. 2, No. 1, pp. 52–77, Mar. 2025, DOI: 10.47738/ijrm.v2i1.21.

C. Molnar, Interpretable Machine Learning: A Guide for Making Black Box Models Explainable, 2nd ed. Leanpub, 2022. Accessed: Jul. 10, 2026. [Online]. Available: https://christophm.github.io/interpretable-ml-book/

L. Breiman, “Random Forests,” Mach. Learn., Vol. 45, No. 1, pp. 5–32, Oct. 2001, DOI: 10.1023/A:1010933404324.

J. Choi and Y. Choi, “Unlocking Player Engagement for Game Design,” 2025, pp. 278–287. DOI: 10.1007/978-3-031-94162-7_27.

S. Heristian, R. S. Anwar, and H. A. Al Kautsar, “Klasifikasi Perilaku Pemain Game Online menggunakan Naïve Bayes berbasis Particle Swarm Optimization,” Computer Science (CO-SCIENCE), Vol. 4, No. 2, pp. 151–156, Jul. 2024, DOI: 10.31294/coscience.v4i2.4433.

L. Peng, “Research on Machine Learning Models for Predicting Player Churn,” in Proceedings of the 1st International Conference on Modern Logistics and Supply Chain Management, SCITEPRESS - Science and Technology Publications, 2024, pp. 112–121. DOI: 10.5220/0013234700004558.

T. Xie, “Predicting Online Gaming Behavior: A Comparative Analysis of Random Forest and Gaussian Naive Bayes Models,” Science and Technology of Engineering, Chemistry and Environmental Protection, Vol. 1, No. 9, Oct. 2024, DOI: 10.61173/5hthrr73.

J. Pan, “Predict Players Engagement Level using KNN Method,” Academic Journal of Science and Technology, Vol. 19, No. 2, pp. 78–83, Jan. 2026, DOI: 10.54097/e7dscf70.




DOI: https://doi.org/10.32520/stmsi.v15i7.6514

Article Metrics

Abstract view : 13 times
PDF - 2 times

Refbacks

  • There are currently no refbacks.


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