# Construction and Application of the Financial Early-Warning Model Based on the BP Neural Network

Authors: Weiwei Jiang; Xuefeng Wu; Xi Wang
Journal: Computational Intelligence and Neuroscience
 (2022)

---

## Abstract

In order to further improve the early-warning effect of enterprise financial crisis management and reduce the occurrence of enterprise financial crisis, by taking listed companies as examples and combining the operating conditions of listed companies, a financial crisis early-warning indicator system was built from five aspects of profitability, debt-paying ability, development ability, operation ability, and cash flow ability. In addition, a financial management early-warning model based on the BP neural network algorithm was built. Through the experimental prediction, it is showed that the financial crisis early-warning model of listed companies based on the BP neural network algorithm for crisis prediction accuracy was more than 75%. The accuracy of the first three years of model prediction was 93.33% and 72.34%, respectively. The accuracy of model prediction in the first two years was 94.67% and 82.98%, respectively. In the first year, the accuracy rate increased to 100% and 89.36%. Compared with the prediction accuracy of the logistic model (50%), it is fully reflected that the financial early-warning model proposed in the research had a good crisis prediction ability.


---

## Body

## 1. Introduction

At present, with the rapid development of China’s market economic system reform, the Chinese enterprises are in the important stage of the internal deepening market economic system reform and the external further global economic integration. In this process, many contradictions are evident in small- and medium-sized enterprises and even large enterprises. Among them, enterprises are faced with increasingly high financial risks in the process of operation. In the environment of fierce market competition inside and outside, how to avoid financial risks through effective ways is the key issue that modern enterprises should consider [1]. The financial crisis early-warning management system is an important part of enterprise risk management. In the research, combined with the demand of financial risk management and with the aid of the BP neural network algorithm fusion, more suitable enterprise financial risk management and early-warning mechanism were explored [2]. Through the model experiment, the feasibility and accuracy of risk prediction of the early-warning model were verified.The research on the financial crisis early warning originated in the west. Since the 1930s, the constant emergence of the economic crisis caused a large number of economic losses in the Western developed countries. So, the government and scholars began to realize the need to forecast the economic crisis, thus reducing the economic loss. After that, a large number of scholars began to study the financial crisis of the enterprise [3]. In the early stage of the research, scholars mainly focused on the qualitative research, such as flow chart research method, management evaluation method, and four-stage analysis method. However, the qualitative research relied too much on the subjective thinking of researchers. The same method led to different conclusions, and the accuracy of early-warning was also very low. Therefore, scholars gradually began to use quantitative research methods, such as univariate analysis, multivariate analysis, logistic regression, and neural network analysis [4]. With the development of research, many researchers found that the accuracy of the univariate discrimination model was not high in practical application and there were great limitations. Therefore, scholars began to introduce the multivariate linear discriminant analysis method into the field of crisis warning. Some scholars studied the multivariate discriminant model. Firstly, five optimal indicators were extracted from 22 financial ratios, and then, the multivariate discriminant model was established to predict financial warning, as shown in Figure 1. Later, the method was innovated and the Z-value multivariable financial crisis warning model was established, which achieved great success. Based on the analysis of the relationship between the traditional financial crisis and income, a multivariate linear model was constructed and the accuracy and scientificity of the model was verified. Based on the establishment of the Z model, the listed companies of Chinese automobile manufacturing business were studied. And the research showed that the model had high accuracy [5]. Foreign scholars used the neural network prediction model. The results showed that the neural network prediction model was more effective than the discriminant analysis model. With the continuous development of computer technology, the application of the neural network early-warning model began to be popularized. Research studies showed that the artificial neural network had high efficiency and certain effectiveness in predicting bankruptcy risk [6]. The BP neural network model was used to investigate listed companies, and the results showed that the BP neural network model had an efficient predictive effect [7]. The BP neural network model was established to carry out early-warning research on Chinese listed companies, and it was found that the BP neural network model had high accuracy for financial early warning of listed companies [8]. In addition, models such as SVM vector machine, MDS multidimensional scale model, and genetic algorithm were also used for financial crisis warning of listed companies; each model had its advantages and disadvantages [9]. The univariate warning analysis method was simple to use and easy to use, but the accuracy of prediction was low, so it was gradually replaced by some other models. In general, the multiple linear regression model, multiple logistic regression model, and neural network model were popular in the field of early warning. Most studies showed that the BP neural network was superior to other models in crisis warning ability and had strong operability.Figure 1
Financial early-warning model.


## 2. BP Neural Network Warning Model

### 2.1. Perceptron

Perceptron is the origin of the neural network, and it receives multiple input signals, multiplies them by a fixed weight, and adds bias to get the signal sum. Then, compared with threshold, when the signal sum is greater than the threshold, 1 is output, known as the “neurons are activated.” When signals sum is less than or equal to the threshold value, 0 is output, namely, neurons are not activated [10].(1)y=0,w1x1+w2x2+b≤θ,1,w1x1+w2x2+b>θ.As shown in Figure2, x1andx2 are the input data. w1andw2are the weight parameter. b is the bias, and θ is the threshold. Formula (1) is the activation function fx. The structure of single-layer perceptron is composed of these parts. Through this model, the linear problem can be solved. For example, without considering bias and activation function formula, we have(2)y=w1x1+w2x2.Figure 2
A single-layer perceptron with two inputs.The above formula contains two parameters. All parameters can be found if there are two different samples. Assume that there are two sample data, as shown in Table1.Table 1
Sample data of single-layer perceptron.
Sample numberx1x2y112514411Formula (3) can be obtained from Table 1.(3)w1+2w2=5,5w1+3w2=11.The final solution is as follows:(4)w1=1,w2=2.Therefore, the parameter solution of the perceptron is dependent on the number of samples. The more nodes there are, the more connections between the nodes will be, the more the parameters will be, and the required sample data will also increase [11]. The significance of activation function is to make the output data meet the requirements and avoid too scattered output data after weight vector multiplication. Common activation functions are the sigmoid and ReLU functions.


#### 2.1.1. Sigmoid Function

Sigmoid is the most widely used activation function, whose domain is (−∞, +∞) and range is (0, 1). The function is continuously smooth and differentiable everywhere in the domain. Because the range is (0, 1), the result is usually used as a probability. In the case of classification, generally, if the output after sigmoid function is greater than 0.5, the instance is regarded as classified into this category. And if it is less than or equal to 0.5, it is not classified into this category [12]. The function image is shown in Figure 3 and the formula is shown as follows:(5)sigmoidx=11+e−x.Figure 3
Sigmoid function image.


#### 2.1.2. ReLU Function

The function formula is shown as follows:(6)ReLUx=x,x≥0,0,x<0.The ReLU function is a piecewise function that turns all negative values to 0 while positive values remain the same. In deep neural networks, ReLU function is mostly used as the activation function, because it is conducive to model convergence, as shown in Figure4.Figure 4
ReLu function image.


### 2.2. Neural Network

In Figure5, there are three neurons in the input layer, which means that the input vector is a three-dimensional vector. The signal of the input layer is multiplied by the weight matrix to obtain the signal sum, which becomes the input vector of the first hidden layer after the activation function operation. The first hidden layer has three neurons. These three neurons receive signals from the input layer. Multiplied by the weight matrix of this layer, it becomes the input vector of the second hidden layer through activation function operation. And the last layer is the output layer, with two neurons, which means the output vector is a two-dimensional vector [13]. This process of computation from front to back is called forward propagation. The characteristics of input vector are abstracted gradually through layer-by-layer operation, and finally, the classification effect is realized. There are 9 connections between hidden layer 1 and the front layer, corresponding 9 parameters (not considering bias), there are 6 connections between hidden layer 2 and the front layer (6 parameters), and there are 4 connections between the output layer and the front layer (4 parameters), altogether 19 parameters [14]. Because of the hidden layer, the multilayer neural network can simulate almost all nonlinear functions.Figure 5
Neural network with two hidden layers.The commonly used error functions are mean square error function and cross entropy error function.


