Portfolio
AI

AI-Based news sentiment analysis for stock trading decisions

The system combines historical stock price dynamics analysis with company news processing to daily forecast the rise or fall of stock prices.

Tasks

  • Collect historical quotes and news feeds for selected companies.
  • Develop an NLP pipeline based on BERT + GRU for news sentiment analysis.
  • Train and compare multiple classifiers (CatBoost, SVC, HMM) for price direction prediction.
  • Set up a daily mechanism for generating "buy/sell" signals.
  • Conduct backtesting of the strategy and compare it with the benchmark (S&P 500).
Preview AI-Based news sentiment analysis for stock trading decisions

About the Project

Traditional technical analysis methods rely solely on price charts and often ignore the information context. In this project, we combined two data sources—quotes and news.

A dedicated model is built for each company: news is processed through an NLP stack (BERT → GRU), and price data is fed into classical classifiers (CatBoost, SVC, Hidden Markov Models). The models are trained on historical data and generate a trading decision once a day. The strategy’s results were compared to the S&P 500 index and showed superior returns.

Results

Outperformedthe S&P 500 index return in historical testing. The strategy generates one signal per day
Implementeda complete pipeline "price + news → forecast → trading signal"
ModelsIndividually trained for each company, accounting for its specific news
Reporton the impact of different news types on prediction quality
Chart

News Processing

Noise in News Feed
News can be speculative or irrelevant. Solution—filtering by sources and weighted sentiment analysis extracted by the BERT model.
Differences Between Companies
The same macro factor affects different industries differently. We trained separate models and optimized hyperparameters for each stock.
Growth chart

Strategy

The result is a flexible system capable of adapting to new companies and quickly expanding to other financial assets.

Combining Sparse News with Dense Price Time Series
Data was aligned by calendar days: if no news was available for a day, the model relied solely on technical indicators.
Strategy Evaluation
To avoid overfitting, we used a sliding window backtest and compared results with passive index investing.

Related Services

Service Artificial Intelligence preview

Artificial Intelligence

We create innovative solutions based on artificial intelligence for your business.

Read More
Computer Vision
LLM
Generative AI
Embedded Systems
Corporate Solutions
Service Outsourcing preview

Outsourcing

Our team of skilled developers is ready to create websites and applications of any complexity. We build modern web solutions using cutting-edge technologies and architectural approaches.

Read More
3D Graphics
Web
Scalability

Ready to discuss your project?

Describe your task, we will make a research and respond to you as soon as possible.

We will be happy to advise you in any of the available ways.

By leaving a request you agree to the data processing policy