journal article·2024-11-14Open access

Revealing the Next Word and Character in Arabic: An Effective Blend of Long Short-Term Memory Networks and ARABERT

Fawaz S. Al-Anzi, S. T. Bibin Shalini

Applied Sciences· Volume 14· Issue 22

Abstract

Arabic raw audio datasets were initially gathered to produce a corresponding signal spectrum, which was further used to extract the Mel-Frequency Cepstral Coefficients (MFCCs). The pronunciation dictionary, language model, and acoustic model were further derived from the MFCCs’ features. These output data were processed into Baidu’s Deep Speech model (ASR system) to attain the text corpus. Baidu’s Deep Speech model was implemented to precisely identify the global optimal value rapidly while preserving a low word and character discrepancy rate by attaining an excellent performance in isolated and end-to-end speech recognition. The desired outcome in this work is to forecast the next word and character in a sequential and systematic order that applies under natural language processing (NLP). This work combines the trained Arabic language model ARABERT with the potential of Long Short-Term Memory (LSTM) networks to predict the next word and character in an Arabic text. We used the pre-trained ARABERT embedding to improve the model’s capacity and, to capture semantic relationships within the language, we educated LSTM + CNN and Markov models on Arabic text data to assess the efficacy of this model. Python libraries such as TensorFlow, Pickle, Keras, and NumPy were used to effectively design our development model. We extensively assessed the model’s performance using new Arabic text, focusing on evaluation metrics like accuracy, word error rate, character error rate, BLEU score, and perplexity. The results show how well the combined LSTM + ARABERT and Markov models have outperformed the baseline models in envisaging the next word or character in the Arabic text. The accuracy rates of 64.9% for LSTM, 74.6% for ARABERT + LSTM, and 78% for Markov chain models were achieved in predicting the next word, and the accuracy rates of 72% for LSTM, 72.22% for LSTM + CNN, and 73% for ARABERET + LSTM models were achieved for the next-character prediction. This work unveils a novelty in Arabic natural language processing tasks, estimating a potential future expansion in deriving a precise next-word and next-character forecasting, which can be an efficient utility for text generation and machine translation applications.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Topic Modeling · Natural Language Processing Techniques · Handwritten Text Recognition Techniques

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

Affiliations

Department of Computer Engineering, University Kuwait, Kuwait City P.O. Box 5969, Kuwait

Funding

Kuwait University

References (33)

