Risk Analysis of Textile Industry Foreign Investment Based on Deep Learning

With the decline of China's economic growth rate and the uproar of antiglobalization, the textile industry, one of the business cards of China's globalization, is facing a huge impact. When the economic model is undergoing transformation, it is more important to prevent enterprises from falling into financial distress. So, the financial risk early warning is one of the important means to prevent enterprises from falling into financial distress. Aiming at the risk analysis of the textile industry's foreign investment, this paper proposes an analysis method based on deep learning. This method combines residual network (ResNet) and long short-term memory (LSTM) risk prediction model. This method first establishes a risk indicator system for the textile industry and then uses ResNet to complete deep feature extraction, which are further used for LSTM training and testing. The performance of the proposed method is tested based on part of the measured data, and the results show the effectiveness of the proposed method.


Introduction
With the slowdown of China's economic growth rate and changes in the growth model, the original crude corporate model has become unsustainable [1][2][3][4]. It has become a matter of course for the people to increase their consumption expectations based on the continuous improvement of living material standards. As a dual-intensive industry of labor and capital, the development of the textile industry plays a key role in the development of China's economy and guarantees the level of employment. Compared with other industries, the textile industry has the characteristics of long process, wide distribution, large number of employees, intensive capital, obvious geographical concentration, and high export ratio. ese characteristics have brought the complexity and high risk of China's textile industry. Since the Sino-US trade friction in 2018, the textile industry as the business card of China's manufacturing industry has been frequently hit. e list of additional tariffs imposed by the United States includes textile-related products, which has had a considerable impact on the Chinese textile industry. As an important part of China's foreign investment, scientifically conducting investment risk analysis in the textile industry plays an important role in improving economic benefits.
After years of development in the study of economic forecasting methods, a large number of forecasting models have emerged [5][6][7][8][9][10][11][12][13][14][15]. ese models are divided into two categories: one is based on time series mainly including moving average and trend extrapolation and the other is based on causality, mainly including regression analysis, Markov prediction, and artificial neural network. In addition, the development of deep learning makes the fitting of complex systems more accurate. ere are many studies on macroeconomic forecasts at home and abroad. Traditional economic forecasting methods, such as ARIMA and linear regression, have great limitations. ARIMA requires time series data to be stable. e linear regression is poor in fitting complex nonlinear systems. Aiming at the complex nonlinear relationship in macroeconomic forecasting, the neural network model with strong ability to fit nonlinear systems has become a hot spot in the research of macroeconomic forecasting all over the world. ere are many studies on the use of BPNN to establish prediction models. Literature [6] built a transmission line project cost prediction model based on BPNN, which could accurately estimate the project cost using a small number of samples. erefore, it was suitable for comparing the pros and cons of the project in the early stage. Literature [9] combined with the Radial Basis Function (RBF) neural network and unbiased gray model (GM) established a gray RBF neural network prediction model. rough the predictive analysis of fiscal revenue data, it is found that training with this model not only has a fast convergence rate but also strong ability and high model accuracy. Literature [13] proposed a hybrid radial basis neural network, which integrated ridge regression, regression numbers, and radial basis neural networks. It was proved by experiments to predict the daily average trend of stock indexes. is network had a good effect when there are complex nonlinear relations between variables and mutual dependence. After years of research and development, artificial neural networks and their various improved models still cannot completely get rid of the defect that they tend to fall into local minimums and cannot reflect the timing relationship between samples [16][17][18][19][20][21][22][23][24]. However, this timing relationship is common in the economic field, and predictive analysis is of great help. At the same time, long short-term memory (LSTM) in deep learning shows an excellent ability to process time series data in the field of prediction. Literature [18] combined the trend data of steel transaction prices in recent years and trained the LSTM model. is work was compared and analyzed with the support vector regression model and found that the LSTM neural network can more accurately predict the price trend of steel. Literature [20] used deep learning for several years of the Gross Domestic Product (GDP) data in China to establish a prediction model, and the results show that the prediction accuracy based on deep learning was significantly higher than that of ARMA, LR, and exponential regression. Literature [23] aimed at the random and nonlinear characteristics of traffic flow using LSTM and Gated Recurrent Unit (GRU) neural network methods to predict short-term traffic flow. e experiments had proved that the deep learning methods based on recurrent neural network LSTM and GRU performed much better than the ARIMA models and some other methods [25][26][27][28][29].
Based on the existing methods, this paper proposes a textile industry foreign investment risk prediction method by combination of LSTM and ResNet [30][31][32][33]. First, an indicator system is established for investment risks in the textile industry, and feature vectors are constructed to describe the risk levels in the current state. On this basis, ResNet is used to perform further feature learning on the constructed index feature quantity to obtain deep features with stronger descriptive ability. As a reliable deep learning prediction method, LSTM predicts the characteristics learned by ResNet and obtains the current risk representation. So, the current risk status of foreign investment in the textile industry can be judged. In the experiments, the proposed method is tested and verified with part of the data obtained publicly, and the results showed the effectiveness of the proposed method.

