Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

Scientific Reports

Quantum computing and machine learning for Arabic language sentiment classification in social media

Ahmed Omar, Tarek Abd El‐Hafeez

Published Oct 12, 2023• 59 citations
Publisher

Abstract

With the increasing amount of digital data generated by Arabic speakers, the need for effective and efficient document classification techniques is more important than ever. In recent years, both quantum computing and machine learning have shown great promise in the field of document classification. However, there is a lack of research investigating the performance of these techniques on the Arabic language. This paper presents a comparative study of quantum computing and machine learning for two datasets of Arabic language document classification. In the first dataset of 213,465 Arabic tweets, both classic machine learning (ML) and quantum computing approaches achieve high accuracy in sentiment analysis, with quantum computing slightly outperforming classic ML. Quantum computing completes the task in approximately 59 min, slightly faster than classic ML, which takes around 1 h. The precision, recall, and F1 score metrics indicate the effectiveness of both approaches in predicting sentiment in Arabic tweets. Classic ML achieves precision, recall, and F1 score values of 0.8215, 0.8175, and 0.8121, respectively, while quantum computing achieves values of 0.8239, 0.8199, and 0.8147, respectively. In the second dataset of 44,000 tweets, both classic ML (using the Random Forest algorithm) and quantum computing demonstrate significantly reduced processing times compared to the first dataset, with no substantial difference between them. Classic ML completes the analysis in approximately 2 min, while quantum computing takes approximately 1 min and 53 s. The accuracy of classic ML is higher at 0.9241 compared to 0.9205 for quantum computing. However, both approaches achieve high precision, recall, and F1 scores, indicating their effectiveness in accurately predicting sentiment in the dataset. Classic ML achieves precision, recall, and F1 score values of 0.9286, 0.9241, and 0.9249, respectively, while quantum computing achieves values of 0.92456, 0.9205, and 0.9214, respectively. The analysis of the metrics indicates that quantum computing approaches are effective in identifying positive instances and capturing relevant sentiment information in large datasets. On the other hand, traditional machine learning techniques exhibit faster processing times when dealing with smaller dataset sizes. This study provides valuable insights into the strengths and limitations of quantum computing and machine learning for Arabic document classification, emphasizing the potential of quantum computing in achieving high accuracy, particularly in scenarios where traditional machine learning techniques may encounter difficulties. These findings contribute to the development of more accurate and efficient document classification systems for Arabic data.

DOI
10.1038/s41598-023-44113-7

Related papers

Quantum-Enhanced Sentiment Analysis: Bridging NLP and Quantum Computing for Superior Text Classification

J Boopalamani, Pranav Raj S, Prasanna Kumar G

This research introduces a new paradigm for sentiment analysis on patient medication reviews through the application of quantum computing to improve machine learning models. A pre-existing dataset of medication reviews from the UCI Machine Learning repository was utilized, involving Quantum Natural Language Processing (QNLP) techniques, namely the application of quantum embeddings produced by quantum circuits to improve the performance of sentiment classification. Experimental findings indicate that improved models through quantum techniques, like the Quantum Random Forest, outperform conventional models in terms of accuracy and precision. These improvements are ascribed to quantum embeddings’ capacity to efficiently represent complex linguistic patterns in high-dimensional data. Additionally, the study uses robust validation techniques including performance benchmarking and cross-validation to guarantee reliability. Through a scalable and context-aware framework for natural language comprehension, this study highlights the revolutionary potential of QNLP in improving sentiment analysis in the healthcare industry.

International Conference on Intelligent Sustainable Systems (ICISS)•Mar 12, 2025•0 citations

SentiQNF: A Novel Approach to Sentiment Analysis Using Quantum Algorithms and Neuro-Fuzzy Systems

Kshitij Dave, Nouhaila Innan, Bikash K. Behera +3 more

