Sentiment Analysis of Online Travel Reviews Based on Capsule Network and Sentiment Lexicon

Jia Wang, Junping Du, Yingxia Shao, Ang LiarXiv 2022

Abstract

With the development of online travel services, mining user sentiment from reviews has become a vital indicator for improving service quality. This paper proposes the SCCL model, which integrates Capsule Networks and a domain-specific sentiment lexicon to address the limitations of standard language models like BERT and GRU. While these models excel at capturing contextual features, they often overlook local features and explicit emotional semantic cues. The SCCL model introduces a Capsule Network into a BERT-BiGRU framework to preserve local spatial relationships and utilizes an expanded sentiment lexicon—developed via an improved SO-PMI algorithm—to provide richer emotional context. Experimental results demonstrate that this hybrid approach significantly enhances sentiment classification performance in the domain of online travel reviews.

Introduction

Sentiment analysis in the travel industry is essential for businesses to understand customer needs, yet it faces two major technical hurdles. First, while modern language models like BERT and bidirectional Gated Recurrent Units (BiGRU) are excellent at capturing long-range context, they often struggle with "local" features. Traditional Convolutional Neural Networks (CNNs) are typically used to identify these local patterns, but their reliance on max-pooling layers discards critical spatial information, leading to a loss of detail.

Second, deep learning models are often "emotion-blind," processing text as data without inherently understanding the weight of specific emotional words. While general sentiment lexicons can help, they often fail to capture domain-specific nuances. A word that is neutral in a news report might carry significant emotional weight in a travel review on social media.

The SCCL Model

The proposed SCCL (Sentiment Capsule and Lexicon) model processes text through two parallel routes to capture both implicit context and explicit emotional cues:

Architecture of the SCCL model

1. The Context Route

This route utilizes BERT for character-level embedding to capture deep semantic meaning, followed by a BiGRU layer to learn global context from both directions of the text sequence. Finally, a Capsule Network is employed instead of a standard CNN. Unlike traditional neurons that output scalars, capsules output vectors and use a "routing-by-agreement" mechanism. This allows the model to recognize local features (such as "not good") while maintaining the spatial relationship of those features within the sentence structure.

2. The Lexicon Route

To inject explicit human knowledge, the researchers expanded the HowNet sentiment lexicon to fit the social media domain (Weibo). Using a combination of TF-IDF and the SO-PMI (Semantic Orientation - Pointwise Mutual Information) algorithm, they identified new emotional words based on their proximity to known "seed" words. These emotional sequences are processed through a CNN to extract semantic features, which are then merged with the context route for final classification.

Datasets

The model was trained and evaluated using a combination of public and domain-specific data:

  • Public Weibo Review Dataset: A large-scale dataset of 40,133 texts used for primary training.
  • Target Travel Set: 2,000 travel-related comments crawled from social platforms and manually labeled to test real-world generalization.
  • HowNet Lexicon: The foundational sentiment dictionary used as the basis for domain-specific expansion.

Key Results and Insights

The SCCL model demonstrated superior performance in 6-way emotion classification (Null, Like, Sad, Disgust, Anger, Happiness). By rejecting standard pooling layers in favor of Capsule Networks, the model preserves the "spatial" relationship between words that a standard CNN would otherwise lose.

Performance comparison of different models

As shown in the performance comparison, the Capsule Network architecture achieved an accuracy of 52.45%, outperforming standard CNNs (48.68%) and Temporal Convolutional Networks (48.92%). Ablation studies further confirmed the incremental value of each component:

  • Standard BERT: 50.04% accuracy
  • BERT + BiGRU: 51.05% accuracy
  • Full SCCL Model: 52.45% accuracy

When tested on the raw, crawled travel comments (the "target set"), the model maintained a respectable 48.58% accuracy, proving its ability to generalize to messy, real-world social media data.

Conclusion

The SCCL model successfully bridges the gap between implicit deep learning patterns and explicit emotional knowledge. While the current lexicon primarily distinguishes between positive and negative polarity, future work will focus on building a more granular domain lexicon that maps words directly to specific emotional categories. Additionally, the authors aim to refine the Capsule Network's routing algorithms to improve computational efficiency.

Summary updated

BibTeX
@misc{wang2022sentiment,
  author = {Jia Wang and Junping Du and Yingxia Shao and Ang Li},
  title = {{Sentiment Analysis of Online Travel Reviews Based on Capsule Network and Sentiment Lexicon}},
  year = {2022},
  eprint = {2206.02160},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.02160},
}
Figure