# Internet Financial Risk Monitoring and Evaluation Based on GABP Algorithm

Authors: Yaqin Guang; Shunyong Li; Quanping Li
Journal: Journal of Mathematics
 (2022)

---

## Abstract

Due to the generality and particularity of Internet financial risks, it is imperative for the institutions involved to establish a sound risk prevention, control, monitoring, and management system and timely identify and alert potential risks. Firstly, the importance of Internet financial risk monitoring and evaluation is expounded. Secondly, the basic principles of backpropagation (BP) neural network, genetic algorithm (GA), and GABP algorithms are discussed. Thirdly, the weight and threshold of the BP algorithm are optimized by using the GA, and the GABP model is established. The financial risks are monitored and evaluated by the Internet financial system as the research object. Finally, GABP is further optimized by the simulated annealing (SA) algorithm. The results show that, compared with the calculation results of the BP model, the GABP algorithm can reduce the number of BP training, has high prediction accuracy, and realizes the complementary advantages of GA and BP neural network. The GABP network optimized by simulated annealing method has better global convergence, higher learning efficiency, and prediction accuracy than the traditional BP and GABP neural network, achieves better prediction effect, effectively solves the problem that the enterprise financial risk cannot be quantitatively evaluated, more accurately assesses the size of Internet financial risk, and has certain popularization value in the application of Internet financial risk prediction.


---

## Body

## 1. Introduction

Internet finance refers to using Internet technology and mobile communication to implement financing, a new financial model of information intermediary, payment, and other businesses, and has the characteristics of universality, low cost, and information; at present, the development model mainly includes the raise, P2P network platform, the Internet money market funds, loan third-party payment, and digital currency [1]. On the one hand, Internet financial risks have the general attributes of traditional financial risks. Internet finance, as the main product of “Internet + finance,” has the same risk with traditional financial risk in principle. The default risk, financial transaction risk, and trust-breaking risk existing in the traditional financial chain still exist in the field of Internet finance. On the other hand, Internet financial risk has the particularity of multiple factors. In addition to traditional financial risks, Internet finance has the characteristics of fast product innovation, continuous expansion of user groups, and rapid expansion of capital scale. In addition, Internet technology itself has the characteristics of fast diffusion and high relevance. Therefore, it has potential risks such as product innovation risk, illegal operation risk, liquidity risk, and so on [2].With the rapid development of Internet finance and the increasing diversification of payment modes, it not only is convenient for food, clothing, shelter, and transportation for people’s life and provides more finance for the development of the real economy but also brings a lot of risks. The illegal and criminal activities of Internet finance, such as credit card fraud and illegal cash cashing, have emerged continuously and presented new characteristics and new trends [3, 4]. Throughout the financial industry, the Internet development can be found that the risk control is rooted in borrowing information asymmetry of both sides; specific manifestations include P2P network lending risk, equity crowdfunding financing risk, Internet fund sales risk, Internet payment risk, Internet trust risk, Internet insurance risk, and Internet consumer finance risk.


## 2. Important Role of GABP Neural Network in the Field of Internet Financial Risk Supervision

From the logic of maintaining financial stability, financial risk monitoring and assessment are the key links in the realization of financial stability. Monitoring focuses on tracing the original cause of risk, responding to abnormal changes in economic and financial operation, and weighing the possible impact. The assessment should be a conclusive assessment of the impact and outcome of risk factors, with the emphasis on realistic or after-the-fact effects. The risk rating is actually a process of risk quantification. Through the summary of historical experience, the risk is manually graded, the judgment basis of each grade is extracted and converted into a mathematical rule model, and the operation of the automatic risk rating model is carried out through input parameters. Quantification of risk rating can effectively transform the behavioral process in the field of Internet finance into quantitative indicators, making risk avoidance work clearer and more grounded [5]. However, most Internet financial enterprises have not established neural network risk control monitoring and evaluation system. The main reasons are as follows. First, insufficient funds can not realize the continuous investment of software and hardware [6]. Secondly, Internet financial enterprises are generally established for a short time. At the beginning of their establishment, they are busily expanding the market and have no time to take into account the construction of the IT platform. Thirdly, the managers of some enterprises pay insufficient attention to the value of the neural network. Fourthly, there are some difficulties and even barriers to using the neural network in the Internet financial system, and the whole IT solutions of the whole industry are still being explored [7].Due to the generality and particularity of Internet financial risks, it is urgent for the institutions involved to establish a set of sound risk prevention, control, and monitoring and management system. Through the integration and analysis of massive data, the association between data is mined to discover the anomalies and timely identify and alarm the risks and hidden dangers. GABP neural network is characterized by flexible and diverse risk identification methods, rapid iteration of risk identification model, and accurate risk identification results. By adopting distributed storage structure, GABP has excellent learning ability, good redundancy, and strong robustness, which is able to play a significant role in financial risk identification and risk pricing. By extracting the profitability, operating capacity, and debt paying capacity of the loan enterprise as the network input, the network output results are normal and alarm.


