International Journal of Advances in Applied Computational Intelligence cover
International Journal of Advances in Applied Computational Intelligence

Online ISSN 2833-5600

Full Length Article

Volume 5 • Issue 2 • PP: 08-23 • 2024

Leveraging Stochastic Gradient Descent with Deep Learning Model for Financial Distress Prediction

Barbara Charchekhandra 1* ,
Rashel Abu Hakmeh 2 ,
Murat Ozcek 3
1Jadavpur University, Department Of Mathematics, Kolkata, India
2Faculty of Science, Mutah University, Jordan
3Gaziantep University, Department of Mathematics, Gaziantep, Turkey
* Corresponding Author.
verified

Open Access & Copyright

© 2024 The Author(s). Published by ASPG. This article is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

Abstract

Stock is a financial product considered by flexible trading, high risk, and high return that can preferred by several investors. Investors may get an abundance of returns through the accurate prediction of stock price trends. Nevertheless, the stock price can be influenced by certain factors including market conditions, companies’ managerial decisions, macroeconomic situation, and investors’ preferences for major economic and social events. Econometric and Statistical models are widely utilized in classical stock price prediction; however, these techniques could not handle the complex and dynamic environments of the stock market. Researchers have begun using deep learning (DL) and machine learning (ML) to estimate stock fluctuations and prices with the rapid evolution of artificial intelligence (AI), serving investors to define investment strategies to increase returns and decrease risk. Therefore, this manuscript presents a new dung beetle optimization with deep learning based stock price prediction (DBODL-SPP) methodology. The purpose of the DBODL-SPP algorithm is to predict the rise or fall of stock prices using the optimal DL model. In the DBODL-SPP technique, the min-max scalar can be deployed for pre-processing the input data. Besides, the DBODL-SPP approach applies the DBO algorithm for electing an optimal subset of features. The DBODL-SPP technique makes use of a multi-head attention long short-term memory (MHA-LSTM) model for the stock price prediction. Finally, by using the equilibrium optimizer (EO) algorithm, the parameter tuning of the MHA-LSTM algorithm can be carried out. A detailed set of experimentations has been applied to evaluate the enriched performance of the DBODL-SPP technique. The simulation values emphasized that the DBODL-SPP algorithm achieves better results than other techniques for stock price prediction

Full Text

This HTML version is generated from the article PDF. The PDF remains the version of record.

1. Introduction

The stock market is considered an unpredictable, non-linear, and dynamic feature naturally. Prediction of stock prices is a complex task because it relies on diverse conditions comprising however, not restricted to a corporation's financial statements and performances, world economy, political situations, and so on [1]. Accordingly, to decrease the losses and increase the profit, methods to estimate the values of the stock in advance by evaluating the trends in recent times, demonstrate the extremely beneficial to make the stock market activities [2]. Conventionally, two major techniques are developed for calculating the stock price of an organization. Technical analysis system employs the previous price of stocks such as opening and closing price, adjacent close values, the volume traded, and more. The stock is employed to predict the upcoming stock price [3]. Another category of analysis is qualitative which can be executed due to external factors namely market condition, company profile, financial and political aspects, textual data through social media, financial news articles, and even blogs by financial analysts [4]. Currently, advanced intelligent methods dependent upon both technological and basic analysis have been implemented to predict stock prices. Mainly, the data size must be non-linear and massive for analyzing the stock market [5]. In order to deal with numerous data effective system must be required to identify the hidden patterns and intricate relationships in these massive datasets. Machine learning (ML) methods in this domain are demonstrated to enhance effectiveness by 60-86 percent if related to the previous techniques [6].

Continuous expansion in the AI domain causes the extensive usage of deep learning (DL) methods in several research domains and real-world conditions [7]. Applications comprise medical predictions, image recognition, natural language processing (NLP), etc. Neural networks (NNs) are implemented in such applications that can also emerge and be enhanced because of the increase in the DL. For instance, reinforcement learning (RL) achieved popularity after AlphaGo defeated the top chess player at that moment by employing it, and RL was applied to the financial prediction domain from that time. These technological breakthroughs have provided the stock and Forex prediction models a strong basis to begin and better opportunities for enhancement. An extremely difficult nonlinear correlation of DL will entirely define the intricate features of the manipulating factors [8]. DL is one of the ML techniques that can be newly developed. It is a subdivision of ML and artificial intelligence (AI) and a collection of methods, which can be attempted to model higher‐level theoretical notions through learning in diverse layers and levels [9]. Several alternative domains have proved the accuracy of a DL method for prediction accuracy like gene analysis and image classification. Experimentation outcomes have been accomplished for time-series data analysis and prediction with a DL method; for instance, DL is employed for predicting offline store traffic [10]. Entire DL methods are exceedingly performed in alternative research domains.

This manuscript presents a novel dung beetle optimization with DL based stock price prediction (DBODL-SPP) algorithm. The purpose of the DBODL-SPP methodology is to forecast the rise or fall of stock prices using the optimal DL model. In the DBODL-SPP technique, a min-max scalar can be employed for pre-processing the input data. Besides, the DBODL-SPP methodology applies the DBO algorithm for optimum feature subset selections. Moreover, the DBODL-SPP algorithm uses a multi-head attention long short-term memory (MHA-LSTM) model for the prediction of stock prices. At last, the parameter tuning of the MHA-LSTM algorithm has been performed by the use of an equilibrium optimizer (EO) algorithm. The simulation values underlined that the DBODL-SPP approach obtains optimum performance with other methods on the prediction of stock prices.

