A Deep Learning Model for ERP Enterprise Financial Management System

. With the advent of the information age, the need for information technology construction is beginning to be realized when working in corporate financial management. The application of ERP systems to financial management has become a major trend in the development of modern society. This can help companies collect financial information in real time and analyze and process the obtained information. This paper first gives the significance and models of the ERP financial management system. Then, a financial risk prediction model based on a deep learning model is designed. The method proposes an improved temporal convolutional network-long and short-term memory network (TCN_LSTM) structure and introduces an optimization algorithm to optimize the parameters of the deep learning model. Finally, several benchmark models and evaluation methods are used for comparative study. The experimental results show that the deep learning risk prediction model has significant superiority in prediction accuracy and stability. The proposed model can help enterprises organize their limited resources, realize the scientific allocation of enterprise resources, and create more benefits for enterprises.


Introduction
Financial management is an essential part of an enterprise related to the enterprise's overall development. It is very important to do an excellent job in the nancial management of the enterprise to obtain long-term and stable growth [1,2]. In the information age, the use of information technology tools should be strengthened in enterprise management.
e Enterprise Resource Planning (ERP) system [3], an essential method of nancial management, is a product of the development and changes in the information age. e ERP system provides reliable support for the rational application of information technology in enterprises.
ERP system combines an enterprise's production and nancial management based on providing information technology for the enterprise [4]. It enables the nance department to obtain accurate business data promptly, which is conducive to the rational use of resources, thereby improving e ciency and optimizing the e ectiveness of capital use. is e ectively improves the management level of enterprise nance and promotes the rational use of funds.
However, the e ect of such multidepartmental collaboration is di cult for most enterprises to achieve. In the traditional enterprise nancial management model, each department is relatively independent of the other and not closely enough connected. ey cannot realize real-time information sharing and e ective communication, which easily leads to untimely access to information and poor decision-making. erefore, the level and e ciency of enterprise nancial management are not high and eventually may cause great losses to the company [5]. Enterprises should speed up familiarizing themselves with the use and application of ERP systems and change to a systematic and integrated direction. e use of ERP can improve the overall management eciency of the enterprise and reduce the risk of decisionmaking and error rate of the enterprise.
Enterprise nancial management is an important part of enterprise management. It can improve nancial management by establishing and improving a nancial management system, increasing control over enterprise nancial risks, reducing economic decision-making errors, and improving nancial management. Enterprise nancial management has a very important significance for the development of enterprises. e ERP system is an important part of the enterprise financial management system [6]. e ERP system provides data sharing functions and multiangle and multilevel observation of the development of the enterprise to achieve timely detection and problem-solving. is can reduce the enterprise's risk in financial control and continuously improve the financial management system of the enterprise to promote its overall development [7].
Financial risk forecasting for financial firms is an important part of the ERP financial management system. Early financial risk forecasting models were mainly based on traditional statistical models. However, these models are mainly linear and have strict assumptions, which cannot portray the nonlinear relationship of financial risks. is makes the accuracy of financial risk prediction low and cannot meet the practical requirements of an early financial warning. With the rapid development of computer technology and artificial intelligence, methods such as support vector machine (SVM) [8] and random forest (RF) [9] have been applied to the field of economic forecasting. ese nonlinear forecasting methods have significant advantages in dealing with complex nonlinear problems [10]. As one of the most popular methods, SVM can find the optimal decision hyperplane by minimizing the structural risk and has good generalization ability. In [11], a risk prediction model with kernel fuzzy twin SVM was designed for early warning of systemic financial risks. However, SVM and NN are shallow machine learning methods with the problems of invalid feature representation and the inability to learn complex high-dimensional data effectively. e advantage of deep learning is that it extracts complex and effective features by learning step by step through multiple networks [12], which has higher prediction accuracy and generalization ability. Lv et al. [13] used deep neural networks for stock trading prediction, and the experimental results showed that DNNs have good prediction potential for financial time series. In a study on predicting the daily closing price of the Dow Jones Industrial Index, Ouyang et al. [14] found that LSTM neural networks are effective in capturing the variability of financial time series. Fewer studies have applied deep learning to financial risk prediction. Furthermore, the choice of parameters can have an important impact on the prediction effectiveness of the model [15]. e main optimization methods regarding the model parameters include cross-validation, grid search, and intelligent optimization algorithms. Bataineh and Kaur [16] utilized the CSA algorithm to optimize the setting of the weights of the feedforward neural network. e aforementioned studies have generally used singleobjective optimization methods, but enterprise financial risk forecasting is affected by various factors, and it is necessary to consider not only the forecasting accuracy but also the model stability. Xue et al. [17] introduced the NSGA-III multiobjective algorithm to forecast the electric load. e results show that the forecasting performance of the optimized model after NSGA-III is significantly better than that of the single-objective model. e representative multiobjective optimization algorithms mainly include PAES, SPEA2, and NSGA-II [18]. Among them, MOPSO is a multiobjective optimization algorithm based on Pareto domination and external archiving mechanism, which has the advantages of good convergence characteristics and low time complexity [19,20]. In a comparative study with other multiobjective optimization algorithms. MOPSO significantly outperforms methods such as NSGA-II, PAES, and mi-croDE [21].
In order to improve the performance of risk prediction in ERP financial management systems, this work proposes a TCN_LSTM prediction model with improved MOPSO to achieve high-accuracy prediction of enterprise financial risk based on the research mentioned above. e innovations and contributions of this study are as follows: (1) An ERP enterprise financial management model is designed. (2) TCN_LSTM is constructed by the multiconvolution kernel parallel network for multisource time feature extraction. (3) TCN_LSTM introduces dilation convolution to achieve multiscale feature extraction and expand the perceptual field to improve the processing efficiency of memory units. Residual linkage is introduced to the TCN_LSTM model to enhance the gradient propagation capability. (4) e MOPSO optimization algorithm is enhanced to improve the financial risk prediction performance of the TCN_LSTM network.
is study consists of four main parts: the first part is the introduction, the second part is the methodology, the third part is the result analysis and discussion, and the fourth part is the conclusion.