## 3. GABP Algorithm Theory

### 3.1. Fundamentals and Models of BP Algorithm

BP is a multilayer feedforward network and can train and learn a variety of input-output mapping relationships without describing the mathematical equations that can reflect the mapping relationship in advance [8]. BP algorithm adopts the steepest descent method and reversely adjusts the threshold and weight of the network according to the error of the output result. In order to enhance the classification ability of the network and better deal with complex nonlinear problems, it is necessary to add a hidden layer. Meanwhile, the nonlinear information can be processed by adding an error backpropagation signal on the basis of a multilayer perceptron [9]. The information enters the network, processes it in the hidden layer, and finally outputs the results outward in the output layer, which is the forward propagation step. The error signal is sent back through the original path so that the connection weight of each layer is worth reasonable adjustment and finally achieves the purpose of adjusting the output value so that the output error is reduced to an acceptable range. According to this method, the error of each layer of the BP network can be obtained. Compared with other networks, the network has a simpler structure, higher prediction accuracy, and stronger nonlinear processing ability [10]. It has been widely used in the fields of system parameter identification, complex signal processing, intelligent pattern recognition, adaptive optimal control, and so on.Figure1 is the flowchart of the BP neural network. The input layer has n neural units, the input feature vector is X=x1,x2,…,xmT∈Rm, and the input vector outputs m output feature vector Y=y1,y2,…,ynT∈Rn after passing by the hidden layer, which has l neuron, whose hidden feature vector Z=o1,o2,…,olT∈Rl. The weight of the hidden layer is wij, and the threshold is wijj=1,2,…,l. The weight of the output layer is wkik=1,2,…,n. The threshold of the implied layer is θi. The excitation function of the implied layer is ϕx. BP neural network has a strong ability of nonlinear learning and adaptation, and it can be applied to a nonlinear prediction by continuous training of neural network through sample data. However, since the BP neural network algorithm adopts the weight modification method of error, there are problems.Figure 1
Flowchart of BP.The input and output of a certain node are shown as follows:(1)neti=∑j=1Mwijxj+θi,(2)zi=ϕ∑j=1mwijxj+θi,(3)netk=∑j=1mwkizi+ak=∑i=1qwkizi=ϕ∑j=1mwijxj+θi+ak,(4)yk=ψnetk=∑j=1mwkizi+ak=ψ∑i=1qwkiϕ∑j=1mwijxj+θi+ak.BP network is actually the optimal solution to solve the function, that is,(5)mina≤w≤bEwki=12∑k=1nYk−yk2.BP is a fast algorithm of single hidden layer feedforward neural network. The weight vector of random hidden input layer and the threshold of hidden layer nodes of the algorithm completes the online training by calculating the weight of the least square criterion without updating the parameters. In the process of training, only the number of hidden layer nodes needs to be set to obtain the unique optimal solution. Compared with traditional machine learning algorithms, this method has the advantages of fast training speed, easy implementation, less parameter adjustment, and better generalization performance. If the output layer cannot get the expected output, it is the error between the actual output value and the expected output value and then turn to the back-propagation process. The returned error signal will gradually spread to the input layer and calculation through the change of the neuron weight of each layer and then minimize the error of the signal through the reuse of the process through the forward propagation. However, in practice, the process of online learning ends when the error is within people’s expectations. Figure2 shows the algorithm structure of the BP algorithm in MATLAB.Figure 2
Topology diagram of BP in MATLAB software.