2. Literature Review

Patil et al. [11] developed an effectual plan named the Deep Recurrent Rider LSTM method. Dual classifiers like Rider Deep LSTM and Deep RNN techniques are employed. The Rider Deep LSTM is a result of the incorporation of the Rider idea with Deep LSTM, while the Deep RNN has been trained to utilize the developed Shuffled Crow Search Optimizer (SCSO) method. Furthermore, the SCSO was a result of the combination of SSO and CSA models. Tao et al. [12] project a novel knowledge graph and DL model integrated with a stock price forecast system. The knowledge graph was employed over the ConvLSTM network. Afterward, the technique builds the mutation point space weight matrix and gets the mutation point data features over the GCN. Lastly, mutation point data, the features of market data, and the target stock price were merged. In [13], a clustering-enhanced DL framework is presented with 3 DL techniques namely LSTM, RNN, and GRU. The method projects a novel resemblance measure, named Logistic Weighted Dynamic Time Warping (LWDTW), by spreading a Weighted Dynamic Time Warping (WDTW) technique. Particularly, the cost weight function of WDTW is adapted with the logistic possibility density distribution function. Furthermore, the clustering-based predicting structure is executed with the above 3 DL methods.

Das et al. [14] present dual novel hybrid DL-based methods named "En-Tweet-Hib-SMF” and “En-Tweet-Deep-SMF”. These plans include improving scores of Twitter sentiment utilizing an improved method and potent practical indicators. The “En-Tweet-Deep-SMF” technique utilizes a GRU, whereas the “En-Tweet-Hib-SMF” method employs the CNN-BLSTM hybrid DL-based technique. Moreover, kernel principal component study is employed. In [15], a novel framework structure is projected, which merges CNN and LSTM, which is called stock sequence array convolution LSTM (SACLSTM). It forms a series array of past data and its foremost indicators employs the array as an input image and removes definite feature vectors over the convolution and pooling layers. Das et al. [16] offer a new technique by uniting ensemble CNN, ensemble empirical mode decomposition (EEMD), and X (Twitter) sentiment scores dependent upon past stock data. This method uses EEMD. Then, an ensemble CNN is made, including parallel sub-networks. This ensemble CNN contains manifold parallel sub-networks; every learning has different IMF representations. The scores of X sentiment are combined over a distinct CNN that examines sentiment.

In [17], a DL structure is offered by utilizing Generative Adversarial Networks (GAN). A generic method containing a Phase-space Reconstruction (PSR) model which is projected for rebuilding price series and GAN which is a mixture of dual neural networks such as CNN as a Discriminative model and LSTM as a Generative model. Mu et al. [18] integrate the multi-source data affecting stock values and relate the SI algorithm, sentiment analysis, and DL to construct the MS-SSA-LSTM technique. Initially, crawling is completed to compute the index of sentiment. Then, the SSA enhances the LSTM hyperparameter. Lastly, the vital trading data and sentiment index are united, and LSTM was employed in order to estimate stock values in the prospect.

3. The Proposed Method

In this article, we have introduced a new DBODL-SPP methodology. The purpose of the DBODL-SPP approach is to forecast the increase or fall of stock prices using the optimal DL model. It encompasses four different kinds of processes involving data normalization, DBO-based feature selection, MHA-LSTM-based price prediction, and EO-based hyperparameter tuning process. Fig. 1 represents the entire flow of the DBODL-SPP technique.

A. Min-Max Normalization

At the primary level, the DBODL-SPP technique undergoes a min-max scalar to preprocess the input data. The previously trained method pre-processes the input data by normalizing it utilizing the MinMaxScaler [19]. This stage is essential because it makes sure that every input feature is on a similar scale and prevents the model from being biased by nearby features with superior values. Normalized also supports the model to converge quicker and enhances its entire solution. This ensures that every value is among zero and one, which is essential for learning efficiently.

𝑥𝑛𝑜𝑟𝑚= 𝑥−𝑥min 𝑥max −𝑥min (1)

whereas 𝑥 refers to the new data, 𝑥min, and 𝑥max denote the minimal and maximal rates from the data, correspondingly, and 𝑥𝑛𝑜𝑟𝑚 signifies the normalization data.

Figure 1. Overall flow of DBODL-SPP technique
Figure 1. Overall flow of DBODL-SPP technique

B. DBO-based Feature Subset Selection

In this work, the DBODL-SPP technique applies the DBO algorithm for electing an optimal subset of features. Xue and Shen recently proposed the DBO algorithm based on the dung beetle's behavior [20]. DBO is better than other optimization techniques on test functions. This emerges from the impact of global best and worst individuals. In this proposed model, the individual is considered a dung beetle in a multi-dimensional search range, and every individual is a promising solution to the optimizer problems. The DBO technique includes 5 steps.

1) Initialization

Assume that 𝑛 agents in the 𝑑‐dimension space, followed by the 𝑋 population formulated by:

𝑥1,1 𝑥1,2 … 𝑥1,𝑑 𝑥2,1 𝑥2,2 … 𝑥2,𝑑 ⋮ ⋮ ⋱ ⋮ 𝑥𝑛,1 𝑥𝑛,2 … 𝑥𝑛,𝑑 ]                                                  (2) 𝑋= [

Each individual must be distributed over the solution space to prevent the optimum solution.

2) Calculate Fitness Value