2.1.
e Significance of ERP for Enterprise Financial Management. Figure 1 gives the significance of ERP for corporate financial management, which is reflected in six aspects.
(i) Broadening the connotation of financial management: under the traditional business model, enterprises mainly focus on material procurement, capital management, equipment management, revenue management, and other aspects of financial management. In patent technology, human resources, customer management, sales management, accounts receivable management, cost management, and other aspects lack effective control. In intangible assets, accounting and management are more difficult to obtain the desired management effect. By applying the ERP system, we use a modern system to analyze and evaluate all enterprise assets. Moreover, in the role of supply chain management, risk assessment, financial accounting, production management, human resource management, and other modules, ERP systems effectively expand the scope of corporate financial management. (ii) Enhancing the integrity of financial management: in addition to being able to prepare financial statements, the ERP system can also integrate and manage various financial data. Various departments can use the ERP system to effectively transfer financial information, which is conducive to the sharing of financial data, thereby preventing information delays. is gives the enterprise financial management work smoothly to provide data reference so that financial management is more standardized and professional. (iii) Promoting the integration of financial management and business management: in the traditional financial management model, financial information and business information are in a separate state, which is not conducive to the orderly integration of business and financial work of enterprises. By using the ERP system, financial and business information can be integrated to form a more complete and intuitive data map. Finance staff and managers can use the data chart to combine business and finance. ey can have a comprehensive understanding of the overall business situation, which is conducive to the integration of business and financial information.
(iv) Accounts receivable risk warning model: the use of an ERP system can enhance the management of enterprise funds; for example, the system can integrate and code the various resources required in the production process. Collecting the relevant codes can help the enterprise know the material inventory, price, and other information. e system can update the data when materials are used and deployed to other departments. In the ERP system, a risk warning module can be set up. For example, if the receivable period exceeds the agreed recovery period in accounts receivable management, the system automatically issues an early warning message. is facilitates the relevant departments to deal with it in time to prevent the risk of bad debts and doubtful debts and ensure the enterprise's interests.
(v) Optimizing supply chain management model: in implementing supply chain management, enterprises are required to combine internal and external resources and customer needs and use each link in the supply chain as an enterprise ally. In supply chain management, it is necessary to combine customer needs and provide professional products or services for customers. By adjusting the internal and external processes of the production enterprise, the product circulation time is shortened, and the logistics speed is accelerated. is allows customers' individual needs to be met in a short time and creates more benefits for the company. (vi) Promoting digital management of the enterprise: we establish an enterprise-wide, system-wide, and module-wide data monitoring platform using the ERP system. e enterprise is dynamically supervised, thus realizing the digital management of the enterprise. By conducting regular business analysis meetings, we provide accurate financial information to business operators and managers with the help of an ERP system.

