Text Classification of Indonesian Translated Hadith Using XGBoost Model and Chi-Square Feature Selection


  • Dita Julaika Putri * Mail Telkom University, Bandung, Indonesia
  • Mahendra Dwifebri Telkom University, Bandung, Indonesia
  • Adiwijaya Adiwijaya Telkom University, Bandung, Indonesia
  • (*) Corresponding Author
Keywords: Text classification; Indonesian translated Hadith; XGBoost; Feature selection; TF-IDF; Chi-Square

Abstract

Aside from the Holy Qur'an, Hadith is indeed a life guide that every Muslims in this world must follow. The technology for classifying texts and sentences, including categorizing hadiths, is evolving in tandem with the advancement of the times. The model used to perform classification has also been developed and optimized such as the use of the XGBoost algorithm which is more optimized than the previous tree algorithm. This can also make it easier for us as Muslims to study hadiths by categorizing them according to recommendations, prohibitions, and information. This study conducted text classification of Indonesian translations of hadith texts based on recommendations, prohibitions, and information using the XGBoost algorithm, TF-IDF for its feature extraction, and Chi-Square for its feature selection. In this study, experiments were carried out by changing the order of the preprocessing process for the stopword removal and stemming parts, performing the classification process with and without using chi-square as a feature selection, and adding parameter value during the modeling process with XGBoost and the highest final results obtained were 79% for accuracy, 79% for precision, 78% for recall and 78% for F1-score.

Downloads

Download data is not yet available.

References

L. Andariati, “HADIS DAN SEJARAH PERKEMBANGANNYA Leni Andariati Leniandariati061996@gmail.com A . PENDAHULUAN Hadis merupakan sumber ajaran Islam kedua setelah al- Qur ’ an . Istilah hadis biasanya mengacu pada segala sesuatu yang disandarkan kepada Nabi Muhammad SAW .,” Diroyah J. Ilmu Hadis, vol. 4, no. Maret, 2020.

Zulfahmi Alwi, A. Fauzi, Rahman, Wasalmi, and Zulfahmi, Studi Ilmu Hadis: Jilid I, vol. 4, no. 1. 2021.

G. Z. Nabiilah, S. Al Faraby, and M. D. Purbolaksono, “KLASIFIKASI TOPIK HADIS TERJEMAHAN BAHASA INDONESIA MENGGUNAKAN K- NEAREST NEIGHBOR DAN CHI-SQUARE,” 2021.

Sondang Tesalonika Simanjuntak, “Analisis Sentimen Pada Layanan Gojek Indonesia Menggunakan Xtreme Gradient Boosting,” 2021.

Z. Maulana, “Sistem Prediksi Tinggi Muka Air Laut Berbasis Model XGBoost Program Studi Sarjana S1 Informatika Fakultas Informatika Universitas Telkom Bandung,” 2021.

S. Lei, K. Xu, Y. Huang, and X. Sha, “An xgboost based system for financial fraud detection,” E3S Web Conf., vol. 214, pp. 1–4, 2020, doi: 10.1051/e3sconf/202021402042.

F. Hamzah, W. Astuti, and M. Dwifebri, “Sentiment Analysis pada movie review menggunakan Feature Selection Chi Square dan Support Vector Machine Classifier,” pp. 1–11, 2021.

H. Biyanesha Putra, “Analisis Sentimen Kepuasan Pelanggan Transportasi Online pada Twitter Menggunakan Support Vector Machine dengan Pembobotan Chisquare.pdf.” Universitas Telkom, 2020.

N. B. Ufairah and W. M. S. T, “Deteksi Depresi dari Media Sosial Twitter Menggunakan Metode Klasifikasi Support Vector Machine,” pp. 1–13, 2021.

D. Vinoth and P. Prabhavathy, “An intelligent machine learning-based sarcasm detection and classification model on social networks,” J. Supercomput., vol. 78, no. 8, pp. 10575–10594, 2022, doi: 10.1007/s11227-022-04312-x.

