Topic Modeling of Quranic Verses using Latent Dirichlet Allocation with English Language

Topic Modeling using LDA

Authors

DOI:

https://doi.org/10.21015/vtse.v12i4.1946

Abstract

This study aims to assess the effectiveness of topic modeling in the English translation of the Holy Quran. Topic modeling is a popular text mining technique for uncovering latent semantic patterns in the collection of textual documents and helps to annotate the documents based on these topics. This study identifies the most significant topics in each document as well as grasping an understanding of the topic distribution throughout the document sets. Different steps are performed to acquire the dominant topics in each document and identify the distribution of topics across documents. In this context, the present research work chose to employ Latent Dirichlet Allocation as an unsupervised approach for topic modeling since there is no requirement for a training phase as hidden topics can be discovered throughout the topic modeling process. For this, the word cloud is generated to understand and interpret the results after pre-processing. A dictionary and corpus are created to extract the features from the dataset using the Bag of Words approach. The results are evaluated by calculating the perplexity and coherence score, where high coherence indicates the goodness of well-structured topic models and low perplexity score indicates the correctness of prediction made by the topic models. Lastly, the visualization step is performed.

References

K. R. Chowdhary and K. R. Chowdhary, "Natural language processing," Fundamentals of Artificial Intelligence, pp. 603-649, 2020. DOI: https://doi.org/10.1007/978-81-322-3972-7_19

VFAST Transactions on Software Engineering, vol. 12, no. 4, 2024.

D. W. Otter, J. R. Medina, and J. K. Kalita, "A survey of the usages of deep learning for natural language processing," IEEE Trans. Neural Netw. Learn. Syst., vol. 32, no. 2, pp. 604-624, 2020. DOI: https://doi.org/10.1109/TNNLS.2020.2979670

D. Khurana, A. Koli, K. Khatter, and S. Singh, "Natural language processing: State of the art, current trends and challenges," Multimedia Tools Appl., vol. 82, no. 3, pp. 3713-3744, 2023. DOI: https://doi.org/10.1007/s11042-022-13428-4

G. M. Al and K. Badruddin, "Assessment of performance of machine learning based similarities calculated for different English translations of the Holy Quran," Int. J. Comput. Sci. Netw. Secur., vol. 22, no. 4, pp. 111-118, 2022.

I. Vayansky and S. A. P. Kumar, "A review of topic modeling methods," Inf. Syst., vol. 94, p. 101582, 2020. DOI: https://doi.org/10.1016/j.is.2020.101582

T. R. Hannigan, R. F. Haans, K. Vakili, H. Tchalian, V. L. Glaser, M. S. Wang, S. Kaplan, and P. D. Jennings, "Topic modeling in management research: Rendering new theory from textual data," Acad. Manag. Ann., vol. 13, no. 2, pp. 586-632, 2019. DOI: https://doi.org/10.5465/annals.2017.0099

C. U. Ghanshyambhai and A. Shah, "Optimizing topic coherence in the Gujarati text topic modeling: A relevant words based approach," Ph.D. Thesis, 2018. DOI: https://doi.org/10.5899/2018/ojids-00015

T. Islam, "Ex-twit: Explainable twitter mining on health data," arXiv preprint arXiv:1906.02132, 2019.

D. Rolliawati, I. Rozas, and K. Khalid, "Text mining approach for topic modeling of corpus Al-Qur’an in Indonesian translation," in Proc. 2nd Int. Conf. Quran and Hadith Studies Information Technology and Media, ICONQUHAS & ICONIST, Bandung, Indonesia, Oct. 2-4, 2018, 2020. DOI: https://doi.org/10.4108/eai.2-10-2018.2295559

E. H. Mohamed and W. H. El-Behaidy, "An ensemble multi-label themes-based classification for Holy Qur’an verses using word2vec embedding," Arabian J. Sci. Eng., vol. 46, no. 4, pp. 3519-3529, 2021. DOI: https://doi.org/10.1007/s13369-020-05184-0

