Melola Discovery

← Melola Discovery

Journal No SINTA rank

Prediction-based Stock Portfolio Optimization Using Bidirectional Long Short-Term Memory (BiLSTM) and LSTM

Scientific Journal of Informatics · Vol. 11 No. 3 (2024) · pp. 609–620

DOI
10.15294/sji.v11i3.5941
ISSN
2407-7658, 2460-0040
Published
2024-08-05
Publisher
Universitas Negeri Semarang
Language
eng

Abstract

Purpose: Investment is the allocation of funds with the aim of obtaining profits in the future. An example of the investment instruments with high returns and high risks are stocks. The risks associated with the investment can be reduced by forming a portfolio of quality stocks optimized through mean-variance (MV). This is necessary because successful selection of high-quality stocks depends on the future performance which can be determined through accurate price prediction. Methods: Stock price can be predicted through the adoption of different forms of deep learning methods. Therefore, BiLSTM and LSTM models were applied in this research using the stocks listed on the LQ45 index as case study. Result: The utilization of LSTM and BiLSTM models for stock price prediction produced favorable outcomes. It was observed that BiLSTM outperformed LSTM by achieving an average MAPE value of 2.1765, MAE of 104.05, and RMSE of 139.04. The model was subsequently applied to predict a set of stocks with the most promising returns which were later incorporated into the portfolio and further optimized using the Mean-Variance (MV). The results from the optimization and evaluation of the portfolio showed that the BiLSTM+MV strategy proposed had the highest Sharpe Ratio value at k=4 compared to the other models. The stocks found in the optimal portfolio were BRPT with a weight of 19.7%, ACES had 16.9%, MAPI 11.8%, and BMRI at 51.6%. Novelty: This research conducted a novel comparison of LSTM and BiLSTM models for the prediction of stock prices of companies listed in the LQ45 index which were further used to construct a portfolio. Past research showed that the development of portfolios based on predictions was not popular.

Keywords

Collaboration network of the authors

7 authors · 9 co-authorship links · 5 across different organisations

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • Politeknik Statistika STIS
  • Badan Pusat Statistik
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles
Teguh SugiyartoBadan Pusat Statistik2
Ibnu SantosoPoliteknik Statistika STIS1
Robby Hasan PangaribuanBadan Pusat Statistik1
Adelina RahmawatiPoliteknik Statistika STIS1
Zhasa VashellyaPoliteknik Statistika STIS1

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OAI-PMH (metadata jurnal) https://journal.unnes.ac.id/journals/sji/oai, first harvested 6 Nov 2026, last seen 22 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en">Prediction-based Stock Portfolio Optimization Using Bidirectional Long Short-Term Memory (BiLSTM) and LSTM</dc:title>
	<dc:creator xml:lang="en">Putra, Raditya Amanta</dc:creator>
	<dc:creator xml:lang="en">Nurmawati, Erna</dc:creator>
	<dc:subject xml:lang="en">Stock prediction</dc:subject>
	<dc:subject xml:lang="en">Portfolio optimization</dc:subject>
	<dc:subject xml:lang="en">Machine learning</dc:subject>
	<dc:subject xml:lang="en">BiLSTM</dc:subject>
	<dc:subject xml:lang="en">LSTM</dc:subject>
	<dc:description xml:lang="en">Purpose: Investment is the allocation of funds with the aim of obtaining profits in the future. An example of the investment instruments with high returns and high risks are stocks. The risks associated with the investment can be reduced by forming a portfolio of quality stocks optimized through mean-variance (MV). This is necessary because successful selection of high-quality stocks depends on the future performance which can be determined through accurate price prediction.
Methods: Stock price can be predicted through the adoption of different forms of deep learning methods. Therefore, BiLSTM and LSTM models were applied in this research using the stocks listed on the LQ45 index as case study.
Result: The utilization of LSTM and BiLSTM models for stock price prediction produced favorable outcomes. It was observed that BiLSTM outperformed LSTM by achieving an average MAPE value of 2.1765, MAE of 104.05, and RMSE of 139.04. The model was subsequently applied to predict a set of stocks with the most promising returns which were later incorporated into the portfolio and further optimized using the Mean-Variance (MV). The results from the optimization and evaluation of the portfolio showed that the BiLSTM+MV strategy proposed had the highest Sharpe Ratio value at k=4 compared to the other models. The stocks found in the optimal portfolio were BRPT with a weight of 19.7%, ACES had 16.9%, MAPI 11.8%, and BMRI at 51.6%.
Novelty: This research conducted a novel comparison of LSTM and BiLSTM models for the prediction of stock prices of companies listed in the LQ45 index which were further used to construct a portfolio. Past research showed that the development of portfolios based on predictions was not popular.</dc:description>
	<dc:publisher xml:lang="en">Universitas Negeri Semarang</dc:publisher>
	<dc:date>2024-08-05</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.unnes.ac.id/journals/sji/article/view/5941</dc:identifier>
	<dc:identifier>10.15294/sji.v11i3.5941</dc:identifier>
	<dc:source xml:lang="en">Scientific Journal of Informatics; Vol. 11 No. 3: Special Issue; 609-620</dc:source>
	<dc:source>2407-7658</dc:source>
	<dc:source>2460-0040</dc:source>
	<dc:source>10.15294/sji.v11i3</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journal.unnes.ac.id/journals/sji/article/view/5941/1048</dc:relation>
	<dc:rights xml:lang="en">Copyright (c) 2024 Scientific Journal of Informatics</dc:rights>
</oai_dc:dc>