Klasifikasi Sentimen Bitcoin Terhadap Komentar Di Aplikasi X Menggunakan Metode Decision Tree C4.5


Authors

  • Habibi Putra Indrizal Universitas Islam Negeri Sultan Syarif Kasim Riau, Pekanbaru, Indonesia
  • Fadhilah Syafria Universitas Islam Negeri Sultan Syarif Kasim Riau, Pekanbaru, Indonesia
  • Elin Haerani Universitas Islam Negeri Sultan Syarif Kasim Riau, Pekanbaru, Indonesia
  • Yelvi Vitriani Universitas Islam Negeri Sultan Syarif Kasim Riau, Pekanbaru, Indonesia
  • Yusra Yusra Universitas Islam Negeri Sultan Syarif Kasim Riau, Pekanbaru, Indonesia

DOI:

https://doi.org/10.47065/bulletincsr.v6i1.932

Keywords:

Sentiment; Bitcoin; Decision Tree C4.5; TF-IDF; Text Classification

Abstract

Sentiment analysis is an important method for understanding user perceptions of cryptocurrency assets such as Bitcoin, whose price movements are strongly influenced by public opinion. This study aims to classify user sentiment from comments posted on the X platform into two classes, namely positive and negative, using the Decision Tree C4.5 algorithm. The dataset consists of 5,000 Indonesian-language comments collected through a web scraping process and processed through text preprocessing and TF-IDF–based feature extraction. The model was trained using a 70% training data and 30% testing data split. The evaluation results show that the C4.5 model achieved an accuracy of 78%. For the positive class, the model obtained a very high recall of 0.99 with an F1-score of 0.83, indicating strong performance in identifying positive comments. In contrast, the negative class achieved a recall of 0.51 with an F1-score of 0.67, despite having a high precision of 0.97. The disparity in performance between classes is influenced by the data distribution, which is not fully balanced, with positive comments being more dominant than negative ones, causing the model to be more sensitive to the majority class. Overall, the results indicate that the Decision Tree C4.5 algorithm is sufficiently effective for Indonesian-language Bitcoin sentiment classification, although it still has limitations in recognizing the minority class. Future research may explore the application of data imbalance handling techniques or more advanced algorithms to improve the balance of classification performance across classes.

Downloads

Download data is not yet available.

References

J. E. Savero, V. H. Pranatawijaya, and E. Christian, “Analisis Sentimen Pengguna Media Sosial X terhadap Perubahan Harga Bitcoin: Pendekatan Machine Learning,” Konvergensi Teknologi dan Sistem Informasi, vol. 4, no. 1, 2024, doi: 10.24002/konstelasi.v4i1.9043.

I. Septiningsih, “Analisis Cryptocurrency sebagai Instrumen Transaksi di Indonesia,” Legal Advice Journal Of Law, vol. 1, no. 2, 2024, doi: 10.12345

M. H. Widianto and Y. Cornelius, “Sentiment Analysis towards Cryptocurrency and NFT in Bahasa Indonesia for Twitter Large Amount Data Using BERT,” Original Research Paper International Journal of Intelligent Systems and Applications in Engineering IJISAE, vol. 2023, no. 1, pp. 303–309, 2023, Available: https://orcid.org/0000-0001-8722-9868

R. Syahputra and Y. M. Putra, “Implementation Of The C4.5 Algorithm In Describing The Trends Of The Human Consciousness And Unconsciousness,” Journal of Applied Engineering and Technological Science, vol. 3, no. 2, pp. 208–213, 2022, doi : 10.37385/jaets.v3i2.841.

A. Sentimen et al., “Sentiment Analysis of Cryptocurrency Exchange Application on Twitter Using Naïve Bayes Classifier Method,” Jurnal Informatika dan Teknologi Informasi, vol. 20, no. 1, pp. 15–30, 2023, doi: 10.31515/telematika.v20i1.9044.

M. Solehuddin, W. A. Syafei, and R. Gernowo, “Metode Decision Tree untuk Meningkatkan Kualitas Rencana Pelaksanaan Pembelajaran dengan Algoritma C4.5,” Jurnal Penelitian dan Pengembangan Pendidikan, vol. 6, no. 3, pp. 510–519, Oct. 2022, doi: 10.23887/jppp.v6i3.52840.

I. T. Julianto, D. Kurniadi, M. R. Nashrulloh, and A. Mulyani, “TWITTER SOCIAL MEDIA SENTIMENT ANALYSIS AGAINST BITCOIN CRYPTOCURRENCY TRENDS USING RAPIDMINER,” Jurnal Teknik Informatika (Jutif), vol. 3, no. 5, pp. 1183–1187, Oct. 2022, doi: 10.20884/1.jutif.2022.3.5.289.

