Automatic Aspect-Based Sentiment Analysis (AABSA) from Customer Reviews

Jiaming Xu, Bo Tang, Xiao Liu, Feiyu Xiong

Abstract

This paper introduces AABSA, a fully automated pipeline for extracting hierarchical product aspects and their associated sentiments from customer reviews. By integrating BERT sentence embeddings, K-means clustering, and the PageRank algorithm, the model identifies core aspects (hypernyms) and granular sub-aspects (hyponyms) without the need for expensive manual labeling. Evaluated on large-scale e-commerce data from Alibaba, the extracted aspects proved to be significantly better predictors of product sales compared to traditional baseline methods, while achieving high sentiment classification performance with an F1-score of 0.928.

Introduction

E-commerce platforms are currently inundated with customer reviews, leading to significant information overload for both consumers and sellers. To mitigate this, platforms attempt to extract "aspects" (e.g., battery life, screen quality) and their associated sentiments. However, existing Aspect-Based Sentiment Analysis (ABSA) methods face substantial hurdles. Supervised learning requires expensive, time-consuming manual annotation that scales poorly to new product categories. Conversely, unsupervised methods often rely on raw frequency, ignoring semantic similarities (e.g., "hue" vs. "color") and failing to capture the natural hierarchy of product features (e.g., "durability" as a sub-aspect of the broader concept of "quality").

Methodology

The authors propose a fully automated, data-driven pipeline that operates without domain-specific knowledge or human labeling. The process is divided into several key stages as illustrated in the pipeline architecture.

The AABSA pipeline architecture, illustrating the flow from raw reviews to sentiment-scored aspects.
  1. Embeddings: The system utilizes Word2Vec for word-level embeddings and a pre-trained Chinese BERT model for sentence-level embeddings. BERT's bidirectional context is essential for capturing deep semantic meaning compared to older models that simply average word vectors.
  2. Clustering for Hypernyms: Sentence embeddings are grouped using K-means clustering. Words closest to the cluster centroids are designated as "hypernyms"—high-level core aspects such as "battery" or "design."
  3. PageRank for Hyponyms: To identify granular sub-aspects ("hyponyms," such as "charging time"), the model constructs a weighted directed graph of words related to the hypernyms. Edge weights are determined by Word2Vec cosine distances, and the PageRank algorithm identifies central sub-aspects based on network importance rather than raw frequency.
  4. Sentiment Classification: A Maximum Entropy (MaxEnt) classifier is employed to assign positive, neutral, or negative sentiment scores to sentences containing the identified aspects.

Experimental Setup and Results

The model was evaluated using a massive proprietary dataset from Alibaba, covering 20 weeks of reviews and sales data for two distinct categories:

  • Cameras (High-end/Complex): 13,944 products and 295,628 reviews.
  • Toothbrushes (Low-end/Daily-use): 147,337 products and over 18 million reviews.

Sales Prediction Performance

AABSA was validated by its ability to predict weekly product sales via linear regression. It consistently outperformed a standard TF-IDF + K-means baseline. For the camera category, the Adjusted R-squared improved from 0.244 to 0.294. For toothbrushes, it rose from 0.164 to 0.186.

Sentiment and Granularity

The MaxEnt classifier achieved an F1-score of 0.928, surpassing the Fasttext baseline (0.900). Qualitatively, the model successfully discovered highly specific sub-aspects (e.g., "gum pain" or "stain removal" for toothbrushes) that previously required manual marketing research to identify.

Discussion and Conclusion

The AABSA framework demonstrates that hierarchy is vital for meaningful sentiment analysis; separating abstract concepts from specific features provides actionable insights for retailers. Furthermore, the use of PageRank proves that network centrality is a more robust metric for aspect identification than raw frequency, surfacing semantically central terms that might not be the most frequent.

However, the pipeline currently faces limitations. The pre-processing stage relies on manual rule-based filtering, creating a potential bottleneck. Additionally, while the model excels at identifying physical and functional aspects, it struggles with highly subjective or abstract psychological needs (e.g., "faith in the product"). Future research should focus on automating the pre-processing stage and improving the extraction of abstract consumer motivations across a wider variety of product categories.

Summary updated

BibTeX
@inproceedings{xu2020automatic,
  author = {Jiaming Xu and Bo Tang and Xiao Liu and Feiyu Xiong},
  title = {{Automatic Aspect-Based Sentiment Analysis (AABSA) from Customer Reviews}},
  booktitle = {AffCon @ AAAI},
  year = {2020},
}
Figure