Module Analysis of ERP in Enterprise Financial
Management. Figure 2 illustrates the ERP enterprise financial management system model. e model is divided into the accounting, accounts receivable, information, fixed assets, and financial management modules.
Accounting Module. e value of the accounting module is understood through the functional analysis of the ERP system. is can facilitate the technical accounting of the enterprise and truly show the business process and results. rough the survey and analysis, accounting involves the general ledger, payroll accounting, and cost, among others. e general ledger module can process the bookkeeping vouchers and complete the input and registration. e payroll module automatically accounts for and allocates employees' salaries and completes the accrual of funds in conjunction with related expenses. In contrast, the cost module calculates and completes production planning based on the structure of products produced by the enterprise, production process, and procurement information in  Advances in Multimedia operation and production. Using the standard cost averaging method can control the production cost.

Accounts Receivable
Module. e accounts receivable module includes invoice management, account management, and customer management. It transforms relevant events into specific vouchers to be imported into the general ledger by combining them with customer orders, invoice processing operations, and so on. In calculating accounts receivable, financial risk predicting needs to be fully integrated with the purchasing module and inventory module from multiple perspectives of invoice management, voucher management, and supplier management. is can form a complete management pattern and improve enterprise management.
Information Module. e information module allows you to control cash flow and complete petty cash accounting and analysis, including cash and checks. e information module can be connected with the accounts receivable and accounts payable modules to automatically form vouchers posted to the general ledger system.

Fixed Assets
Module. e fixed assets module enables fixed asset changes, asset accruals, and asset accounting, which provides an effective way of asset management through this module. e fixed assets module includes fixed assets cards and detailed accounts, which automatically form vouchers.
Financial Management Module. is module can provide a data basis for the development of accounting. Financial management solutions are derived by combining previous financial situations in financial planning. Query work is provided in financial analysis, and data differentiation is completed through user customization. As the focus of account management, financial decision-making can help enterprises make feasible financial decisions. Taking various management countermeasures to connect the company's production process ensures that the company reduces inventory and improves efficiency.
Risk forecasting is an important part of the ERP financial management system.
is study gives the financial risk forecasting model design in Section 2.3.

