Back to Selected Projects
IEEE Conference Paper & Applied ML Research

BBCA Stock Forecasting & News Sentiment Analysis

An end-to-end data pipeline and machine learning system that forecasts BBCA stock prices across multiple time horizons by integrating quantitative historical market data with qualitative Indonesian news sentiment analysis.

Project Type IEEE Conference Paper (TSSA 2026)
My Role First Author & ML Researcher
Publication Status Presented (In Press for IEEE Xplore)
Forecasting Horizons H+1, H+3, H+5, H+7
View Code, Results & Tests on GitHub
bbca-analytics-dashboard.local Multi-Horizon LSTM
Actual vs Predicted BBCA Stock Price H+1
BCA Catat Pertumbuhan Laba Bersih Q3...
Positive
Pergerakan IHSG Terbantu Sektor Perbankan...
Positive
IEEE International Conference Paper Presented at TSSA 2026 — In Publication Process (IEEE Xplore & Scopus)

The 20th International Conference on Telecommunication Systems, Services, and Applications (TSSA 2026)

Organized by School of Electrical Engineering and Informatics (STEI), Institut Teknologi Bandung (ITB) in collaboration with Universitas Sangga Buana YPKP. Technically co-sponsored by IEEE Indonesia Section and IEEE Circuits and Systems Society (CAS).

Yogyakarta, Indonesia (1–2 Oct 2026) Author & Presenter: Muhamad Ilham Track: Information Systems & Applied AI
Citation (IEEE Format):
M. Ilham et al., "Stock Price Forecasting Using Hybrid Long Short-Term Memory (LSTM) with News Sentiment Integration Based on TF-IDF and Logistic Regression," in Proc. 20th IEEE Int. Conf. Telecommun. Syst., Serv., Appl. (TSSA), Yogyakarta, Indonesia, 2026 (In Press / To appear in IEEE Xplore).
Download Official Certificate (PDF)
Challenge & Context

The Problem

Stock price prediction in the banking sector is inherently challenging because price movements are influenced not only by past technical indicators and trading volume, but also heavily impacted by public market sentiment and financial news releases.

Conventional forecasting models often rely exclusively on historical numerical sequences (OHLCV). When significant macro-economic announcements or quarterly earnings reports surface, purely numerical models fail to react in time because they lack context from unstructured text data.

Core Limitations Addressed
Pure historical price models ignore market sentiment dynamics
Unstructured news text is difficult to feed directly into numerical predictors
Single-day forecasts provide limited strategic foresight for decision-making
Role & Responsibilities

My Contribution

I designed, developed, and evaluated the end-to-end data pipeline, NLP sentiment engine, deep learning forecasting model, and interactive dashboard interface.

Data Ingestion Pipeline

Built automated fetchers for Yahoo Finance API to collect daily historical OHLCV data
Implemented Google News RSS ingestion targeting BBCA financial news headlines

NLP Sentiment Engine

Preprocessed Indonesian financial news (tokenization, stopword removal, TF-IDF vectorization)
Trained a Logistic Regression classifier to label headlines as Positive, Negative, or Neutral

Multi-Horizon LSTM

Engineered combined feature vectors merging price indicators with daily sentiment scores
Configured and trained an LSTM neural network for multi-step price projection (H+1 to H+7)

Database & Web Dashboard

Designed MySQL database schema to store prices, article metadata, sentiment labels, and forecasts
Built Flask backend APIs and dashboard interface for interactive chart and sentiment inspection
End-to-End Architecture

Workflow & Data Flow

The data moves sequentially from automated ingestion through NLP sentiment scoring and time-series neural network forecasting into a centralized MySQL database and Flask UI.

01 / INGESTION
Dual-Source Collection Fetches OHLCV stock data from Yahoo Finance and news headlines from Google News RSS. Yahoo Finance + RSS
02 / NLP PIPELINE
Text Preprocessing Cleans, normalizes, and transforms raw Indonesian text headlines using TF-IDF feature extraction. TF-IDF Vectorizer
03 / SENTIMENT
Sentiment Scoring Classifies each news article (Positive, Neutral, Negative) using Logistic Regression. Logistic Regression
04 / STORAGE
Feature Aggregation Aggregates sentiment by date, merges with price matrices, and saves records into relational database. MySQL Database
05 / MODELING
LSTM Forecasting LSTM model trained on multi-feature sequences to project prices across H+1, H+3, H+5, H+7. LSTM Neural Net
06 / PRESENTATION
Flask Web Interface Serves interactive multi-horizon charts, recent sentiment breakdowns, and historical logs. Flask Web App
End-to-End Pipeline & Research Implementation Showcase 1. Data Harga Historis
Klik gambar untuk Zoom
BBCA Pipeline Showcase Screenshot
Pengumpulan Data Harga Historis: Ingest data deret waktu harga saham BBCA.JK (Open, High, Low, Close, Adj Close, Volume) dari Yahoo Finance API periode 2020 s/d 2026 mencakup 1.560+ hari perdagangan.
Yahoo Finance API 1,560+ Baris OHLCV 2020-2026 Time-Series
System Architecture

The Solution

The final solution is a modular application built in Python and Flask that automates the entire lifecycle of stock price analysis. Instead of relying purely on isolated statistical indicators, the system integrates daily sentiment polarity as an additional time-series dimension alongside conventional price signals (closing prices, moving averages, volume).

By supporting multi-horizon forecasting (H+1, H+3, H+5, H+7), the system provides flexible short-term and medium-term visibility, enabling users to evaluate forecasted trends over different time intervals accompanied by contextual news feeds.