### 3.2. Fundamentals and Models of GA

Genetic Algorithm (GA) is a kind of optimization algorithm based on global optimization probability [11]. It selects, crosses, and mutates the generated population, sorts the solutions according to their merits, selects some solutions according to certain indexes, and uses genetic operators to operate on them to generate a group of candidate solutions for a new generation. This process is repeated until some index of convergence is satisfied [12]. GA has excellent global search ability and wide adaptability. Therefore, GA is widely used in combinatorial optimization, signal processing, adaptive control, and other fields and is also commonly used as the optimization of neural networks and other algorithms’ initial conditions.Figure3 shows the processing process of GA [13]. GA is based on the evolutionary ideas and inspiration of a global optimization algorithm and in essence is a kind of direct search method that does not depend on specific problems; it simulates the replication, mating, and waiting of natural selection and gene mutation. Starting from any initial population, it is more suitable to produce a group of individuals through random selection, mating, and mutation operations, so as to make the population evolve to a better area in the search space, make the generated individuals multiply and evolve continuously, and finally converge to a group of individuals with the strongest adaptability to the environment, The optimal solution of the problem is obtained. GA has the advantages of simple calculation, small dependence on the problem, and multipoint parallel operation and can prevent the search process from converging to the local optimal solution. At the same time, it adopts efficient heuristic search and can improve the calculation speed through large-scale parallel computing. The disadvantage of this method is that it is coarse-grained calculation and global search optimization, so it is not easy to get the exact solution.Figure 3
The basic flow of GA.Two new individuals are formed by crossing some genes of two chromosomes, and the crossing method ofm-th chromosome gm and n-th chromosome gn at position j is as follows:(6)gmj=gmj1−h+gnjh,gnj=gnj1−h+gmjh,where h∈0,1 is a random number.Thej-th gene gij of the i-th individual was selected for mutation operation as follows:(7)gij=gij+gij−gmax∗h1−PPmax,r≥0.5,gij+gmin−gij∗h1−PPmax,r<0.5,where gmax and gmin are the maximum and minimum values of gij, P is the current iteration times, Pmax is the maximum evolution times, and h and i are random numbers interval 0,1.


### 3.3. Basic Principle of GABP Algorithm

Both BP network and GA are suitable for solving nonlinear problems, but they have their own advantages and disadvantages: BP network has superior self-learning, adaptive, self-organizing, and large-scale parallel processing capabilities, but its error function is square and sensitive to the initial weight setting of the network, which is easy to cause oscillation effect [14, 15]. By using GA to optimize the BP and combining the advantages of GA, the genetic algorithm is selected, crossed, and mutated by genetic operators to generate individual optimal species, find the initial weight and threshold of the optimal solution of BP neural network, assign values, and then train the BP neural network model to finally obtain the global optimal prediction value. The new population then carries on the genetic operation so that the fitness of each individual in the population increases continuously, and the output error decreases continuously until the preset condition value is reached. Through selection, regeneration, crossover, mutation, and other genetic operations, the population gradually evolves to the desired pattern and finally obtains the global optimal solution of the problem. Compared with traditional optimization algorithms (search algorithm, heuristic algorithm, etc.), GA has the advantages of global optimal search, better convergence, and higher robustness.The basic idea of optimization of BP neural network by GA is to adjust the network weight method by changing the information guidance of the BP algorithm, which depends on the gradient, and to make use of the global search characteristics of GA to search for the optimal network structure and the connection weight of the network [16–18]. The main realization steps are shown in Figure 4. (a) The BP network was constructed to determine the node number of each layer of the input layer, hidden layer, and output layer, select transfer function and training function, randomly generate N groups of connection weights and thresholds between layers, and cascade them as the initial chromosome set. (b) The fitness function associated with the error function was determined, and the fitness of each chromosome was calculated. (c) Select the chromosome with strong adaptability, generate new individuals through crossover and mutation, and calculate its fitness. (d) Steps (b) and (c) are repeated until the individual with the maximum fitness is found as the initial weight and threshold value of the BP neural network. (e) Train the BP network to make the error converge to the specified precision range. (f) After the calculation of the above steps, the BP network after the training can be predicted.Figure 4
Flowchart of GABP algorithm.The general steps of solving problems using the GABP optimization algorithm are as follows:Step 1. According to the training data to be diagnosed, the structure of the BP network and parameters to be optimized were determined, and the data samples were divided into a training set, verification set, and test set without repetition.Step 2. According to the parameters to be optimized in the BP network, set the population size and iteration step number in GA.Step 3. Select, cross, and mutate the population to generate new individuals, and calculate the fitness value of the population according to equation (8):(8)X=x1,x2,…,xnT∈Rnθij,fitness·=RMSE=1n∑i=1noi−yi2.Step 4. Save the optimal solution according to the fitness value, repeat Step 3, record the optimal solution, and replace the local optimal solution with the global optimal solution.Step 5. Determine whether the termination conditions are met. If not, repeat Step 3 and Step 4. If so, the optimal weight and threshold value of the BP network are output [19].The calculation formula of individual fitnessF is as follows:(9)F=k∑i=1nabsyi−oi.The selection probabilitypi of each individual i is(10)pi=fi∑j=1Nfi,fi=kFi,where fi is the fitness value of individual i and N is the number of individuals in the population.The error evaluation of simulation calculation adopts mean relative error, mean square error, and mean absolute error; namely,(11)MAE=1Np∑i=1Npxi−x^i,MRE=∑i=1Npxi−x^i2∑i=1Npxi2,MSE=1Np∑i=1Npxi−x^i2,where Np is the data sample length, xi is the i-th data sample, and x^i is the average of the sample.


