Cargando…

Sparrow Search Algorithm-Optimized Long Short-Term Memory Model for Stock Trend Prediction

The long short-term memory (LSTM) network is especially suitable for dealing with time series-related problems, which has led to a wide range of applications in analyzing stock market quotations and predicting future price trends. However, the selection of hyperparameters in LSTM networks was often...

Descripción completa

Detalles Bibliográficos
Autores principales: Liu, Feiyang, Qin, Panke, You, Junru, Fu, Yanyan
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Hindawi 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9391098/
https://www.ncbi.nlm.nih.gov/pubmed/35990139
http://dx.doi.org/10.1155/2022/3680419
_version_ 1784770795543724032
author Liu, Feiyang
Qin, Panke
You, Junru
Fu, Yanyan
author_facet Liu, Feiyang
Qin, Panke
You, Junru
Fu, Yanyan
author_sort Liu, Feiyang
collection PubMed
description The long short-term memory (LSTM) network is especially suitable for dealing with time series-related problems, which has led to a wide range of applications in analyzing stock market quotations and predicting future price trends. However, the selection of hyperparameters in LSTM networks was often based on subjective experience and existing research. The inability to determine the optimal values of the parameters results in a reduced generalization capability of the model. Therefore, we proposed a sparrow search algorithm-optimized LSTM (SSA-LSTM) model for stock trend prediction. The SSA was used to find the optimal hyperparameters of the LSTM model to adapt the features of the data to the structure of the model, so as to construct a highly accurate stock trend prediction model. With the Shanghai Composite Index stock data in the last decade, the mean absolute percentage error, root mean square error, mean absolute error, and coefficient of determination between stock prices predicted by the SSA-LSTM method and actual prices are 0.0093, 41.9505, 30.5300, and 0.9754. The result indicates that the proposed model possesses higher forecasting precision than other traditional stock forecasting methods and enhances the interpretability of the network model structure and parameters.
format Online
Article
Text
id pubmed-9391098
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher Hindawi
record_format MEDLINE/PubMed
spelling pubmed-93910982022-08-20 Sparrow Search Algorithm-Optimized Long Short-Term Memory Model for Stock Trend Prediction Liu, Feiyang Qin, Panke You, Junru Fu, Yanyan Comput Intell Neurosci Research Article The long short-term memory (LSTM) network is especially suitable for dealing with time series-related problems, which has led to a wide range of applications in analyzing stock market quotations and predicting future price trends. However, the selection of hyperparameters in LSTM networks was often based on subjective experience and existing research. The inability to determine the optimal values of the parameters results in a reduced generalization capability of the model. Therefore, we proposed a sparrow search algorithm-optimized LSTM (SSA-LSTM) model for stock trend prediction. The SSA was used to find the optimal hyperparameters of the LSTM model to adapt the features of the data to the structure of the model, so as to construct a highly accurate stock trend prediction model. With the Shanghai Composite Index stock data in the last decade, the mean absolute percentage error, root mean square error, mean absolute error, and coefficient of determination between stock prices predicted by the SSA-LSTM method and actual prices are 0.0093, 41.9505, 30.5300, and 0.9754. The result indicates that the proposed model possesses higher forecasting precision than other traditional stock forecasting methods and enhances the interpretability of the network model structure and parameters. Hindawi 2022-08-12 /pmc/articles/PMC9391098/ /pubmed/35990139 http://dx.doi.org/10.1155/2022/3680419 Text en Copyright © 2022 Feiyang Liu et al. https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
spellingShingle Research Article
Liu, Feiyang
Qin, Panke
You, Junru
Fu, Yanyan
Sparrow Search Algorithm-Optimized Long Short-Term Memory Model for Stock Trend Prediction
title Sparrow Search Algorithm-Optimized Long Short-Term Memory Model for Stock Trend Prediction
title_full Sparrow Search Algorithm-Optimized Long Short-Term Memory Model for Stock Trend Prediction
title_fullStr Sparrow Search Algorithm-Optimized Long Short-Term Memory Model for Stock Trend Prediction
title_full_unstemmed Sparrow Search Algorithm-Optimized Long Short-Term Memory Model for Stock Trend Prediction
title_short Sparrow Search Algorithm-Optimized Long Short-Term Memory Model for Stock Trend Prediction
title_sort sparrow search algorithm-optimized long short-term memory model for stock trend prediction
topic Research Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9391098/
https://www.ncbi.nlm.nih.gov/pubmed/35990139
http://dx.doi.org/10.1155/2022/3680419
work_keys_str_mv AT liufeiyang sparrowsearchalgorithmoptimizedlongshorttermmemorymodelforstocktrendprediction
AT qinpanke sparrowsearchalgorithmoptimizedlongshorttermmemorymodelforstocktrendprediction
AT youjunru sparrowsearchalgorithmoptimizedlongshorttermmemorymodelforstocktrendprediction
AT fuyanyan sparrowsearchalgorithmoptimizedlongshorttermmemorymodelforstocktrendprediction