LSTM.
LSTM network is a model of memory cell network structure proposed by Hochreiter to solve the gradient explosion and gradient disappearance phenomenon that occurs when the recurrent neural network is processing relatively long time series data. It is introduced into the cell on the basis of Recurrent Neural Network (RNN). e threshold structure for judging whether the information meets the requirements is used to control the accumulation speed of information-input gate, forget gate, and output gate-so as to use this structure to memorize and update new information and solve the problem of long-term dependence. As shown in Figure 1, each LSTM neuron is composed of cell states, namely, long-term state c t and short-term state h t , input gate i, forget gate f t , and output gate o t .
e so-called cell state is a container for storing information. rough the process control of input gate, forget gate, and output gate, the information in the container is gradually increased, decreased, changed, and output. In each neural unit, the cell state undergoes the forgetting process of the forget gate, the input process of the input gate, and the process of outputting information to the output gate. e input gate is to copy and process the input information of the current neural unit. It consists of two parts: the sigmoid function independently chooses which information to update and the tanh function adds the constructed brand new vector to the current cell state to construct a new state. e realization formula is as follows: (1) e main function of the forget gate is to determine which information needs to be discarded in the current state. f t � 1 means that the information is completely retained; f t � 0 means that the information is completely discarded.
e realization formula of f t is as follows: e output gate mainly controls the output information of the current hidden state. e realization formula is as follows: In equation (3), h t−1 is the output at the time t − 1; w xi , w xc , and w xo are the matrix weight parameters for the input vector x t the at the time t, respectively; w hi , w hc , and w ho represent the weight matrix parameters of the hidden layer Finally, the back propagation through time (BPTT) algorithm can be used to optimize the parameters of the LSTM model to obtain a reliable prediction model.

ResNet.
As the number of deep neural network layers continues to increase, the learning ability of the network becomes stronger and stronger. However, the convergence speed of the relative network will slow down, and the gradient will disappear during the propagation process, making it impossible to effectively adjust the weights of the previous network layers. In the traditional convolutional neural networks (CNNs), except for the first layer, the input of each layer is derived from the output of the previous layer. e ResNet adopts a skip structure so that the deep residual network can directly cross the middle layers. e parameters are passed to the subsequent layers, which reduces the complexity of the network, solves the degradation problem of the deep-level network, and promotes the improvement of network performance. e network structure of the residual neural network is shown in Figure 2. e network draws on the idea of crosslayer connection of high-speed networks. In the residual unit structure shown in Figure 2, x is the input of the network; H(x) is the optimal solution mapping; and F(x) represents the residual term and directly passes the input x to the output as the initial result to get the output H(x) � F(x) + x. When F(x) � 0, H(x) � x is an equal mapping. e training goal of ResNet is to make the residual term F(x) � H(x) − x close to zero. It is easier to let F(x) � 0 than H(x) � x. e updated parameters using F(x) � 0 can converge faster. Compared with the network model that does not adopt the skip structure, the residual network of this structure has clearer input data and can retain the accuracy of the data to the greatest extent.

Index System.
e purpose of financial early warning indicators is to detect the possible financial risks of the enterprise in advance and to rate the risks. erefore, when selecting indicators, you should choose indicators with the nature of capability evaluation and risk evaluation. erefore, based on relevant domestic and foreign research results, this article selects the total return on net assets, net sales interest rate, net operating cash flow/debt, and operating activities from five aspects: profitability, operating ability, development ability, debt solvency, and cash flow ability. A total of 10 financial indicators including net cash flow growth rate, net asset growth rate, total asset growth rate, accounts receivable turnover rate, current asset turnover rate, asset-liability ratio, and asset-liability ratio are statistically analyzed. Based on the data indicators of the textile industry's foreign investment, the feature vectors of these 10 indicators can be constructed accordingly, which can be used for subsequent risk prediction and evaluation.