During this phase, the fitness value of each agent is evaluated. Therefore, the global optimum individuals correspond to the lowest fitness values, and the fitness function (FF) relies on the problems to be resolved.

3) Upgrade Locations

Every individual is split into rolling dung beetles, brood ball beetles, small dung beetles, and thieves, increasing the diversity of new locations. Assume that the amount of initial population is 30, amongst them, six are brood balls, seven are small dung beetles, six are ball‐rolling dung beetles, and the residual are thieves. All the types upgrade their location based on the formula.

𝑎: Ball‐Rolling Dung Beetle

The ball‐rolling dung beetle rolls the ball and updates the position using the subsequent equation:

𝑥𝑖(𝑡+ 1) = 𝑥𝑖(𝑡) + 𝛼× 𝑘× 𝑥𝑖(𝑡−1) + 𝑏×△𝑥                         (3)
△𝑥= |𝑥𝑖(𝑡) −𝑋𝑤|                                              (4)

Now, 𝑋𝑤 indicates the location of global worse dung beetles up to the prior iteration. 𝛼 is allocated 1 or -1. The constants 𝑘 and 𝑏 values range between [0,0.2] and [0,1], correspondingly. The location of 𝑖𝑡ℎ dung beetles at iteration 𝑡𝑋(𝑡).

The 10% probability that they will dance and update the location:

𝑥𝑖(𝑡+ 1) = 𝑥𝑖(𝑡) + tan(𝜃)|𝑥𝑖(𝑡) −𝑥𝑖(𝑡−1)|                               (5)

Here, 𝜃 is a uniform distribution randomly value within [0, 𝜋], demonstrating the angle of defection.

𝑏: Brood Ball

The brood ball dung beetles update the location using the subsequent equation:

𝑥𝑖(𝑡+ 1) = 𝑋∗+ 𝑏1 × (𝑥𝑖(𝑡) −𝐿𝑏∗) + 𝑏2 × (𝑥𝑖(𝑡) −𝑈𝑏∗)              (6)

In Eq. (6), the best position (local best location) amongst 𝑛 dung beetles at the existing iteration is represented as 𝑋∗. The spawning region is constrained within [𝐿𝑏∗, 𝑈𝑏∗]. 𝑏1 and 𝑏2 are random vectors of 1 × 𝑑 size, uniform distribution within [0,1].

𝑐: Small Dung Beetle

The small dung beetle updates the location using Eq. (7):

𝑥𝑖(𝑡+ 1) = 𝑥𝑖(𝑡) + 𝐶1 × (𝑥𝑖(𝑡) −𝐿𝑏𝑏) + 𝐶2 × (𝑥𝑖(𝑡) −𝑈𝑏𝑏)    (7)

Here 𝐶1 denotes the random value following a Gaussian distribution, 𝐶2 is a random number within [0,1], and the optimum foraging region is constrained within [𝐿𝑏𝑏, 𝑈𝑏𝑏].

𝑑: Thief

The thieves updated the location based on Eq. (8),

𝑥𝑖(𝑡+ 1) = 𝑋𝑏+ 𝑆× 𝑔× (|𝑥𝑖(𝑡) −𝑋∗| + |𝑥𝑖(𝑡) −𝑋𝑏|)         (8)

In Eq. (8), 𝑋𝑏 symbolizes the optimum location of dung beetles. 𝑆 shows the constant values, and 𝑔 refers to the random vector generated from the Gaussian distribution with 1x𝑑 dimensional.

4) Judge if out of Boundary Every individual updated to the novel place. Nevertheless, any agents might be outside the boundary of the solution space. In such cases, this agent will set the boundary value.

5) Loop or Terminate

Repeating step 2 still the terminating criteria is satisfied.

The FF undertakes the classifier accurateness and FS counts. It enhances the classifier accuracy and decreases the fixed dimension of FS. Accordingly, the resulting FF has been deployed for evaluating individual results as defined in Eq. (9).

𝐹𝑖𝑡𝑛𝑒𝑠𝑠= 𝛼∗ 𝐸𝑟𝑟𝑜𝑟𝑅𝑎𝑡𝑒+ (1 −𝛼) ∗#𝑆𝐹 #𝐴𝑙𝑙_𝐹                                   (9)

whereas 𝐸𝑟𝑟𝑜𝑟𝑅𝑎𝑡𝑒 denotes the classifier error values employing the FS. #𝑆𝐹 stands for the count of elected features and #𝐴𝑙𝑙_𝐹 implies the entire count of attributes from the new database. 𝐸𝑟𝑟𝑜𝑟𝑅𝑎𝑡𝑒 represents the considered as the percentage of inappropriate classified to the amount of classifiers made, defined as a rate among zero and one. 𝛼 is deployed to manage the significance of classifier quality and subset length.

C. Stock Price Prediction using MHA-LSTM

The DBODL-SPP technique uses the MHA-LSTM model for the prediction of stock prices. The applications of LSTM to time series predictive problems are where they truly shine [21]. Although LSTM is specially designed to alleviate these problems, Backpropagation in RNN is plagued by exploding and disappearing gradient problems. LSTM is a variant of RNN with the memory unit in all the neurons; hence, the network might either discard or retain historical information. LSTM consists of three gates: an input gate that defines what amount of information from the prior layer is to be saved from the cell; an output gate that defines what the next layer learns about the existing cell layer and a forget gate that defines how the information from the existing layer of memory unit is forgotten. Like RNN, the overall structure of LSTM is the same, the cell was differently constructed. In the training process of RNN, the gradient explosion and disappearance problems might be well solved using the novel structure of LSTM. The forget gate layer is accountable for discarding irrelevant information from the cell state.