## 3.1. Fundamentals and Models of BP Algorithm

BP is a multilayer feedforward network and can train and learn a variety of input-output mapping relationships without describing the mathematical equations that can reflect the mapping relationship in advance [8]. BP algorithm adopts the steepest descent method and reversely adjusts the threshold and weight of the network according to the error of the output result. In order to enhance the classification ability of the network and better deal with complex nonlinear problems, it is necessary to add a hidden layer. Meanwhile, the nonlinear information can be processed by adding an error backpropagation signal on the basis of a multilayer perceptron [9]. The information enters the network, processes it in the hidden layer, and finally outputs the results outward in the output layer, which is the forward propagation step. The error signal is sent back through the original path so that the connection weight of each layer is worth reasonable adjustment and finally achieves the purpose of adjusting the output value so that the output error is reduced to an acceptable range. According to this method, the error of each layer of the BP network can be obtained. Compared with other networks, the network has a simpler structure, higher prediction accuracy, and stronger nonlinear processing ability [10]. It has been widely used in the fields of system parameter identification, complex signal processing, intelligent pattern recognition, adaptive optimal control, and so on.Figure1 is the flowchart of the BP neural network. The input layer has n neural units, the input feature vector is X=x1,x2,…,xmT∈Rm, and the input vector outputs m output feature vector Y=y1,y2,…,ynT∈Rn after passing by the hidden layer, which has l neuron, whose hidden feature vector Z=o1,o2,…,olT∈Rl. The weight of the hidden layer is wij, and the threshold is wijj=1,2,…,l. The weight of the output layer is wkik=1,2,…,n. The threshold of the implied layer is θi. The excitation function of the implied layer is ϕx. BP neural network has a strong ability of nonlinear learning and adaptation, and it can be applied to a nonlinear prediction by continuous training of neural network through sample data. However, since the BP neural network algorithm adopts the weight modification method of error, there are problems.Figure 1
Flowchart of BP.The input and output of a certain node are shown as follows:(1)neti=∑j=1Mwijxj+θi,(2)zi=ϕ∑j=1mwijxj+θi,(3)netk=∑j=1mwkizi+ak=∑i=1qwkizi=ϕ∑j=1mwijxj+θi+ak,(4)yk=ψnetk=∑j=1mwkizi+ak=ψ∑i=1qwkiϕ∑j=1mwijxj+θi+ak.BP network is actually the optimal solution to solve the function, that is,(5)mina≤w≤bEwki=12∑k=1nYk−yk2.BP is a fast algorithm of single hidden layer feedforward neural network. The weight vector of random hidden input layer and the threshold of hidden layer nodes of the algorithm completes the online training by calculating the weight of the least square criterion without updating the parameters. In the process of training, only the number of hidden layer nodes needs to be set to obtain the unique optimal solution. Compared with traditional machine learning algorithms, this method has the advantages of fast training speed, easy implementation, less parameter adjustment, and better generalization performance. If the output layer cannot get the expected output, it is the error between the actual output value and the expected output value and then turn to the back-propagation process. The returned error signal will gradually spread to the input layer and calculation through the change of the neuron weight of each layer and then minimize the error of the signal through the reuse of the process through the forward propagation. However, in practice, the process of online learning ends when the error is within people’s expectations. Figure2 shows the algorithm structure of the BP algorithm in MATLAB.Figure 2
Topology diagram of BP in MATLAB software.