#### 2.2.1. Mean Square Error

The square of the difference between the elements of the corresponding correctly supervised data (label) of each output of the neural network is calculated, as shown in(7)E=12∑kyk−tk2.In the above formula,yk represents the output of the neural network. tk represents the correct classification label. k represents the dimension of data [15].


#### 2.2.2. The Cross Entropy Error

Entropy is a measure of the amount of information contained in an event. The information entropy of an event is defined as(8)Hx=−∑i=1npxilogpxi.Cross entropy is used to measure the difference between two probability distributions, as shown in(9)Hp,q=−∑i=1npxilogqxi.pandq represent two distributions, and pxiandqxi represent the probability of an event xi occurring in one of these distributions, respectively. In addition, the log is the natural log. The larger the cross entropy is, the greater the difference between the two distributions is. So, it can be used as the loss function of the neural network model output and the difference between correctly classified labels [16].The BP algorithm updates the weight matrix of the previous layer along the gradient direction that makes the error of the latter layer smaller and finally propagates it to the back layer to achieve the purpose of seeking the optimal weight matrix. The vector summarized by partial derivatives of all variables is called gradient. Suppose a function contains two variables, as shown in(10)fx0,x1=x02+x12.Then, the vector∂f/∂x0,∂f/∂x1 is the gradient of the function f, and the following formula can be calculated:(11)∂f∂x0,∂f∂x1=2x0,2x1.The ultimate goal of the neural network is to find the parameter vector that minimizes the loss function. When the number of parameters is large, it is difficult to find the optimal solution directly. With the gradient method, the value of the function advances some distance from the current position along the gradient direction. Then, the gradient in the new direction is re-calculated. Then, it advances along the new gradient direction, and the function value is reduced again [17]. The mathematical formula of gradient in formula (11) is shown in(12)x0=x0−η∂f∂x0x1=x1−η∂f∂x1.The BP algorithm mainly includes three parts, namely, forward propagation, backpropagation, and weight updating (parameter updating). On the premise that the neural network transmits signals by means of the propagation mode and the connections between neurons do not cross layers, suppose a total ofN + 1 layer networks, which are represented by Layer 0 to Layer N. The state of the k layer for a feature p is expressed as xpk, and the state of the whole network for the feature p is expressed as xp. So, xp0 is the input vector Ip and xpN is the output vector. The size of the output vector is the same as the sample label Dp. Suppose there are P features in total, then the whole network p=1...P is composed of the states X of all features xp. k−1 layer is connected with k layer through parameter vector Wk; then, the input value Apk of k layer is shown in (13)Apk=WkXpk−1.The formula for forward propagation can be expressed as follows:(14)xpk=FWkXpk−1=FkApk,∀k∈1,N.In formula (14), fkrepresents the activation function of the k layer.When the mean square error is used as the loss function, the Lagrange function of a single feature is shown as follows:(15)LpW,XP,BP=Dp−XpNTDp−XpN+∑k=1NBPkTXpk−FWkXpk−1.The above formula is composed of two terms. The first term is the square of the difference between the output of the modelXpN and the real label of the sample Dp. The second conditional term is the sum of N sub-terms, each of which represents a layer, and each subterm is the dot product of a Lagrange multiplier vector Bk and the state of the layer. When all conditions are met, all conditions are 0 and the following formula can be obtained:(16)Xk=FWkXpk−1,∀k∈1,N.The formula for finding the parameter solution that makes the function reach the minimum value is as follows:(17)ΔL=W,X,B=0.The formula can be decomposed into three subformulas, as follows:(18)ΔLW,X,B∂B=0,(19)ΔLW,X,B∂X=0,(20)ΔLW,X,B∂W=0.From layerN to layer N − 1 and then to layer N − 2, gradually reverse calculation to layer 1, so as to update the parameters of each layer, so that the overall error of the model becomes smaller, which is the principle of backpropagation. The optimization conditions that need to be followed when calculating parameter vector W can be decomposed into N seed types, as shown in(21)ΔLW,X,B∂Wk=0,∀k∈1,N.The formula for updating parameter vectors using the gradient descent method is shown as follows (λ is step size):(22)Wk←Wk−λΔLW,X,B∂Wk.That is, the classical parameter updating formula of the BP algorithm is as follows:(23)Wk←Wk+λ∑p=1PYpxXpTk−1.In the specific training of the BP neural network, firstly, the number of nodes of input layer, hidden layer, and output layer should be set, respectively. The initial value of the training sample, weight between nodes, and output threshold should be marked at the same time. Second, after making all the preliminary preparations, the training sample data is input through the input layer, and the errors between the calculation results of the hidden layer and the output layer are analyzed during the conduction process. The weights and thresholds of different nodes are adjusted and finally the error function model is obtained. If the error is small, the results can be directly output. If the error is large, it will reverse conduction to the second step, and the loop will continue until the data output is completed.


## 2.1. Perceptron

Perceptron is the origin of the neural network, and it receives multiple input signals, multiplies them by a fixed weight, and adds bias to get the signal sum. Then, compared with threshold, when the signal sum is greater than the threshold, 1 is output, known as the “neurons are activated.” When signals sum is less than or equal to the threshold value, 0 is output, namely, neurons are not activated [10].(1)y=0,w1x1+w2x2+b≤θ,1,w1x1+w2x2+b>θ.As shown in Figure2, x1andx2 are the input data. w1andw2are the weight parameter. b is the bias, and θ is the threshold. Formula (1) is the activation function fx. The structure of single-layer perceptron is composed of these parts. Through this model, the linear problem can be solved. For example, without considering bias and activation function formula, we have(2)y=w1x1+w2x2.Figure 2
A single-layer perceptron with two inputs.The above formula contains two parameters. All parameters can be found if there are two different samples. Assume that there are two sample data, as shown in Table1.Table 1
Sample data of single-layer perceptron.
Sample numberx1x2y112514411Formula (3) can be obtained from Table 1.(3)w1+2w2=5,5w1+3w2=11.The final solution is as follows:(4)w1=1,w2=2.Therefore, the parameter solution of the perceptron is dependent on the number of samples. The more nodes there are, the more connections between the nodes will be, the more the parameters will be, and the required sample data will also increase [11]. The significance of activation function is to make the output data meet the requirements and avoid too scattered output data after weight vector multiplication. Common activation functions are the sigmoid and ReLU functions.


### 2.1.1. Sigmoid Function

Sigmoid is the most widely used activation function, whose domain is (−∞, +∞) and range is (0, 1). The function is continuously smooth and differentiable everywhere in the domain. Because the range is (0, 1), the result is usually used as a probability. In the case of classification, generally, if the output after sigmoid function is greater than 0.5, the instance is regarded as classified into this category. And if it is less than or equal to 0.5, it is not classified into this category [12]. The function image is shown in Figure 3 and the formula is shown as follows:(5)sigmoidx=11+e−x.Figure 3
Sigmoid function image.


### 2.1.2. ReLU Function

The function formula is shown as follows:(6)ReLUx=x,x≥0,0,x<0.The ReLU function is a piecewise function that turns all negative values to 0 while positive values remain the same. In deep neural networks, ReLU function is mostly used as the activation function, because it is conducive to model convergence, as shown in Figure4.Figure 4
ReLu function image.


## 2.1.1. Sigmoid Function