IEEE TSSA 2026 Camera-Ready Verification

Empirical Validation, Statistical Significance & Ablation Study

Reproducible econometric evaluation across 5 independent random seeds, 300 human-annotated news headlines, Harvey–Leybourne–Newbold Diebold–Mariano significance testing, and sentiment sub-feature ablation:

1.50 ± 0.00%
H+1 Hybrid MAPE (5 Seeds)
26.1% relative reduction vs. 2.04% Baseline
92.06%
Sentiment Test Accuracy
1,776 chronological test headlines (F1: 91.3%–93.5%)
κ = 0.7180
Cohen's Kappa (N = 300)
81.67% Human Agreement (245/300, Substantial)
p < 0.001
HLN Diebold–Mariano
Significant across H+1 (6.78) to H+7 (3.83)

1. Multi-Horizon Performance Across 5 Independent Seeds ([42, 101, 777, 2024, 99])

Table III · TSSA 2026
Horizon Baseline MAPE Hybrid MAPE Relative Gain MAE (Baseline → Hybrid) RMSE (Baseline → Hybrid)
H+1 2.04 ± 0.12% 1.50 ± 0.00% 26.1% Rp 147.0 → Rp 107.7 Rp 191.3 → Rp 145.6
H+3 2.98 ± 0.04% 2.45 ± 0.01% 17.8% Rp 215.4 → Rp 175.4 Rp 277.3 → Rp 242.3
H+5 3.66 ± 0.11% 3.01 ± 0.01% 17.8% Rp 265.7 → Rp 216.8 Rp 340.1 → Rp 302.6
H+7 4.35 ± 0.27% 3.58 ± 0.03% 17.6% Rp 316.5 → Rp 258.7 Rp 393.9 → Rp 352.1

2. HLN Diebold–Mariano Significance

Table IV · p < 0.001

Finite-sample Harvey–Leybourne–Newbold adjusted Diebold–Mariano test confirming Hybrid error reduction is statistically non-random across every forecasting horizon:

Horizon N d̄ (APE) DM (Ensemble) p-Value
H+1 300 0.50% 6.7763 < 0.001
H+3 299 0.52% 4.0807 < 0.001
H+5 299 0.63% 4.4585 < 0.001
H+7 298 0.74% 3.8348 < 0.001

3. Human Audit & Production Safeguards

Table II · 5/5 Tests
Human Inter-Annotator Audit (N = 300): Achieved 81.67% raw agreement (245/300) and Cohen's Kappa κ = 0.7180 (Substantial Agreement, Landis & Koch) across Positive/Neutral/Negative labels.
Temporal & Calibration Hygiene: Strict 68/12/20 chronological split with weekend/holiday news aligned onto the next active IDX session and validation-only Ridge calibration (zero test leakage).
MySQL + Auto SQLite Failover: Verified 1,560 clean OHLCV bars and 4,367 news headlines serving out-of-the-box with zero MySQL dependency via automatic SQLite bootstrap.
Automated Test Verification: Passing 5/5 unit & Flask integration tests covering feature alignment, Keras/TF-IDF inference shapes, HLN DM math, Cohen's Kappa, and REST API endpoints.

4. Sentiment Feature Ablation Study (H+1 & H+7 Across 5 Seeds)

Feature Isolation
Feature Variant H+1 MAPE (%) H+1 RMSE (IDR) H+7 MAPE (%) H+7 RMSE (IDR)
Baseline (Market-Only, 13 Features) 2.04% ± 0.12% 191.3 ± 7.5 4.17% ± 0.19% 391.4 ± 6.9
Variant 1 (Sentiment Score Only) 1.51% ± 0.01% 146.1 ± 0.4 3.59% ± 0.07% 352.4 ± 4.2
Variant 2 (News Volume & Burst Only) 1.51% ± 0.01% 146.8 ± 0.2 3.62% ± 0.01% 355.0 ± 1.7
Variant 3 (Pos/Neg Proportion Only) 1.50% ± 0.01% 145.6 ± 0.4 3.60% ± 0.01% 353.9 ± 0.7
Full Hybrid (All 9 Sentiment Features) 1.50% ± 0.00% 145.5 ± 0.1 3.55% ± 0.02% 350.0 ± 1.9
Outcomes

Project Results

Key deliverables and technical outcomes achieved upon completion of the project:

Pipeline Automation

Unified Multi-Source Pipeline

Successfully automated the pipeline from live news feed scraping and stock API ingestion to persistent database storage without manual steps.

Contextual Modeling

1.50% H+1 MAPE & 92.06% NLP Accuracy

Cut H+1 forecasting error by 26.1% across 5 independent runs (1.50% vs 2.04% Baseline) paired with TF-IDF + Logistic Regression sentiment classification (Kappa 0.7180 on N=300 human audit).

Forecasting Versatility

Statistically Verified Multi-Horizon Gains

Proven significant across H+1, H+3, H+5, and H+7 via HLN Diebold–Mariano tests (p < 0.001) and feature ablation isolating sentiment score, volume burst, and ratio impact.

Usability

Interactive Dashboard Delivery

Delivered a clean web interface where technical metrics, forecasted trajectory lines, and categorized news sentiment feeds are visualized in one place.

Technologies Used

Tech Stack

Python LSTM Neural Network TF-IDF Vectorizer Logistic Regression MySQL Flask Pandas NumPy scikit-learn TensorFlow / Keras Yahoo Finance API Google News RSS
Visual Artifacts

Project Gallery

Visual overview of the forecasting dashboard, chart interfaces, and sentiment classification results: