Arabic Text Classification Using Modified Artificial Bee Colony Algorithm for Sentiment Analysis: The Case of Jordanian Dialect

  • Chapter
  • First Online:
Classification Applications with Deep Learning and Machine Learning Technologies

Abstract

Arab customers give their comments and opinions daily, and it increases dramatically through online reviews of products or services from companies, in both Arabic, and its dialects. This text describes the user’s condition or needs for satisfaction or dissatisfaction, and this evaluation is either negative or positive polarity. Based on the need to work on Arabic text sentiment analysis problem, the case of the Jordanian dialect. The main purpose of this paper is to classify text into two classes: negative or positive which may help the business to maintain a report about service or product. The first phase has tools used in natural language processing; the stemming, stop word removal, and tokenization to filtering the text. The second phase, modified the Artificial Bee Colony (ABC) Algorithm, with Upper Confidence Bound (UCB) Algorithm, to promote the exploitation ability for the minimum dimension, to get the minimum number of the optimal feature, then using forward feature selection strategy by four classifiers of machine learning algorithms: (K-Nearest Neighbors (KNN), Support vector machines (SVM), Naïve-Bayes (NB), and Polynomial Neural Networks (PNN). This proposed model has been applied to the Jordanian dialect database, which contains comments from Jordanian telecom company’s customers. Based on the results of sentiment analysis few suggestions can be provided to the products or services to discontinue or drop, or upgrades it. Moreover, the proposed model is applied to the database of the Algerian dialect, which contains long Arabic texts, in order to see the efficiency of the proposed model for short and long texts. Four performance evaluation criteria were used: precision, recall, f1-score, and accuracy. For a future step, in order to build on or use for the classification of Arabic dialects, the experimental results show that the proposed model gives height accuracy up to 99% by applying to the Jordanian dialect, and a 82% by applying to the Algerian dialect.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
EUR 29.95
Price includes VAT (Thailand)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
EUR 139.09
Price includes VAT (Thailand)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 169.99
Price excludes VAT (Thailand)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info
Hardcover Book
EUR 169.99
Price excludes VAT (Thailand)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Proudfoot, D. (2020). Rethinking turing’s test and the philosophical implications. Minds and Machines, 1–26.‏

    Google Scholar 

  2. Janani, R., & Vijayarani, S. (2020). Automatic text classification using machine learning and optimization algorithms. Soft Computing, 1–17.‏‏

    Google Scholar 

  3. Elnagar, A., Al-Debsi, R., & Einea, O. (2020). Arabic text classification using deep learning models. Information Processing & Management, 57(1), 102121.

    Article  Google Scholar 

  4. Karaboga, D., Gorkemli, B., Ozturk, C., & Karaboga, N. (2014). A comprehensive survey: Artificial bee colony (ABC) algorithm and applications. Artificial Intelligence Review, 42(1), 21–57.

    Article  Google Scholar 

  5. Jiang, D., Yue, X., Li, K., Wang, S., & Guo, Z. (2015). Elite opposition-based artificial bee colony algorithm for global optimization. International Journal of Engineering, 28(9), 1268–1275.

    Google Scholar 

  6. Alzaqebah, A., Smadi, B., & Hammo, B. H. (2020, April). Arabic sentiment analysis based on salp swarm algorithm with S-shaped transfer functions. In 2020 11th International Conference on Information and Communication Systems (ICICS) (pp. 179–184). IEEE.‏

    Google Scholar 

  7. Guellil, I., Adeel, A., Azouaou, F., Benali, F., Hachani, A. E., Dashtipour, K., ... & Hussain, A. (2021). A semi-supervised approach for sentiment analysis of arab (ic+ izi) messages: Application to the algerian dialect. SN Computer Science2(2), 1–18.‏

    Google Scholar 

  8. Thirumoorthy, K., & Muneeswaran, K. (2020). Optimal feature subset selection using hybrid binary Jaya optimization algorithm for text classification. Sādhanā, 45(1), 1–13.

    Article  Google Scholar 

  9. Chantar, H., Mafarja, M., Alsawalqah, H., Heidari, A. A., Aljarah, I., & Faris, H. (2020). Feature selection using binary grey wolf optimizer with elite-based crossover for Arabic text classification. Neural Computing and Applications, 32(16), 12201–12220.

    Article  Google Scholar 

  10. Zheng, W., & **, M. (2020). Comparing multiple categories of feature selection methods for text classification. Digital Scholarship in the Humanities, 35(1), 208–224.

    Google Scholar 

  11. Hussein, O., Sfar, H., Mitrović, J., & Granitzer, M. (2020, December). NLP_Passau at SemEval-2020 Task 12: Multilingual neural network for offensive language detection in English, Danish and Turkish. In Proceedings of the Fourteenth Workshop on Semantic Evaluation (pp. 2090–2097).‏‏

    Google Scholar 

  12. Pan, Y., & Liang, M. (2020, June). chinese text sentiment analysis based on BI-GRU and self-attention. In 2020 IEEE 4th Information Technology, Networking, Electronic and Automation Control Conference (ITNEC) (vol. 1, pp. 1983–1988). IEEE.‏

    Google Scholar 

  13. Rachid, B. A., Azza, H., & Ghezala, H. H. B. (2020, July). Classification of cyberbullying text in Arabic. In 2020 International Joint Conference on Neural Networks (IJCNN) (pp. 1–7). IEEE.‏

    Google Scholar 

  14. Guo, Z., Shi, J., **ong, X., **a, X., & Liu, X. (2019). Chaotic artificial bee colony with elite opposition-based learning. International Journal of Computational Science and Engineering, 18(4), 383–390.

    Article  Google Scholar 

  15. Almani, N., & Tang, L. H. (2020, March). Deep attention-based review level sentiment analysis for Arabic reviews. In 2020 6th Conference on Data Science and Machine Learning Applications (CDMA) (pp. 47–53). IEEE.‏

    Google Scholar 

  16. Hanbay, K. (2021). A new standard error based artificial bee colony algorithm and its applications in feature selection. Journal of King Saud University-Computer and Information Sciences.‏

    Google Scholar 

  17. Chaudhuri, A., & Sahu, T. P. (2021). Feature weighting for naïve Bayes using multi objective artificial bee colony algorithm. International Journal of Computational Science and Engineering, 24(1), 74–88.

    Article  Google Scholar 

  18. Obeid, O., Zalmout, N., Khalifa, S., Taji, D., Oudah, M., Alhafni, B., ... & Habash, N. (2020, May). CAMeL tools: An open source python toolkit for Arabic natural language processing. In Proceedings of the 12th language resources and evaluation conference (pp. 7022–7032).‏

    Google Scholar 

  19. Ayedh, A., Tan, G., Alwesabi, K., & Rajeh, H. (2016). The effect of preprocessing on arabic document categorization. Algorithms, 9(2), 27.

    Article  MathSciNet  Google Scholar 

  20. Chen, P. H. (2020). Essential elements of natural language processing: What the radiologist should know. Academic radiology, 27(1), 6–12.

    Article  Google Scholar 

  21. Vijayaraghavan, S., & Basu, D. (2020). Sentiment analysis in drug reviews using supervised machine learning algorithms. ar**v preprint ar**v:2003.11643.‏

  22. Karaboga, D. (2005). An idea based on honey bee swarm for numerical optimization (vol. 200, pp. 1–10). Technical report-tr06, Erciyes university, engineering faculty, computer engineering department.‏‏

    Google Scholar 

  23. Ghambari, S., & Rahati, A. (2018). An improved artificial bee colony algorithm and its application to reliability optimization problems. Applied Soft Computing, 62, 736–767.

    Article  Google Scholar 

  24. **ang, Z., **ang, C., Li, T., & Guo, Y. (2020). A self-adapting hierarchical actions and structures joint optimization framework for automatic design of robotic and animation skeletons. Soft Computing, 1–14.‏‏

    Google Scholar 

  25. Sharma, A., Sharma, A., Choudhary, S., Pachauri, R. K., Shrivastava, A., & Kumar, D. A. (2020). Review on artificial bee colony and it’s engineering applications.‏‏ Journal of Critical Reviews.

    Google Scholar 

  26. Li, Y. (2020). Comparison of various multi-armed bandit algorithms (ϵ-greedy, ompson sampling and UCB-) to standard A/B testing.‏

    Google Scholar 

  27. Hijazi, M., Zeki, A., & Ismail, A. (2021). Arabic text classification using hybrid feature selection method using chi-square binary artificial bee colony algorithm. Computer Science, 16(1), 213–228.

    Google Scholar 

  28. Zhang, X., Fan, M., Wang, D., Zhou, P., & Tao, D. (2020). Top-k feature selection framework using robust 0–1 integer programming. IEEE Transactions on Neural Networks and Learning Systems.‏

    Google Scholar 

  29. Janani, R., & Vijayarani, S. (2020). Automatic text classification using machine learning and optimization algorithms. Soft Computing, 1–17.‏

    Google Scholar 

  30. Dhar, A., Mukherjee, H., Dash, N. S., & Roy, K. (2021). Text categorization: Past and present. Artificial Intelligence Review, 54(4), 3007–3054.

    Article  Google Scholar 

  31. Sheykhmousa, M., Mahdianpari, M., Ghanbari, H., Mohammadimanesh, F., Ghamisi, P., & Homayouni, S. (2020). Support vector machine vs. random forest for remote sensing image classification: A meta-analysis and systematic review. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing.‏

    Google Scholar 

  32. Saadatfar, H., Khosravi, S., Joloudari, J. H., Mosavi, A., & Shamshirband, S. (2020). A new K-nearest neighbors classifier for big data based on efficient data pruning. Mathematics, 8(2), 286.

    Article  Google Scholar 

  33. Ruan, S., Li, H., Li, C., & Song, K. (2020). Class-specific deep feature weighting for Naïve Bayes text classifiers. IEEE Access, 8, 20151–20159.

    Article  Google Scholar 

  34. Oh, S. K., Pedrycz, W., & Park, B. J. (2003). Polynomial neural networks architecture: Analysis and design. Computers & Electrical Engineering, 29(6), 703–725.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Laith Abualigah .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Habeeb, A. et al. (2023). Arabic Text Classification Using Modified Artificial Bee Colony Algorithm for Sentiment Analysis: The Case of Jordanian Dialect. In: Abualigah, L. (eds) Classification Applications with Deep Learning and Machine Learning Technologies. Studies in Computational Intelligence, vol 1071. Springer, Cham. https://doi.org/10.1007/978-3-031-17576-3_12

Download citation

Publish with us

Policies and ethics

Navigation