A Deep Machine Learning-Based Assistive Decision System for Intelligent Load Allocation under Unknown Credit Status

Nowadays, the banks are facing increasing business pressure in loan allocations, because more and more enterprises are applying for it and financial risk is becoming vaguer. To this end, it is expected to investigate effective autonomous loan allocation decision schemes that can provide guidance for banks. However, in many real-world scenarios, the credit status information of enterprises is unknown and needs to be inferred from business status. To handle such an issue, this paper proposes a two-stage loan allocation decision framework for enterprises with unknown credit status. And the proposal is named as TLAD-UC for short. For the first stage, the idea of deep machine learning is introduced to train a prediction model that can generate credit status prediction results for enterprises with unknown credit status. For the second stage, a dynamic planning model with both optimization objective and constraint conditions is established. Through such model, both the profit and risk of banks can be well described. Solving such a dynamic planning model via computer simulation programs, the optimal allocation schemes can be suggested.


Introduction
Since the rise of banks, loans have become the most common way of financing the process of enterprise development. Two main bodies are involved in general loan activities [1]. One is the communities that provide funds, such as financial companies and banks, while the other is the communities that apply for borrowing funds, such as enterprises [2,3]. With the continuous growth of urbanization and modernization, the business volume of loans shows a gradually increasing trend [4].
is not only brings greater capital pressure to banks but also increases some uncertain financial risk for banks [5,6]. Because the operation status and qualification of many enterprises are diverse, a great challenge is posed to the later management of banks [7,8].
erefore, how to calculate the optimal loan schemes that can maximize profit or minimize risk for banks under limited capital, serves as an important problem [9,10].
It is never an easy task to determine the optimal loan allocation schemes for banks [11]. Although there are some research works focused on this issue, most of them did not consider the limitation of the total capital amount [12,13]. ey focused more on the scenes that decide whether to provide loans to specific enterprises [14][15][16].
ey did not consider more substantive issues such as amount setting or global risk [17][18][19]. In addition, in the process of loan review, the most important consideration of enterprises is credit status. In the existing research works, they basically assume that the credit status of enterprises is known [20,21]. However, in many actual business scenarios, the credit status of enterprises is unknown. e circumstances bring many challenges to the formulation of loan allocation plans. erefore, how to generate the optimal loan allocation scheme for enterprises with unknown credit status is essentially a more realistic problem.
To deal with such an issue, this paper proposes a twostage loan allocation decision framework for enterprises with unknown credit status, which is named as TLAD-UC for short. For the first stage, it is expected to tackle with the issue that credit status for enterprises is unknown. As a consequence, a typical machine learning named as K-nearest neighbor (KNN) is utilized here to predict credit status for enterprises. Specifically, a historical dataset that records information of 123 enterprises with credit status is selected to train the machine learning-based prediction models. And the trained models will be used to generate prediction results for enterprises with unknown credit status. For the second stage, a dynamic planning model is formulated to fit the decision process of banks, in which profit and risk are both expressed with quantified expressions. e dynamic planning model is composed of both optimization objective and constraint conditions. By solving the dynamic planning model, the optimal loan allocation decision schemes can be obtained.
e main contributions of this paper can be summarized in three aspects.
(1) It is recognized that loan allocation for enterprises with unknown credit status is challenging. (2) We propose TLAD-UC which is a two-stage loan allocation decision framework for enterprises with unknown credit status. (3) Simulation is conducted on a real-world dataset to demonstrate the workflow of the proposed TLAD-UC.

Preliminaries
Two datasets are involved in this work. Dataset A records some information of 123 enterprises and has credit status information for them. Dataset B only has some basic information of 302 enterprises yet has no credit status information. Inside both datasets, each enterprise has some business records of input invoices and sale invoices as their basic features. Let n denote the index number of enterprises that ranges from 1 to N, and the N equals to the number of enterprises in corresponding datasets. Taking the 123 enterprises with credit information as references, the main goal is to determine loan allocation schemes for the 302 enterprises without credit information. To handle such a problem, the TLAD-UC is implemented via two stages. As is shown in Figure 1, the two stages involved in the architecture of TLAD-UC are the machine learning stage and the optimization decision stage. For the first stage, initial business data is preprocessed into a format that is suitable for data analysis models. And then, the KNN model is trained on the basis of dataset A. After training, it can directly predict unknown credit information for 302 enterprises in dataset B. For the second stage, the profit and risk of the 302 enterprises are quantified via mathematical expressions. On such a basis, a dynamic planning model with both optimization and constraint conditions is established for the side of banks. en, the dynamic planning model can be solved by using computer simulation programs to search for optimal solutions for the planning model. Naturally, the optimal loan allocation schemes can be obtained after a solution to the optimization objective.

