| Literature DB >> 36010821 |
Abstract
This paper proposes a new method that can identify and predict financial fraud among listed companies based on machine learning. We collected 18,060 transactions and 363 indicators of finance, including 362 financial variables and a class variable. Then, we eliminated 9 indicators which were not related to financial fraud and processed the missing values. After that, we extracted 13 indicators from 353 indicators which have a big impact on financial fraud based on multiple feature selection models and the frequency of occurrence of features in all algorithms. Then, we established five single classification models and three ensemble models for the prediction of financial fraud records of listed companies, including LR, RF, XGBOOST, SVM, and DT and ensemble models with a voting classifier. Finally, we chose the optimal single model from five machine learning algorithms and the best ensemble model among all hybrid models. In choosing the model parameter, optimal parameters were selected by using the grid search method and comparing several evaluation metrics of models. The results determined the accuracy of the optimal single model to be in a range from 97% to 99%, and that of the ensemble models as higher than 99%. This shows that the optimal ensemble model performs well and can efficiently predict and detect fraudulent activity of companies. Thus, a hybrid model which combines a logistic regression model with an XGBOOST model is the best among all models. In the future, it will not only be able to predict fraudulent behavior in company management but also reduce the burden of doing so.Entities:
Keywords: classification algorithms; feature selection; financial fraud; grid search; voting
Year: 2022 PMID: 36010821 PMCID: PMC9407419 DOI: 10.3390/e24081157
Source DB: PubMed Journal: Entropy (Basel) ISSN: 1099-4300 Impact factor: 2.738
Figure 1The overall framework of the proposed intelligent approach for fraud detection.
Figure 2The overall framework of feature selection.
The parameter of machine learning models.
| Algorithm | Parameter | Value |
|---|---|---|
| LR | Penalty | [‘l1’,‘l2’] |
| C | [0.01,0.05,0.1,0.5,10,50,100] | |
| Solver | [‘liblinear’,‘lbfgs’] | |
| RF | Criterion | [‘gini’,‘entropy’] |
| Max_features | range(1,len(features)) | |
| N_estimators | [1,10,20,50,100] | |
| XGBOOST | Max_depth | range(1,len(features)) |
| Learning_rate | [0.01,0.1,0.5,1] | |
| Gamma | [0.01,0.05,0.1,0.5,10,50,100] | |
| SVM | C | [0.01,0.05,0.1,0.5,10,50,100] |
| Gamma | [0.01,0.05,0.1,0.5,10,50,100] | |
| DT | Criterion | [‘gini’,‘entropy’] |
| Max_features | range(1,len(features)) |
Figure 3The framework of Voting Classifier.
Details of indicators.
| Indicator | Meaning | Unit |
|---|---|---|
| RETAINED_EARNINGS | Undistributed profits | CNY |
| PUR_FIX_ASSETS_OTH | Cash paid for fixed assets, intangible assets | CNY |
| CIP | Construction work in process | CNY |
| ADVANCE_RECEIPTS | Deposit received | CNY |
| NOPERATE_EXP | Non-business expenditure | CNY |
| C_PAID_TO_FOR_EMPL | Cash received relating to operating activities | CNY |
| INVENTORIES | Inventory | CNY |
| MINORITY_INT | Minority equity | CNY |
| BIZ_TAX_SURCHG | Business taxes and surcharges | CNY |
| ASSETS_DISP_GAIN | Gain on disposal of assets | CNY |
| BASIC_EPS | Primary earnings per share | CNY |
| COMPR_INC_ATTR_M_S | Total comprehensive income attributable | CNY |
| N_CF_OPA_R | Operating cash flow (operating income) | CNY |
The pointbiserial correlation coefficient between indicators and dependent variable.
| Pointbiserial |
|
|
|
|
|
|
|
|---|---|---|---|---|---|---|---|
| y | 0.908 | 0.839 | 0.491 | 0.665 | 0.829 | 0.989 | 0.552 |
|
|
|
|
|
|
| ||
| y | 0.757 | 0.432 | 0.769 | 0.605 | 0.116 | 0.737 |
The number of training and testing data set.
| Original | The number of legitimate records | The number of fraudulent records |
|---|---|---|
| Training data set | 12,526 | 116 |
| Testing data set | 5354 | 64 |
|
|
|
|
| Training data set | 12,526 | 12,526 |
| Testing data set | 5354 | 5354 |
The performance of AUC in two different data set with same models.
| Algorithm | The Value of AUC | The Value of AUC |
|---|---|---|
| LR | 0.719 | 0.757 |
| RF | 0.562 | 0.635 |
| XGBOOST | 0.690 | 0.712 |
| SVM | 0.509 | 0.574 |
| DT | 0.505 | 0.513 |
The best parameter of machine learning models.
| Algorithm | Parameter | Value |
|---|---|---|
| LR | Penalty | l2 |
| C | 50 | |
| Solver | lbfgs | |
| RF | Criterion | gini |
| Max_features | 1 | |
| N_estimators | 50 | |
| XGBOOST | Max_depth | 7 |
| Learning_rate | 0.5 | |
| Gamma | 0.05 | |
| SVM | C | 100 |
| Gamma | 100 | |
| DT | Criterion | gini |
| Max_features | 9 |
Confusion martix of 5 models.
| Algorithm |
|
|
|
|
|---|---|---|---|---|
| LR | 3590 | 1773 | 15 | 40 |
| RF | 5362 | 1 | 55 | 0 |
| XGBOOST | 5358 | 5 | 55 | 0 |
| SVM | 5289 | 74 | 55 | 0 |
| DT | 5323 | 40 | 54 | 1 |
The results of 5 models.
| Algorithm |
|
|
| AUC | Training Time | Testing Time |
|---|---|---|---|---|---|---|
| LR | 66.999% | 99.584% | 66.940% | 0.757 | 0.05 s | 0.01 s |
| RF | 98.966% | 98.985% | 99.981% | 0.635 | 0.26 s | 0.01 s |
| XGBOOST | 98.893% | 98.984% | 99.907% | 0.712 | 1.46 s | 0.02 s |
| SVM | 97.619% | 98.971% | 98.620% | 0.574 | 2.49 s | 0.01 s |
| DT | 98.265% | 98.996% | 99.254% | 0.513 | 0.03 s | 0.01 s |
Figure 4The AUC value of different machine learning algorithms.
The results of using voting classifier.
| Algorithm |
|
|
| AUC | Training Time | Testing Time |
|---|---|---|---|---|---|---|
| LR + XGBOOST | 98.523% | 99.017% | 99.497% | 0.794 | 1.54 s | 0.01 s |
| RF + XGBOOST | 98.616% | 99.036% | 99.571% | 0.791 | 1.75 s | 0.05 s |
| SVM + XGBOOST | 97.933% | 98.974% | 98.937% | 0.780 | 12.34 s | 0.71 s |
| DT + XGBOOST | 98.154% | 98.995% | 99.142% | 0.781 | 1.54 s | 0.01 s |
Figure 5The AUC value of different single machine learning algorithms and ensemble algorithms.
Figure 6The ROC curve of ensemble algorithms.
Comparison with existing methods.
| Author | Algorithms |
|
|
| Training Time | Testing Time |
|---|---|---|---|---|---|---|
| Kaur et al. [ | KNN | 97.139% | 98.872% | 97.952% | 0.12 s | 1.13 s |
| Kaur et al. [ | MLP | 84.219% | 89.899% | 64.286% | 17.84 s | 0.01 s |
| Kaur et al. [ | NB | 86.360% | 95.883% | 86.790% | 2.38 s | 0.52 s |
| Proposed Method | LR+XGBOOST | 98.523% | 99.017% | 99.497% | 1.54 s | 0.01 s |
Figure 7The bar chart of results of existing methods.