S. García, J. Luengo, and F. Herrera, Data Preprocessing in Data Mining, vol. 72. 2015. doi: 10.1007/978-3-319-10247-4_8.

F. K. Chandra and Y. Sibaroni, “Klasifikasi Sentiment Analysis pada Review Buku Novel Berbahasa Inggris dengan Menggunakan Metode Support Vector Machine (SVM),” e-Proceeding Eng., vol. Vol.6, no. 3, pp. 10451–10462, 2019.

F. M. Alfath, I. Asror, and Y. R. Murti, “Klasifikasi Emosi pada Tweet di Twitter Menggunakan Metode K-Nearest Neighbor,” 2021.

R. Fadhillah, “RANCANG BANGUN APLIKASI PENYEDIA INFORMASI LAYANAN IMUNICARE PADA PT BIO FARMA (PERSERO) MENGGUNAKAN CHATBOT,” p. 10115277, 2020, [Online]. Available: http://elibrary.unikom.ac.id/id/eprint/2718

J. A. Septian, T. M. Fachrudin, and A. Nugroho, “Analisis Sentimen Pengguna Twitter Terhadap Polemik Persepakbolaan Indonesia Menggunakan Pembobotan TF-IDF dan K-Nearest Neighbor,” J. Intell. Syst. Comput., vol. 1, no. 1, pp. 43–49, 2019, doi: 10.52985/insyst.v1i1.36.

A. Putri, P. Wardani, and M. D. Purbolaksono, “Sentiment Analysis on Beauty Product Review Using Modified Balanced Random Forest Method and Chi-Square,” vol. 4, no. 1, pp. 1–7, 2022, doi: 10.47065/josh.v4i1.2047.

I. Fathur Rahman, “Implementasi Metode Svm, Mlp Dan Xgboost Pada Data Ekspresi Gen,” 2020.

T. Chen, T. He, and M. Benesty, “XGBoost : eXtreme Gradient Boosting,” R Packag. version 0.71-2, pp. 1–4, 2018.

N. N. Pandika Pinata, I. M. Sukarsa, and N. K. Dwi Rusjayanthi, “Prediksi Kecelakaan Lalu Lintas di Bali dengan XGBoost pada Python,” J. Ilm. Merpati (Menara Penelit. Akad. Teknol. Informasi), vol. 8, no. 3, p. 188, 2020, doi: 10.24843/jim.2020.v08.i03.p04.

S. Putatunda and K. Rama, “A comparative analysis of hyperopt as against other approaches for hyper-parameter optimization of XGBoost,” ACM Int. Conf. Proceeding Ser., pp. 6–10, 2018, doi: 10.1145/3297067.3297080.

R. Spencer, F. Thabtah, N. Abdelhamid, and M. Thompson, “Exploring feature selection and classification methods for predicting heart disease,” Digit. Heal., vol. 6, pp. 1–10, 2020, doi: 10.1177/2055207620914777.

T. Wang, Y. Bian, Y. Zhang, and X. Hou, “Classification of earthquakes, explosions and mining-induced earthquakes based on XGBoost algorithm,” Comput. Geosci., vol. 170, no. November 2021, p. 105242, 2023, doi: 10.1016/j.cageo.2022.105242.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Text Classification of Indonesian Translated Hadith Using XGBoost Model and Chi-Square Feature Selection

Dimensions Badge
Article History
Submitted: 2023-01-17
Published: 2023-03-29
Abstract View: 13 times
PDF Download: 26 times
How to Cite
Putri, D., Dwifebri, M., & Adiwijaya, A. (2023). Text Classification of Indonesian Translated Hadith Using XGBoost Model and Chi-Square Feature Selection. Building of Informatics, Technology and Science (BITS), 4(4), 1732−1738. https://doi.org/10.47065/bits.v4i4.2944
Issue
Section
Articles