Sentiment Analysis
Also known as: Opinion mining
Natural language processing technique that identifies the opinions, attitudes or emotions expressed in text, such as positive, negative or neutral.
Sentiment analysis, also called opinion mining, classifies the emotional tone or stance of text. The simplest form labels a review, post or comment as positive, negative or neutral. Finer-grained variants score intensity or detect specific emotions such as anger or joy. Aspect-based analysis identifies sentiment toward particular features of a product or topic, for example praising a phone's camera while criticizing its battery. It is applied to product reviews, customer support messages, survey responses, social media and news coverage.
Early approaches used lexicons, lists of words annotated with positive or negative weight, combined with rules for negation and intensifiers. From the early 2000s, supervised machine learning trained on labeled reviews became common, and research on movie and product reviews helped establish the field. Neural networks and pretrained transformer models later improved the handling of context, and large language models can perform sentiment classification from instructions alone, often without task-specific training data.
Businesses use sentiment analysis to track brand perception and triage complaints. Researchers use it to study public opinion, and analysts in open-source intelligence use it to gauge reactions to events at scale. Its limits are significant: sarcasm, irony, cultural context, slang and mixed feelings frequently confuse models, and accuracy drops outside the domain a model was trained on. Aggregated scores can hide important nuance and should be checked against samples of the underlying text. Monitoring the sentiment of individuals also raises surveillance and privacy concerns.
Key points
- Sentiment analysis labels text by emotional tone, from simple polarity to specific emotions.
- Aspect-based analysis identifies sentiment toward particular features or topics within a text.
- Methods evolved from word lists and rules to supervised models, transformers and language models.
- Sarcasm, cultural context and domain shifts remain common sources of error.
Related entries
Field of AI and linguistics concerned with enabling computers to analyze, understand and generate human language in text and speech.
OSINT
Intelligence produced by collecting, verifying and analyzing information from publicly available sources to answer a defined question.
Collection and analysis of information from social media platforms to understand events, trends, networks and narratives.
Neural network trained on very large amounts of text to predict the next token, able to generate language and perform many tasks from prompts.
Machine learning approach in which a model learns to map inputs to outputs from examples that have been labeled with the correct answers.
Filter Bubble
Intellectual isolation that can result when personalization algorithms show people mainly information matching their past behavior and views.
Disinformation
False or misleading information that is created or spread deliberately to deceive people, manipulate opinion or cause harm.
Referenced by
Other entries that discuss or point to Sentiment Analysis.