Glossary termTechnique

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

Glossary term

Field of AI and linguistics concerned with enabling computers to analyze, understand and generate human language in text and speech.

Glossary term

OSINT

OSINTCybersecurity

Intelligence produced by collecting, verifying and analyzing information from publicly available sources to answer a defined question.

Glossary term

Collection and analysis of information from social media platforms to understand events, trends, networks and narratives.

Glossary term

Neural network trained on very large amounts of text to predict the next token, able to generate language and perform many tasks from prompts.

Glossary term

Machine learning approach in which a model learns to map inputs to outputs from examples that have been labeled with the correct answers.

Glossary term

Filter Bubble

Ideas and CultureOSINT

Intellectual isolation that can result when personalization algorithms show people mainly information matching their past behavior and views.

Glossary term

Disinformation

OSINTIdeas and Culture

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.