Introduction
While sentiment analysis effectively determines whether a customer likes a product, it often overlooks the "why" found in direct comparisons. This research addresses the challenge of automatically identifying comparative sentences—such as "Product X is faster than Y"—by combining linguistic pattern mining with supervised machine learning. The proposed framework achieves a balanced performance of 81% recall and 79% precision.
The Challenge of Comparative Identification
Identifying comparative sentences is significantly more complex than standard sentiment classification. Simple keyword matching often fails due to:
- False Positives: Comparative terms like "more" or "better" frequently appear in non-comparative contexts (e.g., "I cannot agree with you more").
- Implicit Comparisons: Some comparisons lack standard adjectives entirely (e.g., "Cell phone X has Bluetooth, but cell phone Y does not").
- Linguistic Complexity: Comparisons can be subjective or objective and often involve intricate grammatical structures that standard tools are not designed to parse.
Methodology
The authors developed a multi-stage pipeline designed to move beyond basic word-counting:
- Linguistic Categorization: The framework expands traditional definitions to include four types: Non-Equal Gradable (greater/less than), Equative (equal to), Superlative (ranking), and Non-Gradable (feature comparison).
- Keyword Filtering: A set of 83 keywords and Part-of-Speech (POS) tags (e.g., JJR for comparative adjectives) is used to filter potential candidates, ensuring high initial recall.
- Class Sequential Rule (CSR) Mining: This core innovation mines sequences of POS tags rather than isolated words. For instance, a pattern like
{NN}{VBZ}{moreJJR}{NN}{IN}{NN}identifies the structural "skeleton" of a comparison, allowing the model to generalize across different product categories. - Multiple Minimum Supports (MMS): To prevent rare but accurate patterns from being overlooked, the authors utilized MMS during data mining.
- Naive Bayes Classifier: Discovered patterns serve as features in a Naive Bayes model, which resolves conflicts when a sentence matches multiple overlapping rules.
Experimental Evaluation
The approach was evaluated on a manually labeled dataset of 5,890 sentences spanning consumer reviews (electronics), forum discussions (tech and brand debates), and news articles.
Key Results and Insights
The integrated approach (CSRs + Manual Rules + Naive Bayes) significantly outperformed baseline methods.
Model Performance
As shown in the performance comparison chart, the combination of Class Sequential Rules and manual rules processed through a Naive Bayes classifier yielded the highest F-score. Interestingly, Naive Bayes outperformed Support Vector Machines (SVM) in this task, likely due to its superior ability to aggregate probabilistic "votes" from multiple overlapping sequential rules.
Domain Specificity
The system demonstrated varying performance across different text types. It performed best on consumer reviews, which tend to have more direct comparative structures.
The slightly lower F-scores for news articles and forums (77-78%) are attributed to longer, grammatically "messier" sentences that can occasionally trigger patterns by coincidence.
Limitations and Future Work
Despite its success, the model faces several limitations:
- Grammar Sensitivity: Reliance on POS tagging makes the system vulnerable to the poor grammar and punctuation common in informal forum posts.
- Implicit Comparisons: "Hidden" comparisons that use no indicator words remain a significant challenge.
- Relation Extraction: Identifying the sentence is only the first step; determining which entity is superior and on what specific feature is a separate, complex problem for future research.
- Subjectivity: The current model does not distinguish between factual comparisons ("X is 2 inches longer") and subjective opinions ("X is much better").
Summary updated