Quantum computing has emerged as a breakthrough technology for sentiment and emotion analysis, providing computational efficiency and interpretability benefits. This paper compares three quantum-inspired methods: fully complex-valued neural networks, multimodal sentiment analysis models, and quantum affective computing. This paper compares three quantum-inspired methods: fully complex-valued neural networks, multimodal sentiment analysis models, and quantum affective computing models. The research uses six benchmark sentiment datasets (CR, MPQA, MR, SST-2, SUBJ, and SST-5) to compare the performance of the methods. The approach involves representing textual and multimodal data as complex quantum states, using quantum-inspired feature representations, and using quantum measurement methods for classification. The results show that the Complex Quantum Neural Network (QNN) performs better than baseline models such as BERT and RoBERTa, with the best F1-scores on all datasets. Specifically, it has an F1-score of 86 on CR, 86 on MPQA, 90 on MR, 88 on SST-2, 97 on SUBJ, and 53 on SST-5, outperforming baseline deep learning methods. These results show the potential of quantum computing to revolutionize sentiment analysis, providing more efficient and interpretable models with better contextual understanding and scalability.
Quantum computing has emerged as a breakthrough technology for sentiment and emotion analysis, providing computational efficiency and interpretability benefits. This paper compares three quantum-inspired methods: fully complex-valued neural networks, multimodal sentiment analysis models, and quantum affective computing. This paper compares three quantum-inspired methods: fully complex-valued neural networks, multimodal sentiment analysis models, and quantum affective computing models. The research uses six benchmark sentiment datasets (CR, MPQA, MR, SST-2, SUBJ, and SST-5) to compare the performance of the methods. The approach involves representing textual and multimodal data as complex quantum states, using quantum-inspired feature representations, and using quantum measurement methods for classification. The results show that the Complex Quantum Neural Network (QNN) performs better than baseline models such as BERT and RoBERTa, with the best F1-scores on all datasets. Specifically, it has an F1-score of 86 on CR, 86 on MPQA, 90 on MR, 88 on SST-2, 97 on SUBJ, and 53 on SST-5, outperforming baseline deep learning methods. These results show the potential of quantum computing to revolutionize sentiment analysis, providing more efficient and interpretable models with better contextual understanding and scalability.
This paper presents SentiQNN (Sentiment Quantum Neural Network), a novel quantum-inspired neural network architecture specifically designed for sentiment analysis tasks in natural language processing. SentiQNN leverages quantum computing principles including superposition, entanglement, and quantum measurement to enhance traditional neural network capabilities for text classification. The model incorporates complex-valued embeddings, quantum mixture operations, and multi-task learning with sentiment lexicon integration to achieve superior performance in sentiment classification tasks. Through extensive experimentation across multiple benchmark datasets, SentiQNN demonstrates state-of-the-art performance with 88.11% accuracy, outperforming traditional classical approaches by 3-7%. The architecture introduces innovative quantum state preparation layers, quantum circuit operations, and quantum measurement mechanisms specifically optimized for natural language understanding. Our comprehensive evaluation reveals that quantum-inspired approaches can significantly enhance sentiment analysis performance while maintaining computational efficiency. The findings contribute to the emerging field of quantum machine learning and provide a foundation for future research in quantum-enhanced natural language processing systems.
Sentiment, emotion, and sarcasm analysis in multimodal dialogues is crucial for understanding the underlying intentions and attitudes expressed by individuals. Traditional methods often struggle to capture the full intensity of these polarities, leading to less accurate results. To address this limitation, we propose a quantum-inspired approach leveraging Quantum Neural Networks (QNNs) for enhanced classification and intensity analysis. A key component of our method is the Variational Quantum Eigensolver (VQE), a hybrid quantum-classical algorithm that optimizes the parameters of the QNN by minimizing the eigenvalues of a Hamiltonian system. This optimization enables the network to learn complex relationships in multimodal data more effectively. Our approach surpasses state-of-the-art methods, achieving up to 7.5 % higher accuracy and 6.8 % greater precision. Experiments on benchmark datasets such as MUStARD, Memotion, CMU-MOSEI, and MELD demonstrate its effectiveness, with an F1-score of 87.3 % on CMU-MOSEI. This method is particularly beneficial in domains like social media, customer support, and entertainment, where both verbal and non-verbal cues play a critical role in accurate sentiment analysis .
Most of the existing quantum-inspired models are based on amplitude-phase embedding to model natural language, which maps words into Hilbert space. In quantum-computing theory, the vectors corresponding to quantum states are all complex values, so there is a gap between these two areas. Presently, complex-valued neural networks have been studied, but their practical applications are few, let alone in the downstream tasks of natural language processing such as sentiment analysis and language modeling. In fact, the complex-valued neural network can use the imaginary part information to embed hidden information and can express more complex information, which is suitable for modeling complex natural language. Meanwhile, quantum-inspired models are defined in Hilbert space, which is also a complex space. So it is natural to construct quantum-inspired models based on complex-valued neural networks. Therefore, we propose a new quantum-inspired model for NLP, ComplexQNN, which contains a complex-valued embedding layer, a quantum encoding layer, and a measurement layer. The modules of ComplexQNN are fully based on complex-valued neural networks. It is more in line with quantum-computing theory and easier to transfer to quantum computers in the future to achieve exponential acceleration. We conducted experiments on six sentiment-classification datasets comparing with five classical models (TextCNN, GRU, ELMo, BERT, and RoBERTa). The results show that our model has improved by 10% in accuracy metric compared with TextCNN and GRU, and has competitive experimental results with ELMo, BERT, and RoBERTa.
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.
This article proposes a quantum multimodal neural network (QMNN) model that can be implemented on parameterized quantum circuits (PQCs), providing a novel avenue for processing multimodal data and performing advanced multimodal sentiment analysis tasks. The comprehensive QMNN model is structured into four fundamental blocks: multimodal data preprocessing, unimodal feature extraction, multimodal feature fusion, and optimization. Through these blocks, multimodal data are initially preprocessed and encoded into quantum states. Subsequently, visual and textual features are extracted from the quantum states and are then integrated to learn the interactions between different modalities. Finally, the model parameters are fine-tuned to optimize the sentiment analysis performance. Simulation results confirm that QMNN surpasses state-of-the-art baselines, using significantly lower input dimensions and substantially fewer parameters than classical models. Furthermore, the entanglement, integrity, robustness, and scalability of the model are analyzed in depth. Internally, the strong entanglement within the multimodal fusion block enhances interactions between textual and visual features, and the integrity of the model reflects the indispensable contribution of each component to the overall performance. Externally, robustness ensures the model operates stably under noisy conditions and incomplete inputs, and scalability enables it to efficiently adapt to varying architectural depths and widths. The above simulation results and performance analyses showcase the comprehensive strength of our proposed model.
Sentiment analysis aims to study, analyse and identify the sentiment polarity contained in subjective documents. In the realm of natural language processing (NLP), the study of sentiment analysis and its subtask research is a hot topic, which has very important significance. The existing sentiment analysis methods based on sentiment lexicon and machine learning take into account contextual semantic information, but these methods still lack the ability to utilize context information, so they cannot effectively encode context information. Inspired by the concept of density matrix in quantum mechanics, we propose a sentiment analysis method, named Complex-valued Quantum-enhanced Long Short-term Memory Neural Network (CQLSTM). It leverages complex-valued embedding to incorporate more semantic information and utilizes the Complex-valued Quantum-enhanced Long Short-term Memory Neural Network for feature extraction. Specifically, a complex-valued neural network based on density matrix is used to capture interactions between words (i.e., the correlation between words). Additionally, the Complex-valued Quantum-enhanced Long Short-term Memory Neural Network, which is inspired by the quantum measurement theory and quantum long short-term memory neural network, is developed to learn interactions between sentences (i.e., contextual semantic information). This approach effectively encodes semantic dependencies, which reflects the dispersion of words in the embedded space of sentences and comprehensively captures interactive information and long-term dependencies among the emotional features between words. Comparative experiments were performed on four sentiment analysis datasets using five traditional models, showcasing the effectiveness of the CQLSTM model.