Sigmoid is the most widely used activation function, whose domain is (−∞, +∞) and range is (0, 1). The function is continuously smooth and differentiable everywhere in the domain. Because the range is (0, 1), the result is usually used as a probability. In the case of classification, generally, if the output after sigmoid function is greater than 0.5, the instance is regarded as classified into this category. And if it is less than or equal to 0.5, it is not classified into this category [12]. The function image is shown in Figure 3 and the formula is shown as follows:(5)sigmoidx=11+e−x.Figure 3
Sigmoid function image.


## 2.1.2. ReLU Function

The function formula is shown as follows:(6)ReLUx=x,x≥0,0,x<0.The ReLU function is a piecewise function that turns all negative values to 0 while positive values remain the same. In deep neural networks, ReLU function is mostly used as the activation function, because it is conducive to model convergence, as shown in Figure4.Figure 4
ReLu function image.


## 2.2. Neural Network

In Figure5, there are three neurons in the input layer, which means that the input vector is a three-dimensional vector. The signal of the input layer is multiplied by the weight matrix to obtain the signal sum, which becomes the input vector of the first hidden layer after the activation function operation. The first hidden layer has three neurons. These three neurons receive signals from the input layer. Multiplied by the weight matrix of this layer, it becomes the input vector of the second hidden layer through activation function operation. And the last layer is the output layer, with two neurons, which means the output vector is a two-dimensional vector [13]. This process of computation from front to back is called forward propagation. The characteristics of input vector are abstracted gradually through layer-by-layer operation, and finally, the classification effect is realized. There are 9 connections between hidden layer 1 and the front layer, corresponding 9 parameters (not considering bias), there are 6 connections between hidden layer 2 and the front layer (6 parameters), and there are 4 connections between the output layer and the front layer (4 parameters), altogether 19 parameters [14]. Because of the hidden layer, the multilayer neural network can simulate almost all nonlinear functions.Figure 5
Neural network with two hidden layers.The commonly used error functions are mean square error function and cross entropy error function.


### 2.2.1. Mean Square Error

The square of the difference between the elements of the corresponding correctly supervised data (label) of each output of the neural network is calculated, as shown in(7)E=12∑kyk−tk2.In the above formula,yk represents the output of the neural network. tk represents the correct classification label. k represents the dimension of data [15].


### 2.2.2. The Cross Entropy Error

Entropy is a measure of the amount of information contained in an event. The information entropy of an event is defined as(8)Hx=−∑i=1npxilogpxi.Cross entropy is used to measure the difference between two probability distributions, as shown in(9)Hp,q=−∑i=1npxilogqxi.pandq represent two distributions, and pxiandqxi represent the probability of an event xi occurring in one of these distributions, respectively. In addition, the log is the natural log. The larger the cross entropy is, the greater the difference between the two distributions is. So, it can be used as the loss function of the neural network model output and the difference between correctly classified labels [16].The BP algorithm updates the weight matrix of the previous layer along the gradient direction that makes the error of the latter layer smaller and finally propagates it to the back layer to achieve the purpose of seeking the optimal weight matrix. The vector summarized by partial derivatives of all variables is called gradient. Suppose a function contains two variables, as shown in(10)fx0,x1=x02+x12.Then, the vector∂f/∂x0,∂f/∂x1 is the gradient of the function f, and the following formula can be calculated:(11)∂f∂x0,∂f∂x1=2x0,2x1.The ultimate goal of the neural network is to find the parameter vector that minimizes the loss function. When the number of parameters is large, it is difficult to find the optimal solution directly. With the gradient method, the value of the function advances some distance from the current position along the gradient direction. Then, the gradient in the new direction is re-calculated. Then, it advances along the new gradient direction, and the function value is reduced again [17]. The mathematical formula of gradient in formula (11) is shown in(12)x0=x0−η∂f∂x0x1=x1−η∂f∂x1.The BP algorithm mainly includes three parts, namely, forward propagation, backpropagation, and weight updating (parameter updating). On the premise that the neural network transmits signals by means of the propagation mode and the connections between neurons do not cross layers, suppose a total ofN + 1 layer networks, which are represented by Layer 0 to Layer N. The state of the k layer for a feature p is expressed as xpk, and the state of the whole network for the feature p is expressed as xp. So, xp0 is the input vector Ip and xpN is the output vector. The size of the output vector is the same as the sample label Dp. Suppose there are P features in total, then the whole network p=1...P is composed of the states X of all features xp. k−1 layer is connected with k layer through parameter vector Wk; then, the input value Apk of k layer is shown in (13)Apk=WkXpk−1.The formula for forward propagation can be expressed as follows:(14)xpk=FWkXpk−1=FkApk,∀k∈1,N.In formula (14), fkrepresents the activation function of the k layer.When the mean square error is used as the loss function, the Lagrange function of a single feature is shown as follows:(15)LpW,XP,BP=Dp−XpNTDp−XpN+∑k=1NBPkTXpk−FWkXpk−1.The above formula is composed of two terms. The first term is the square of the difference between the output of the modelXpN and the real label of the sample Dp. The second conditional term is the sum of N sub-terms, each of which represents a layer, and each subterm is the dot product of a Lagrange multiplier vector Bk and the state of the layer. When all conditions are met, all conditions are 0 and the following formula can be obtained:(16)Xk=FWkXpk−1,∀k∈1,N.The formula for finding the parameter solution that makes the function reach the minimum value is as follows:(17)ΔL=W,X,B=0.The formula can be decomposed into three subformulas, as follows:(18)ΔLW,X,B∂B=0,(19)ΔLW,X,B∂X=0,(20)ΔLW,X,B∂W=0.From layerN to layer N − 1 and then to layer N − 2, gradually reverse calculation to layer 1, so as to update the parameters of each layer, so that the overall error of the model becomes smaller, which is the principle of backpropagation. The optimization conditions that need to be followed when calculating parameter vector W can be decomposed into N seed types, as shown in(21)ΔLW,X,B∂Wk=0,∀k∈1,N.The formula for updating parameter vectors using the gradient descent method is shown as follows (λ is step size):(22)Wk←Wk−λΔLW,X,B∂Wk.That is, the classical parameter updating formula of the BP algorithm is as follows:(23)Wk←Wk+λ∑p=1PYpxXpTk−1.In the specific training of the BP neural network, firstly, the number of nodes of input layer, hidden layer, and output layer should be set, respectively. The initial value of the training sample, weight between nodes, and output threshold should be marked at the same time. Second, after making all the preliminary preparations, the training sample data is input through the input layer, and the errors between the calculation results of the hidden layer and the output layer are analyzed during the conduction process. The weights and thresholds of different nodes are adjusted and finally the error function model is obtained. If the error is small, the results can be directly output. If the error is large, it will reverse conduction to the second step, and the loop will continue until the data output is completed.


## 2.2.1. Mean Square Error

The square of the difference between the elements of the corresponding correctly supervised data (label) of each output of the neural network is calculated, as shown in(7)E=12∑kyk−tk2.In the above formula,yk represents the output of the neural network. tk represents the correct classification label. k represents the dimension of data [15].


## 2.2.2. The Cross Entropy Error