Evaluation Process.
is paper builds a ResNet-LSTMbased textile industry foreign investment risk analysis model based on the previous discussion. e proposed method  Computational Intelligence and Neuroscience makes full use of the advantages of ResNet and better retains the attributes of the original data so as to effectively solve the problem of extracting the characteristics of financial risk data in the textile industry. Using the advantages of LSTM in data prediction, the accuracy of risk prediction is improved through ResNet's deep features. e basic flow chart of the method in this paper is shown in Figure 3, and the specific steps are described as follows: (1) Based on the historical data set of the textile industry's foreign investment, the feature vector is constructed according to the established index system. (2) ResNet is used for deep feature extraction to further optimize the feature vector. (3) In the training phase, the deep features extracted by the optimized ResNet are input into the LSTM network, and the unique characteristics of the memory unit structure of the LSTM network are used to establish a prediction model. (4) In the testing phase, the investment financial data set of the current data is input to the established LSTM prediction model, and the current risk assessment result is output.

Evaluation Index.
Assuming the predicted value as y � y 1 , y 2 , . . . , y n and the true value as y � y 1 , y 2 , · · · , y n , the root mean square error (RMSE), mean absolute percentage error (MAPE), and mean accuracy (MA) are used as the evaluation indicators of the perdition model. e definitions of the three indexes are as follows: In the formula, the smaller the RMSE value, the closer the predicted value to the true value, the higher the accuracy of the prediction. MAPE and MA evaluate the predictive power of the model. e smaller the MAPE and the larger the MA, the better the prediction effect of the model.

Data Set and Comparison Method.
In order to test the performance of the proposed method, this paper obtained 380 historical financial data of China's textile industry foreign investment through public channels. According to the financial risk measurement index system in the previous works, the corresponding feature vectors are constructed, respectively. en, the method of combining ResNet and LSTM is used for risk prediction analysis, and RMSE and MA indicators are used to evaluate the performance of the method. While testing the method in this paper, some existing methods are selected for comparative analysis, including the method based on support vector machine (SVM), the method based on BP network, and the method based on LSTM.

Results and Analysis
e selected investment data are tested using the proposed method, and the performance of the method in this paper and the comparison methods is as shown in Table 1. According to the results, the performance of the method in this paper is the best among the four types of methods, reflecting its performance advantages. Among the three types of comparison methods, LSTM has the best performance, indicating its significant advantages in data prediction. BP network also has certain advantages over SVM, which shows the advantages of neural network. In particular, comparing the proposed method with LSTM shows that this paper further introduces ResNet for deep feature learning, which further improves the final prediction performance. erefore, by using the comprehensive evaluation of RMSE and MAPE two indicators, the proposed method has advantages in predicting the risk of foreign investment in the textile industry.
In the actual process, due to the influence of market bands and other political and economic factors, certain errors may occur in the prediction model. To this end, this paper applies a certain degree of noise to the experimental data to reflect the volatility of economic data. On this basis, MA was used as the basic evaluation index to test the performance trend of various methods, and the results are shown in Figure 4. It can be seen from the figure that the performance of various methods is degraded to a certain extent due to the influence of noise. In comparison, the method in this paper can maintain the best prediction performance under different noise interference conditions, thereby further improving its performance advantages.

Conclusion
Scientific analysis of the risk of foreign investment in the textile industry is conducive to identifying the investment direction and investment market and obtaining the greatest rate of return. Aiming at the problem of predicting the risk of foreign investment in the textile industry, this paper comprehensively uses two deep learning models, ResNet and LSTM. ResNet is used for deep feature learning to further optimize the index system of risk prediction. As an accurate and efficient prediction model, LSTM predicts the deep features learned by ResNet and obtains risk prediction results. Part of the measured data is used to verify and analyze the proposed method, and the result proves the performance advantage of the proposed method. Compared with the method directly using LSTM, the proposed can bring performance improvement owing to the merits of ResNet. In the future, more suitable deep learning models can be further developed to improve the accuracy of the prediction model.

Data Availability
e dataset can be accessed upon request.

Conflicts of Interest
e authors declare that they have no conflicts of interest.