Data Preprocessing.
In the beginning, the initial datasets need some basic procedures to extract features. e following procedures are the basic process of feature engineering: (1) For each enterprise, the total amount of its input invoices and the total amount of its sale invoices are respectively counted via aggregation of all related records that are labeled as "valid". For the n-th enterprise, its amount of input invoices and amount of sale invoices are denoted as F n,1 and F n,2 , separately. (2) It is noted that some of the values in F n,1 and F n,2 are less than 0, which means that the corresponding business record is a chargeback record. Similarly, the total amount of chargeback for each enterprise is counted. For the n-th enterprise, its amount of chargeback amount in input invoices and sale invoices are denoted as F n, 3 and F n,4 , respectively. (3) e ratio of chargeback data can be computed for both input invoices and the sale invoices via the following two formulas: (1) For the n-th enterprise, its ratio of chargeback data in input invoices and sale invoices are denoted as F n, 5 and F n,6 , respectively. (4) It is noted that values in F n,1 and F n,2 do not equal to the turnover amount because there exists the tax. e real turnover amount for a business record equals the sum of the invoice amount and tax amount. us, the turnover amount of input business and sale business can be calculated and denoted as F ′ n,7 and F ′ n,8 , respectively. For the two indicators, their average values of one day can be computed as follows: For the n-th enterprise, its ratio of chargeback data in input invoices and sale invoices are denoted as F n, 7 and F n, 8 , respectively. (5) For each enterprise, the number of chargeback records is counted. For the n-th enterprise, such feature is denoted as F n,9 .
2 Computational Intelligence and Neuroscience (6) For each enterprise, its turnover amount needs to be processed by introducing logarithmic operations, which can be calculated as follows: For the n-th enterprise, its two features are denoted as F n,10 and F n,11 , respectively. (7) For each enterprise, its turnover amount also needs to be processed by introducing logarithmic operations, which can be calculated as follows: For the n-th enterprise, its two features are denoted as F n, 12 and F n,13 , respectively. (8) For each enterprise, it has four possible label options which correspond to four credit ratings. e label of n-th enterprise is denoted as y n .
As shown in Figure 2, the main workflow of machine learning algorithms is composed of four procedures: data preprocessing, model selection, model training, and prediction. Having finished the data preprocessing, it is expected to implement model selection and model training. For the n-th enterprise, its thirteen features can be denoted as F n,m , where m ranges from 1 to 13. Given F n,m , it is expected to generate prediction results for it. is process can be represented as the following formula: To realize such a goal, the idea of machine learning is then introduced.

Prediction of Unknown Credit Information.
As has been mentioned above, the dataset A has credit information and dataset B has no credit information. us, the dataset A is viewed as a golden dataset, from which unknown pattern rules can be discovered. Viewing the dataset A as a training set and the dataset B as the set to be predicted, a typical machine learning model named as KNN is selected here for this purpose. e full name of KNN is K-nearest neighbors, and the KNN can be used for both classification problems and regression problems. e KNN realizes classification tasks or regression tasks by measuring the distance between different eigenvalues. Naturally, the selection of K-nearest neighbors is upon the basis of distance in sample spaces. e KNN is a quite easy but special machine learning algorithm, as it lacks the general learning process. Its working principle is to divide the feature vector space by using the training data and take the division results as the final algorithm model. After entering the unlabeled data, it is supposed to compare each feature of the unlabeled data with the corresponding feature of the data in the sample set. en, the classification labels of the data with the closest features (nearest neighbors) in the sample are extracted. We take Figure 3 as an example to illustrate the basic principles of KNN. Inside the figure, red points and blue points refer to samples that have been labeled. ey belong to two different classes. It is expected to generate classification results for the green point. When K equals to 3, the selected neighbors for the green point include two red points and one blue point. According to the majority voting rule, the green point will be annotated as the class of red points. When K equals to 5, the selected neighbors for the green point include two red points and three blue points. According to the majority voting rule, the green point will be annotated as the class of blue points. From this example, it can be deduced that the setting of K is quite important in KNN because the constitution of neighboring samples may be diverse with different settings of K.
en, there is an essential problem in KNN, how to measure the distance in sample spaces?
In this work, the most prevalent distance measurement named as "Euclidean distance" is selected for use. Supposing that there are two sample points denoted as α and β in sample spaces, they are both four-dimensional samples. e Euclidean distance between α and β is calculated as the following formula:  Computational Intelligence and Neuroscience It can be seen from the formula that the value of Dist(α, β) is sensitive to a diverse value range. For example, if the value range of α 1 and α 2 is larger than other features, the final value of Dist(α, β) will be influenced to some extent. To reduce such an effect, it is supposed to make normalization operations towards all the feature values. Universally, the value range of normalization is fixed as [0, 1]. Taking α 1 as an example, the normalization procedure can be calculated as follows: where min(α 1 ) denotes the minimum value in all the α 1 values in sample spaces, and max(α 1 ) denotes the maximum value in all the α 1 values in sample spaces. Naturally, all the features need to be normalized before substituting into models. erefore, major procedures of the KNN algorithm can be described as follows: (1) e distance between the test data and each training data is calculated. (2) All the possible neighbors are sorted by an increase in distance. (3) K samples with the nearest distance are selected as the neighbors. (4) e occurrence frequency of the category to which these k samples belong to is counted. (5) e category with the highest frequency in the K samples is returned as the prediction classification of the test data.
And the above process can be summarized in Figure 4. e running result of the computer program can be demonstrated in Figure 5.