Entropy is a measure of the amount of information contained in an event. The information entropy of an event is defined as(8)Hx=−∑i=1npxilogpxi.Cross entropy is used to measure the difference between two probability distributions, as shown in(9)Hp,q=−∑i=1npxilogqxi.pandq represent two distributions, and pxiandqxi represent the probability of an event xi occurring in one of these distributions, respectively. In addition, the log is the natural log. The larger the cross entropy is, the greater the difference between the two distributions is. So, it can be used as the loss function of the neural network model output and the difference between correctly classified labels [16].The BP algorithm updates the weight matrix of the previous layer along the gradient direction that makes the error of the latter layer smaller and finally propagates it to the back layer to achieve the purpose of seeking the optimal weight matrix. The vector summarized by partial derivatives of all variables is called gradient. Suppose a function contains two variables, as shown in(10)fx0,x1=x02+x12.Then, the vector∂f/∂x0,∂f/∂x1 is the gradient of the function f, and the following formula can be calculated:(11)∂f∂x0,∂f∂x1=2x0,2x1.The ultimate goal of the neural network is to find the parameter vector that minimizes the loss function. When the number of parameters is large, it is difficult to find the optimal solution directly. With the gradient method, the value of the function advances some distance from the current position along the gradient direction. Then, the gradient in the new direction is re-calculated. Then, it advances along the new gradient direction, and the function value is reduced again [17]. The mathematical formula of gradient in formula (11) is shown in(12)x0=x0−η∂f∂x0x1=x1−η∂f∂x1.The BP algorithm mainly includes three parts, namely, forward propagation, backpropagation, and weight updating (parameter updating). On the premise that the neural network transmits signals by means of the propagation mode and the connections between neurons do not cross layers, suppose a total ofN + 1 layer networks, which are represented by Layer 0 to Layer N. The state of the k layer for a feature p is expressed as xpk, and the state of the whole network for the feature p is expressed as xp. So, xp0 is the input vector Ip and xpN is the output vector. The size of the output vector is the same as the sample label Dp. Suppose there are P features in total, then the whole network p=1...P is composed of the states X of all features xp. k−1 layer is connected with k layer through parameter vector Wk; then, the input value Apk of k layer is shown in (13)Apk=WkXpk−1.The formula for forward propagation can be expressed as follows:(14)xpk=FWkXpk−1=FkApk,∀k∈1,N.In formula (14), fkrepresents the activation function of the k layer.When the mean square error is used as the loss function, the Lagrange function of a single feature is shown as follows:(15)LpW,XP,BP=Dp−XpNTDp−XpN+∑k=1NBPkTXpk−FWkXpk−1.The above formula is composed of two terms. The first term is the square of the difference between the output of the modelXpN and the real label of the sample Dp. The second conditional term is the sum of N sub-terms, each of which represents a layer, and each subterm is the dot product of a Lagrange multiplier vector Bk and the state of the layer. When all conditions are met, all conditions are 0 and the following formula can be obtained:(16)Xk=FWkXpk−1,∀k∈1,N.The formula for finding the parameter solution that makes the function reach the minimum value is as follows:(17)ΔL=W,X,B=0.The formula can be decomposed into three subformulas, as follows:(18)ΔLW,X,B∂B=0,(19)ΔLW,X,B∂X=0,(20)ΔLW,X,B∂W=0.From layerN to layer N − 1 and then to layer N − 2, gradually reverse calculation to layer 1, so as to update the parameters of each layer, so that the overall error of the model becomes smaller, which is the principle of backpropagation. The optimization conditions that need to be followed when calculating parameter vector W can be decomposed into N seed types, as shown in(21)ΔLW,X,B∂Wk=0,∀k∈1,N.The formula for updating parameter vectors using the gradient descent method is shown as follows (λ is step size):(22)Wk←Wk−λΔLW,X,B∂Wk.That is, the classical parameter updating formula of the BP algorithm is as follows:(23)Wk←Wk+λ∑p=1PYpxXpTk−1.In the specific training of the BP neural network, firstly, the number of nodes of input layer, hidden layer, and output layer should be set, respectively. The initial value of the training sample, weight between nodes, and output threshold should be marked at the same time. Second, after making all the preliminary preparations, the training sample data is input through the input layer, and the errors between the calculation results of the hidden layer and the output layer are analyzed during the conduction process. The weights and thresholds of different nodes are adjusted and finally the error function model is obtained. If the error is small, the results can be directly output. If the error is large, it will reverse conduction to the second step, and the loop will continue until the data output is completed.


## 3. Establishment of the Financial Risk Early-Warning Model for Listed Companies

### 3.1. Sample Selection

In the research, 374 listed pharmaceutical companies in the WIND database were selected for research. As shown in Table2, according to the financial status of the sample companies from 2013 to 2021, the sample was divided into three types, namely, financial health, financial risk, and major financial risk, including 231 financial health enterprises, 102 financial risk enterprises, and 41 major financial risk enterprises. Meanwhile, the total sample was divided into two categories. The first was the training sample of the training neural network model, consisting of 249 enterprises, including 155 financial health enterprises, 67 financial risk enterprises, and 27 major financial risk enterprises. The other is the testing sample, a total of 125 enterprises, including 76 financial health enterprises, 35 financial risk enterprises, and 14 major financial risk enterprises.Table 2
Sample data classification.
Training setTesting setTotalFinancial health15576231Financial risk6735102Major financial risk271441Total249125374After removing a small amount of abnormal or missing data, 3312 groups of panel data were retained. The data in the research came from WIND and CSMAR databases and were finally processed and analyzed by SPSS18.0 and MATLAB2017b software.


### 3.2. Screening of Early-Warning Indicators Based on Industry Characteristics