## 3.2. Fundamentals and Models of GA

Genetic Algorithm (GA) is a kind of optimization algorithm based on global optimization probability [11]. It selects, crosses, and mutates the generated population, sorts the solutions according to their merits, selects some solutions according to certain indexes, and uses genetic operators to operate on them to generate a group of candidate solutions for a new generation. This process is repeated until some index of convergence is satisfied [12]. GA has excellent global search ability and wide adaptability. Therefore, GA is widely used in combinatorial optimization, signal processing, adaptive control, and other fields and is also commonly used as the optimization of neural networks and other algorithms’ initial conditions.Figure3 shows the processing process of GA [13]. GA is based on the evolutionary ideas and inspiration of a global optimization algorithm and in essence is a kind of direct search method that does not depend on specific problems; it simulates the replication, mating, and waiting of natural selection and gene mutation. Starting from any initial population, it is more suitable to produce a group of individuals through random selection, mating, and mutation operations, so as to make the population evolve to a better area in the search space, make the generated individuals multiply and evolve continuously, and finally converge to a group of individuals with the strongest adaptability to the environment, The optimal solution of the problem is obtained. GA has the advantages of simple calculation, small dependence on the problem, and multipoint parallel operation and can prevent the search process from converging to the local optimal solution. At the same time, it adopts efficient heuristic search and can improve the calculation speed through large-scale parallel computing. The disadvantage of this method is that it is coarse-grained calculation and global search optimization, so it is not easy to get the exact solution.Figure 3
The basic flow of GA.Two new individuals are formed by crossing some genes of two chromosomes, and the crossing method ofm-th chromosome gm and n-th chromosome gn at position j is as follows:(6)gmj=gmj1−h+gnjh,gnj=gnj1−h+gmjh,where h∈0,1 is a random number.Thej-th gene gij of the i-th individual was selected for mutation operation as follows:(7)gij=gij+gij−gmax∗h1−PPmax,r≥0.5,gij+gmin−gij∗h1−PPmax,r<0.5,where gmax and gmin are the maximum and minimum values of gij, P is the current iteration times, Pmax is the maximum evolution times, and h and i are random numbers interval 0,1.


## 3.3. Basic Principle of GABP Algorithm

