Skip to content
Applications for the 2026/2027 academic year are now open. Visit the UENR admissions portal for details.
Back to Project Works
Undergraduate

MOBILE APP FOR STOCK MARKET PREDICTION USING LONG-SHORT-TERM MEMORY (LSTM)

HALIMATU SADIA MOHAMMED YUSSIF MARIAM EMMANUEL KWAKU BOAFO URIAS ESHUN BRACE BRIGHT APPIAGYEI MENSAH2023/2024

Project Abstract

Market volatility and complexity are the inherent problems in the stock market, which further create problems for investors and traders regarding market unpredictability, incomplete information, and financial risk. Hence, the focus of the research is to develop a deep learning model in stock market prediction that can accurately forecast future trends in stocks. We have developed a robust predictive model by analyzing big amounts of historical stock data using some of the most advanced deep learning algorithms. Preprocessing of the data was conducted: imputation of missing values, normalization through Min-Max Scaling stock prices, and selection of the main feature, 'Close'; splitting the data into training, validation, and test sets. In this regard, the data analysis during exploration will focus on the following aspects: historical closing price visualization, analysis of the general volume of trading, and correlation analysis; assessment of daily returns in terms of pairwise relationships. Features such as daily return, VaR, and future price prediction were extracted from the data to enhance the predictive power of the model. We propose a comparative study between two models: LSTM and Linear Regression. The latter serves as our baseline. A variant of the LSTM model, very well known to learn long-term dependencies in time-series data, was implemented with an architecture that includes the stacking of LSTM units and dropout layers on top of each other and ending the model with a dense output layer. It tuned the hyperparameters on the LSTM model, changing the number of units in the hidden layer batch size, and epochs. The evaluation metrics showed a baseline model performing better than the proposed LSTM model. The baseline achieved an MSE value of 7.976, R² of 0.974, whereas, on the other side, the LSTM showed an MSE of 62.149 and R² of 0.798. Precision metrics were also in favor of the baseline model, standing at an impressive 98.67% as opposed to the LSTM model's 95.81%. In collaboration with Streamlit and Hugging Face, an amicable UI was developed that included interaction through buttons, menus, and icons for ease of use. This user interface is very important in terms of usability and the overall success of the digital product, whereby experts and non-experts alike can easily interact with the system. The project would not only lead to an improvement in the decision-making of individual investors but also prove useful for analysts and institutions. By advancing financial forecasting techniques, this research holds potential to significantly enhance the efficiency and accessibility of financial services globally, particularly in developing regions. The innovative approach of integrating a user-friendly app with a carefully trained LSTM model underscores the project's contribution to revolutionizing stock market prediction outcomes.

Main Objective

The main objective is to design, develop, and implement a predictive model that utilizes LSTM to analyze historical stock market data and forecast trends.