Model Evaluation and Prediction
In the next stage, the optimization decision model will be formulated on the basis of such prediction results. To sum up, 27 enterprises are labeled as credit rating A, 149 enterprises are labeled as credit rating B, 74 enterprises are labeled as credit rating C, and 52 enterprises are labeled as credit rating D.

Optimization Decision.
To generate optimal allocation decisions for enterprises, a dynamic planning model is formulated in this section to realize this purpose.
From the side of banks, their total income from loan activities can be represented as the following formula:  credit ratings. Q 1 , Q 2 , Q 3 , and Q 4 denote the proportion of no default for enterprises with four different credit ratings.
And for the side of banks, their risk in loan activities can be represented as the following formula: Among, t 1 , t 2 , t 3 and t 4 denote the ratio of enterprises with four different credit ratings.
Besides, there are also some constraint conditions to be satisfied as follows: Here, A denotes the total amount that can be used for loan activities in banks.
Further, the total profit for the side of banks can be represented as the following formula: among, t 1 , t 2 , t 3 and t 4 denote customer loss ratio of enterprises with four different credit ratings. en, the optimization objective can be formulated from two aspects: risk minimization and profit maximization.
For risk minimization, the following optimization model can be formulated as follows: min R s.t.
Substituting c 1 , c 2 , c 3 , c 4 , d 1 , d 2 , d 3 , d 4 , L 1 , L 2 , and L 3 into the model, the total profit and total risk can be written as follows: Assuming that the total amount for loan activities is set as 1, the optimal allocation scheme is computed as follows: It is noted that enterprises with credit rating D will not be approved for loans here. And the interest ratio is set at 0.08.
For profit maximization, the following optimization model can be formulated as follows: min TP s.t.
Substituting c 1 , c 2 , c 3 , c 4 , d 1 , d 2 , d 3 , d 4 , L 1 , L 2 , and L 3 into the model, the optimal decision for allocation schemes can be represented as follows: It is noted that enterprises with credit rating D will not be approved for loans here. And the interest ratio is set at 0.15.
In order to visualize the allocation results more clearly, Figure 6 demonstrates the allocation results of three kinds of enterprises via a stacked bar chart. Inside the figure, the blue bar corresponds to allocation results for enterprises with credit rating A, the green bar corresponds to allocation results for enterprises with credit rating B, and the yellow bar corresponds to allocation results for enterprises with credit rating C, while no allocation is provided for enterprises with credit rating D. And the results under two situations are also model = knn_classifier (x_train, y_train) y_predict = model, predict (x_test) y_predict array ( [4,4,4,4,4,4,4 3, 3, 3, 3, 3, 3, 3, 3   illustrated respectively in Figure 7, in which two subfigures correspond to situations of risk minimization and profit maximization. We also make a visualization of interest rate under two situations in Figure 8. It is a bar chart with two main bars, in which the blue bar corresponds to the interest rate under risk minimization and the red bar corresponds to the interest rate under profit maximization.

Discussion about Machine
Learning Application is work deals with loan allocation decision situations where the credit status information of enterprises is unknown. As a consequence, this work introduces machine learning to predict unknown credit status information. e   Computational Intelligence and Neuroscience machine learning models are with simple principles and are more resilient compared with general mathematical modeling thoughts. Besides, there are many support services for the machine learning models, as many available interfaces can be directly imported. It can really act as an alternative for time-consuming manual decision tasks and can even be comparable to expert experience in some situations. However, the machine learning models also have some limitations. e most common issue for machine learning models lies in the fact that they are highly reliable on labels and sample amounts, because the machine learning models need to be trained on the basis of gold labels in the training set and are quite sensitive to sample amount. In other words, there needs some cost to train an effective machine learning model. In addition, the selection of features may also have some effect on the fitting efficiency of machine learning models, which is attributed to the explainability problem of general machine learning models. Due to the weak explainability, the establishment of models may lead to many redundant labors. But on the whole, the machine learning models can still work as a feasible solution in many business scenarios.

Conclusion
is paper focuses on a smart finance task using machine learning methods. To complete unknown credit status information of users, this work uses the KNN model for this purpose. After that, a dynamic planning model is utilized to realize decision-making processes. e whole technical framework is named as TLAD-UC for short which is composed of two stages. A real-world dataset is selected to evaluate the performance of the proposed TLAD-UC. A case study is presented to display the workflow of the proposal. It is also noted that the current technique is still in the initial exploration of this area, and efficiency needs to be further improved in future works. erefore, it is expected to improve technical methods and promote decision effect. And the idea of an autonomous decision may be considered in future works.

Data Availability
e research data can be requested from the first author via e-mail.

Conflicts of Interest
e authors declare that they have no conflicts of interest.  Computational Intelligence and Neuroscience 7