Peningkatan Performa Model Klasifikasi Tingkat Depresi Pengguna Media Sosial X Menggunakan Algoritma Random Forest Dan Hyperparameter Tuning
Keywords:
Kelayakan Kredit, Naive Bayes, Sistem Pendukung Keputusan, Klasifikasi, Data SimulasiAbstract
Depresi adalah masalah kesehatan mental serius yang mempengaruhi berbagai kalangan. Media sosial X (sebelumnya Twitter) dengan 139 juta pengguna aktif di Indonesia sering digunakan untuk mengungkapkan perasaan dan opini. Diskusi tentang kesehatan mental di X meningkat 17% antara 2018. Penelitian ini bertujuan meningkatkan klasifikasi tingkat depresi pengguna X dengan mengganti algoritma Multinomial Naive Bayes dengan Random Forest, melakukan tuning hyperparameter, dan mengeksplorasi penggunaan n-gram (unigram, bigram, trigram). Dataset dari penelitian terdahulu (Armaini dkk, 2024) mengandung 2662 data gambar terkait kesehatan mental pengguna X, dikelompokkan dalam tiga tingkat depresi: ringan, sedang, dan berat. Model Random Forest diterapkan dengan tiga skenario N-Gram dan pembagian dataset 90:10, 80:20, dan 70:30. Hasil menunjukkan model Random Forest dengan N-Gram Trigram dan parameter optimal (n_estimators = 200, max_depth = None, min_samples_split = 2, min_samples_leaf = 10) pada rasio 90:10 memberikan akurasi terbaik 98,50%.References
[1] J. Han, M. Kamber, and J. Pei, Data Mining: Concepts and Techniques, 3rd ed. San Francisco, CA, USA: Morgan Kaufmann, 2011.
[2] I. H. Witten, E. Frank, and M. A. Hall, Data Mining: Practical Machine Learning Tools and Techniques, 4th ed. Burlington, MA, USA: Morgan Kaufmann, 2016.
[3] T. M. Mitchell, Machine Learning. New York, NY, USA: McGraw-Hill, 1997.
[4] R. O. Duda, P. E. Hart, and D. G. Stork, Pattern Classification, 2nd ed. New York, NY, USA: Wiley, 2001.
[5] T. Hastie, R. Tibshirani, and J. Friedman, The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed. New York, NY, USA: Springer, 2009.
[6] S. B. Kotsiantis, “Supervised machine learning: A review of classification techniques,” Informatica, vol. 31, no. 3, pp. 249–268, 2007.
[7] G. H. John and P. Langley, “Estimating Continuous Distributions in Bayesian Classifiers,” in Proc. 11th Conf. Uncertainty in Artificial Intelligence, Montreal, Canada, 1995, pp. 338–345.
[8] D. J. Hand and K. Yu, “Idiot’s Bayes – Not So Stupid after All?,” International Statistical Review, vol. 69, no. 3, pp. 385–398, 2001.
[9] K. P. Murphy, Machine Learning: A Probabilistic Perspective. Cambridge, MA, USA: MIT Press, 2012.
[10] D. Koller and N. Friedman, Probabilistic Graphical Models: Principles and Techniques. Cambridge, MA, USA: MIT Press, 2009.
[11] C. M. Bishop, Pattern Recognition and Machine Learning. New York, NY, USA: Springer, 2006.
[12] C. C. Aggarwal, Data Classification: Algorithms and Applications. Boca Raton, FL, USA: CRC Press, 2014.
[13] J. Gama, Knowledge Discovery from Data Streams. Boca Raton, FL, USA: Chapman and Hall/CRC, 2010.
[14] H. Altay Guvenir and E. Muderrisoglu, “Learning naive bayesian classifiers for credit card fraud detection,” in Proc. 12th International Symposium on Computer and Information Sciences, Antalya, Turkey, 1997, pp. 220–225.
[15] J. R. Quinlan, C4.5: Programs for Machine Learning. San Mateo, CA, USA: Morgan Kaufmann, 1993.
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution 4.0 International License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).