The screening ideas of early-warning indicators in the research are shown in Figure6 and the process is shown as follows.Figure 6
Screening ideas of early-warning indicators.The first step is the primary selection of indicators. Based on the commonly used financial risk early-warning indicators and the characteristics of the pharmaceutical industry, there are a total of 21 variables selected in the primary selection of early-warning indicators.The second step is to perform the multicollinearity test on the primary indicators. Because the number of 21 variables in the primary selection is large and may be correlated with each other, the multicollinearity of the indicator needs to be tested. From the test results, it is found that the 21 variables in the primary selection fail to pass the multicollinearity test.The third step is to eliminate the multicollinearity of the primary indicator system. First of all, the failure of KMO test indicates that the indicator system of primary selection is not suitable for common factor analysis methods. Therefore, the research further screens the indicators of primary selection by combining the stepwise regression method and the nonparametric test method. Finally, the most representative 8 early-warning indicators are obtained.Considering the industry characteristics of listed pharmaceutical companies in China and the difficulty of data acquisition, 21 basic indicators are initially selected to reflect the characteristics of sample companies. There are a total of 21 different variables in the primary indicators in the research, with a large number of variables overall. From the definition of the indicator, there is a high possibility of correlation between the two. Therefore, it is necessary to determine whether multicollinearity exists by calculating the correlation coefficient of the primary indicator system. The multicollinearity correlation statistics of the primary indicator system are shown in Table3.Table 3
Multicollinearity correlation statistics.
VariableNonstandardized coefficientStandardized coefficientSignificanceColinear statisticsBStandard errorBetaTAllowanceVIF(Constant)1.3360.4552.9380.0005X1−0.4610.235−0.365−1.9530.0560.1079.301X2−0.7440.483−0.403−1.5460.1280.05618.577X3−2.6002.223−0.286−1.1670.2480.06315.503X41.2010.6671.0921.7750.0820.011100.335X5−0.1220.154−0.086−0.8410.4050.3822.647X60.0000.002−0.023−0.2630.7990.5841.712X7−0.0730.138−0.043−0.5430.5990.6011.676X80.0020.0020.0780.9160.3650.5371.888X9−0.0020.014−0.031−0.1450.8760.09011.291X10−0.3010.284−0.133−1.0660.2980.2404.142X110.3430.2330.2111.4790.1510.1885.406X120.3110.2630.5431.1200.2450.01959.943X13−0.1330.264−0.220−0.5030.6210.02049.615X14−0.2940.747−0.088−0.3980.6990.08911.452X150.1110.1020.3331.0540.2990.04124.833X160.0870.1920.0550.4720.6440.2514.066X17−0.1140.123−0.721−0.9510.3510.007157.601X180.0230.0980.0990.2480.8020.02342.153X19−0.7760.369−0.156−2.1010.0430.7261.401X200.9951.0440.2550.9410.3510.05418.977X21−2.4542.705−0.077−0.9210.3690.4982.006According to the correlation statistics of the multicollinearity test, among the 21 indicators in the primary selection, the allowance of 10 indicators is less than 0.1 and the coefficient of variance expansion of 13 indicators is greater than 5. Therefore, multicollinearity exists among the 21 indicators in the primary selection, which requires further screening of indicators. There are many methods to eliminate multicollinearity in the indicator system, and factor analysis is generally considered first. However, KMO and Bartlett sphericity tests are carried out on the primary indicator system in the research, and it is found that the primary indicator system fails the test and is not suitable for factor analysis. The corresponding relationship between the suitability of factor analysis and KMO statistics is shown in Table4.Table 4
Test criteria for KMO statistics.
KMOFactor analysis of fitnessKMO > 0.9Very suitable0.8 < KMO < 0.9Relatively suitable0.7 < KMO < 0.8Suitable0.6 < KMO < 0.7Not suitable0.5 < KMO < 0.6Very poorKMO < 0.5Not suitableThe test results show that most of the KMO values of the primary indicator system in the research are in the range of 0.5∼0.7, indicating that the primary indicator system is not suitable for factor analysis. If factor analysis is forced to reduce data dimension, it will lead to a lot of information loss and may directly affect the accuracy of the warning model. Therefore, in the case of factor analysis being unsuitable, the method of stepwise regression is used to analyze and screen the indicator system of the primary selection. In the research, stepwise regression method was only used to screen the primary indicator system in the first step, and the screening standard should not be too strict. Therefore, theF-test threshold of the eliminated variables was set as 0.2, and the significance level of the introduced variables was set as 0.15. The model summary of the final stepwise regression equation is shown in Table 5. It can be seen from Table 5 that the finally determined stepwise regression model is Model 13, and the R-square value is 0.656, indicating that the combination of indicators in Model 13 can explain 65.6% of the dependent variables and has a high goodness of fit. Therefore, a total of 13 variables were screened from the primary indicator system with a significance level of 0.15 by the stepwise regression method in the research.Table 5
Model summary.
ModelR ordinaryR squared after adjustmentErrors in standard estimation10.4260.4230.5338920.5250.5220.4867230.5540.5460.4743140.5780.5660.4627850.5910.5830.4552160.6070.5940.4472170.6200.6030.4416180.6310.6210.4346990.6360.6240.43456100.6410.6230.43221110.6470.6250.43091120.6520.6290.42876130.6560.6310.42676When identifying whether the distribution of a variable is significantly different among multiple samples, the sample normality test is usually carried out first. If the sample as a whole is normally distributed, thet-test can be used directly. If the sample as a whole does not follow a normal distribution, nonparametric tests are usually used. First of all, the K-S test is used to test the normality of all warning indicators of t − 1, t − 2, and t − 3 phases of the sample population. As can be seen from Table 6, most of the financial indicators in each period do not follow the normal distribution at the significance level of 0.05. Therefore, the t-test method cannot be used for indicator screening, and the nonparametric test method should be used for further screening.Table 6
The normality test.
Indicatort − 1t − 2t − 3ZPZPZPX10.1530.0010.1630.0010.1730.001X20.2430.0010.3050.0010.2530.001X30.1360.0150.1300.0070.0970.001X40.3220.0010.3010.0010.2430.001X50.0880.2010.2920.0010.4360.001X60.4020.0010.4560.0010.1650.001X70.1660.0010.1180.0270.1670.001X80.4150.0010.4140.0010.3710.001X90.2920.0010.5310.0010.4410.001X100.1730.0010.1360.0040.1780.003X110.1350.0050.1760.0010.1610.001X120.1790.0010.1870.0010.1790.001X130.1490.001197.0000.0010.2040.001X140.0650.2020.0760.2020.0760.202Nonparametric tests are usually used to compare whether the results of different treatments are consistent in different distributions. TheK-W test adopted in the research can effectively identify whether the sample population is consistent in different samples with random distribution. The test results are shown in Table 7. A total of 8 indicators are different at the significance level of 0.05 in t − 3 phase, 9 indicators are different at the significance level of 0.05 in t − 2 phase, and 13 indicators are different at the significance level of 0.05 in t − 1 phase.Table 7
List of indicators with significant differences.
t − 1t − 2t − 3IndexSig.IndexSig.IndexSig.X10.000X10.000X10.000X20.000X20.000X20.000X30.000X30.000X30.000X40.000X40.000X40.000X50.000X60.006X50.001X60.000X70.000X170.006X70.000X160.000X180.007X80.000X170.000X200.032X90.039X200.000X100.012X160.006X170.003X180.000X200.005In summary, analysis and screening are carried out in combination with stepwise regression andK-W suggestions. Finally, eight representative indicators are determined as X1 rate of return per share, X2 operating profit rate, X4 net profit growth rate, X5 main business income growth rate, X7 total assets growth rate, X9 inventory turnover rate, X17 debt guarantee rate, and X20 management expense rate, respectively, reflecting the company’s profitability, cash flow capacity, growth capacity, and nonfinancial indicators, four aspects of information.


### 3.3. Design of the BP Neural Network Model

Taking the three-layer BP neural network as an example, as shown in Figure7, all nodes between each two layers are interconnected. In fact, hidden layers can have one or more layers, but the most common and practical is still a three-tier structure.Figure 7
Three-layer BP network structure.First, the number of nodes of the input layer, hidden layer, and output layer should be set, respectively. In addition, the initial value of the training sample, weight between nodes, and output threshold should be marked. Second, after making all preliminary preparations, the training sample data is input through the input layer. The errors between the calculated results of the hidden layer and the output layer are analyzed during the conduction process. The weights and thresholds of different nodes are adjusted to obtain the error function model. Whether the error value deviates from the range is analyzed. The calculation can be completed if there is no deviation. Otherwise, the data should be resubstituted into the second step for repeated calculation until the error value is within the allowed range. The procedure flow of the BP algorithm is shown in Figure8.Figure 8
The procedure flow of the BP algorithm.


### 3.4. Analysis of Prediction Results of the BP Neural Network Model

Matlab2017b software was used to input 8 financial indicator sample data of 245 training samples. After the neural network ran 10 times, the training error reached the predetermined precision. The correlation between the predicted value and the actual value of the test sample enterprise was relatively high, and theR value reached 0.91766. The test samples were input into the trained BP neural network model for testing. Part of the test results is shown in Table 8 (3 decimal places are reserved).Table 8
Partial test results.
Expected resultTest result (t − 1)Test result (t − 2)Test result (t − 3)A1000.997001000.4980.4870.026B1001001000.390.6010.036C10010010.97500.8100.4080.092D1001001000.2330.8210.037E0100.0020.99000100.0260.9930.01F0101000.983000.1530.9950.017G010010010.0320.0140.460.595H00100100100.0180.998I00100100100.1790.983……………………………………After summarizing the test results in Table8, the test results of the enterprise financial early-warning model are shown in Table 9.Table 9
Test results of the financial risk early-warning model.
Sample typet − 1 phaset − 2 phaset − 3 phaseFinancial healthFinancial riskFinancial healthFinancial riskFinancial healthFinancial riskNumber of samples754775477547Number of mistakes0548514Accuracy of judgment (%)10089.3794.6582.9893.3372.37From the annual data test, in the first three years, before the outbreak of financial risk, model prediction accuracy was 93.33% and 72.37%, respectively. The accuracy of model prediction in the first two years was 94.65% and 82.98%, respectively. In the first year, the accuracy rate increased to 100% and 89.37%, respectively. The closer the outbreak of financial risk is, the more accurate the model judgment will be. From the overall perspective of the test results, the model designed in the research will help to build a more practical financial risk early-warning system for Chinese pharmaceutical listed companies. Compared with other models, the model designed in the research has higher prediction accuracy and is easier to operate. What is particularly important is that in practical application, enterprise employees have uneven grasp of information technology, so the simple and stable financial risk warning model is more practical.