Both BP network and GA are suitable for solving nonlinear problems, but they have their own advantages and disadvantages: BP network has superior self-learning, adaptive, self-organizing, and large-scale parallel processing capabilities, but its error function is square and sensitive to the initial weight setting of the network, which is easy to cause oscillation effect [14, 15]. By using GA to optimize the BP and combining the advantages of GA, the genetic algorithm is selected, crossed, and mutated by genetic operators to generate individual optimal species, find the initial weight and threshold of the optimal solution of BP neural network, assign values, and then train the BP neural network model to finally obtain the global optimal prediction value. The new population then carries on the genetic operation so that the fitness of each individual in the population increases continuously, and the output error decreases continuously until the preset condition value is reached. Through selection, regeneration, crossover, mutation, and other genetic operations, the population gradually evolves to the desired pattern and finally obtains the global optimal solution of the problem. Compared with traditional optimization algorithms (search algorithm, heuristic algorithm, etc.), GA has the advantages of global optimal search, better convergence, and higher robustness.The basic idea of optimization of BP neural network by GA is to adjust the network weight method by changing the information guidance of the BP algorithm, which depends on the gradient, and to make use of the global search characteristics of GA to search for the optimal network structure and the connection weight of the network [16–18]. The main realization steps are shown in Figure 4. (a) The BP network was constructed to determine the node number of each layer of the input layer, hidden layer, and output layer, select transfer function and training function, randomly generate N groups of connection weights and thresholds between layers, and cascade them as the initial chromosome set. (b) The fitness function associated with the error function was determined, and the fitness of each chromosome was calculated. (c) Select the chromosome with strong adaptability, generate new individuals through crossover and mutation, and calculate its fitness. (d) Steps (b) and (c) are repeated until the individual with the maximum fitness is found as the initial weight and threshold value of the BP neural network. (e) Train the BP network to make the error converge to the specified precision range. (f) After the calculation of the above steps, the BP network after the training can be predicted.Figure 4
Flowchart of GABP algorithm.The general steps of solving problems using the GABP optimization algorithm are as follows:Step 1. According to the training data to be diagnosed, the structure of the BP network and parameters to be optimized were determined, and the data samples were divided into a training set, verification set, and test set without repetition.Step 2. According to the parameters to be optimized in the BP network, set the population size and iteration step number in GA.Step 3. Select, cross, and mutate the population to generate new individuals, and calculate the fitness value of the population according to equation (8):(8)X=x1,x2,…,xnT∈Rnθij,fitness·=RMSE=1n∑i=1noi−yi2.Step 4. Save the optimal solution according to the fitness value, repeat Step 3, record the optimal solution, and replace the local optimal solution with the global optimal solution.Step 5. Determine whether the termination conditions are met. If not, repeat Step 3 and Step 4. If so, the optimal weight and threshold value of the BP network are output [19].The calculation formula of individual fitnessF is as follows:(9)F=k∑i=1nabsyi−oi.The selection probabilitypi of each individual i is(10)pi=fi∑j=1Nfi,fi=kFi,where fi is the fitness value of individual i and N is the number of individuals in the population.The error evaluation of simulation calculation adopts mean relative error, mean square error, and mean absolute error; namely,(11)MAE=1Np∑i=1Npxi−x^i,MRE=∑i=1Npxi−x^i2∑i=1Npxi2,MSE=1Np∑i=1Npxi−x^i2,where Np is the data sample length, xi is the i-th data sample, and x^i is the average of the sample.


## 4. Risk Prediction and Evaluation Optimization Model of Internet Finance

The correct selection of the BP neural network sample has an important influence on the feature extraction of financial ratio and the generalization ability of the network. Since Altman is widely used in study, research, and practical work, it can reflect corporate liquidity, profitability, growth, solvency, and other indicators [20]. Therefore, this model selects Altman’s financial ratio as the input model, and the specific indicators are as follows:XP1: retained earnings/total assets (RE/TA) is a measure of a company’s earnings accumulation that takes into account the company’s lifetime. A startup that has not been able to accumulate profits in time has a low RE/TA and is therefore considered a disreputable company.XP2: EBIT/TA is a measure of the true earning power of a company’s assets, excluding taxes or other types of leverage. Since the ultimate survival of a company is based on the profitability of its assets, the ratio is particularly useful for studying the company’s future creditworthiness.XP3: book value of equity/book value of total debt (BVE/VBTD). Altman used the market value of equity in the original ratio but suggested replacing MVE with BVE for unlisted companies. BVE/BVTD is selected as one of the input modes; given the current situation, the number of unlisted companies in China is still in the majority. BVE/BVTD tells you how much a company’s assets can fall before it becomes insolvent.XP4: sales revenue/total assets (S/TA) refers to asset turnover, which is a standard financial ratio that can reflect the operating capacity of a company’s assets. It can measure the management ability of an enterprise in a competitive situation.Because the system is always developing and changing, the selected learning samples should reflect not only the properties of the system when it develops smoothly but also the characteristics of the system when it mutates, and at the same time, it should take into account all stages of the system development [21]. In addition, the number of learning samples is too small, resulting in high volatility of the network. The more the number of samples, the higher the degree of network fitting to the system. However, in practical application, the number of samples cannot increase indefinitely, so the selected samples must be representative [22–24]. In view of the above reasons, considering the quantity, quality, and representativeness of samples, 36 Internet finance companies are selected as samples in this paper. According to the credit repayment status of financial companies provided by the bank, these 36 companies are divided into normal and default (i.e., enterprises that cannot repay loans on schedule). Twenty-eight enterprises were selected as the training set, of which 14 were normal enterprises and 14 were defaulted enterprises, respectively, and the remaining 8 were general enterprises. All of them were selected as the test set, except for 2 enterprises, which were left as the application practice. There were 3 normal enterprises and 3 defaulted enterprises, respectively.


