Klasifikasi Teks Multi Label Pada Hadis Dalam Terjemahanbahasa Indonesia Berdasarkan Anjuran, Larangan Dan Informasi Menggunakan Tf-idf Dan Knn
DOI:
https://doi.org/10.34818/eoe.v6i2.9929Abstract
Abstrak Hadis adalah segala sesuatu yang dinisbatkan kepada Nabi Muhammad SAW baik berupa perkataan, berbuatan atau sikap. Hadis merupakan pedoman hidup kedua bagi umat muslim setelah AL Qur’an. Sebagai pedoman hidup, umat muslim sangat diharuskan mempelajari Hadis. Melakukan kategorisasi pada Hadis adalah salah satu cara untuk mempermudah dalam mempelajari Hadis. Penelitian ini bertujuan untuk melakukan klasifikasi terhadap Hadis. Hadis yang digunakan adalah Hadis shahih Imam Bukhari. Klasifikasi yang dilakukan adalah klasifikasi multi label. Kelas yang digunakan adalah kelas anjuran, larangan dan informasi. Ekstraksi fitur yang digunakan adalah N-Gram dengan nilai n = 1 (unigram) dan n = 2 (bigram). Sedangkan fitur seleksi yang digunakan adalah TF-IDF. Klasifikasi digunakan menggunakan metode k-NN. Skenario percobaan dilakukan dengan mencoba beberapa nilai k pada k-NN, penambahan threshold pada df (document frequency) untuk perhitungan TF-IDF dan melakukan beberapa perubahan pada tahap preprocessing. Untuk mendapatkan hasil evaluasi yang dapat dipercaya, digunakan cross validation. Sedangkan untuk evaluasi dari sistem yang telah dibangun, dihitung menggunakan nilai F1-score. Berdasarkan beberapa percobaan yang dilakukan didapatkan nilai F1-score terbaik sebesar 0.853. Hasil tersebut menunjukan metode k-NN lebih baik dibanding metode ANN dan metode baseline pada klasifikasi hadis multi label.
Kata kunci : Klasifikasi multi label, Hadis, k-NN, TF-IDF, N-gram
Abstract Hadith is everything that is attributed to the Prophet Muhammad either in the form of words, works or attitudes. Hadith is the second life guide for Muslims after the Qur'an. As a way of life, Muslims are strongly required to visit the Hadith. Categorizing the Hadith is one of many way to ease people learn Hadith. This study aims to make a classification of the Hadith. The hadith used is the Imam Bukhari Sahih Hadith. The classification carried out is a multi label classification. The class used is a class of recommendations, prohibitions and information. Feature extraction used is N-Gram with a value of n = 1 (unigram) and n = 2 (bigram). While the feature selection used is TF-IDF. For classification method used is the k-NN method. The trial scenario is done by trying several k values on k-NN, the threshold on df (document frequency) for calculating TF-IDF and do some changed at the preprocessing stage. To get a reliable evaluation result, cross validation used. Evaluation of the system that has been built, it is calculated using the F1-score. Based on some of experiments conducted, the best F1-score was 0.853. These results indicate that the k-NN method is better than the ANN method and the baseline method in the multi label hadith classification.
Keywords: Multi label classification, Hadith, kNN, TF-IDF, N-gram
Downloads
References
[1] Zein, Muhammad Ma’shum, 2008, Ummul Hadits dan Musthalah Hadits, Darul Hikmah.
[2] Naji Al-Kabi, M., Kanaan, G., Al-Shalabi, R., Al-Sinjilawi, S. I., dan AlMustafa, R. S., 2005, Al-Hadith text classifier, Journal of Applied Sciences 5 (pp. 584- 587).
[3] Bruno Trstenjak, Sasa Mikac dan Dzenana Donko, 2014, KNN with TF-IDF Based Framework for Text Categorization, Procedia Engineering 69 (pp. 1356-1364). Elsevier.
[4] Al Faraby, S., Jasin, E.R.R. dan Kusumaningrum, A., 2018, Classification of hadith into positive suggestion, negative suggestion, and information. In Journal of Physics: Conference Series (Vol. 971, No. 1, p. 012046). IOP Publishing.
[5] Fauzan, H., Adiwijaya, A. and Al-Faraby, S., 2018. Pengklasifikasian Topik Hadits Terjemahan Bahasa Indonesia Menggunakan Latent Semantic Indexing dan Support Vector Machine. JURNAL MEDIA INFORMATIKA BUDIDARMA, 2(4), (pp.131-139).
[6] Muhammad Romi Ario Utomo, Yuliant Sibaroni, 2018, Text Classification of British English and American English Using Support Vector Machine, ICoICT.
[7] Min-Ling Zhang dan Zhi-Hua Zhou, 2013, A Review on Multi-Label Learning Algorithms, IEEE.
[8] Bakar, M.Y.A., Adiwijaya, Al Faraby, S., 2018, Multi-Label Topic Classification of Hadith of Bukhari (Indonesian Language Translation) Using Information Gain and Backpropagation Neural Network. In 2018 International Conference on Asian Language Processing (IALP) (pp. 344-350). IEEE.
[9] Gugun Mediamer, Adiwijaya dan Al Faraby, S., 2018, Development of Rule-Based Feature Extraction in Multilabel Text Classification for Bukhari Hadith (Indonesian Translation), ICADEIS.
[10] J. K. Srict, 2015, A Study of Text Classification Natural Language Processing Algorithms for Indian Languages, VNSGU Journal Of Science and Technology vol. 4, no. 1 (pp. 163–164). VNSGU.
[11] L. H. Patil dan M. Atique, 2013, A novel approach for feature selection method TF-IDF in document clustering, in Proceedings of the 2013 3rd IEEE International Advance Computing Conference, IACC.
[12] Y. Yang dan J. O. Pedersen, 1997, A Comparative Study on Feature Selection in Text Categorization, Proceedings of the Fourteenth International Conference on Machine Learning (pp. 412–420).
[13] Suyanto, 2017, Data Mining Untuk Klasifikasi dan Klasterisasi Data, 1st ed. Penerbit Informatika (pp. 211-212).
[14] Adiwijaya, Aulia, M.N., Mubarok, M.S., Novia, W.U. and Nhita, F., 2017, May. A comparative study of MFCC-KNN and LPC-KNN for hijaiyyah letters pronounciation classification system. In 2017 5th International Conference on Information and Communication Technology (ICoIC7) (pp. 1-5). IEEE.
[15] Jose M. Moyano, Eva L. Gibaja, Krzysztof J. Cios, Sebastian Ventura, 2018, Review of Ensembles of Multi-Label Classifier: Models, Experimental Study and Prospects¸ Information Fusion Vol 44 (pp. 11).
[16] Eva Gibaja dan Sebastian Ventura, 2015, A Tutorial on Multi-Label Learning, ACM Computing Surveys.