I. D. Mienye and N. Jere, “A Survey of Decision Trees: Concepts, Algorithms, and Applications,” IEEE Access, vol. 12, pp. 86716–86727, 2024, doi: 10.1109/ACCESS.2024.3416838.

I. Habib Kusuma and N. Cahyono, “Analisis Sentimen Masyarakat Terhadap Penggunaan E-Commerce Menggunakan Algoritma K-Nearest Neighbor,” Jurnal Informatika Jurnal Pengembangan IT, vol. 8, no. 3, pp. 302-307, 2023, doi : 10.30591/jpit.v8i3.5734.

R. Merdiansah and A. Ali Ridha, “Analisis Sentimen Pengguna X Indonesia Terkait Kendaraan Listrik Menggunakan IndoBERT,” Jurnal Ilmu Komputer dan Sistem Informasi (JIKOMSI, vol. 7, no. 1, pp. 221–228, 2024, doi: 10.55338/jikomsi.v7i1.2895.

P. Arsi and R. Waluyo, “Analisis Sentimen Wacana Pemindahan Ibu Kota Indonesia Menggunakan Algoritma Support Vector Machine (SVM),” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 8, no. 1, pp. 147–156, 2021, doi: 10.25126/jtiik.202183944.

D. E. Cahyani and I. Patasik, “Performance comparison of tf-idf and word2vec models for emotion text classification,” Bulletin of Electrical Engineering and Informatics, vol. 10, no. 5, pp. 2780–2788, Oct. 2021, doi: 10.11591/eei.v10i5.3157.

H. Zhou, “Research of Text Classification Based on TF-IDF and CNN-LSTM,” J Phys Conf Ser, vol. 2171, no. 1, Jan. 2022, doi: 10.1088/1742-6596/2171/1/012021.

F. N. H. Alfandi Safira, “Analisis Sentimen Masyarakat Terhadap Paylater Menggunakan Metode Naive Bayes Classifier,” Jurnal Sistem Informasi, vol. 5, no. 1, 2023, doi: 10.31849/zn.v5i1.12856.

A. N. Halim, R. Rudiman, and N. A. Verdikha, “Analisis Sentimen Opini Publik Terhadap Peristiwa Bitcoin Halving Pada Data Teks Twitter Menggunakan Metode Naïve Bayes Dan Pembobotan Fitur TF-IDF,” RIGGS: Journal of Artificial Intelligence and Digital Business, vol. 4, no. 3, pp. 2823–2831, Aug. 2025, doi: 10.31004/riggs.v4i3.2291.

T. A. Assegie, R. L. Tulasi, and N. K. Kumar, “Breast cancer prediction model with decision tree and adaptive boosting,” IAES International Journal of Artificial Intelligence, vol. 10, no. 1, pp. 184–190, 2021, doi: 10.11591/ijai.v10.i1.pp184-190.

T. Johnson and S. Shamroukh, “Predictive modeling of burnout based on organizational culture perceptions among health systems employees: a comparative study using correlation, decision tree, and Bayesian analyses,” Sci Rep, vol. 14, no. 1, Dec. 2024, doi: 10.1038/s41598-024-56771-2.

Y Partogi, A Pasaribu, Sutrisno., “Perancangan Metode Decision Tree Terhadap Sistem Perpustakaan Stmik Kuwera,” Jurnal Sistem Informasi dan Teknologi (SINTEK), vol. 1, no. 2, p. 20, 2021, doi: 10.56995/sintek.v1i2.4.

O. Barukab, A. Ahmad, T. Khan, and M. R. Thayyil Kunhumuhammed, “Analysis of Parkinson’s Disease Using an Imbalanced-Speech Dataset by Employing Decision Tree Ensemble Methods,” Diagnostics, vol. 12, no. 12, Dec. 2022, doi: 10.3390/diagnostics12123000.

S. A. Arnomo, A. A. Fajrin, Y. Siyamto, S. Fairuz, and N. Sadikin, “Evaluasi Model Decision Tree Pada Keputusan Kelayakan Kredit,” Jurnal Desain Dan Analisis Teknologi (JDDAT), vol. 2, no. 2, 2023, doi: 10.58520/jddat.v2i2.39.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Klasifikasi Sentimen Bitcoin Terhadap Komentar Di Aplikasi X Menggunakan Metode Decision Tree C4.5

Dimensions Badge

ARTICLE HISTORY

Published: 2025-12-31

Abstract View: 322 times
PDF Download: 109 times

How to Cite

Indrizal, H. P., Syafria, F., Haerani, E., Vitriani, Y., & Yusra, Y. (2025). Klasifikasi Sentimen Bitcoin Terhadap Komentar Di Aplikasi X Menggunakan Metode Decision Tree C4.5. Bulletin of Computer Science Research, 6(1), 469-478. https://doi.org/10.47065/bulletincsr.v6i1.932

Issue

Section

Articles

Most read articles by the same author(s)

1 2 > >>