## 5. Calculation Results Are Analyzed and Discussed

Figure5 shows the adaptive value curve of GA, and Figures 6 and 7 show the prediction results of GABP, respectively. As we see, after 16 iterations, the average fitness of chromosomes basically tends to be stable, and an optimal initial weight is obtained after 26 iterations. In general, the model has a good judgment result, and the judgment accuracy is more than 90% from the results of training, testing, and application. One of the reasons for the high judgment rate is that the neural network has good knowledge discovery and feature extraction capabilities, another reason may be that all data are interpolated data, and the neural network model has a slightly poor effect on extrapolating data. The global search ability of GA is used to optimize the structural parameters of the BP network. Therefore, the Internet financial risk evaluation model has certain scientificity and rationality. There is a small error between the network output results of both training samples and testing samples and the expert evaluation results. Combined with the above analysis, it can be seen that the GABP network established in this paper has a good fitting state and strong generalization ability, indicating that the GABP network has good performance and can be used. In this way, a GABP network model used for knowledge sharing risk evaluation within enterprises has been successfully studied and trained, and this model can be used to carry out risk numerical evaluation of knowledge sharing risk within enterprises so as to serve as the decision-making basis for enterprise managers.Figure 5
Fitness curve.Figure 6
Comparison of prediction results of training samples.Figure 7
Comparison of prediction results of the test sample.The training regression diagram predicted by the GABP algorithm is shown in Figure8. The GABP model constructed by GA is added on the basis of the BP network model. The accuracy of Internet financial risk monitoring and evaluation is better than the simple BP model. From the calculation process. The optimized model trained for 2,000 times can achieve better results than the simple BP model trained for 5,000 times. The combination is more conducive to the application of the Artificial Neural Network (ANN) model in Internet financial risk prediction.Figure 8
Training regression graphs predicted based on GABP algorithm.


## 6. GABP Algorithm Based on Simulated Annealing Optimization