### 3.5. Specific Case Analysis

S Company was taken as an example. As shown in Figure 9, in terms of the company’s business scale and total income, the trend of S Company was relatively stable before it started to expand aggressively in 2017, showing a steady upward trend as a whole. Until 2018, it suddenly showed a downward trend. Although it picked up again the following year, it was due to the high nonoperating income brought by the performance betting agreement in the M&A process. Since 2020, the business scale and total income of S Company began to decline rapidly year by year.Figure 9
Change ofS Company’s total operating income from 2013 to 2021.Taking S Company as an example, this section mainly simulates how to make use of the early-warning model proposed in the research to predict the actual application of the enterprise. The specific process is given in Figure10.Figure 10
Application simulation flow of theS Company model.The 8 early-warning indicators of S Company from 2018 to 2020 are shown in Table10. Among them, 8 early-warning indicators are X1 rate of return per share, X2 operating profit rate, X4 net profit growth rate, X5 main business income growth rate, X7 total assets growth rate, X9 inventory turnover rate, X17 debt guarantee rate, and X20 management expense rate, respectively, reflecting the company’s profitability, cash flow capacity, growth capacity, and operating capacity, four aspects of information.Table 10
Financial risk early-warning indicators ofS Company.
IndicatorsYear201820192020X1Rate of return per share0.040.05−0.21X2Operating profit rate0.120.11−1.26X4Net profit growth rate0.52−0.13−5.44X5Main business income growth rate0.530.22−0.71X7Total assets growth rate0.880.360.04X9Inventory turnover rate (times)0.230.340.12X17Debt guarantee rate (%)0.07−0.03−0.38X20Management expense rate0.220.200.44As can be seen from Table11, when the result is (1, 0, 0), the financial health of the next year is predicted. When the result is (0, 1, 0), the financial risk for the next year is predicted. When the result is (0, 0, 1), the financial risk for the year after that is predicted. In 2018, three years before the outbreak of financial risks, the early-warning model predicted that S Company had financial risks. As time goes by, in 2019 and 2020, the model predicted that S Company would have significant financial risks.Table 11
Financial risk early-warning simulation results of S Company from 2018 to 2020.
YearActual output valuePredicted resultsO1O2O32020001(0, 0, 1)20190.00100.999(0, 0, 1)20180.0120.9420.143(0, 1, 0)The main reason for the decline ofS Company’s main business income is the dispersion of its main business. In the process of rapid development and expansion, S Company once extends its main business to several popular sectors but fails to achieve good results. After the main business keeps changing, its traditional business always occupies the majority. The gross profit rate of products accounts for more than 10% of the operating revenue of S Company from 2019 to 2021, as shown in Table 12. As can be seen from Table 12, the gross profit rate of its main business products in 2020 is greatly reduced. However, the increase in 2021 is due to the sharp drop of production cost in the upstream of the supply chain, which directly leads to the increase of its gross profit rate.Table 12
S Company accounts for more than 10% of the operating income of the product gross rate.
Product201920202021Plastic bottle large infusion production automatic line83.4428.6146.55Pharmaceutical packaging material24.5519.9720.53Except for 2014, the debt guarantee rate ofS company reached the peak in 2015 and reached the bottom in 2020. In other years, although relatively stable, the rate remained low. As can be seen from the above analysis, the reason for the high debt guarantee rate in 2015 was that the cash received by the company from selling goods and providing services increased in that year and the company did not conduct debt financing on a large scale, so the debt guarantee rate was high. From 2018 to 2020, S Company conducted debt financing on a large scale, making its total debt increase rapidly. Although the net cash flow generated by operating activities was relatively high in 2018, the debt guarantee rate did not decrease, but it began to decline in 2019 and reached the bottom when the temporary payment of 1 billion yuan was withdrawn without cause in 2020. From 2013 to 2019, the rate of management expense remained relatively stable as the management expense and main business income of S Company kept increasing at the same time. Due to the sharp decline of main business income after 2019, S Company’s management expense rate also began to rise rapidly after 2019. To sum up, the early-warning model designed in the research based on the BP neural network model could stably and effectively predict the financial risks of Chinese pharmaceutical listed companies. Taking S Company as an example, the hidden financial risks could be predicted three years before the outbreak of financial risks only through 8 indicator data of three years. If financial risks could be prevented or controlled effectively in time, the economic losses caused by the outbreak of financial risks may be reduced and even eliminated.


## 3.1. Sample Selection

In the research, 374 listed pharmaceutical companies in the WIND database were selected for research. As shown in Table2, according to the financial status of the sample companies from 2013 to 2021, the sample was divided into three types, namely, financial health, financial risk, and major financial risk, including 231 financial health enterprises, 102 financial risk enterprises, and 41 major financial risk enterprises. Meanwhile, the total sample was divided into two categories. The first was the training sample of the training neural network model, consisting of 249 enterprises, including 155 financial health enterprises, 67 financial risk enterprises, and 27 major financial risk enterprises. The other is the testing sample, a total of 125 enterprises, including 76 financial health enterprises, 35 financial risk enterprises, and 14 major financial risk enterprises.Table 2
Sample data classification.
Training setTesting setTotalFinancial health15576231Financial risk6735102Major financial risk271441Total249125374After removing a small amount of abnormal or missing data, 3312 groups of panel data were retained. The data in the research came from WIND and CSMAR databases and were finally processed and analyzed by SPSS18.0 and MATLAB2017b software.


## 3.2. Screening of Early-Warning Indicators Based on Industry Characteristics