A. Zafar, M. Wasim, S. Zulfiqar, T. Waheed, and A. Siddique, "Transformer-based topic modeling for Urdu translations of the Holy Quran," 2024. DOI: https://doi.org/10.1145/3694967

A. Saeed, H. U. Khan, A. Shankar, T. Imran, D. Khan, M. Kamran, and M. A. Khan, "Topic modeling based text classification regarding Islamophobia using word embedding and transformers techniques," ACM Trans. Asian Low-Resource Lang. Inf. Process., 2023. DOI: https://doi.org/10.1145/3626318

B. Arkok and A. M. Zeki, "Classification of Quranic topics using ensemble learning," in Proc. 8th Int. Conf. Comput. Commun. Eng. (ICCCE), IEEE, 2021, pp. 244-248. DOI: https://doi.org/10.1109/ICCCE50029.2021.9467178

B. S. Arkok and A. M. Zeki, "Classification of Quranic topics based on imbalanced classification," Indones. J. Electr. Eng. Comput. Sci., vol. 22, no. 2, p. 678, 2021. DOI: https://doi.org/10.11591/ijeecs.v22.i2.pp678-687

D. M. Blei, A. Y. Ng, and M. I. Jordan, "Latent Dirichlet allocation," J. Mach. Learn. Res., vol. 3, no. Jan., pp. 993-1022, 2003.

M. R. Choirulfikri, K. M. Lhaksamana, and S. Al Faraby, "A multi-label classification of Al-Quran verses using ensemble method and naïve Bayes," Building Inf. Technol. Sci. (BITS), vol. 3, no. 4, pp. 473-479, 2022. DOI: https://doi.org/10.47065/bits.v3i4.1287

A. S. Aiman, K. M. Lhaksmana, and Others, "Topic classification of Quranic verses in English translation using word centrality measurement," Jurnal RESTI (Rekayasa Sist. Teknol. Inform.), vol. 6, no. 5, pp. 803-809, 2022. DOI: https://doi.org/10.29207/resti.v6i5.4358

B. Arkok and A. M. Zeki, "GOS: A genetic oversampling algorithm for classification of Quranic verses," in Proc. 13th Int. Conf. Inf. Commun. Syst. (ICICS), 2022, pp. 289-293. DOI: https://doi.org/10.1109/ICICS55353.2022.9811224

A. M. Alashqar, "A classification of Quran verses using deep learning," Int. J. Comput. Digital Syst., vol. 16, no. 1, pp. 1041-1053, 2024. DOI: https://doi.org/10.12785/ijcds/160176

M. Alshammeri, E. Atwell, and M. A. Alsalka, "Quranic topic modeling using paragraph vectors," in Intelligent Systems and Applications: Proc. 2020 IntelliSys Conf., Springer, 2021, vol. 2, pp. 218-230. DOI: https://doi.org/10.1007/978-3-030-55187-2_19

G. Mediamer, "Semantic feature analysis for multi-label text classification on topics of the Al-Quran verses," J. Inf. Process. Syst., vol. 20, no. 1, 2024.

M. Alshammeri, E. Atwell, and M. A. Alsalka, "A Siamese transformer-based architecture for detecting semantic similarity in the Quran," Int. J. Islamic Appl. Comput. Sci. Technol.-IJASAT, vol. 9, no. 4, Design for Scientific Renaissance, 2021.

A. Rafea and N. A. GabAllah, "Topic detection approaches in identifying topics and events from Arabic corpora," Procedia Comput. Sci., vol. 142, pp. 270-277, 2018. DOI: https://doi.org/10.1016/j.procs.2018.10.492

U. Chauhan and A. Shah, "Topic modeling using Latent Dirichlet Allocation: A survey," ACM Comput. Surv. (CSUR), vol. 54, no. 7, pp. 1-35, 2021. DOI: https://doi.org/10.1145/3462478

K. Kaggle, "The Holy Quran," Feb. 20, 2017. [Online]. Available: https://www.kaggle.com/zusmani/the-holy-quran.

