TEMPORAL FUSION TRANSFORMER WITH OPTUNA OPTIMIZATION FOR MULTI-HORIZON FORECASTING OF CROSS-SECTOR STATE-OWNED ENTERPRISE STOCKS

Teresa, Chatrine (2026) TEMPORAL FUSION TRANSFORMER WITH OPTUNA OPTIMIZATION FOR MULTI-HORIZON FORECASTING OF CROSS-SECTOR STATE-OWNED ENTERPRISE STOCKS. Undergraduate thesis, UPN Veteran Jawa Timur.

[img]
Preview
Text (COVER)
22081010025_coverr.pdf

Download (1MB) | Preview
[img]
Preview
Text (Bab 1)
22081010025_BAB1.pdf

Download (250kB) | Preview
[img] Text (Bab 2)
22081010025_BAB2.pdf
Restricted to Repository staff only until 7 July 2029.

Download (679kB)
[img] Text (Bab 3)
22081010025_BAB3.pdf
Restricted to Repository staff only until 7 July 2029.

Download (609kB)
[img] Text (Bab 4)
22081010025_BAB4.pdf
Restricted to Repository staff only until 7 July 2029.

Download (1MB)
[img]
Preview
Text (Bab 5)
22081010025_BAB5.pdf

Download (231kB) | Preview
[img]
Preview
Text (Daftar Pustaka)
22081010025_DAFTARPUSTAKA.pdf

Download (263kB) | Preview

Abstract

The stock market is an important component of the financial system that serves as an indicator of a country's economic performance. Increasingly high stock price Volatility due to global financial market integration makes forecasting activities more complex and crucial in supporting investment decisions. This Study applies the Temporal Fusion Transformer (TFT) model optimized using the Optuna framework for multi-horizon stock price forecasting on three Indonesian state-owned enterprises (SOEs) from different sectors, namely Bank Mandiri (BMRI), Perusahaan Gas Negara (PGAS), and Telkom Indonesia (TLKM). Five years of historical data were obtained from Yahoo Finance using the yfinance library. The Preprocessing pipeline includes data Cleaning, technical feature engineering comprising Moving average and Volatility indicators, per-group normalization using GroupNormalizer with softplus transformation, and Time Series dataset construction using PyTorch Forecasting. This Study examines three feature engineering scenarios, three data Splitting scenarios, and twenty Hyperparameter scenarios using Tree-structured Parzen Estimator (TPE)-based optimization. The results show that the best combination was achieved under Feature engineering 1 (MA5, MA20, VOL10), Split Data 1 (70:15:15), and Hyperparameter configuration O14, yielding MAE of 151.32, RMSE of 220.92, MAPE of 4.89%, and sMAPE of 5.06%. These results significantly outperform the Baseline model with MAE of 397.03 and RMSE of 562.67, proving that Optuna optimization successfully reduced prediction error. Per-stock evaluation demonstrates that the model effectively generalizes across sectors, with best sMAPE values of 4.30% for BMRI, 6.76% for PGAS, and 5.34% for TLKM. Model interpretability analysis confirms that the MA5 feature is the most dominant encoder variable with an importance score of 81%, while the smoother Temporal Attention distribution of the optimized model indicates a better ability to leverage long-term historical patterns compared to the Baseline model. Keywords : Stock Market, Temporal Fusion Transformer , Optuna Optimization, Time Series Forecasting, Deep Learning

Item Type: Thesis (Undergraduate)
Contributors:
ContributionContributorsNIDN/NIDKEmail
Thesis advisorMuttaqin, FaisalNIDN0030058602faisalmuttaqin.if@upnjatim.ac.id
Thesis advisorAnggraeny, Fetty TriNIDN0711028201fettyanggraeny.if@upnjatim.ac.id
Subjects: Q Science > QA Mathematics > QA76.87 Neural computers
Divisions: Faculty of Computer Science > Departemen of Informatics
Depositing User: Chatrine Chatrine Teresa
Date Deposited: 07 Jul 2026 07:42
Last Modified: 07 Jul 2026 07:42
URI: https://repository.upnjatim.ac.id/id/eprint/54722

Actions (login required)

View Item View Item