The screening ideas of early-warning indicators in the research are shown in Figure6 and the process is shown as follows.Figure 6
Screening ideas of early-warning indicators.The first step is the primary selection of indicators. Based on the commonly used financial risk early-warning indicators and the characteristics of the pharmaceutical industry, there are a total of 21 variables selected in the primary selection of early-warning indicators.The second step is to perform the multicollinearity test on the primary indicators. Because the number of 21 variables in the primary selection is large and may be correlated with each other, the multicollinearity of the indicator needs to be tested. From the test results, it is found that the 21 variables in the primary selection fail to pass the multicollinearity test.The third step is to eliminate the multicollinearity of the primary indicator system. First of all, the failure of KMO test indicates that the indicator system of primary selection is not suitable for common factor analysis methods. Therefore, the research further screens the indicators of primary selection by combining the stepwise regression method and the nonparametric test method. Finally, the most representative 8 early-warning indicators are obtained.Considering the industry characteristics of listed pharmaceutical companies in China and the difficulty of data acquisition, 21 basic indicators are initially selected to reflect the characteristics of sample companies. There are a total of 21 different variables in the primary indicators in the research, with a large number of variables overall. From the definition of the indicator, there is a high possibility of correlation between the two. Therefore, it is necessary to determine whether multicollinearity exists by calculating the correlation coefficient of the primary indicator system. The multicollinearity correlation statistics of the primary indicator system are shown in Table3.Table 3
Multicollinearity correlation statistics.
VariableNonstandardized coefficientStandardized coefficientSignificanceColinear statisticsBStandard errorBetaTAllowanceVIF(Constant)1.3360.4552.9380.0005X1−0.4610.235−0.365−1.9530.0560.1079.301X2−0.7440.483−0.403−1.5460.1280.05618.577X3−2.6002.223−0.286−1.1670.2480.06315.503X41.2010.6671.0921.7750.0820.011100.335X5−0.1220.154−0.086−0.8410.4050.3822.647X60.0000.002−0.023−0.2630.7990.5841.712X7−0.0730.138−0.043−0.5430.5990.6011.676X80.0020.0020.0780.9160.3650.5371.888X9−0.0020.014−0.031−0.1450.8760.09011.291X10−0.3010.284−0.133−1.0660.2980.2404.142X110.3430.2330.2111.4790.1510.1885.406X120.3110.2630.5431.1200.2450.01959.943X13−0.1330.264−0.220−0.5030.6210.02049.615X14−0.2940.747−0.088−0.3980.6990.08911.452X150.1110.1020.3331.0540.2990.04124.833X160.0870.1920.0550.4720.6440.2514.066X17−0.1140.123−0.721−0.9510.3510.007157.601X180.0230.0980.0990.2480.8020.02342.153X19−0.7760.369−0.156−2.1010.0430.7261.401X200.9951.0440.2550.9410.3510.05418.977X21−2.4542.705−0.077−0.9210.3690.4982.006According to the correlation statistics of the multicollinearity test, among the 21 indicators in the primary selection, the allowance of 10 indicators is less than 0.1 and the coefficient of variance expansion of 13 indicators is greater than 5. Therefore, multicollinearity exists among the 21 indicators in the primary selection, which requires further screening of indicators. There are many methods to eliminate multicollinearity in the indicator system, and factor analysis is generally considered first. However, KMO and Bartlett sphericity tests are carried out on the primary indicator system in the research, and it is found that the primary indicator system fails the test and is not suitable for factor analysis. The corresponding relationship between the suitability of factor analysis and KMO statistics is shown in Table4.Table 4
Test criteria for KMO statistics.
KMOFactor analysis of fitnessKMO > 0.9Very suitable0.8 < KMO < 0.9Relatively suitable0.7 < KMO < 0.8Suitable0.6 < KMO < 0.7Not suitable0.5 < KMO < 0.6Very poorKMO < 0.5Not suitableThe test results show that most of the KMO values of the primary indicator system in the research are in the range of 0.5∼0.7, indicating that the primary indicator system is not suitable for factor analysis. If factor analysis is forced to reduce data dimension, it will lead to a lot of information loss and may directly affect the accuracy of the warning model. Therefore, in the case of factor analysis being unsuitable, the method of stepwise regression is used to analyze and screen the indicator system of the primary selection. In the research, stepwise regression method was only used to screen the primary indicator system in the first step, and the screening standard should not be too strict. Therefore, theF-test threshold of the eliminated variables was set as 0.2, and the significance level of the introduced variables was set as 0.15. The model summary of the final stepwise regression equation is shown in Table 5. It can be seen from Table 5 that the finally determined stepwise regression model is Model 13, and the R-square value is 0.656, indicating that the combination of indicators in Model 13 can explain 65.6% of the dependent variables and has a high goodness of fit. Therefore, a total of 13 variables were screened from the primary indicator system with a significance level of 0.15 by the stepwise regression method in the research.Table 5
Model summary.
ModelR ordinaryR squared after adjustmentErrors in standard estimation10.4260.4230.5338920.5250.5220.4867230.5540.5460.4743140.5780.5660.4627850.5910.5830.4552160.6070.5940.4472170.6200.6030.4416180.6310.6210.4346990.6360.6240.43456100.6410.6230.43221110.6470.6250.43091120.6520.6290.42876130.6560.6310.42676When identifying whether the distribution of a variable is significantly different among multiple samples, the sample normality test is usually carried out first. If the sample as a whole is normally distributed, thet-test can be used directly. If the sample as a whole does not follow a normal distribution, nonparametric tests are usually used. First of all, the K-S test is used to test the normality of all warning indicators of t − 1, t − 2, and t − 3 phases of the sample population. As can be seen from Table 6, most of the financial indicators in each period do not follow the normal distribution at the significance level of 0.05. Therefore, the t-test method cannot be used for indicator screening, and the nonparametric test method should be used for further screening.Table 6
The normality test.
Indicatort − 1t − 2t − 3ZPZPZPX10.1530.0010.1630.0010.1730.001X20.2430.0010.3050.0010.2530.001X30.1360.0150.1300.0070.0970.001X40.3220.0010.3010.0010.2430.001X50.0880.2010.2920.0010.4360.001X60.4020.0010.4560.0010.1650.001X70.1660.0010.1180.0270.1670.001X80.4150.0010.4140.0010.3710.001X90.2920.0010.5310.0010.4410.001X100.1730.0010.1360.0040.1780.003X110.1350.0050.1760.0010.1610.001X120.1790.0010.1870.0010.1790.001X130.1490.001197.0000.0010.2040.001X140.0650.2020.0760.2020.0760.202Nonparametric tests are usually used to compare whether the results of different treatments are consistent in different distributions. TheK-W test adopted in the research can effectively identify whether the sample population is consistent in different samples with random distribution. The test results are shown in Table 7. A total of 8 indicators are different at the significance level of 0.05 in t − 3 phase, 9 indicators are different at the significance level of 0.05 in t − 2 phase, and 13 indicators are different at the significance level of 0.05 in t − 1 phase.Table 7
List of indicators with significant differences.
t − 1t − 2t − 3IndexSig.IndexSig.IndexSig.X10.000X10.000X10.000X20.000X20.000X20.000X30.000X30.000X30.000X40.000X40.000X40.000X50.000X60.006X50.001X60.000X70.000X170.006X70.000X160.000X180.007X80.000X170.000X200.032X90.039X200.000X100.012X160.006X170.003X180.000X200.005In summary, analysis and screening are carried out in combination with stepwise regression andK-W suggestions. Finally, eight representative indicators are determined as X1 rate of return per share, X2 operating profit rate, X4 net profit growth rate, X5 main business income growth rate, X7 total assets growth rate, X9 inventory turnover rate, X17 debt guarantee rate, and X20 management expense rate, respectively, reflecting the company’s profitability, cash flow capacity, growth capacity, and nonfinancial indicators, four aspects of information.


## 3.3. Design of the BP Neural Network Model

Taking the three-layer BP neural network as an example, as shown in Figure7, all nodes between each two layers are interconnected. In fact, hidden layers can have one or more layers, but the most common and practical is still a three-tier structure.Figure 7
Three-layer BP network structure.First, the number of nodes of the input layer, hidden layer, and output layer should be set, respectively. In addition, the initial value of the training sample, weight between nodes, and output threshold should be marked. Second, after making all preliminary preparations, the training sample data is input through the input layer. The errors between the calculated results of the hidden layer and the output layer are analyzed during the conduction process. The weights and thresholds of different nodes are adjusted to obtain the error function model. Whether the error value deviates from the range is analyzed. The calculation can be completed if there is no deviation. Otherwise, the data should be resubstituted into the second step for repeated calculation until the error value is within the allowed range. The procedure flow of the BP algorithm is shown in Figure8.Figure 8
The procedure flow of the BP algorithm.


## 3.4. Analysis of Prediction Results of the BP Neural Network Model