TCN-LSTM. Several factors influence financial risk prediction.
is study combines the improved TCN and LSTM to construct the TCN_LSTM risk prediction model. e model can improve the accuracy and computational efficiency of forecasting. Its network structure is shown in Figure 3. e number of hidden layers is not limited to the two layers in the figure, and the arrows pass the hidden layer states from left to right by moment.
First, an improved TCN model is used to effectively combine multidimensional financial data for risk prediction while maintaining the causal convolution property. Secondly, the dilation convolution is introduced into the standard LSTM to realize the extraction of higher-order features and filtering of useless information from financial data using its efficient feature extraction. is can improve the efficiency of LSTM hidden layer memory unit processing. Finally, the overall network structure of the prediction model is optimized by incorporating residual links. It directly transmits features across layers, simplifies the overall data feature learning process, and enhances the gradient propagation capability. e specific process is as follows: (1) Initialize the TCN Model Structure and Parameters. In financial risk forecasting, the input is usually multidimensional financial data, including profitability, operating capacity, fixed cash flow capacity, and debt service capacity. e standard TCN model has only a one-dimensional convolution kernel, so it can only handle one-dimensional input data. In this study, multiple one-dimensional expansion convolutions are operated in parallel in multiple dimensions to construct a set of multiple parallel networks of separable one-dimensional convolution kernels. e parallel network is used to extract the implicit feature information in each dimension and perform feature fusion, which fully preserves the correlation between financial data in different dimensions and can greatly improve the efficiency of model operations.
A schematic diagram of the one-layer multiple one-dimensional dilation convolution process is shown in Figure 4. e input data X is a matrix of w × t consisting of t kinds of data with a total time span of w. After the action of the convolution filter F n of size d × 1 and the dilation factor D of 2 in the convolution layer, the output N is t feature maps, where the t th feature map is subjected to the dilation convolution operation by the input X t and the convolution filter F t , which is calculated by the following formula: For the one-layer multidimensional convolution operation demonstrated in Figure 4, the perceptual field size is calculated by the following formula; that is, the perceptual field of the convolution kernel of this layer is 7 * 7 � 49: For multilayer multidimensional convolutional nets in TCN_LSTM, the recursive formula for calculating the sensory field size is as follows:  Advances in Multimedia where S x denotes the x th layer step size. Z t denotes the nth layer convolution kernel size. e convolution kernel size is calculated as follows: where U denotes the padding value in the network model. After such multiple convolution operations on the input data, the abstract features contained in the financial data are effectively extracted. Moreover, the links between features can still be maintained for various data classes. e output matrix with the same dimension as the input dimension is obtained through the full convolution layer in TCN after a multilayer convolution operation. e improved TCN model retains the original dilated and causal convolution features while covering the full range of dimensional data inputs from the original unidimensional financial data. is fully ensures that it can handle financial data effectively and speed up the training speed of the network model with a better sense of real-time feedback.
(2) Initialize the LSTM Model Structure and Parameters. e more standard LSTM model in dealing with long-term memory, due to the long history, multispecies data optimization storage capacity, lack of prediction accuracy degradation, and prediction feedback delay problem. In this work, we extract the amount of dependent information contained in the current moment n by adding the dilation convolution operation before the recurrent layer of the LSTM network. For the same size of input data, the larger the sensory field contained in the network, the fewer the number of network layers required to extract all the data. is significantly simplifies the network structure and optimizes the network processing speed and prediction accuracy. e dilation convolution operation is illustrated in Figure 5. e convolution kernel size is set to 3, and the dilation rate is 1. e effective information contained in the convolution layer K at time n is a higher-order feature extracted from the information contained in the convolution layer I from time 1 to time n. is feature can filter the useless information in the long-time data very efficiently while preserving the correlation between the original multidimensional information. is can reduce the amount of data for subsequent processing and improve the overall processing efficiency.
After the convolution layer operation processes the financial data, the higher-order features of the multidimensional financial sequences are passed through the full connection layer into the recurrent layer to obtain the output results. e predicted results are then compared with the historical financial real-world data. e errors calculated in the output layer are used for gradient backpropagation to  (3) Introduce Residual Links for the Overall Model. Considering that the improved TCN_LSTM runoff prediction model needs to learn multidimensional data over a long period, the network convolution layers still have a very large number. Moreover, after multilayer convolution and compression operations, the dependent information still has some differences and losses compared with the original information. erefore, the residual linking method is introduced in the network model to enable the network to transfer the underlying dependency information across layers. is can maximize the output layer to fuse the higherorder features with the detailed underlying features and improve the prediction accuracy. A residual block consists of a direct mapping part and a residual part, which is expressed as where i t represents the dependency information embedded in the t th convolution layer. C represents the dilation convolution operation, that is, the direct mapping part. F is the residual mapping operation performed between different layers. e convolution layers in this model consist of multiple convolutional kernels in parallel to perform deeplevel feature extraction. In contrast, multiple generic residual blocks are designed and combined to perform multidimensional feature extraction from source data. Two layers of dilated causal convolution and activation function ReLU are included in each residual block layer, and the weights are applied to normalize the convolution kernels. In addition, dropout is added after each dilated causal convolution for regularization to mitigate the occurrence of overfitting of source features. e structure diagram is shown in Figure 6. For the Z-layer parallel residual block, the source data are input into the residual function of each layer. An additional layer of dilation convolution is utilized to ensure that the same shaped tensor is obtained to resolve the different input and output widths.
(4) Model Optimization. In this study, an improved MOPSO algorithm is designed for parameter optimization of the depth model. It is particularly important how the inertia weights balance the global searchability and the local searchability. Usually, the inertia weights are set in a linear decreasing strategy in the optimization process. However, suppose the linear decreasing strategy is adopted to update the inertia weights in the optimization process. e global search ability will be stronger if the values are larger in the first iteration. is is easy to jump out of the local optimum and help find the global optimum. In the later iterations, the inertia weights become smaller, and the global search ability becomes weaker, whereas the local search ability becomes stronger. At this time, the convergence speed becomes faster, so it is not conducive to jumping out of the local optimum, and thus the phenomenon of premature maturity occurs.
is study adopts the strategy of updating inertia weights by nonlinear function and resetting unfavorable particles by the Gaussian distribution model to solve the drawbacks of using a linear decreasing strategy. In the weight update, the inertia weight of the improved algorithm gradually increases in the first half iterations and decreases in the second half iterations. In the standard PSO algorithm, the update of each dimensional value of each particle velocity takes the same inertia weight. However, the amount of change of each dimensional value of the particle is not the same. e improved MOPSO algorithm adopts different inertia weights to update some particle velocity dimensions. e inertia weights are calculated as follows: where ω xd is the inertia weight of particle x in the d th dimension. ω min , ω max are the lower and upper limits of the inertia weight, respectively. L is the maximum number of iterations. δ is the fluctuation coefficient of the inertia weight. R1, R2 are the random numbers obeying uniform distribution in the interval [0, 1] and [−1, 1], respectively. Updating the inertia weights using only line and nonlinear functions is not effective in increasing the diversity of the population. When a particle flies in the opposite direction, the particle may fall into a local optimum. A uniformly distributed random number is assigned to the particle flying in an unfavorable direction within the definition of particle position. Each random value has the same probability and is not targeted. In the iterative particle position update process, the particle positions are selectively reset using random values generated by the Gaussian distribution model for particles flying in an unfavorable direction considering the problems mentioned above. is makes the particle population more diverse and reduces the possibility of the algorithm falling into a local optimum. In order to make the assigned values more specific, the mean and variance of the Gaussian distribution model are determined using the current particle position, the individual historical optimal position, and the optimal global position. e position is updated as follows: torwrgtd(μ, σ), where