𝑓𝑓= 𝜎[𝑤𝑓(ℎ𝑡−1, 𝑥𝑡) + 𝑏𝑓]                                                    (10)

In Eq. (10), 𝑥𝑖 is the new input, 𝑤𝑓 denotes the weight, ℎ𝑡−1 refers to the output from the prior time step, and 𝑏𝑓 is the bias. The input gate layer is accountable for updating and determining the original data that would be stored from the cell layer. Next, the 𝑡𝑎𝑛ℎ layer produces the vector of possible new layer values.

𝑖𝑡= 𝜎[𝑤𝑖(ℎ𝑡−1, 𝑥𝑡) + 𝑏𝑖]                                                         (11)
𝑐̂i = 𝑡𝑎𝑛ℎ[𝑤𝑐(ℎ𝑡−1, 𝑥𝑡) + 𝑏𝑖]                                                       (12)

The 𝑐𝑡−1 cell state can be updated to the 𝑐𝑡 state. 𝑓𝑡 intensifies the prior condition. Then 𝑖𝑡∗𝐶̂𝑡 element is added. This produces the new candidate value based on what extent the state value has been modified.

𝑐𝑡= 𝑓𝑡∗𝑐𝑡−1 + 𝑖𝑡∗𝑐̂𝑡                                                         (13)
Figure 2. Architecture of MHA-LSTM Model
Figure 2. Architecture of MHA-LSTM Model

The cellular state is processed by means of the sigmoid layer to define which section would be the outcome. The sigmoid output gate is multiplied by the cell layer (to force the value to be within [-1, 1]).

ôi = 𝑡𝑎𝑛ℎ[𝑤0(ℎ𝑡−1, 𝑥𝑡) + 𝑏𝑖]                                               (14)

Like the attention mechanism, a multi-head attention (MHA) model similarly seeks to consolidate valuable information from word features but permits several convex integrations for attention under distinct words [22]. During this method, it can execute an attention model with the next transitions:

