Sentiment identification by incorporating syntax, semantics and context information

Kunpeng Zhang, Yusheng Xie, Yu Cheng, Daniel Honbo, Doug Downey, Ankit Agrawal, Wei-keng Liao, Alok N. Choudhary

Introduction

Traditional sentiment analysis often relies on "bag-of-words" models that treat sentences as isolated collections of keywords. However, human language is inherently contextual; the meaning of a sentence frequently depends on its position within a document and its relationship to neighboring thoughts. This paper presents a more sophisticated approach using Conditional Random Fields (CRFs) to model sentiment as a sequence, accounting for both internal sentence structure and broader document context.

Methodology: Beyond Bag-of-Words

The authors move beyond simple keyword counting by employing CRFs, a statistical modeling method ideal for sequence labeling. Unlike independent classifiers, a CRF considers the entire sequence of sentences in a document, allowing the sentiment label of one sentence to influence its neighbors.

To enrich the model, two categories of features were developed:

  1. Semantic Features: These include counts from positive and negative lexicons, the presence of emoticons, and the identification of comparative phrases (e.g., "Product A is better than Product B").
  2. Syntactic Features: These capture structural elements such as a sentence's position (beginning, middle, or end of a review), the specific placement of sentiment words within a sentence, and the thematic flow measured via cosine similarity between adjacent sentences.

Active Learning for Efficiency

To mitigate the high cost of manual data labeling, the researchers implemented Active Learning. They tested several strategies to identify the most "informative" documents for human labeling. Their most successful strategy, S2, ranks sentences by uncertainty, focusing human effort on documents where the model's confidence is lowest.

Accuracy improvement using different active learning strategies

Performance Evaluation

The model was tested on three datasets: Amazon Product Reviews (Cameras and TVs) and Facebook comments. The Amazon reviews were labeled by multiple workers via Amazon Mechanical Turk to establish a reliable ground truth.

As shown in the results, the CRF model utilizing both semantic and syntactic features (SS) consistently outperformed traditional models like Support Vector Machines (SVM) and Hidden Markov Models (HMM) on product reviews. For instance, on the Camera dataset, the CRF (SS) achieved an accuracy of 0.72, a significant jump over the 0.64 achieved by SVM.

Comparison of model performance across datasets and feature sets

Key Insights

  • Context and Structure: The inclusion of syntactic features (like sentence position) consistently improved accuracy by 5–7%. This confirms that sentiment is a sequence of thoughts where structure changes meaning—for example, a positive opening often being "canceled" by a negative conclusion in a mixed review.
  • The Short-Text Challenge: Interestingly, a rule-based method (CSR) outperformed the CRF on Facebook comments. This suggests that for extremely brief, informal text, there is insufficient context for sequence models to thrive, making direct markers like emoticons more reliable.
  • Labeling Efficiency: The active learning results (Strategy S2) demonstrated that high accuracy can be reached with significantly fewer labeled examples by prioritizing uncertain cases, making the approach viable for real-world applications with limited resources.

Conclusion

By incorporating syntactic structure and document context, the CRF-based approach offers a robust improvement over traditional sentiment analysis methods for long-form reviews. While short-form social media text remains a challenge for sequence-based models, the synergy of semantic and syntactic features provides a powerful tool for understanding the nuances of consumer feedback.

Summary updated

BibTeX
@inproceedings{zhang2012sentiment,
  author = {Kunpeng Zhang and Yusheng Xie and Yu Cheng and Daniel Honbo and Doug Downey and Ankit Agrawal and Wei-keng Liao and Alok N. Choudhary},
  title = {{Sentiment identification by incorporating syntax, semantics and context information}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2012},
  doi = {10.1145/2348283.2348510},
}
Figure