Risk
Projections. e optimal model is obtained by pretraining using historical financial data. e test samples are input into the model for calculation. Finally, the risk prediction data are obtained and compared with the actual test set to obtain the model prediction results. Figure 7 presents the flow of the prediction model based on deep learning. e overall model is initialized with the model structure, hyperparameters, and preprocessing of the multisource data to screen out erroneous data, such as 0 values, null values, and other cases. e multisource data are then constructed as a multidimensional matrix and used as data input. Null convolution is performed on the data in the convolution layer to extract high-dimensional features. is step can effectively reduce the number of high-dimensional network layer weight coefficients and significantly reduce the overall model spatiotemporal complexity. e convolved high-dimensional features are fed into the loop layer for computation via the full connection layer.
In contrast, the residual link spanning layer is used to transfer the unprocessed data from the bottom layer into the loop layer, which is used to prevent data loss and distortion caused by multiple cycles of the complex network layer. e Advances in Multimedia loss values of the model for each iteration are then recorded. e optimal model for each iteration round is recorded. When the maximum number of iterations is reached, the optimal results are compared, and the model with the smaller loss value is output. is optimal model is taken as the final result and tested using the test set to obtain the TCN_LSTM model prediction results.

Financial Risk Forecasting Model Evaluation Indicators.
is study analyzes the classification accuracy of the financial risk early warning model using the traditional classification correct rate, and the prediction accuracy of the financial risk early warning model is evaluated using the evaluation indexes for unbalanced samples. e evaluation indexes and calculation formulae are given in Table 1.