GA has the advantages of strong applicability, good parallel processing ability, and high running efficiency, but it also has the disadvantages of premature convergence to local optimal solution [25, 26]. The premature convergence of the algorithm is mainly caused by the continuous evolution of the population, the fitness value of a few individuals in the population may far exceed that of other individuals, and these individuals have strong advantages in genetic operations such as selection crossover, resulting in the loss of variety in the population [27]. Therefore, this paper chooses to combine genetic algorithm and simulated annealing algorithm. Simulated annealing genetic algorithm (SA-GA) combines the respective characteristics of simulated annealing algorithm (SA) and genetic algorithm (GA) in terms of optimization operation and principle, which makes the search behavior of optimization process more perfect, enhances the ability of global search and local search, and can effectively control the phenomenon of rapid convergence. In theory, the emergence of the image can better solve the problem of Internet financial risk monitoring and evaluation [28, 29].A simulated annealing algorithm is used to simulate the process of metal temperature slowly decreasing from high energy disorder state to low energy ordered state. Firstly, the algorithm randomly selects the initial solution and sets the initial high temperature to generate the neighborhood solution in the initial solution neighborhood. If the new randomly generated solution is better than the initial solution, the new solution is accepted unconditionally. If the function value of the new solution is less than the initial solution, the new solution is accepted with a certain probability; that is, the difference solution is not completely discarded. This cycle until the heat balance is reached; that is, the set number of cycles is reached. Lower the temperature and repeat the cycle so that the function reaches equilibrium at each decreasing temperature. When the temperature drops to the termination temperature, the whole cycle ends, and the final cooling state is obtained, which is the solution of the objective function.The design steps of simulated annealing GA are as follows [30]:Step 1. Encode and decode. The gene value of the chromosome is constructed based on the positive integer encoding method, and the initial chromosome is generated by constraint conditions as the initial solution. The decoding process is to transform chromosomes into an ordered operation table and then screen each training sample one by one according to constraints, thus generating feature vectors.Step 2. Encode and decode. The objective function is closer to the demand of actual financial risk through a multiobjective optimization strategy that minimizes prediction error [31].Step 3. Genetic manipulation. Selection step: for the solution satisfying the constraint conditions, the elite retention strategy and proportional selection method are adopted to make the individuals with high adaptability inherent with a greater probability so as to improve the efficiency of the algorithm. Crossover step: the crossover operation is carried out randomly among the individuals after the selection step and the individuals meeting the constraint conditions are retained. Mutation step: swap operation is adopted to randomly swap genes in two different places in the chromosome solution in the previous step [32].The process of simulated annealing GA is shown in Figure9. Firstly, an initial population is randomly generated, and a group of new individuals are obtained through genetic operators such as selection, crossover, and mutation. This is a GA, which focuses on global search. Then, set the initial high temperature, conduct simulated annealing on these individuals, and cool them to the termination temperature to obtain a new group of excellent individuals, that is, the next generation of the initial population. This is a simulated annealing algorithm, focusing on local search. The cycle is iterated until the termination condition is reached, or the last generation is reached, and the whole calculation ends.Figure 9
Calculation flowchart of simulated annealing algorithm.Figure10 shows the expected change curve of GABP optimal fitness optimized by simulated annealing algorithm, and Figure 11 shows the training process. As we can see, the absolute error of the traditional BP algorithm in some periods is relatively large, and the relative error in other periods is about 10%, while the relative error of GABP is reduced to about 6% compared with traditional BP. The fundamental reason is that BP neural network starts from a single point and can only find the local optimal solution of the optimization problem, and the selection of the initial value can also affect the solution result. While GA starts from a group, the search scope is larger and easier to get better search results and can achieve better prediction accuracy. It is more reasonable by using the new weights and thresholds to build a BP network after GA optimization. Comprehensive comparison shows that the BP network is inferior to the GABP network in terms of prediction accuracy.Figure 10
Mean square error (MSE) value predicted by the SA-GABP algorithm.Figure 11
Training process curve.GABP prediction results optimized by simulated annealing algorithm are shown in Figures12–14. It can be seen from the figure that the GABP model has a strong fitting and forecasting ability for the monitoring and evaluation of Internet financial risks, with high prediction accuracy, which can meet the requirements of Internet financial risk prediction. In practice, the BP neural network is the slowest. In terms of prediction accuracy, the GABP network optimized by the simulated annealing algorithm has a higher fitting accuracy and can predict Internet financial risks more accurately. The error rate is less than 4‰, and the absolute value of the error rate is only 0.00178. Compared with the BP and GABP networks, the relative error and MSE of SA-GABP are reduced by 17.55% and 37.67%, respectively.Figure 12
Training regression graphs predicted based on the SA-GABP algorithm.Figure 13
The GABP algorithm predicts the output value from 2007 to 2012.Figure 14
The SA-GABP algorithm predicts the output value from 2012 to 2021.


## 7. Conclusion

This paper introduces GA based on traditional BP, optimizes the weight by using its global search and optimization ability, applies the optimized network to the prediction of Internet financial risk, and obtains good prediction results. The prediction demerit recording shows that the GA is used to optimize the weight of the neural network, which can not only reduce the training time of the network and avoid local minima but also improve the prediction accuracy and provide a scientific basis for Internet finance to make credit decisions and prevent bank risks. On this basis, the simulated annealing algorithm is used to further optimize the GABP algorithm. The intelligent optimization algorithm and neural network technology are well combined to learn from each other and give full play to their respective advantages. GABP neural network optimized by simulated annealing algorithm has better global convergence, higher learning efficiency, and prediction accuracy than traditional BP and GABP neural networks, achieves better prediction effect, effectively solves the problem that enterprise financial risk cannot be quantitatively evaluated, and has certain popularization value in the application of Internet financial risk prediction. It can provide information on Internet financial risk identification and risk early warning for the government and relevant management departments.



---

*Source: 4807428-2022-02-09.xml*