Show source-provided references
1. Improved noise-resilient isolated words speech recognition using piecewise differentiation10.1142/S0218348X22402277 ↗
2. Synopsis on Arabic speech recognition10.1016/j.asej.2021.06.020 ↗
3. Antoun, W., Baly, F., and Hajj, H. (2020). Arabert: Transformer-based model for arabic language understanding. arXiv.
4. Arabic text summarization using arabert model using extractive text summarization approach
5. Understanding adaptive, multiscale temporal integration in deep speech recognition systems
6. Algihab, W., Alawwad, N., Aldawish, A., and AlHumoud, S. (2009). Arabic speech recognition with deep learning: A review, in Social Computing and Social Media. Design. Human Behavior and Analytics: 11th International Conference, SCSM 2019, Held as Part of the 21st HCI International Conference, Orlando, FL, USA, 26–31 July 2019, Springer.10.1007/978-3-030-21902-4_2 ↗
7. A review on automatic speech recognition architecture and approaches
8. Belinkov, Y., Ali, A., and Glass, J. (2019). Analyzing phonetic and graphemic representations in end-to-end automatic speech recognition. arXiv.10.21437/Interspeech.2019-2599 ↗
9. Amodei, D., Ananthanarayanan, S., Anubhai, R., Bai, J., Battenberg, E., Case, C., Casper, J., Catanzaro, B., Cheng, Q., and Chen, G. (2016). Deep speech 2: End-to-end speech recognition in english and mandarin. International Conference on Machine Learning, PMLR.
10. End-to-end bengali speech recognition using deepspeech
11. LTL-UDE at Low-Resource Speech-to-Text Shared Task: Investigating Mozilla DeepSpeech in a low-resource setting
12. Khatatneh, K. (2014). A novel Arabic Speech Recognition method using neural networks and Gaussian Filtering. Int. J. Electr. Electron. Comput. Syst., 19.
13. Next Words Prediction Using Recurrent NeuralNetworks10.1051/itmconf/20214003034 ↗
14. Sharma, R., Goel, N., Aggarwal, N., Kaur, P., and Prakash, C. (2019, January 26–28). Next word prediction in hindi using deep learning techniques. Proceedings of the 2019 International Conference on data science and Engineering (ICDSE), Patna, India.10.1109/ICDSE47409.2019.8971796 ↗
15. Labeau, M., and Allauzen, A. (2017, January 7). Character and subword-based word representation for neural language modeling prediction. Proceedings of the First Workshop on Subword and Character Level Models in NLP, Copenhagen, Denmark.10.18653/v1/W17-4101 ↗
16. Fast ML-based next-word prediction for hybrid languages10.1016/j.iot.2024.101064 ↗
17. An Approach for a Next-Word Prediction for Ukrainian Language10.1155/2021/5886119 ↗
18. A RNN based Approach for next word prediction in Assamese Phonetic Transcription10.1016/j.procs.2018.10.359 ↗
19. Context-based Bengali Next Word Prediction: A Comparative Study of Different Embedding Methods10.3329/dujase.v7i2.65088 ↗
20. Language Modeling for Morphologically Rich Languages: Character-Aware Modeling for Word-Level Prediction10.1162/tacl_a_00032 ↗
21. Shi, Z., Shi, M., and Li, C. (2017, January 24–26). The prediction of character based on recurrent neural network language model. Proceedings of the 2017 IEEE/ACIS 16th International Conference on Computer and Information Science (ICIS), Wuhan, China.10.1109/ICIS.2017.7960065 ↗
22. Manaye, W. (2020). Designing Geez Next Word Prediction Model Using Statistical Approach. [Ph.D. Thesis, Bahir Dar University].
23. Lahrache, F., and Djebrit, S. (2020). Next Word Prediction Based on De Ep Learning. [Ph.D. Thesis, University of Ghardaia].
24. Eisape, T., Zaslavsky, N., and Levy, R. (2020). Cloze Distillation: Improving Neural Language Models with Human Next-Word Prediction, Association for Computational Linguistics (ACL).10.18653/v1/2020.conll-1.49 ↗
25. Next word prediction for Urdu language using deep learning models10.1016/j.csl.2024.101635 ↗
26. Next word prediction based on the N-gram model for Kurdish Sorani and Kurmanji10.1007/s00521-020-05245-3 ↗
27. Berhe, H. (2020). Next Word Prediction for Word Autocomplete in Tigrigna Text Entry. [Ph.D. Thesis, Bahir Dar University].
28. Tiwari, A., Sengar, N., and Yadav, V. (2022, January 23–25). Next word prediction using deep learning. Proceedings of the 2022 IEEE Global Conference on Computing, Power and Communication Technologies (GlobConPT), New Delhi, India.10.1109/GlobConPT57482.2022.9938153 ↗
29. Soam, M., and Thakur, S. (2022, January 27–28). Next word prediction using deep learning: A comparative study. Proceedings of the 2022 12th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Noida, India.10.1109/Confluence52989.2022.9734151 ↗
30. Next word prediction using lstm
31. Endalie, D., Haile, G., and Taye, W. (2022). Bi-directional long short term memory-gated recurrent unit model for Amharic next word prediction. PLoS ONE, 17.10.1371/journal.pone.0273156 ↗
32. Al-Anzi, F.S., and Shalini, S.B. (2024, January 23–25). Continuous Arabic Speech Recognition Model with N-gram Generation Using Deep Speech. Proceedings of the 2024 International Congress on Human-Computer Interaction, Optimization and Robotic Applications (HORA), Istanbul, Turkiye.10.1109/HORA61326.2024.10550477 ↗
33. An efficient sentiment analysis based deep learning classification model to evaluate treatment quality10.22452/mjcs.vol35no1.1 ↗