Selection of Feature Indicators.
Because there is no accepted standard for the characteristic indicators used in the financial risk prediction model, this study draws on relevant studies to select the characteristic indicators. A risk warning system containing financial and nonfinancial indicators was initially obtained. Finally, 13 groups of indicators, such as development capacity, profitability, and solvency, were selected as the input features of the financial risk prediction model, as shown in Table 2   Geometry average correct rate. If G is larger, the model predicts both types of samples with higher accuracy. Conversely, the smaller the accuracy of the model, the lower the correct rate will be.

Comparison of Prediction Accuracy.
ere are six types of comparison models, including BP neural network (BPNN), SVM, long short-term memory network (LSTM), differential evolutionary algorithm-LSTM (DE-LSTM), simulated annealing-LSTM (SA-LSTM), and NSGA--II-DNN model in [22]. e comparison of the model's prediction accuracy in this study and the comparison model is given in Figure 8.
e combined results show that the model constructed in this study has the best prediction accuracy. Its evaluation indexes TPR, TNR, and TR are 73.89%, 76.57%, and 75.05%, respectively, higher than the other six prediction models, which indicates that the model has better performance in enterprise financial risk forecasting. In addition, the better prediction performance of the models in [22] and in this study indicates that the multiobjective optimization algorithm outperforms the single-objective approach in terms of prediction effectiveness. e above experimental results analyzed the differences of the models only in terms of the numerical magnitude of the prediction accuracy and lacked mathematical and statistical significance. erefore, in order to strengthen the scientific and objective nature of the obtained results, a paired-samples t-test was used for significance testing to determine whether there were significant differences in the prediction performance of different models. e specific experimental results are shown in Table 3.
e results in Table 3 show that the null hypothesis is rejected at the 1% significance level for the t-test on each indicator for the proposed model and the proposed model except for the paired sample t-test on TNR for the proposed model and [22] which is significant at the 5% level. It indicates that the proposed model is significantly different from the other models on TPR, TNR, and TR, and its financial risk prediction is better.

Comparison of Prediction Stability.
Because paired sampling according to the 1 : 1 ratio will have some impact on the randomness of the samples, this study tests the robustness of the model by varying the ratio between positive and negative samples. Firstly, the ratios between financial risk samples and normal financial samples are set to five, 1 : 2, 1 : 3, 1 : 4, 1 : 5, and 1 : 6, respectively. en, the changes in prediction accuracy of the four types of models under these five ratios are analyzed. us, the prediction stability of the proposed model is judged. Given that the samples under the five ratios no longer belong to balanced samples, it is necessary to introduce a metric specifically for unbalanced samples to evaluate the model's prediction performance. e results of the model experiments are shown in Figure 9.
e proposed model has a higher G value (0.7800) than the other models for different positive and negative sample ratios. e proposed model performs poorly in terms of F value, but its F mean (0.5910) is higher than the other models   with the smallest standard deviation. is indicates that the literature [22], DE-DNN, and SA-DNN models are worse than the proposed models for financial risk and normal financial samples. Graphically, the prediction accuracy of the proposed models G and F are relatively smoother and less volatile in trend, indicating that the prediction results are stable for the two types of samples with different financial sample ratios.

Conclusion
By analyzing and discussing the significance of the ERP financial management system, we design a model of an ERPbased enterprise financial management system. A deep learning financial risk prediction model is proposed to analyze and process financial data in ERP. In this study, prediction fully considers the complexity of financial risk prediction, combines multiobjective optimization algorithm and deep learning technology to construct an ERP enterprise financial risk hybrid prediction model, and compares it with six other benchmark models. e results show that, first, the model in this study has a much better prediction capability in terms of prediction accuracy. Compared with other methods, its prediction accuracy is statistically significant. Second, in terms of prediction robustness, the model in this study can effectively control the fluctuation of prediction accuracy and improve prediction stability. Compared with [22], SA_LSTM, and DE_LSTM, the prediction accuracy G value (mean) is improved by 4.7%, 7.40%, and 9.54%, respectively. e future research direction is to refer to multiple MOPSO-optimized deep learning models for the risk prediction of ERP financial management systems to improve system performance.

Data Availability
e labeled dataset used to support the findings of this study is available from the corresponding author upon request.

Conflicts of Interest
e author declares that there are no conflicts of interest.