(𝑗) = 𝑤2 (𝑗) tanh (𝑊1 (𝑗)ℎ𝑖+ 𝑏1 (𝑗)) + 𝑏(𝑗)                                    (15) 𝑑𝑖
(𝑗) (𝑗) = exp (𝑑𝑖 (16) 𝑎𝑖 (𝑗) 𝑙 ∑exp (𝑑𝑙
𝑚(𝑗) = ∑𝑎𝑖 (𝑗) ℎ𝑖                                                                   (17) 𝑖
𝑟= 𝑚(1)‖𝑚(2)‖ … . ‖𝑚(𝐾)‖                                                       (18)

(𝑗) is its equivalent attention weighted for the 𝑗𝑡ℎ head, 𝑚(𝑗) implies the aggregation solution for the 𝑗𝑡ℎ head, and 𝑟 represents the aggregation solution for every head. || stands for the concatenation function and 𝑊1 whereas ℎ𝑖 refers to the representation of the word 𝑤𝑖 , 𝑎𝑖

(𝑗) ∈ 𝑅2𝐿, 𝑏(𝑗) ∈𝑅 implies the weight parameters, with 𝐿 indicating the size of LSTM hidden layer and 𝐾 demonstrates the amount of heads. Fig. 2 represents the infrastructure of MHA-LSTM.

(𝑗) ∈𝑅2𝐿𝑥2𝐿  , 𝑏1 (𝑗) ∈𝑅2𝐿, w2

D. Hyperparameter Tuning Process

Eventually, the hyperparameter tuning of the MHA-LSTM algorithm was executed by the use of the EO technique. EO uses a certain population during the optimization process, and each is considered a feasible solution to the problems [23]. The following main steps of EO are given:

1. Initialization

Initially, EO needs an arbitrary solution set to begin its optimizer algorithm. A primary set is generated according to the highest and lowest boundary of the solution:

𝑙𝑠𝑡+ 𝑅𝑁𝐷× (𝐸𝑚 ℎ𝑠𝑡−𝐸𝑚 𝑙𝑠𝑡) 𝑤𝑖𝑡ℎ 𝑚= 1, … , 𝑁𝑃𝑜           (19) 𝐸𝑚= 𝐸𝑚

2. Solution update procedure

The update process for the new solution is performed after the initialization is completed. After each iteration, the update process enhances the quality of existing solutions. The mathematical model to find a new solution is given below:

𝑛𝑒𝑤= 𝐸𝑟𝑒𝑓+ (𝐸𝑚−𝐸𝑟𝑒𝑓) × 𝐸𝑀+ 𝐺𝑃 𝑅𝑃× 𝑉× (1 −𝐸𝑀)           (20) 𝐸𝑚

Where, 𝐺𝑃, 𝐸𝑟𝑒𝑓, and 𝐸𝑀 denote the generating proportion, reference solution, and exponential multiplier. 𝑅𝑃 refers to the return proportion from the volume (𝑉) and can evaluated by the fraction of rated flow (𝑅𝐹) by the model and 𝑉. 𝐸𝑀𝐵 is a center attained solution, 𝐸𝑟𝑒𝑓1, 𝐸𝑟𝑒𝑓2, 𝐸𝑟𝑒𝑓3, and 𝐸𝑟𝑒𝑓4 are the 4 prominent solutions with the smaller FF values from the existing population.

𝐸𝑟𝑒𝑓∈[𝐸𝑟𝑒𝑓1, 𝐸𝑟𝑒𝑓2, 𝐸𝑟𝑒𝑓𝑠, 𝐸𝑟𝑒𝑓4, 𝐸𝑀𝐵]                                (21)
𝐸𝑀𝐵= 𝐸𝑟𝑒𝑓1 + 𝐸𝑟𝑒𝑓2 + 𝐸𝑟𝑒𝑓3 + 𝐸𝑟𝑒𝑓4 4 (22)

The computation of EM: In metaheuristic approach, EM is considered as a scale factor to generate jumping steps among new and old solutions. Usually, the factor is an arbitrary integer in a specific range. But this factor considerably balances the exploitation and exploration in the optimizer algorithm.

𝐸𝑀= 2 × 𝑠𝑖𝑔𝑛(𝛾−0.5) × [𝑒−𝑡𝑣−1]                               (23)

Where 𝑡𝑣 denotes the time variation:

𝐶𝐼 𝑀𝐼 𝑡𝑣= (1 −𝐶𝐼 (24) 𝑀𝐼)

The computation of GP: It enhances the balance between the exploitation and the exploration capabilities.

𝐺𝑃= 𝐸𝑀× 𝐶𝑃(𝐸𝑟𝑒𝑓−𝑡𝑣× 𝐸𝑚)                             (25) 𝜀1 (26)
𝜀1 2 , 𝑖𝑓 𝜀2 ≥0.5 (26) 𝐶𝑃= { 0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒

3. Correction of new solutions

The limitation of the solution is used to correct and check the new ones after finding a new solution attained by Eq. (20):

𝑙𝑠𝑡 𝑖𝑓 𝐸𝑚 𝑛𝑒𝑤< 𝐸𝑚 𝑙𝑠𝑡 𝐸𝑚 𝑛𝑒𝑤= { (27) ℎ𝑠𝑇 𝑖𝑓 𝐸𝑚 𝑛𝑒𝑤> 𝐸𝑚 ℎ𝑠𝑇 𝐸𝑚 𝐸𝑚 𝑛𝑒𝑤 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 𝐸𝑚

4. Selection procedure

The primary objective is to abandon the poor‐quality solution and save the maximum-quality solution for the following iteration. The selection process is performed by comparing the fitness value going to the new and the old performances:

𝑛𝑒𝑤 𝑖𝑓 𝐹𝑡𝑚≥𝐹𝑡𝑚 𝑛𝑒𝑤 𝐹𝑡𝑚= {𝐹𝑡𝑚 𝐹𝑡𝑚,      𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 (28) 𝑛𝑒𝑤
𝑛𝑒𝑤 𝑖𝑓 𝐹𝑡𝑚≥𝐹𝑡𝑚 𝑛𝑒𝑤 𝐸𝑚= {𝐸𝑚 𝐸𝑚,     𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 (29)

In Eqs. (28) and (29), 𝐹𝑡𝑚 and 𝐹𝑡𝑚 𝑛𝑒𝑤 are the existing and new fitness values of the solution 𝑚, correspondingly.

The EO algorithm develops an FF to attain greater classifier efficiency. It resolves a positive integer to exemplify the good efficiency of the candidate outcomes. During this case, the minimizing of the classifier error value can be assumed that the FF, as defined in Eq. (30).

𝑓𝑖𝑡𝑛𝑒𝑠𝑠(𝑥𝑖) = 𝐶𝑙𝑎𝑠𝑠𝑖𝑓𝑖𝑒𝑟𝐸𝑟𝑟𝑜𝑟𝑅𝑎𝑡𝑒(𝑥𝑖)
= 𝑀𝑖𝑠𝑐𝑙𝑎𝑠𝑠𝑖𝑓𝑖𝑒𝑑 𝑖𝑛𝑠𝑡𝑎𝑛𝑐𝑒 𝑐𝑜𝑢𝑛𝑡𝑠 𝑇𝑜𝑡𝑎𝑙 𝑖𝑛𝑠𝑡𝑎𝑛𝑐𝑒 𝑐𝑜𝑢𝑛𝑡𝑠 ∗100                  (30)

4. Performance Validation

In this section, the prediction results of the DBODL-SPP methodology can be investigated. For simulation result analysis, Stock databases [24] for different stock tickers namely BHEL, TCS, Tata Steel, Axis Bank, Wipro, and Maruti are used.

In Table 1 and Fig. 3, the SPP outcomes of the DBODL-SPP system are tested on the Axis Bank dataset. The outcomes are inspected under varying time intervals. It is observed that the DBODL-SPP technique reaches effectual prediction of the stock prices to actual stock prices. With a time interval of 50s, the DBODL-SPP technique predicted a stock price of 78.86 with the original stock price of 55.30. Also, with a time interval of 150s, the DBODL-SPP approach predicted a stock price of 96.53 with the original stock price of 75.81. Additionally, with a time interval of 300s, the DBODL-SPP system predicted a stock price of 131.75 with the original stock price of 125.85.

Table 1. SPP outcome of DBODL-SPP technique with various time intervals on Axis Bank dataset
Table 1. SPP outcome of DBODL-SPP technique with various time intervals on Axis Bank dataset
Figure 3. SPP outcome of DBODL-SPP technique on Axis Bank dataset
Figure 3. SPP outcome of DBODL-SPP technique on Axis Bank dataset

In Table 2 and Fig. 4, the SPP outcome of the DBODL-SPP methodology can tested on the BHEL dataset. The outcomes are examined under varying time intervals. It is clear that the DBODL-SPP system attains effective prediction of the stock prices to actual stock prices. With a time interval of 100s, the DBODL-SPP methodology predicted a stock price of 81.09 with the original stock price of 75.25. In addition, with a time interval of 500s, the DBODL-SPP approach predicted a stock price of 83.59 with the original stock price of 92.84. Furthermore, with a time interval of 800s, the DBODL-SPP methodology predicted the stock price of 181.38 with the original stock price of 193.37.

Table 2. SPP outcome of DBODL-SPP technique with various time intervals on BHEL dataset
Table 2. SPP outcome of DBODL-SPP technique with various time intervals on BHEL dataset
Figure 4. SPP outcome of DBODL-SPP technique on BHEL dataset
Figure 4. SPP outcome of DBODL-SPP technique on BHEL dataset

In Table 3 and Fig. 5, the SPP examination of the DBODL-SPP methodology is tested on the Maruti database. The experimental values are inspected under varying time intervals. It is noticed that the DBODL-SPP system obtains effective prediction of the stock prices to actual stock prices.

Table 3. SPP outcome of DBODL-SPP technique with various time intervals on the Maruti dataset
Table 3. SPP outcome of DBODL-SPP technique with various time intervals on the Maruti dataset
Figure 5. SPP outcome of DBODL-SPP technique on Maruti dataset
Figure 5. SPP outcome of DBODL-SPP technique on Maruti dataset

With a time interval of 20s, the DBODL-SPP methodology predicted a stock price of 72.92 with the original stock price of 60.67. Followed by, with a time interval of 80s, the DBODL-SPP algorithm predicted the stock price of 72.70 with the original stock price of 54.37. Finally, with a time interval of 120s, the DBODL-SPP system predicted a stock price of 75.76 with the original stock price of 69.82.

In Table 4 and Fig. 6, the SPP outcome of the DBODL-SPP methodology is tested on the Tata Steel database. The outcomes are inspected under varying time intervals. It is obvious that the DBODL-SPP algorithm attains effectual prediction of the stock prices to actual stock prices. With a time interval of 100s, the DBODL-SPP system predicted the stock price of 297.04 with the original stock price of 291.23. Likewise, with a time interval of 500s, the DBODL-SPP approach predicted a stock price of 88.29 with the original stock price of 76.78. Eventually, with a time interval of 800s, the DBODL-SPP technique predicted a stock price of 394.32 with the original stock price of 379.96.

Table 4. SPP outcome of DBODL-SPP technique with various time intervals on Tata Steel dataset
Table 4. SPP outcome of DBODL-SPP technique with various time intervals on Tata Steel dataset
Figure 6. SPP outcome of DBODL-SPP technique on Tata Steel dataset
Figure 6. SPP outcome of DBODL-SPP technique on Tata Steel dataset

In Table 5 and Fig. 7, the SPP investigation of the DBODL-SPP system is tested on the TCS database. The experimental values are examined at various time intervals. It is noticed that the DBODL-SPP methodology gains effectual prediction of the stock prices to actual stock prices. With a time interval of 100s, the DBODL-SPP methodology predicted a stock price of 205.57 with the original stock price of 208.78. Besides, with a time interval of 500s, the DBODL-SPP algorithm predicted a stock price of 121.41 with the original stock price of 105.80. Moreover, with a time interval of 800s, the DBODL-SPP methodology predicted a stock price of 324.28 with the original stock price of 333.87.

Table 5. SPP outcome of DBODL-SPP technique with various time intervals on TCS dataset
Table 5. SPP outcome of DBODL-SPP technique with various time intervals on TCS dataset
Figure 7. SPP outcome of DBODL-SPP technique on TCS dataset
Figure 7. SPP outcome of DBODL-SPP technique on TCS dataset

Table 6 and Fig. 8 present a comparative MAE outcome of the DBODL-SPP algorithm with recent models under varying stock tickers [25]. The simulation values implied that the MM-HPA and GAN-HPA systems have reported worse MAE values. Along with that, the MMGAN-HPA model has accomplished slightly reduced MAE values. Nevertheless, the DBODL-SPP technique gains better performance with the least MAE of 0.0019, 0.0020, 0.0021, 0.0022, 0.0020, and 0.0038 under TCS, BHEL, WIPRO, Axis Bank, Maruti, and Tata Steel, correspondingly.

Table 6. MAE analysis of DBODL-SPP technique with other models under various datasets
Table 6. MAE analysis of DBODL-SPP technique with other models under various datasets
Figure 8. MAE analysis of DBODL-SPP technique under various datasets
Figure 8. MAE analysis of DBODL-SPP technique under various datasets

Table 7 and Fig. 9 define a comparative MAE analysis of the DBODL-SPP technique with recent algorithms under various stock tickers. The experimental values referred that the MM-HPA and GAN-HPA approaches have reported worse MAE values. Besides, the MMGAN-HPA approach has accomplished somewhat reduced MAE values. But, the DBODL-SPP methodology achieves higher performance with minimal MAE of 0.000024, 0.000019, 0.000022, 0.000025, 0.000018, and 0.000060 under TCS, BHEL, WIPRO, Axis Bank, Maruti, and Tata Steel, correspondingly.

Table 7. MAE analysis of DBODL-SPP algorithm with other models under various datasets
Table 7. MAE analysis of DBODL-SPP algorithm with other models under various datasets
Figure 9. MSE analysis of DBODL-SPP technique under various datasets
Figure 9. MSE analysis of DBODL-SPP technique under various datasets

Table 8 and Fig. 10 demonstrate a comparative CORR outcome of the DBODL-SPP algorithm with recent techniques under various stock tickers. The simulation values inferred that the MM-HPA and GAN-HPA algorithms have reported the worst CORR values. Along with that, the MMGAN-HPA approach has proficiently slightly increased CORR values. Nevertheless, the DBODL-SPP technique gains optimum solution with improved CORR of 0.9978, 0.9987, 0.9990, 0.9999, 0.9990, and 0.9992 under TCS, BHEL, WIPRO, Axis Bank, Maruti, and Tata Steel, correspondingly.

Table 8. CORR analysis of DBODL-SPP technique with other models under various datasets
Figure 10. CORR analysis of DBODL-SPP technique under various datasets
Figure 10. CORR analysis of DBODL-SPP technique under various datasets

Thus, the DBODL-SPP technique can be applied to predict stock prices proficiently.

5. Conclusion

In this manuscript, we have introduced a new DBODL-SPP technique. The drive of the DBODL-SPP technique is to forecast the rise or fall of stock prices using the optimal DL model. It encompasses four different kinds of processes involving data normalization, DBO-based feature selection, MHA-LSTM-based price prediction, and EO-based hyperparameter tuning. At the primary level, the DBODL-SPP technique undergoes a min-max scalar that has been deployed for pre-processing the input data. Besides, the DBODL-SPP system applies the DBO algorithm for electing an optimal subset of features. For the prediction of stock prices, the DBODL-SPP technique uses the MHA-LSTM algorithm. At last, the parameter tuning of the MHA-LSTM methodology was performed by the use of the EO algorithm. To evaluate the improved performance of the DBODL-SPP system, a wide range of experiments are made. The simulation outcomes underlined that the DBODL-SPP algorithms obtain optimum performance with other approaches to the prediction of stock prices..

Funding: “This research received no external funding”

Conflicts of Interest: “The authors declare no conflict of interest.”

References

[1]     Billah, M.M., Sultana, A., Bhuiyan, F. and Kaosar, M.G., 2024. Stock price prediction: comparison of different moving average techniques using deep learning model. Neural Computing and Applications, pp.1-11.

[2]     Han, C. and Fu, X., 2023. Challenge and opportunity: deep learning-based stock price prediction by using bi-directional LSTM model. Frontiers in Business, Economics and Management, 8(2), pp.51-54.

[3]     Ghosh, B.P., Bhuiyan, M.S., Das, D., Nguyen, T.N., Jewel, R.M., Mia, M.T., Cao, D.M. and Shahid, R., 2024. Deep Learning in Stock Market Forecasting: Comparative Analysis of Neural Network Architectures Across NSE and NYSE. Journal of Computer Science and Technology Studies, 6(1), pp.68-75.

[4]     Kanwal, A., Lau, M.F., Ng, S.P., Sim, K.Y. and Chandrasekaran, S., 2022. BiCuDNNLSTM-1dCNN—A hybrid deep learning-based predictive model for stock price prediction. Expert Systems with Applications, 202, p.117123.

[5]     Mukherjee, S., Sadhukhan, B., Sarkar, N., Roy, D. and De, S., 2023. Stock market prediction using deep learning algorithms. CAAI Transactions on Intelligence Technology, 8(1), pp.82-94.

[6]     Sivadasan, E.T., Mohana Sundaram, N. and Santhosh, R., 2024. Stock market forecasting using deep learning with long short-term memory and gated recurrent unit. Soft Computing, 28(4), pp.3267-3282.

[7]     Bandhu, K.C., Litoriya, R., Jain, A., Shukla, A.V. and Vaidya, S., 2023. An improved technique for stock price prediction on real-time exploiting stream processing and deep learning. Multimedia Tools and Applications, pp.1-21.

[8]     Li, Y. and Pan, Y., 2022. A novel ensemble deep learning model for stock prediction based on stock prices and news. International Journal of Data Science and Analytics, 13(2), pp.139-149.

[9]     Tomer, M., Rathee, T., Singh, H., Mahadevan, N., Singh, G. and Rao, B.K., 2024. A Novel Approach of Stock Price Forecast Using Deep Learning Practices. International Journal of Intelligent Systems and Applications in Engineering, 12(15s), pp.594-603.

[10]   Gunawan, G., Andriani, W., Anandianskha, S., Murtopo, A.A., Nugroho, B.I. and Naja, N.N.P.W., 2024. Optimization Selection on Deep Learning Algorithm for Stock Price Prediction in Indonesia Companies. Scientific Journal of Informatics, 11(1), pp.61-68.

[11]   Patil, P.R., Parasar, D. and Charhate, S., 2024. Wrapper-based feature selection and optimization-enabled hybrid deep learning framework for stock market prediction. International Journal of Information Technology & Decision Making, 23(01), pp.475-500.

[12]   Tao, M., Gao, S., Mao, D. and Huang, H., 2022. Knowledge graph and deep learning combined with a stock price prediction network focusing on related stocks and mutation points. Journal of King Saud University-Computer and Information Sciences, 34(7), pp.4322-4334.

[13]   Li, M., Zhu, Y., Shen, Y. and Angelova, M., 2023. Clustering-enhanced stock price prediction using deep learning. World wide web, 26(1), pp.207-232.

[14]   Das, N., Sadhukhan, B., Ghosh, R. and Chakrabarti, S., 2024. Developing Hybrid Deep Learning Models for Stock Price Prediction Using Enhanced Twitter Sentiment Score and Technical Indicators. Computational Economics, pp.1-40.

[15]   Wu, J.M.T., Li, Z., Herencsar, N., Vo, B. and Lin, J.C.W., 2023. A graph-based CNN-LSTM stock price prediction algorithm with leading indicators. Multimedia Systems, 29(3), pp.1751-1770.

[16]   Das, N., Sadhukhan, B., Bhakta, S.S. and Chakrabarti, S., 2024. Integrating EEMD and ensemble CNN with X (Twitter) sentiment for enhanced stock price predictions. Social Network Analysis and Mining, 14(1), pp.1-18.

[17]   Kumar, A., Alsadoon, A., Prasad, P.W.C., Abdullah, S., Rashid, T.A., Pham, D.T.H. and Nguyen, T.Q.V., 2022. Generative adversarial network (GAN) and enhanced root mean square error (ERMSE): deep learning for stock price movement prediction. Multimedia Tools and Applications, pp.1-19.

[18]   Mu, G., Gao, N., Wang, Y. and Dai, L., 2023. A stock price prediction model based on investor sentiment and optimized deep learning. IEEE Access.

[19]   Jabbar, A. (2024). Integrated Decision Making to Determine the Optimal Order Quantity for Raw Materials Using Genetic Evolutionary Algorithms.  Pure Mathematics for Theoretical Computer Science, 3( 2), 44-59.

[20]   Yang, Y. and Zhao, P., 2024. Research on Dung Beetle Optimization Based Stacked Sparse Autoencoder for Network Situation Element Extraction. IEEE Access.

[21]   Alghamdi, A.A., Ibrahim, A., El-Kenawy, E.S.M. and Abdelhamid, A.A., 2023. Renewable Energy Forecasting Based on Stacking Ensemble Model and Al-Biruni Earth Radius Optimization Algorithm. Energies, 16(3), p.1370

[22]   Gao, H. and Oates, T., 2018. Large Scale Taxonomy Classification using BiLSTM with Self-Attention.

[23]   Van Tran, H., Truong, A.V., Phan, T.M. and Nguyen, T.T., 2024. Optimal placement and operation of soft open points, capacitors, and renewable distributed generators in distribution power networks to reduce total one-year energy loss. Heliyon.

[24]   https://www.nseindia.com/

Polamuri, S.R., Srinivas, K. and Mohan, A.K., 2022. Multi-model generative adversarial network hybrid prediction algorithm (MMGAN-HPA) for stock market prices prediction. Journal of King Saud University-Computer and Information Sciences, 34(9), pp.7433-7444

Continue Reading

View the full issue arrow_forward

Cite This Article

Choose your preferred format

format_quote
Charchekhandra, Barbara, et al. “Leveraging Stochastic Gradient Descent with Deep Learning Model for Financial Distress Prediction.” International Journal of Advances in Applied Computational Intelligence, vol. 5, no. 2, 2024, pp. 08–23. https://doi.org/10.54216/IJAACI.050201.
Charchekhandra, B., Hakmeh, R. A., & Ozcek, M. (2024). Leveraging Stochastic Gradient Descent with Deep Learning Model for Financial Distress Prediction. International Journal of Advances in Applied Computational Intelligence, 5(2), 08–23. https://doi.org/10.54216/IJAACI.050201
Charchekhandra, Barbara, Rashel Abu Hakmeh, and Murat Ozcek. “Leveraging Stochastic Gradient Descent with Deep Learning Model for Financial Distress Prediction.” International Journal of Advances in Applied Computational Intelligence 5, no. 2 (2024): 08–23. https://doi.org/10.54216/IJAACI.050201.
Charchekhandra, B., Hakmeh, R.A. and Ozcek, M. (2024) ‘Leveraging Stochastic Gradient Descent with Deep Learning Model for Financial Distress Prediction’, International Journal of Advances in Applied Computational Intelligence, 5(2), pp. 08–23. Available at: https://doi.org/10.54216/IJAACI.050201.
Charchekhandra B, Hakmeh RA, Ozcek M. Leveraging Stochastic Gradient Descent with Deep Learning Model for Financial Distress Prediction. International Journal of Advances in Applied Computational Intelligence. 2024;5(2):08-23. doi:10.54216/IJAACI.050201
B. Charchekhandra, R. A. Hakmeh, and M. Ozcek, “Leveraging Stochastic Gradient Descent with Deep Learning Model for Financial Distress Prediction,” International Journal of Advances in Applied Computational Intelligence, vol. 5, no. 2, pp. 08–23, 2024, doi: 10.54216/IJAACI.050201.
policy

Publisher's Note

The statements, opinions, and data presented in this article are solely those of the author(s) and do not necessarily represent those of ASPG, the journal, or its editors. ASPG and the editors disclaim responsibility for any harm arising from the use of any ideas, methods, instructions, or products described in this article, to the fullest extent permitted by applicable law.

Digital Archive Ready