Matlab2017b software was used to input 8 financial indicator sample data of 245 training samples. After the neural network ran 10 times, the training error reached the predetermined precision. The correlation between the predicted value and the actual value of the test sample enterprise was relatively high, and theR value reached 0.91766. The test samples were input into the trained BP neural network model for testing. Part of the test results is shown in Table 8 (3 decimal places are reserved).Table 8
Partial test results.
Expected resultTest result (t − 1)Test result (t − 2)Test result (t − 3)A1000.997001000.4980.4870.026B1001001000.390.6010.036C10010010.97500.8100.4080.092D1001001000.2330.8210.037E0100.0020.99000100.0260.9930.01F0101000.983000.1530.9950.017G010010010.0320.0140.460.595H00100100100.0180.998I00100100100.1790.983……………………………………After summarizing the test results in Table8, the test results of the enterprise financial early-warning model are shown in Table 9.Table 9
Test results of the financial risk early-warning model.
Sample typet − 1 phaset − 2 phaset − 3 phaseFinancial healthFinancial riskFinancial healthFinancial riskFinancial healthFinancial riskNumber of samples754775477547Number of mistakes0548514Accuracy of judgment (%)10089.3794.6582.9893.3372.37From the annual data test, in the first three years, before the outbreak of financial risk, model prediction accuracy was 93.33% and 72.37%, respectively. The accuracy of model prediction in the first two years was 94.65% and 82.98%, respectively. In the first year, the accuracy rate increased to 100% and 89.37%, respectively. The closer the outbreak of financial risk is, the more accurate the model judgment will be. From the overall perspective of the test results, the model designed in the research will help to build a more practical financial risk early-warning system for Chinese pharmaceutical listed companies. Compared with other models, the model designed in the research has higher prediction accuracy and is easier to operate. What is particularly important is that in practical application, enterprise employees have uneven grasp of information technology, so the simple and stable financial risk warning model is more practical.


## 3.5. Specific Case Analysis

S Company was taken as an example. As shown in Figure 9, in terms of the company’s business scale and total income, the trend of S Company was relatively stable before it started to expand aggressively in 2017, showing a steady upward trend as a whole. Until 2018, it suddenly showed a downward trend. Although it picked up again the following year, it was due to the high nonoperating income brought by the performance betting agreement in the M&A process. Since 2020, the business scale and total income of S Company began to decline rapidly year by year.Figure 9
Change ofS Company’s total operating income from 2013 to 2021.Taking S Company as an example, this section mainly simulates how to make use of the early-warning model proposed in the research to predict the actual application of the enterprise. The specific process is given in Figure10.Figure 10
Application simulation flow of theS Company model.The 8 early-warning indicators of S Company from 2018 to 2020 are shown in Table10. Among them, 8 early-warning indicators are X1 rate of return per share, X2 operating profit rate, X4 net profit growth rate, X5 main business income growth rate, X7 total assets growth rate, X9 inventory turnover rate, X17 debt guarantee rate, and X20 management expense rate, respectively, reflecting the company’s profitability, cash flow capacity, growth capacity, and operating capacity, four aspects of information.Table 10
Financial risk early-warning indicators ofS Company.
IndicatorsYear201820192020X1Rate of return per share0.040.05−0.21X2Operating profit rate0.120.11−1.26X4Net profit growth rate0.52−0.13−5.44X5Main business income growth rate0.530.22−0.71X7Total assets growth rate0.880.360.04X9Inventory turnover rate (times)0.230.340.12X17Debt guarantee rate (%)0.07−0.03−0.38X20Management expense rate0.220.200.44As can be seen from Table11, when the result is (1, 0, 0), the financial health of the next year is predicted. When the result is (0, 1, 0), the financial risk for the next year is predicted. When the result is (0, 0, 1), the financial risk for the year after that is predicted. In 2018, three years before the outbreak of financial risks, the early-warning model predicted that S Company had financial risks. As time goes by, in 2019 and 2020, the model predicted that S Company would have significant financial risks.Table 11
Financial risk early-warning simulation results of S Company from 2018 to 2020.
YearActual output valuePredicted resultsO1O2O32020001(0, 0, 1)20190.00100.999(0, 0, 1)20180.0120.9420.143(0, 1, 0)The main reason for the decline ofS Company’s main business income is the dispersion of its main business. In the process of rapid development and expansion, S Company once extends its main business to several popular sectors but fails to achieve good results. After the main business keeps changing, its traditional business always occupies the majority. The gross profit rate of products accounts for more than 10% of the operating revenue of S Company from 2019 to 2021, as shown in Table 12. As can be seen from Table 12, the gross profit rate of its main business products in 2020 is greatly reduced. However, the increase in 2021 is due to the sharp drop of production cost in the upstream of the supply chain, which directly leads to the increase of its gross profit rate.Table 12
S Company accounts for more than 10% of the operating income of the product gross rate.
Product201920202021Plastic bottle large infusion production automatic line83.4428.6146.55Pharmaceutical packaging material24.5519.9720.53Except for 2014, the debt guarantee rate ofS company reached the peak in 2015 and reached the bottom in 2020. In other years, although relatively stable, the rate remained low. As can be seen from the above analysis, the reason for the high debt guarantee rate in 2015 was that the cash received by the company from selling goods and providing services increased in that year and the company did not conduct debt financing on a large scale, so the debt guarantee rate was high. From 2018 to 2020, S Company conducted debt financing on a large scale, making its total debt increase rapidly. Although the net cash flow generated by operating activities was relatively high in 2018, the debt guarantee rate did not decrease, but it began to decline in 2019 and reached the bottom when the temporary payment of 1 billion yuan was withdrawn without cause in 2020. From 2013 to 2019, the rate of management expense remained relatively stable as the management expense and main business income of S Company kept increasing at the same time. Due to the sharp decline of main business income after 2019, S Company’s management expense rate also began to rise rapidly after 2019. To sum up, the early-warning model designed in the research based on the BP neural network model could stably and effectively predict the financial risks of Chinese pharmaceutical listed companies. Taking S Company as an example, the hidden financial risks could be predicted three years before the outbreak of financial risks only through 8 indicator data of three years. If financial risks could be prevented or controlled effectively in time, the economic losses caused by the outbreak of financial risks may be reduced and even eliminated.


## 4. Conclusions

Based on the financial performance of 374 listed pharmaceutical companies from 2013 to 2021, the sample was divided into three types, namely, financial health, financial risk, and major financial risk. Considering the financial characteristics of listed pharmaceutical companies in China and the difficulty of obtaining data, 21 early-warning indicators were selected. Through multiple screening, an early-warning indicator system composed of 8 variables was constructed. Finally, the BP neural network model was designed and trained to give a stable and accurate financial risk warning for Chinese pharmaceutical listed companies. Four indicators reflecting profitability and two indicators reflecting cash flow capacity had significant differences in each phase, indicating that profitability indicators and advanced flow indicators could be more stable and effective in predicting the financial risks of Chinese pharmaceutical listed companies. However, the two indicators of operating capacity had significant differences only in the latest phrase, indicating that operating capacity indicators had strong short-term forecasting ability. In the first three years of the outbreak of financial risks, as time approached, the number of indicators with significant differences between the sample companies with financial health also increased, indicating that financial risks may expand from a single indicator to many indicators as time went by. From the annual data inspection, three years before the outbreak of financial risk, model prediction accuracy was 93.33% and 72.34%. The accuracy of model prediction in the first two years was 94.67% and 82.98%, respectively. In the first year, the accuracy rate increased to 100% and 89.36%. The closer the outbreak of financial risk is, the more accurate the model judgment would be. The final results showed that the BP neural network model designed in the research could predict the financial risks of Chinese pharmaceutical listed companies stably and effectively. At the same time, the accuracy of prediction also proved the feasibility of the early-warning indicator system. Therefore, the analysis of early-warning indicators could also investigate the cause of financial risk scientifically and effectively.



---

*Source: 5108677-2022-10-13.xml*