Sentiment analysis (SA) is an essential component of natural language processing (NLP) and is used to analyze sentiments, attitudes, and emotional tones in various contexts. It provides valuable insights into public opinion, customer feedback, and user experiences. Researchers have developed various classical machine learning (ML) and neuro-fuzzy approaches to address the exponential growth of data and the complexity of language structures in SA. However, these approaches often fail to determine the optimal number of clusters, interpret results accurately, handle noise or outliers efficiently, and scale effectively to high-dimensional data. In addition, they are frequently insensitive to input variations. In this article, we propose a novel hybrid approach for SA called the quantum fuzzy neural network (QFNN), which leverages quantum properties and incorporates a fuzzy layer to overcome the limitations of classical SA algorithms. In this study, we test the proposed approach on two Twitter datasets: the Coronavirus Tweets Dataset (CVTD) and the General Sentimental Tweets Dataset (GSTD), and compare it with classical and hybrid algorithms. The results show that QFNN outperforms all classical, quantum, and hybrid algorithms, achieving 100% and 90% accuracy in the case of CVTD and GSTD, respectively. Furthermore, QFNN demonstrates its robustness against six different noise models, providing the potential to tackle the computational complexity associated with SA on a large scale in a noisy environment. The proposed approach expedites sentiment data processing and precisely analyzes different forms of textual data, thus improving sentiment classification and insights associated with SA.

arXiv:2412.12731•IEEE Transactions on Computational Social Systems•Aug 7, 2025•13 citations

Experimentation on Various Sentiment Classification Models in Quantum Natural Language Processing

Muddada Muralikrishna, S Nandini, Hima Keerthi Sagiraju +2 more

Quantum computers has the capacity to enhance the speed of intricate calculations, achieve parallelism via superpositions, and effectively process vast amounts of data. In addition, the domain of natural language processing (NLP) is swiftly drawing the attention of academics and engineers that want to construct more extensive computational models for NLP. Hence, the use of quantum technology in NLP endeavours, particularly in sentiment categorization, has promising prospects for further advancement. In this research work, a detailed analysis of different sentiment classification methods are investigated that are interpreted with quantum computing models. To be precise the Quantum Long Short Term Memory (QLSTM) and Quantum Support Vector Machines (QSVM) are examined to determine the efficiency among the models. The results are simulated in Qiskit simulator and real time quantum computer Qiskit_ibm_osaka to evaluate the examined models. The results shows the significance of the experimentation and it is proven using Accuracy, precision and recall as performance metrices. On an average, in terms of accuracy the proposed model outperforms existing methods with 8.9%, On precision the proposed model outperforms 11.1% compared to existing methods. And with respect to recall the proposed model outperforms 6.7% compared to existing methods.

International Conference on Augmented Reality, Intelligent Systems, and Industrial Automation (ARIIA)•Dec 20, 2024•0 citations

Comparative Study of Traditional Machine Learning and Quantum Computing in Natural Language Processing: A Case Study on Sentiment Analysis

Yang Li, Thatsanee Charoenporn, Virach Sornlertlamvanich

This research paper primarily investigates the application and performance of traditional machine learning and quantum computing in Natural Language Processing (NLP), with a focus on sentiment analysis tasks. By comparing the accuracy, efficiency, and scalability of these two technologies, the study aims to reveal the potential of quantum computing in handling complex NLP tasks and to provide data support for future technology choices and research directions. The paper also details the use of 1M DB and NLTK movie review datasets for experiments and discusses the experimental design, performance evaluation results, and technical challenges faced by both methods.

IEEE International Symposium on Consumer Electronics (ISCE)•Aug 13, 2024•1 citation

An Accuracy Analysis Of Classical And Quantum Machine Learning Algorithms Using Different Datasets

Prashanthi Bhaskaran, S. Prasanna

Classical machine learning has practical significant advancements and extensive acceptance across various domains, enabling the growth of precise predictive models. The purpose of this work is to examine the accuracy gained by various machine learning algorithms, both classical and quantum. In addition, the study delves into the fundamental ideas and principles that form the backbone of quantum machine learning algorithms, such as quantum data representation, quantum feature mapping, and quantum optimization strategies. Experiments use classical machine learning models trained and tested on traditional hardware to measure evaluation metrics like classification accuracy, precision, recall, and F1-score for quantum machine learning models executed on quantum computing platforms or simulators. In quantum SVM, the seed dataset obtained 100% accuracy, and the supermarket dataset obtained 69% accuracy when compared to classical SVM. The findings imply that, under some conditions, quantum machine learning algorithms show the capacity to beat their conventional counterparts in terms of accuracy.

International Conference on Networking and Communications (ICNWC)•Apr 2, 2024•4 citations

Comparing Classical ML Models with Quantum ML Models with Parametrized Circuits for Sentiment Analysis Task

Nisheeth Joshi, Pragya Katyayan, Syed Afroz Ahmed

