تخطَّ إلى المحتوى الرئيسي

Sentiment Analysis

Advanced

تحليل المشاعر

Also known as: Opinion Mining, Text Sentiment Analysis

Algorithmic Trading & AI
Last updated

Definition reviewed before publishing

Our content team writes and reviews every definition before it is published, and revisits it when the way a term is used in the markets changes. The date shows the latest change to this term.

Last updated on 9 November 2026

Sentiment analysis, in the context of financial markets, is the use of computing and artificial intelligence techniques, especially natural language processing, to analyze huge amounts of text, such as news, company reports, social media posts and officials' statements, and extract their emotional direction, whether positive, negative or neutral, and measure its strength, in order to use it in trading and investment decisions.

Quick summary

• Using artificial intelligence to extract sentiment from financial text. • Analyzes news, social media and reports and turns them into scores. • Faces challenges such as sarcasm and misleading news.

How it works

Sentiment analysis works through several stages: collecting text from multiple sources automatically and continuously, cleaning and processing it, classifying its sentiment and assigning a numerical score, and finally aggregating the scores for a particular asset or the market as a whole and turning them into an indicator or signal. Classification methods vary: the lexicon-based approach, which uses word lists pre-classified as positive or negative, with specialized financial dictionaries because words such as liability or risk have a different meaning in a financial context; the machine learning approach, which trains models on labeled text; and modern large language models, which understand context more deeply. Its results are used in several ways: as a direct trading signal, such as buying when sentiment improves sharply; as a factor within a broader quantitative model; for early risk detection; or to measure market reaction to events such as earnings announcements and central bank statements. It is a form of alternative data used by hedge funds and institutions. But it faces major challenges: difficulty understanding sarcasm and innuendo, the influence of bot accounts and misleading news on results, differences between languages and dialects, the edge fading quickly as the technique spreads, and the possibility that the information is already reflected in the price before it is analyzed. It is therefore usually used as a complementary tool rather than the sole basis for decisions.

Example

A system analyzes thousands of articles and posts about a technology company within an hour of its earnings announcement and gives a sentiment score that falls from +0.4 to -0.3 because of widespread criticism of its guidance. A fund uses this signal alongside other factors to reduce its position.

Where you will see it

In hedge funds and quantitative institutions, on trading platforms offering sentiment indicators, and in research on artificial intelligence in finance.

Why it matters

It matters for understanding how text data and artificial intelligence are used in trading, and the limits and challenges of this technique.

How it is calculated

Net sentiment score = (number of positive mentions - number of negative mentions) ÷ total mentions, ranging from -1 to +1.

How it differs from similar terms

• Market sentiment: the general mood itself, while sentiment analysis is a technique for measuring it from text. • Sentiment surveys: ask investors directly, while sentiment analysis infers it from text automatically. • Natural language processing: the broader technical field sentiment analysis relies on.

Common mistakes

Relying on sentiment analysis as the only signal, or ignoring the influence of bot accounts and misleading news on results. Use it as a complementary tool.

Related terms