N. S. Jamil, K. R. Ku-Mahamud, A. Mohamed Din, F. Ahmad, N. Che Pa, W. H. Wan Ishak, R. Din, and F. K. Ahmad, "A subject identification method based on term frequency technique," Int. J. Adv. Comput. Res., vol. 7, no. 30, pp. 103-110, 2017. DOI: https://doi.org/10.19101/IJACR.2017.730020

M. S. M. R. A. Pane and N. S. Huda, "A multi-label classification on topics of Quranic verses in English translation using multinomial Naive Bayes," pp. 481-484, 2018. DOI: https://doi.org/10.1109/ICoICT.2018.8528777

S. Likhitha, B. S. Harish, and H. M. K. Kumar, "A detailed survey on topic modeling for document and short text data," Int. J. Comput. Appl., vol. 178, no. 39, pp. 1-9, 2019. DOI: https://doi.org/10.5120/ijca2019919265

S. Mifrah and E. Benlahmar, "Topic modeling coherence: A comparative study between LDA and NMF models using COVID-19 corpus," Int. J. Adv. Trends Comput. Sci. Eng., pp. 5756-5761, 2020. DOI: https://doi.org/10.30534/ijatcse/2020/231942020

K. M. O. Nahar, M. Ra’ed, M. Al-Shannaq, M. Daradkeh, and R. Malkawi, "Direct text classifier for thematic Arabic discourse documents," Int. Arab J. Inf. Technol., vol. 17, no. 3, pp. 394-403, 2020. DOI: https://doi.org/10.34028/iajit/17/3/13

M. F. Bashri and R. Kusumaningrum, "Sentiment analysis using Latent Dirichlet Allocation and topic polarity wordcloud visualization," in Proc. 5th Int. Conf. Inf. Commun. Technol. (ICoIC7), IEEE, 2017, pp. 1-5. DOI: https://doi.org/10.1109/ICoICT.2017.8074651

F. Miley and A. Read, "Using word clouds to develop proactive learners," J. Scholar. Teach. Learn., pp. 91-110, 2011.

S. Jayashankar and R. Sridaran, "Superlative model using word cloud for short answers evaluation in e-learning," Educ. Inform. Technol., vol. 22, no. 5, pp. 2383-2402, 2017. DOI: https://doi.org/10.1007/s10639-016-9547-0

R. Koulali and A. Meziane, "A comparative study on text representation models for topic detection in Arabic," Comput. Y Sist., vol. 23, no. 3, pp. 683-691, 2019. DOI: https://doi.org/10.13053/cys-23-3-3251

H. Wallach, D. Mimno, and A. McCallum, "Rethinking LDA: Why priors matter," Adv. Neural Inf. Process. Syst., vol. 22, 2009.

B. Carron-Arthur, J. Reynolds, K. Bennett, A. Bennett, and K. M. Griffiths, "What’s all the talk about? Topic modeling in a mental health internet support group," BMC Psychiatry, vol. 16, no. 1, pp. 1-12, 2016. DOI: https://doi.org/10.1186/s12888-016-1073-5

J. H. Lau, D. Newman, and T. Baldwin, "Machine reading tea leaves: Automatically evaluating topic coherence and topic model quality," in Proc. 14th Conf. Eur. Chapter Assoc. Comput. Linguistics, 2014, pp. 530-539. DOI: https://doi.org/10.3115/v1/E14-1056

H. Amoualian, W. Lu, E. Gaussier, G. Balikas, M. R. Amini, and M. Clausel, "Topical coherence in LDA-based models through induced segmentation," in Proc. 55th Annu. Meet. Assoc. Comput. Linguistics, vol. 1, pp. 1799-1809, 2017. DOI: https://doi.org/10.18653/v1/P17-1165

J. Le, M. Weber, and D. Wild, "Topic modeling of COVID-19 open research dataset using latent Dirichlet allocation," 2020.

Downloads

Published

2024-12-31

How to Cite

Jamshaid, K., Farooq, H., & Siddique, M. T. (2024). Topic Modeling of Quranic Verses using Latent Dirichlet Allocation with English Language: Topic Modeling using LDA. VFAST Transactions on Software Engineering, 12(4), 239–251. https://doi.org/10.21015/vtse.v12i4.1946