Abstract This paper studies the performance of classical and quantum machine learning models for sentiment analysis task. Here, popular machine learning algorithms viz support vector machine (SVM), gradient boosting (GB) and random forest (RF) are compared with variational quantum classifier (VQC) using two sets of parameterized circuits viz EfficientSU2 and RealAmplitudes. For experimenting with VQC, IBM Quantum Experience and IBM Qiskit were used while for classical machine learning models, scikit-learn was used. It was found that the performance of the VQC was slightly better than popular machine learning algorithms. For our experiments, we have used popular restaurant sentiment analysis dataset. The extracted features from this dataset and then after applying PCA reduced the feature set into 5 features. Quantum ML models were trained using 100 epochs and 150 epochs. Overall, four Quantum ML models were trained and three Classical ML models were trained. The performance of the trained models was evaluated using standard evaluation measures viz, Accuracy, Precision, Recall, F-Score etc. In all the cases EfficientSU2 based model with 100 Epochs performed better than all other models. Efficient SU2 model with 100 epochs produced an accuracy of 74.5% and an F-Score of 0.7605 which were highest across all the trained models.

Journal of Physics Conference Series•Apr 1, 2021•7 citations
With the increasing amount of digital data generated by Arabic speakers, the need for effective and efficient document classification techniques is more important than ever. In recent years, both quantum computing and machine learning have shown great promise in the field of document classification. However, there is a lack of research investigating the performance of these techniques on the Arabic language. This paper presents a comparative study of quantum computing and machine learning for two datasets of Arabic language document classification. In the first dataset of 213,465 Arabic tweets, both classic machine learning (ML) and quantum computing approaches achieve high accuracy in sentiment analysis, with quantum computing slightly outperforming classic ML. Quantum computing completes the task in approximately 59 min, slightly faster than classic ML, which takes around 1 h. The precision, recall, and F1 score metrics indicate the effectiveness of both approaches in predicting sentiment in Arabic tweets. Classic ML achieves precision, recall, and F1 score values of 0.8215, 0.8175, and 0.8121, respectively, while quantum computing achieves values of 0.8239, 0.8199, and 0.8147, respectively. In the second dataset of 44,000 tweets, both classic ML (using the Random Forest algorithm) and quantum computing demonstrate significantly reduced processing times compared to the first dataset, with no substantial difference between them. Classic ML completes the analysis in approximately 2 min, while quantum computing takes approximately 1 min and 53 s. The accuracy of classic ML is higher at 0.9241 compared to 0.9205 for quantum computing. However, both approaches achieve high precision, recall, and F1 scores, indicating their effectiveness in accurately predicting sentiment in the dataset. Classic ML achieves precision, recall, and F1 score values of 0.9286, 0.9241, and 0.9249, respectively, while quantum computing achieves values of 0.92456, 0.9205, and 0.9214, respectively. The analysis of the metrics indicates that quantum computing approaches are effective in identifying positive instances and capturing relevant sentiment information in large datasets. On the other hand, traditional machine learning techniques exhibit faster processing times when dealing with smaller dataset sizes. This study provides valuable insights into the strengths and limitations of quantum computing and machine learning for Arabic document classification, emphasizing the potential of quantum computing in achieving high accuracy, particularly in scenarios where traditional machine learning techniques may encounter difficulties. These findings contribute to the development of more accurate and efficient document classification systems for Arabic data.
This research introduces a new paradigm for sentiment analysis on patient medication reviews through the application of quantum computing to improve machine learning models. A pre-existing dataset of medication reviews from the UCI Machine Learning repository was utilized, involving Quantum Natural Language Processing (QNLP) techniques, namely the application of quantum embeddings produced by quantum circuits to improve the performance of sentiment classification. Experimental findings indicate that improved models through quantum techniques, like the Quantum Random Forest, outperform conventional models in terms of accuracy and precision. These improvements are ascribed to quantum embeddings’ capacity to efficiently represent complex linguistic patterns in high-dimensional data. Additionally, the study uses robust validation techniques including performance benchmarking and cross-validation to guarantee reliability. Through a scalable and context-aware framework for natural language comprehension, this study highlights the revolutionary potential of QNLP in improving sentiment analysis in the healthcare industry.
Sentiment analysis (SA) is an essential component of natural language processing (NLP) and is used to analyze sentiments, attitudes, and emotional tones in various contexts. It provides valuable insights into public opinion, customer feedback, and user experiences. Researchers have developed various classical machine learning (ML) and neuro-fuzzy approaches to address the exponential growth of data and the complexity of language structures in SA. However, these approaches often fail to determine the optimal number of clusters, interpret results accurately, handle noise or outliers efficiently, and scale effectively to high-dimensional data. In addition, they are frequently insensitive to input variations. In this article, we propose a novel hybrid approach for SA called the quantum fuzzy neural network (QFNN), which leverages quantum properties and incorporates a fuzzy layer to overcome the limitations of classical SA algorithms. In this study, we test the proposed approach on two Twitter datasets: the Coronavirus Tweets Dataset (CVTD) and the General Sentimental Tweets Dataset (GSTD), and compare it with classical and hybrid algorithms. The results show that QFNN outperforms all classical, quantum, and hybrid algorithms, achieving 100% and 90% accuracy in the case of CVTD and GSTD, respectively. Furthermore, QFNN demonstrates its robustness against six different noise models, providing the potential to tackle the computational complexity associated with SA on a large scale in a noisy environment. The proposed approach expedites sentiment data processing and precisely analyzes different forms of textual data, thus improving sentiment classification and insights associated with SA.
Quantum computers has the capacity to enhance the speed of intricate calculations, achieve parallelism via superpositions, and effectively process vast amounts of data. In addition, the domain of natural language processing (NLP) is swiftly drawing the attention of academics and engineers that want to construct more extensive computational models for NLP. Hence, the use of quantum technology in NLP endeavours, particularly in sentiment categorization, has promising prospects for further advancement. In this research work, a detailed analysis of different sentiment classification methods are investigated that are interpreted with quantum computing models. To be precise the Quantum Long Short Term Memory (QLSTM) and Quantum Support Vector Machines (QSVM) are examined to determine the efficiency among the models. The results are simulated in Qiskit simulator and real time quantum computer Qiskit_ibm_osaka to evaluate the examined models. The results shows the significance of the experimentation and it is proven using Accuracy, precision and recall as performance metrices. On an average, in terms of accuracy the proposed model outperforms existing methods with 8.9%, On precision the proposed model outperforms 11.1% compared to existing methods. And with respect to recall the proposed model outperforms 6.7% compared to existing methods.
This research paper primarily investigates the application and performance of traditional machine learning and quantum computing in Natural Language Processing (NLP), with a focus on sentiment analysis tasks. By comparing the accuracy, efficiency, and scalability of these two technologies, the study aims to reveal the potential of quantum computing in handling complex NLP tasks and to provide data support for future technology choices and research directions. The paper also details the use of 1M DB and NLTK movie review datasets for experiments and discusses the experimental design, performance evaluation results, and technical challenges faced by both methods.
Classical machine learning has practical significant advancements and extensive acceptance across various domains, enabling the growth of precise predictive models. The purpose of this work is to examine the accuracy gained by various machine learning algorithms, both classical and quantum. In addition, the study delves into the fundamental ideas and principles that form the backbone of quantum machine learning algorithms, such as quantum data representation, quantum feature mapping, and quantum optimization strategies. Experiments use classical machine learning models trained and tested on traditional hardware to measure evaluation metrics like classification accuracy, precision, recall, and F1-score for quantum machine learning models executed on quantum computing platforms or simulators. In quantum SVM, the seed dataset obtained 100% accuracy, and the supermarket dataset obtained 69% accuracy when compared to classical SVM. The findings imply that, under some conditions, quantum machine learning algorithms show the capacity to beat their conventional counterparts in terms of accuracy.
Abstract This paper studies the performance of classical and quantum machine learning models for sentiment analysis task. Here, popular machine learning algorithms viz support vector machine (SVM), gradient boosting (GB) and random forest (RF) are compared with variational quantum classifier (VQC) using two sets of parameterized circuits viz EfficientSU2 and RealAmplitudes. For experimenting with VQC, IBM Quantum Experience and IBM Qiskit were used while for classical machine learning models, scikit-learn was used. It was found that the performance of the VQC was slightly better than popular machine learning algorithms. For our experiments, we have used popular restaurant sentiment analysis dataset. The extracted features from this dataset and then after applying PCA reduced the feature set into 5 features. Quantum ML models were trained using 100 epochs and 150 epochs. Overall, four Quantum ML models were trained and three Classical ML models were trained. The performance of the trained models was evaluated using standard evaluation measures viz, Accuracy, Precision, Recall, F-Score etc. In all the cases EfficientSU2 based model with 100 Epochs performed better than all other models. Efficient SU2 model with 100 epochs produced an accuracy of 74.5% and an F-Score of 0.7605 which were highest across all the trained models.