journal article·2024-12-05Open access

Exploring the Effects of Pre-Processing Techniques on Topic Modeling of an Arabic News Article Data Set

Haya Alangari, Nahlah Algethami

Applied Sciences· Volume 14· Issue 23

Abstract

This research investigates the impacts of pre-processing techniques on the effectiveness of topic modeling algorithms for Arabic texts, focusing on a comparison between BERTopic, Latent Dirichlet Allocation (LDA), and Non-Negative Matrix Factorization (NMF). Using the Single-label Arabic News Article Data set (SANAD), which includes 195,174 Arabic news articles, this study explores pre-processing methods such as cleaning, stemming, normalization, and stop word removal, which are crucial processes given the complex morphology of Arabic. Additionally, the influence of six different embedding models on the topic modeling performance was assessed. The originality of this work lies in addressing the lack of previous studies that optimize BERTopic through adjusting the n-gram range parameter and combining it with different embedding models for effective Arabic topic modeling. Pre-processing techniques were fine-tuned to improve data quality before applying BERTopic, LDA, and NMF, and the performance was assessed using metrics such as topic coherence and diversity. Coherence was measured using Normalized Pointwise Mutual Information (NPMI). The results show that the Tashaphyne stemmer significantly enhanced the performance of LDA and NMF. BERTopic, optimized with pre-processing and bi-grams, outperformed LDA and NMF in both coherence and diversity. The CAMeL-Lab/bert-base-arabic-camelbert-da embedding yielded the best results, emphasizing the importance of pre-processing in Arabic topic modeling.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Topic Modeling · Text and Document Classification Technologies · Advanced Text Analysis Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Computer Science Department, College of Computing and Informatics, Saudi Electronic University, Riyadh 1167, Saudi Arabia

Funding

Nahlah Algethami

References (29)

Show source-provided references
1. Arabic Natural Language Processing: Challenges and Solutions10.1145/1644879.1644881 ↗
2. A bibliometric analysis of topic modelling studies (2000–2017)10.1177/0165551519877049 ↗
3. An overview of topic modeling and its current applications in bioinformatics10.1186/s40064-016-3252-8 ↗
4. Latent dirichlet allocation
5. Blei, D.M., and Lafferty, J.D. (2006, January 25–29). Dynamic topic models. Proceedings of the 23rd International Conference on Machine Learning, Pittsburgh, PA, USA.10.1145/1143844.1143859 ↗
7. Algorithms for non-negative matrix factorization
8. Miao, Y., Yu, L., and Blunsom, P. (2016, January 19–24). Neural variational inference for text processing. Proceedings of the International Conference on Machine Learning (PMLR), New York, NY, USA.
9. Grootendorst, M. (2022). BERTopic: Neural topic modeling with a class-based TF-IDF procedure. arXiv.
10. Topic modeling in embedding spaces10.1162/tacl_a_00325 ↗
11. Devlin, J. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv.
12. Topic Modeling on System Thinking Themes Using Latent Dirichlet Allocation, Non-Negative Matrix Factorization and BERTopic
13. Antoun, W., Baly, F., and Hajj, H. (2020). Arabert: Transformer-based model for arabic language understanding. arXiv.
14. The impact of weighting schemes and stemming process on topic modeling of arabic long and short texts10.1145/3405843 ↗
15. Topic modeling algorithms and applications: A survey10.1016/j.is.2022.102131 ↗
16. BERT for Arabic topic modeling: An experimental study on BERTopic technique10.1016/j.procs.2021.05.096 ↗
17. Al-Khalifa, S., Alhumaidhi, F., Alotaibi, H., and Al-Khalifa, H.S. (2023). ChatGPT across Arabic Twitter: A Study of Topics, Sentiments, and Sarcasm. Data, 8.10.3390/data8110171 ↗
18. Berrimi, M., Oussalah, M., Moussaoui, A., and Saidi, M. (2023). A Comparative Study of Effective Approaches for Arabic Text Classification. SSRN Electron. J., Available online: https://ssrn.com/abstract=4361591.10.2139/ssrn.4361591 ↗
19. Sanad: Single-label arabic news articles dataset for automatic text categorization10.1016/j.dib.2019.104076 ↗
20. The effects of pre-processing techniques on Arabic text classification
21. Arabic stemming without a root dictionary
22. Tashaphyne0. 4: A new arabic light stemmer based on rhyzome modeling approach10.1007/s10791-023-09429-y ↗
23. Nithyashree, V. (2024, October 15). What Are N-Grams and How to Implement Them in Python?. Available online: https://www.analyticsvidhya.com/blog/2021/09/what-are-n-grams-and-how-to-implement-them-in-python/.
24. Abdelrazek, A., Medhat, W., Gawish, E., and Hassan, A. (2022, January 21–24). Topic Modeling on Arabic Language Dataset: Comparative Study. Proceedings of the International Conference on Model and Data Engineering, Cairo, Egypt.10.1007/978-3-031-23119-3_5 ↗
25. Latent Dirichlet allocation (LDA) and topic modeling: Models, applications, a survey10.1007/s11042-018-6894-4 ↗
26. Experimental explorations on short text topic mining between LDA and NMF based Schemes10.1016/j.knosys.2018.08.011 ↗
27. Egger, R., and Yu, J. (2022). A topic modeling comparison between lda, nmf, top2vec, and bertopic to demystify twitter posts. Front. Sociol., 7.10.3389/fsoc.2022.886498 ↗
28. Chang, J., Gerrish, S., Wang, C., Boyd-Graber, J., and Blei, D. (2009, January 7–10). Reading tea leaves: How humans interpret topic models. Proceedings of the Advances in Neural Information Processing Systems 22 (NIPS 2009), Vancouver, BC Canada.
29. Biniz, M. (2018). DataSet for Arabic Classification. Mendeley Data, 2.