Audit method and device, electronic equipment, storage medium and computer program product
By introducing machine learning models based on extreme random trees and gradient boosting algorithms in engineering audits, the problem of low audit quality of engineering projects is solved, a more efficient and higher-quality audit process is achieved, and the influence of auditors' subjective preferences is reduced.
Patent Information
- Application Number
- CN202410700590.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-18
AI Technical Summary
The audit quality of engineering projects in the existing technology is low, and there are problems such as audit gaps and subjective preferences during the review process, resulting in low audit quality.
A machine learning model based on extreme random trees and gradient boosting algorithms is used to score audit tasks and screen review tasks through the first-instance scoring model and review sampling model to improve audit efficiency and quality.
By introducing AI models for engineering audits, audit efficiency and audit quality are improved, ensuring that high-risk tasks during the review process are handled in a timely manner, and reducing the impact of auditors' subjective preferences.
Smart Images

Figure CN118799082A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an audit method, device, electronic equipment, storage medium and computer program product. Background Art
[0002] In order to effectively control project costs and standardize cost behavior, optimize construction fund allocation, maximize the company's investment benefits, and at the same time promote construction units to strengthen economic accounting and improve management level, cost review and audit quality monitoring of construction projects have become a top priority.
[0003] After the completion of the project, the cost information will be submitted to the first instance unit for review. After the first instance, in order to control the audit quality, the review intermediary is required to manually select the first instance projects for review. However, in the process of assessing the construction unit and the first instance quality review, the review audit unit needs to take into account very complex audit points, including engineering quantity, unit price quota, cost calculation review, construction drawings combined with contracts, bidding documents, meeting materials, engineering change certification and other material analysis. The large amount of complex information will inevitably lead to audit omissions.
[0004] At present, the first review of projects is conducted by rules based on experience, and the review of projects is conducted by manual sampling. However, the rules are not comprehensive enough to take into account all projects, nor can they adapt to the rapid changes in engineering projects. At the same time, the manual sampling method is greatly influenced by the subjective preferences of auditors and there are omissions. Both rules and manual sampling will lead to low audit quality. Therefore, how to improve the audit quality of engineering projects has become an urgent problem to be solved. Summary of the invention
[0005] The present invention provides an audit method, device, electronic equipment, storage medium and computer program product, which are used to solve the defect of low audit quality of engineering projects in the prior art and improve the audit quality of engineering projects.
[0006] The present invention provides an audit method, comprising: Input the audit data of the audit task into the first instance scoring model to obtain the scoring score of the audit task output by the first instance scoring model; the first instance scoring model is obtained by training the sample audit data and its corresponding score labels on the basis of the extremely random tree; According to the scoring scores, the target audit tasks that have passed the first review are obtained; The target audit task is input into the review sampling model to obtain the audit task to be reviewed output by the review sampling model; the review sampling model is determined by a control group set by different learning objectives; the learning objective includes taking the reviewed task as the first positive sample and taking the reviewed task with a review reduction rate greater than or equal to a set value as the second positive sample; Review the audit tasks to be reviewed.
[0007] According to an audit method provided by the present invention, the review sampling model is determined based on the following method: Based on the machine learning model LightGBM based on the gradient boosting algorithm, the first training set is trained to obtain a first review sampling model; the first training set includes the first positive sample; Based on the LightGBM, a second training set is trained to obtain a second review sampling model; the second training set includes the second positive sample; Determine the prediction accuracy of the first review sampling model and the second review sampling model, and determine the review sampling model according to the prediction accuracy.
[0008] According to an audit method provided by the present invention, based on the machine learning model LightGBM based on the gradient boosting algorithm, the first training set is trained to obtain a first review sampling model, including: Acquire reviewed tasks and unreviewed tasks from historical tasks, use the reviewed tasks as first positive samples, and use the unreviewed tasks as first negative samples; Under-sampling the first negative samples to randomly extract the same number of first target negative samples as the first positive samples from the first negative samples; Constructing the first training set according to the first positive sample and the first target negative sample; The LightGBM is constructed, and the LightGBM is trained using the first training set to obtain the first review sampling model.
[0009] According to an audit method provided by the present invention, the second training set is trained on the basis of the LightGBM to obtain a second review sampling model, including: Obtaining reviewed tasks whose review reduction rate is greater than or equal to a set value and reviewed tasks whose review reduction rate is less than a set value from historical tasks; taking the reviewed tasks whose review reduction rate is greater than or equal to the set value as the second positive sample, and taking the reviewed tasks whose review reduction rate is less than the set value as the second negative sample; Under-sampling the second negative samples to randomly extract the same number of second target negative samples as the second positive samples from the second negative samples; Constructing the second training set according to the second positive sample and the second target negative sample; The LightGBM is constructed, and the LightGBM is trained using the second training set to obtain the second review sampling model.
[0010] According to an audit method provided by the present invention, the first instance scoring model is trained based on the following method: Collecting the sample audit data and preprocessing the sample audit data; Performing stratified sampling on the preprocessed sample audit data to obtain multiple layers of sample audit data; Using the score labels, labeling the sample audit data of each layer to obtain labeled data; The extremely random tree is trained based on the training set constructed based on the labeled data to obtain the first-instance scoring model.
[0011] According to an audit method provided by the present invention, the preprocessing of the sample audit data includes: Determining continuous data and discrete data in the sample audit data; The continuous data is normalized by using the maximum and minimum normalization method to obtain normalized continuous data; the discrete data is One-hot encoded to obtain encoded data; The F test is used to screen the continuous features in the normalized continuous data.
[0012] According to an audit method provided by the present invention, obtaining a target audit task that has passed the first trial according to the scoring score includes: Determine a comparison result between the scoring score and a preset score; If the comparison result is that the scoring score is greater than the preset score, it is determined that the audit task has passed the first review and the target audit task is obtained.
[0013] The present invention also provides an audit device, comprising the following modules: A first-instance module is used to input the audit data of the audit task into the first-instance scoring model to obtain the scoring score of the audit task output by the first-instance scoring model; the first-instance scoring model is obtained by training sample audit data and its corresponding score labels on the basis of an extremely random tree; An approval module is used to obtain the target audit tasks that have passed the first review according to the scoring scores; A review sampling module is used to input the target audit task into a review sampling model to obtain the audit task to be reviewed output by the review sampling model; the review sampling model is determined by a control group set by different learning objectives; the learning objectives include taking the reviewed tasks as the first positive sample and taking the reviewed tasks with a review reduction rate greater than or equal to a set value as the second positive sample; The review module is used to review the audit tasks to be reviewed.
[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned audit methods is implemented.
[0015] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the audit method described in any one of the above is implemented.
[0016] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the audit method described above is implemented.
[0017] The audit method, device, electronic device, storage medium and computer program product provided by the present invention input the audit data of the audit task into the first-instance scoring model to obtain the scoring score of the audit task output by the first-instance scoring model; the first-instance scoring model is obtained by training the sample audit data and its corresponding score label on the basis of the extremely random tree; according to the scoring score, the target audit task that passed the first instance is obtained; the target audit task is input into the review sampling model to obtain the audit task to be reviewed output by the review sampling model; the review sampling model is determined by the control group set by different learning objectives; the audit task to be reviewed is reviewed. The present invention improves the audit efficiency by introducing the AI model for engineering audit, and at the same time determines the high-risk tasks for review through the review sampling model, thereby improving the audit quality of the engineering project. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 This is one of the flow charts of the audit method provided by the present invention.
[0020] Figure 2 This is the second flowchart of the audit method provided by the present invention.
[0021] Figure 3 It is a schematic diagram of the modeling process of the first-instance scoring model provided by the present invention.
[0022] Figure 4 It is a schematic diagram of the modeling process of the review sampling model provided by the present invention.
[0023] Figure 5It is a structural schematic diagram of the auditing device provided by the present invention.
[0024] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] At present, rule-based machine audit is adopted. The rules are summarized by auditors based on past experience. The existing problems include: the rules are not comprehensive enough, and there is a possibility of missing recalls of problematic projects; there are too many types of projects to take into account all projects; the rules cannot adapt to the rapid changes in engineering projects, and the rules are usually adjusted quarterly or annually.
[0027] For project review, manual sampling is used, and the sampling task depends entirely on personal preference. The existing problems include: the auditor's subjective preference has a greater impact; there is a possibility of omissions in the sampling method; manual sampling efficiency is low, and each task requires the auditor to invest a lot of energy, etc.
[0028] The above problems will eventually lead to low audit quality, economic losses, and failure to maximize investment benefits. Based on this, the present invention proposes an audit method.
[0029] Combine the following Figure 1-Figure 6 The audit method, apparatus, electronic device, storage medium and computer program product of the present invention are described.
[0030] Figure 1 It is one of the flow charts of the audit method provided by the present invention, such as Figure 1 As shown, the method includes the following: Step 101, inputting the audit data of the audit task into the first-instance scoring model to obtain the scoring score of the audit task output by the first-instance scoring model.
[0031] After initiating the first instance submission and generating the audit task, call the first instance scoring model to perform risk scoring on the audit data / task data of the audit task. Specifically, input the audit data of the audit task into the first instance scoring model to obtain the score of the audit task output by the first instance scoring model. Among them, the first instance scoring model is trained on the basis of the extremely random tree through sample audit data and its corresponding score labels. The first instance scoring model can be understood as a five-classifier, which are 1 point, 2 points, 3 points, 4 points and 5 points respectively, that is, according to the risk of the audit task from high to low, the first instance finalization task is scored 1-5 points (5 integer scores).
[0032] Step 102, obtaining the target audit tasks that have passed the first review based on the scoring scores.
[0033] After obtaining the scoring score of the first-instance audit result of the audit task, the audit task is approved according to the scoring score. Specifically, the scoring score is compared with the preset score. If the comparison result shows that the scoring score is less than the preset score, the audit task is determined to have passed the first-instance audit and the target audit task is obtained. For example, assuming the preset score is 3 points, if the scoring score is greater than 3 points, it means that the risk is low and it is determined to have passed the first-instance audit.
[0034] Step 103: input the target audit task into the review sampling model to obtain the audit task to be reviewed output by the review sampling model.
[0035] In order to improve the quality of the first-instance audit, it is necessary to review the target audit tasks that have passed the first-instance audit. Specifically, the target audit tasks are input into the review sampling model to obtain the audit tasks to be reviewed output by the review sampling model, wherein the review sampling model is determined by the control group set by different learning objectives; the learning objectives include taking the reviewed tasks as the first positive sample and taking the reviewed tasks with a review reduction rate greater than or equal to the set value as the second positive sample.
[0036] Among them, the audit reduction rate is the ratio of the audit reduction amount to the total amount submitted for audit. The project cost reported by the construction team to the audit unit is the amount submitted for audit, and the final cost determined by the audit unit is the approved amount. The difference between the two is the audit reduction amount, that is, the audit reduction rate = (submitted for audit - approved amount) / submitted for audit * 100%.
[0037] Step 104: review the audit tasks to be reviewed.
[0038] Audit tasks that need to be reviewed, that is, audit tasks awaiting review, shall be reviewed again.
[0039] The audit method proposed in the embodiment of the present invention inputs the audit data of the audit task into the first-instance scoring model to obtain the scoring score of the audit task output by the first-instance scoring model; the first-instance scoring model is obtained by training the sample audit data and its corresponding score labels on the basis of the extremely random tree; according to the scoring score, the target audit task that passed the first-instance is obtained; the target audit task is input into the review sampling model to obtain the audit task to be reviewed output by the review sampling model; the review sampling model is determined by the control group set by different learning objectives; the learning objectives include taking the reviewed task as the first positive sample and taking the reviewed task with a review reduction rate greater than or equal to the set value as the second positive sample; and reviewing the audit task to be reviewed. The present invention improves the audit efficiency by introducing the AI model for engineering auditing, and at the same time determines the high-risk tasks for review through the review sampling model, thereby improving the audit quality of engineering projects.
[0040] Based on the above embodiment, the review sampling model is determined based on the following method: Step 111, based on the machine learning model LightGBM based on the gradient boosting algorithm, training the first training set to obtain a first review sampling model; the first training set includes the first positive sample; Step 112, based on the LightGBM, training the second training set to obtain a second review sampling model; the second training set includes the second positive sample; Step 113, determining the prediction accuracy of the first review sampling model and the second review sampling model, and determining the review sampling model according to the prediction accuracy.
[0041] All tasks will be reviewed for the first time, while a small number (about 10%) of tasks will be reviewed. In the process of selecting learning objectives, there are two possible learning objectives: one is to regard the tasks that have been reviewed in the history (i.e., reviewed tasks) as positive samples among all historical tasks. The other is to regard the tasks with a re-review reduction rate of more than 2.3% (i.e., reviewed tasks with a review reduction rate of more than 2.3%) as positive samples among all historical tasks that have completed the review. According to the above two learning objectives, the control group is set and modeled separately.
[0042] Based on the machine learning model based on the gradient boosting algorithm (Light Gradient Boosting Machine, LightGBM), the first training set is trained to obtain the first review sampling model. Specifically, the reviewed tasks and unreviewed tasks in the historical tasks are obtained, and the reviewed tasks are used as the first positive samples, and the unreviewed tasks are used as the first negative samples; the first negative samples are undersampled to randomly extract the same number of first target negative samples as the first positive samples from the first negative samples; the first training set is constructed based on the first positive samples and the first target negative samples; LightGBM is constructed, and the first training set is used to train LightGBM to obtain the first review sampling model.
[0043] Based on LightGBM, the second training set is trained to obtain the second review sampling model. Specifically, the reviewed tasks with a review reduction rate greater than or equal to the set value and the reviewed tasks with a review reduction rate less than the set value in the historical tasks are obtained; the reviewed tasks with a review reduction rate greater than or equal to the set value are used as the second positive samples, and the reviewed tasks with a review reduction rate less than the set value are used as the second negative samples; the second negative samples are undersampled to randomly extract the same number of second target negative samples as the second positive samples from the second negative samples; the second training set is constructed based on the second positive samples and the second target negative samples; LightGBM is constructed, and the second training set is used to train LightGBM to obtain the second review sampling model.
[0044] Based on two control groups, after establishing the first review sampling model and the second review sampling model respectively, the prediction accuracy of the first review sampling model and the second review sampling model is determined respectively, and then the review sampling model is determined according to the prediction accuracy. For example, the model with a high prediction accuracy is used as the review sampling model.
[0045] In the embodiment of the present invention, two learning objectives are selected: tasks that have been reviewed in all historical tasks as positive samples, and tasks whose re-review reduction rate exceeds a preset value in the tasks that have completed the review in history as positive samples. A control group is set according to the learning objectives, and LightGBM is used for modeling training to obtain a review sampling model. Based on this, the re-review reduction rate is improved, thereby improving the review quality.
[0046] Based on the above embodiment, the first instance scoring model is trained based on the following method: Step 121, collecting the sample audit data and preprocessing the sample audit data; Step 122, performing stratified sampling on the preprocessed sample audit data to obtain multiple layers of sample audit data; Step 123, using the score label to label the sample audit data of each layer to obtain labeled data; Step 124, training the extreme random tree based on the training set constructed from the labeled data to obtain the first-instance scoring model.
[0047] Sample audit data is collected from the audit management system, and then the sample audit data is preprocessed. Specifically, the continuous data and discrete data in the sample audit data are determined; the maximum and minimum normalization method is used to normalize the continuous data to obtain the normalized continuous data. That is, the features are mainly mapped to [0, 1]. The specific formula is as follows: Among them, x is the original data, min(x) is the minimum value, min(x) is the maximum value, is the processed data.
[0048] Perform one-hot encoding on discrete data to obtain encoded data. One-hot encoding is a commonly used encoding method in machine learning and data processing. It converts discrete data into a binary vector, with each category corresponding to a unique bit. For example, if there is a feature representing color, it can be encoded using red, green, and blue, so that for each color, a unique binary vector is obtained, such as [1,0,0] for red, [0,1,0] for green, and [0,0,1] for blue. This method can effectively reduce the size of the feature space and facilitate algorithm processing.
[0049] The F test is used to screen the continuous features in the normalized continuous data. The numerator and denominator of the F calculation quantity both obey the chi-square distribution. The numerator is a chi-square distribution with nk degrees of freedom, while the denominator is a chi-square distribution with nk degrees of freedom, and it can be proved that the two are independent of each other. In other words, the statistical test F is constructed with the help of the chi-square distribution. To put it more specifically, as long as the random variables are independent of each other and obey the chi-square denominator, the random variables formed by dividing them all obey the F distribution. The standard expression formula of the F statistic is as follows: Among them, X1 and X2 are independent of each other and obey the chi-square distribution with degrees of freedom d1 and d2. At this time, the random variable F obeys the F distribution with degrees of freedom (d1, d2).
[0050] The preprocessed sample audit data is stratified and sampled to obtain multi-layer sample audit data. For example, stratified sampling is performed according to the data type of the sample audit data, and each layer of sample audit data corresponds to a different data type. Then, each layer of sample audit data is labeled with a score label to obtain labeled data; finally, based on the training set constructed with the labeled data, the Extremely Randomized Trees (ET) are trained to obtain the first-instance scoring model.
[0051] The embodiment of the present invention improves audit efficiency and audit quality by introducing an AI model for engineering auditing.
[0052] In order to further analyze and explain the audit method proposed by the present invention, refer to Figure 2 And the following examples.
[0053] The embodiment of the present invention specifically proposes a method for improving the quality of project settlement audit and reduction based on artificial intelligence technology. The method involves an audit management system and a smart audit system. The operations implemented by each system are as follows: (1) Audit management system: 1.1) Initiate the task of submitting the application for first instance review; 1.2) Entrust an audit unit and initiate on-site verification and measurement at the project site; 1.3) Initiate and end the first-instance audit task and call the first-instance scoring model of the smart audit system; 1.4) Receive the scores of the first-instance audit results from the smart audit system and review and approve them; 1.5) After approval, the first audit is completed and the review sampling model of the smart audit system is called; 1.6) Receive the return results of the AI review sampling model. For tasks where the model determines that the sampling results require review, the auditor will conduct a second confirmation and initiate a review process for the tasks that require review after the second confirmation; 1.7) Review the tasks that need to be reviewed after the second confirmation, entrust the review audit unit, initiate on-site verification, and implement strict field measurements at the project site; 1.8) After the review is completed, the project review process ends and the review result data is transmitted to the smart audit system.
[0054] (2) Smart Audit System: 2.1) Generate new audit tasks in the smart audit system for the tasks that initiate the first trial, so as to facilitate the reading and writing operations of subsequent tasks; 2.2) Record the task data initiated by the audit management system for the first instance and close the audit into the database, and read the data therein; 2.3) Call the AI scoring model, send the task data of the first instance to the model for scoring, and score the first instance task from high to low risk with a score of 1-5 (5 integer scores), and send the scoring results back to the audit management system for approval by the management personnel; 2.5) Call the AI review sampling model to judge the tasks that have completed the first review, determine whether the task needs to enter the review process, and return the sampling results to the audit management system; 2.6) Receive the review data from the review and reduction system and record it into the database.
[0055] First, the following is a detailed analysis of the first instance scoring model: The first-instance scoring model is based on the labeled data provided by the unified scoring standard method. After data preprocessing, an extremely random tree is used to establish a five-classifier, with scores of 1, 2, 3, 4 and 5 respectively.
[0056] 1. Unify the scoring standards and methods.
[0057] In the existing technical methods, the subjective influence of auditors on audit tasks is too great. In order to solve the influence of auditors' subjective preferences and control the space for excessive intervention of auditors, the present invention introduces a unified scoring standard method to score the tasks completed in the first instance, reducing subjectivity and arbitrariness, making the evaluation more objective and fair. At the same time, the unified scoring standard can also help people better understand and master the evaluation criteria, so as to better perform the evaluation work. The scored tasks also provide a data basis for subsequent AI model modeling, and use the scoring data to establish a supervised machine learning model, such as Figure 3 shown.
[0058] 1. Obtain the completed first-instance data from the review and management platform, and collect statistics on various types of data to ensure comprehensiveness and balance; 2. Clean the acquired data and remove the data that does not meet the standards for labeled samples to ensure that only high-quality data is used; 3. Audit experts will formulate scoring rules for all cleaned project inputs, conduct stratified sampling for all audit projects, distribute the sampling results to each labeler, and score according to the rules formulated by the experts. The scoring rules are as follows: 3.1) The first step is to assign a value to the total initial score of the first instance project according to the reduction rate, as follows: Table 1 3.2) The review unit will deduct points for each project in accordance with similar review and quality inspection projects. The deduction gradient for each item is 0.5 points, and the minimum total score is 1 point. The details are as follows: Table 2 Serial number Reason for deduction Detailed deductions 1 Project quantity reduction (drawing reduction and on-site reduction) - 2 Mechanical equipment reduction - 3 Material reduction - 4 Error in applying quota - 5 Contract discounts and rate table errors, and other sporadic errors - 3.3) The principles for re-examination and reduction of the rate are as follows: Table 3 Estimated Reduction Rate (PP) Score X>3 1 2<=X<3 2 1<=X<2 3 0.5<=X<1 4 X<0.5 5 3.4) The scored items will be subject to quality verification and handed over to the second annotator for verification, and the revised scores will be recorded. If the difference between the scores of the two annotators exceeds 1 point, the quality verification will be conducted by the third annotator. Finally, the three annotators will discuss and jointly decide the annotation scores.
[0059] 3.5) The final scored audit task will be used for AI modeling.
[0060] 3.6) The final trained AI model is deployed to the smart audit system to predict and score new tasks initiated in the first instance.
[0061] 2. Data preprocessing.
[0062] The present invention needs to obtain structured first-instance audit result data. Therefore, the data preprocessing work of the present invention is a process of cleaning, converting, and processing the first-instance audit result data.
[0063] 1. Preprocessing of the first-instance audit result data. According to the project audit, it is subdivided into settlement task table, single basic information table, settlement contract table, project settlement summary table, construction and installation project cost settlement table, construction and installation project quantity settlement table, construction and installation project machinery usage fee settlement table, construction and installation project instrumentation usage fee settlement table, Party A supply material table, Party B supply material table and project construction other cost settlement table, a total of 11 data tables, of which more than 200 features can be used. The data format includes continuous data and discrete data according to the data type. For continuous data, normalization processing is required to balance the differences between the above multiple features due to different dimensions and dimensional units, to ensure that each feature conforms to the same data distribution in the model training. The normalization method chooses to use the maximum and minimum normalization (Min-Max Normalization), also known as deviation normalization. It is mainly to map all features to [0, 1]. The specific formula is as follows: Among them, x is the original data, min(x) is the minimum value, max(x) is the maximum value, is the processed data.
[0064] 2. After processing the continuous data, the discrete data needs to be one-hot encoded. One-hot encoding is a commonly used encoding method in machine learning and data processing. It converts discrete data into a binary vector, with each category corresponding to a unique bit. For example, if there is a feature representing color, it can be encoded using red, green, and blue, so that for each color, a unique binary vector is obtained, such as [1,0,0] for red, [0,1,0] for green, and [0,0,1] for blue. This method can effectively reduce the size of the feature space and facilitate algorithm processing.
[0065] 3. After data conversion, there are still a large number of features. The present invention uses the F test to screen continuous features. The numerator and denominator of the F calculation quantity both obey the chi-square distribution. The numerator is a chi-square distribution with nk degrees of freedom, while the denominator is a chi-square distribution with nk degrees of freedom, and it can be proved that the two are independent of each other. In other words, the statistical test F is constructed with the help of the chi-square distribution. To put it more specifically, as long as the random variables are independent of each other and obey the chi-square denominator, the random variables formed by dividing them all obey the F distribution. The standard expression formula of the F statistic is as follows: Among them, X1 and X2 are independent of each other and obey the chi-square distribution with degrees of freedom d1 and d2. At this time, the random variable F obeys the F distribution with degrees of freedom (d1, d2).
[0066] After screening, the number of continuous features is reduced from 72 to 20. Reducing the number of features can improve the accuracy of prediction, reduce the risk of overfitting, speed up model training, and increase the interpretability of the model.
[0067] 4. The features finally used mainly include the overall amount of the settlement contract submitted for review, the project type, the area to which it belongs, the project classification, as well as the submitted price and the first-instance approved price in each table.
[0068] 3. Modeling based on extremely random trees.
[0069] 1. Smote oversampling.
[0070] In the process of processing data, it can be found that the distribution of data is uneven from the distribution of standard scores, and the data needs to be balanced before modeling training. Therefore, the data needs to be sampled. Since the amount of labeled data in the present invention does not meet the requirements of undersampling, Smote oversampling is used to balance the data.
[0071] The purpose of oversampling is to eliminate the problem of class imbalance so that the model can better learn the characteristics of each category during training. If the data is not oversampled, the model may pay too much attention to the smaller number of categories, which will affect the accuracy of its prediction. By oversampling the data, the model can better understand and learn the distribution characteristics of the data, thereby improving the prediction performance of the model. At the same time, oversampling can also help discover potential patterns and laws in the data set, providing support for further data analysis and decision-making.
[0072] The core idea of Smote oversampling is to increase the number of categories with fewer samples by generating some synthetic samples, thereby reducing the deviation between categories. Specifically, the Smote algorithm randomly selects a sample as an anchor point and then samples in the neighborhood of the anchor point. This ensures that the distance between the newly generated samples and the original samples in the feature space is small, thereby retaining the information of the original samples. At the same time, since the sampling process is based on randomly selected anchor points, the generated new samples have a certain diversity, which helps to improve the generalization ability of the model.
[0073] The generation process of the SMOTE algorithm is as follows: for each sample x1 in the minority class, calculate its distance to all samples in the minority class sample set using the Euclidean distance as the standard to obtain its k nearest neighbors. Set a sampling ratio according to the sample imbalance ratio to determine the sampling multiplier N. For each minority class sample x1, randomly select several samples from its k nearest neighbors. Suppose the selected nearest neighbor is xn. For each randomly selected nearest neighbor xn, construct a new sample xn with the original sample according to the following formula new : After Smote oversampling, the data generated was reduced from 8789 to 14864, and the data distribution of each score was balanced.
[0074] 2. Extremely random tree algorithm modeling.
[0075] The Extremely Random Trees algorithm is an ensemble learning algorithm, which is one of the ensemble models of decision trees. It is very similar to the Random Forest algorithm, both of which are composed of multiple decision trees, but they use different methods when building decision trees. The Random Forest algorithm uses the bootstrap sampling method, while the Extremely Random Trees algorithm uses an extreme randomization method.
[0076] The main idea of the Extremely Randomized Trees algorithm is to build multiple decision trees by randomizing features and parameters, and then combine these decision trees to form an integrated model. This can effectively reduce overfitting and improve generalization ability. The Extremely Randomized Trees algorithm randomly selects features and parameters, and then builds decision trees based on these randomly selected features and parameters. This process ensures that each decision tree is independent and diverse, so they can capture different patterns and trends in the data.
[0077] When all decision trees are built, the algorithm combines them into an integrated model. This integrated model is not a simple vote or majority vote, but uses certain strategies (such as averaging, voting, etc.) to determine the final prediction result. The main advantage of this method is that it can effectively reduce the problem of overfitting. Overfitting usually occurs when the model is too complex, so that it begins to learn the noise in the data rather than the real pattern. However, since the extremely random tree algorithm generates multiple independent decision trees, their prediction results usually offset each other, thereby reducing the risk of overfitting.
[0078] In addition, the Extremely Randomized Trees algorithm can also improve the generalization ability of the model. Generalization ability refers to the ability of the model to adapt to unknown data. Since each decision tree is built independently, they can better adapt to a variety of different data sets, thereby improving the generalization ability of the model.
[0079] After training, a five-classifier is finally obtained, and the prediction result is the final result of quality prediction. The scores from high to low are 5, 4, 3, 2, and 1.
[0080] Second, the following is a detailed analysis of the review sampling model: The difference between the review sampling model and the first instance scoring model is that they are used in different business processes and play different roles. The first instance scoring model is used after the first instance is initiated and concluded to score the quality of the first instance process. The management personnel refer to the model scoring and the first instance audit results for approval, with the aim of improving the quality of the first instance audit; the review sampling model is used for the first instance tasks that have been approved by the management personnel to determine whether they need to be reviewed. The purpose is to improve the overall re-examination reduction rate and thus improve the quality of the review by screening out tasks that may have omissions in the first instance process.
[0081] The overall process is consistent with the technical method of the first-instance scoring model. The difference is that the review sampling model takes whether all the historical data of completed audits have been reviewed as the learning goal, outputs a binary classifier with an output result of 0 or 1, and predicts whether the new task needs to be reviewed. Therefore, when selecting technology, use simple processed data to model complex machine learning models.
[0082] Review the sampling model building process, such as Figure 4 As shown, the following process is included: 1. Obtain data from the smart audit system.
[0083] All the historical data of completed audits were obtained from the smart audit system, including the settlement task table, single basic information table, settlement contract table, project settlement table, construction and installation project cost settlement table, construction and installation project quantity settlement table, construction and installation project machinery usage fee settlement table, construction and installation project instrument usage fee settlement table, Party A supply material table, Party B supply material table and project construction other cost settlement table, a total of 11 data tables, of which more than 200 features can be used. The data was preliminarily cleaned up to delete tasks with obvious missing data and erroneous data.
[0084] 2. Select learning objectives.
[0085] In the present invention, all tasks will be reviewed once, and a small number (about 10%) of tasks will be reviewed again. In the process of selecting learning goals, there are two possible learning goals: One is to regard the tasks that have been reviewed in all historical tasks as positive samples; The other is to regard the tasks with a reexamination reduction rate exceeding 2.3% among all the tasks that have completed reexamination in the past as positive samples.
[0086] In the final evaluation, 1000 tasks that did not participate in the model training were randomly selected, and the target that was closer to the actual review sampling results in the two groups of experiments was compared for subsequent modeling. Two learning goals are set in the present invention, namely: Table 4 According to the above two learning objectives, a control group was set up for modeling respectively. The experimental effect of taking the tasks that were reviewed in the historical tasks as positive samples was higher than the experimental effect of taking the tasks with a historical review and retrial reduction rate of more than 2.3% as positive samples. Subsequently, the tasks that were reviewed in the historical tasks were selected as positive samples.
[0087] 3. Use LightGBM for modeling.
[0088] 1. Undersampling.
[0089] Among the 30,661 tasks, there are 2,984 positive samples, accounting for only 9.7%, so modeling requires balancing the data set. The present invention uses undersampling to ensure the balance of the data set. The specific method is to randomly extract data with the same amount of positive samples from the negative samples for modeling.
[0090] 2. LightGBM modeling.
[0091] The main idea of GBDT (Gradient Boosting Decision Tree) is to use weak classifiers (decision trees) for iterative training to obtain the optimal model. This model has the advantages of good training effect and low overfitting. GBDT is not only widely used in the industry, but is also commonly used for multi-classification, click-through rate prediction, search ranking and other tasks. LightGBM (Light Gradient Boosting Machine) is a framework for implementing the GBDT algorithm. It supports efficient parallel training and has the advantages of faster training speed, lower memory consumption, better accuracy, and support for distributed processing of massive data.
[0092] The LightGBM algorithm mainly includes the following features: histogram algorithm (finding the best split point, histogram difference acceleration), Leaf-wise tree growth strategy, GOSS, EFB, support for category features, efficient parallelism, and cache hit rate optimization.
[0093] 2.1) Histogram algorithm (reduces a lot of calculations and memory usage).
[0094] The XGBoost algorithm needs to pre-sort the original data of each feature when splitting, while the Histogram algorithm "buckets" the original data of the feature, divides the data into different discrete areas, and then traverses the discrete data to find the optimal partition point. Each "bucket" divided for the feature value here has two meanings, one is the number of samples in each "bucket"; the other is the gradient sum of the samples in each "bucket" (the mean of the square of the first-order gradient sum is equivalent to the mean square loss).
[0095] The histogram algorithm can reduce the complexity of the model, and only the discrete values are saved after the features are "bucketed", which greatly reduces the memory usage. Secondly, this "bucketing" method is equivalent to adding regularization to the model from a certain perspective, which can avoid overfitting of the model.
[0096] It is worth noting that the histogram algorithm uses bins instead of raw data, which is equivalent to adding regularization. This also means that more detailed features will be discarded, and similar data may be divided into the same bucket. Therefore, the number of bins determines the degree of regularization. The fewer bins, the more severe the penalty and the lower the risk of overfitting.
[0097] In addition, the LightGBM histogram algorithm also includes a histogram difference optimization, that is, after LightGBM obtains the histogram of a leaf, it can obtain the histogram of its brother leaf at a very low cost by histogram difference. After obtaining the histogram of a leaf and the histogram of the parent node, the histogram of another brother leaf can also be obtained quickly. In this way, the speed of the LightGBM algorithm is further improved.
[0098] (2) Leaf-wise leaf growth strategy with depth limitation (reduces a lot of calculations and avoids overfitting).
[0099] Both GBDT and XGBoost models use a level-wise splitting approach in their leaf growth strategies. This approach targets each node in the same layer during the split, that is, each iteration traverses all the data in the entire dataset. Although this approach can complete the leaf nodes of each layer in parallel and control the complexity of the model, it will also generate many unnecessary searches or splits, thereby consuming more running memory and increasing computing costs.
[0100] The LightGBM algorithm has improved it by using a leaf-wise splitting growth method, that is, each time the leaf node with the largest splitting gain among all leaves is split, and other leaf nodes are not split. This splitting method will bring smaller errors than layer-wise splitting and speed up the learning speed of the algorithm, but since other leaves are not split, the splitting results will not be detailed enough, and only one leaf in each layer will be continuously split, which will increase the depth of the tree and cause the model to overfit. Therefore, the LightGBM algorithm will limit the depth of the tree to avoid overfitting during the growth process of leaf nodes.
[0101] (3) Single-sided gradient sampling technology (reducing the sample angle).
[0102] In the gradient boosting algorithm, each sample has a different gradient value. The gradient of the sample can reflect the degree of contribution to the model. Generally, the larger the gradient of the sample, the more information gain it contributes to the model, and the smaller the gradient of the sample, the better it performs in the model.
[0103] Therefore, the LightGBM algorithm introduces the Gradient-based One-Side Sampling (GOSS) technology. The basic idea is to use the gradient size information of the sample as a consideration of the importance of the sample from the perspective of reducing the sample, retain all sample points with large gradients, and randomly sample the sample points with small gradients in proportion. In this way, the information of both small gradient samples and large gradient samples is learned, which reduces the number of samples without changing the distribution of the original data and improves the training speed of the model.
[0104] (4) Mutually exclusive feature bundling (reducing feature angle).
[0105] High-dimensional data is usually very sparse, and there is mutual exclusivity between features (for example, several features generated by one-hot encoding will not be 0 at the same time). This kind of data has a certain impact on the effect and running speed of the model.
[0106] The Exclusive Feature Bundling (EFB) algorithm can be used to solve the sparsity problem of high-dimensional data. For example, if feature 1, feature 2, and feature 3 are mutually exclusive sparse features, the three features can be bundled into a dense new feature through the EFB algorithm, and then the new feature is used to replace the original three features, thereby reducing the feature dimension without losing information, avoiding unnecessary calculation of zero values, and improving the speed of the gradient enhancement algorithm.
[0107] LightGBM is a highly optimized GBDT algorithm, which can also be regarded as an optimization algorithm for XGBoost. The optimization of LightGBM can be expressed by the formula as follows: LightGBM = XGBoost + Histogram + GOSS + EFB.
[0108] After modeling with LightGBM, a binary classifier of 0 and 1 is obtained. If the prediction result of a task is 1, it means that the task needs to be reviewed, and if the prediction result is 0, it does not need to be reviewed. The model prediction result will be used as a suggestion and submitted to the auditor for secondary confirmation.
[0109] The method for improving the quality of audit and reduction of project settlement based on artificial intelligence technology proposed in the embodiment of the present invention, in the first instance, by using the AI model to score the entire audit task, thereby eliminating the possibility of missing recall of problematic projects; by using a large amount of training data covering various types of projects, the model is guaranteed to support the types of projects used; the model can be quickly iterated and launched, and the latest model is updated every week to ensure rapid response to changes in engineering projects; the audit quality of the first instance is quantified, providing an effective reference for the approval of management personnel, and the quality of the first instance is improved. In addition, through the audit expert evaluation method, a unified scoring standard is established, and a data basis is provided for subsequent machine learning; the influence of the subjective preferences of auditors is eliminated; the intervention space of auditors is strictly limited, thereby reducing the possibility of corruption and collusion. At the same time, the introduction of machine learning methods successfully checked all audit tasks, reduced the possible omissions in manual sampling in the original technical solution, improved the efficiency of auditors, and replaced most of the manual evaluation process with model judgment.
[0110] In the review phase, AI models are used to judge the full amount of audit tasks, and tasks with higher risks are successfully selected for review, thereby improving the re-examination reduction rate of the review. The review selection phase is optimized through the models of these two links, from partial sampling to full sampling, and at the same time, manual efficiency is improved with the assistance of AI models.
[0111] The audit device provided by the embodiment of the present invention is described below. The audit device described below and the audit method described above can be referenced to each other.
[0112] refer to Figure 5 , Figure 5 501 is a schematic diagram of the structure of the audit device provided by the present invention. The audit device provided by the embodiment of the present invention includes a first-instance module 501, an approval module 502, a review sampling module 503 and a review module 504: The first-instance module 501 is used to input the audit data of the audit task into the first-instance scoring model to obtain the scoring score of the audit task output by the first-instance scoring model; the first-instance scoring model is obtained by training the sample audit data and its corresponding score labels on the basis of the extreme random tree; Approval module 502, used to obtain the target audit tasks that have passed the first review according to the scoring scores; The review sampling module 503 is used to input the target audit task into the review sampling model to obtain the audit task to be reviewed output by the review sampling model; the review sampling model is determined by a control group set by different learning objectives; the learning objectives include taking the reviewed tasks as the first positive sample and taking the reviewed tasks with a review reduction rate greater than or equal to a set value as the second positive sample; The review module 504 is used to review the audit task to be reviewed.
[0113] The audit device proposed in the embodiment of the present invention inputs the audit data of the audit task into the first-instance scoring model to obtain the scoring score of the audit task output by the first-instance scoring model; the first-instance scoring model is obtained by training the sample audit data and its corresponding score label on the basis of the extremely random tree; according to the scoring score, the target audit task that passed the first-instance is obtained; the target audit task is input into the review sampling model to obtain the audit task to be reviewed output by the review sampling model; the review sampling model is determined by the control group set by different learning objectives; the learning objectives include taking the reviewed task as the first positive sample and taking the reviewed task with a review reduction rate greater than or equal to the set value as the second positive sample; and reviewing the audit task to be reviewed. The present invention improves the audit efficiency by introducing the AI model for engineering audit, and at the same time determines the high-risk tasks for review through the review sampling model, thereby improving the audit quality of the engineering project.
[0114] In one embodiment, the auditing device further includes a model training module, which is used to: Based on the machine learning model LightGBM based on the gradient boosting algorithm, the first training set is trained to obtain a first review sampling model; the first training set includes the first positive sample; Based on the LightGBM, a second training set is trained to obtain a second review sampling model; the second training set includes the second positive sample; Determine the prediction accuracy of the first review sampling model and the second review sampling model, and determine the review sampling model according to the prediction accuracy.
[0115] In one embodiment, the model training module is further used to: Acquire reviewed tasks and unreviewed tasks from historical tasks, use the reviewed tasks as first positive samples, and use the unreviewed tasks as first negative samples; Under-sampling the first negative samples to randomly extract the same number of first target negative samples as the first positive samples from the first negative samples; Constructing the first training set according to the first positive sample and the first target negative sample; The LightGBM is constructed, and the LightGBM is trained using the first training set to obtain the first review sampling model.
[0116] In one embodiment, the model training module is further used to: Obtaining reviewed tasks whose review reduction rate is greater than or equal to a set value and reviewed tasks whose review reduction rate is less than a set value from historical tasks; taking the reviewed tasks whose review reduction rate is greater than or equal to the set value as the second positive sample, and taking the reviewed tasks whose review reduction rate is less than the set value as the second negative sample; Under-sampling the second negative samples to randomly extract the same number of second target negative samples as the second positive samples from the second negative samples; Constructing the second training set according to the second positive sample and the second target negative sample; The LightGBM is constructed, and the LightGBM is trained using the second training set to obtain the second review sampling model.
[0117] In one embodiment, the model training module is further used to: Collecting the sample audit data and preprocessing the sample audit data; Performing stratified sampling on the preprocessed sample audit data to obtain multiple layers of sample audit data; Using the score labels, labeling the sample audit data of each layer to obtain labeled data; The extremely random tree is trained based on the training set constructed based on the labeled data to obtain the first-instance scoring model.
[0118] In one embodiment, the model training module is further used to: Determining continuous data and discrete data in the sample audit data; The continuous data is normalized by using the maximum and minimum normalization method to obtain normalized continuous data; the discrete data is One-hot encoded to obtain encoded data; The F test is used to screen the continuous features in the normalized continuous data.
[0119] In one embodiment, the approval module 502 is further configured to: Determine a comparison result between the scoring score and a preset score; If the comparison result is that the scoring score is greater than the preset score, it is determined that the audit task has passed the first review and the target audit task is obtained.
[0120] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor (processor) 610, a communication interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 can call the logic instructions in the memory 630 to execute the audit method, which includes: inputting the audit data of the audit task into the first-instance scoring model to obtain the scoring score of the audit task output by the first-instance scoring model; the first-instance scoring model is obtained by training sample audit data and its corresponding score labels on the basis of an extremely random tree; according to the scoring score, obtaining the target audit task that passed the first review; inputting the target audit task into the review sampling model to obtain the audit task to be reviewed output by the review sampling model; the review sampling model is determined by a control group set by different learning objectives; the learning objective includes taking the reviewed task as the first positive sample and taking the reviewed task with a review reduction rate greater than or equal to a set value as the second positive sample; and reviewing the audit task to be reviewed.
[0121] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0122] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the audit method provided by the above-mentioned methods, which includes: inputting the audit data of the audit task into a first-instance scoring model to obtain the scoring score of the audit task output by the first-instance scoring model; the first-instance scoring model is obtained by training sample audit data and its corresponding score labels on the basis of an extremely random tree; according to the scoring score, obtaining the target audit task that passed the first review; inputting the target audit task into a review sampling model to obtain the audit task to be reviewed output by the review sampling model; the review sampling model is determined by a control group set by different learning objectives; the learning objective includes taking the reviewed task as the first positive sample and taking the reviewed task with a review reduction rate greater than or equal to a set value as the second positive sample; and reviewing the audit task to be reviewed.
[0123] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the audit method provided by the above-mentioned methods, the method comprising: inputting the audit data of the audit task into a first-instance scoring model to obtain a scoring score of the audit task output by the first-instance scoring model; the first-instance scoring model is obtained by training sample audit data and its corresponding score labels on the basis of an extremely random tree; according to the scoring score, a target audit task that passes the first review is obtained; the target audit task is input into a review sampling model to obtain an audit task to be reviewed output by the review sampling model; the review sampling model is determined by a control group set by different learning objectives; the learning objective includes taking the reviewed task as the first positive sample and taking the reviewed task with a review reduction rate greater than or equal to a set value as the second positive sample; and reviewing the audit task to be reviewed.
[0124] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An audit method, characterized in that: include: Inputting the audit data of the audit task into the first instance scoring model to obtain the scoring score of the audit task output by the first instance scoring model; The first-instance scoring model is obtained by training sample audit data and its corresponding score labels based on the extremely random tree; According to the scoring scores, the target audit tasks that have passed the first review are obtained; The target audit task is input into the review sampling model to obtain the audit task to be reviewed output by the review sampling model; the review sampling model is determined by a control group set by different learning objectives; the learning objective includes taking the reviewed task as the first positive sample and taking the reviewed task with a review reduction rate greater than or equal to a set value as the second positive sample; Review the audit tasks to be reviewed.
2. The audit method according to claim 1, characterized in that: The review sampling model is determined based on the following: Based on the machine learning model LightGBM based on the gradient boosting algorithm, the first training set is trained to obtain a first review sampling model; the first training set includes the first positive sample; Based on the LightGBM, a second training set is trained to obtain a second review sampling model; the second training set includes the second positive sample; Determine the prediction accuracy of the first review sampling model and the second review sampling model, and determine the review sampling model according to the prediction accuracy.
3. The audit method according to claim 2, characterized in that: The first training set is trained on the basis of the LightGBM machine learning model based on the gradient boosting algorithm to obtain the first review sampling model, including: Acquire reviewed tasks and unreviewed tasks from historical tasks, use the reviewed tasks as first positive samples, and use the unreviewed tasks as first negative samples; Under-sampling the first negative samples to randomly extract the same number of first target negative samples as the first positive samples from the first negative samples; Constructing the first training set according to the first positive sample and the first target negative sample; The LightGBM is constructed, and the LightGBM is trained using the first training set to obtain the first review sampling model.
4. The audit method according to claim 2, characterized in that: Based on the LightGBM, the second training set is trained to obtain a second review sampling model, including: Obtaining reviewed tasks whose review reduction rate is greater than or equal to a set value and reviewed tasks whose review reduction rate is less than a set value from historical tasks; taking the reviewed tasks whose review reduction rate is greater than or equal to the set value as the second positive sample, and taking the reviewed tasks whose review reduction rate is less than the set value as the second negative sample; Under-sampling the second negative samples to randomly extract the same number of second target negative samples as the second positive samples from the second negative samples; Constructing the second training set according to the second positive sample and the second target negative sample; The LightGBM is constructed, and the LightGBM is trained using the second training set to obtain the second review sampling model.
5. The audit method according to claim 1, characterized in that: The first instance scoring model is trained based on the following method: Collecting the sample audit data and preprocessing the sample audit data; Performing stratified sampling on the preprocessed sample audit data to obtain multiple layers of sample audit data; Using the score labels, labeling the sample audit data of each layer to obtain labeled data; The extremely random tree is trained based on the training set constructed based on the labeled data to obtain the first-instance scoring model.
6. The audit method according to claim 5, characterized in that: The preprocessing of the sample audit data includes: Determining continuous data and discrete data in the sample audit data; The continuous data is normalized by using the maximum and minimum normalization method to obtain normalized continuous data; the discrete data is One-hot encoded to obtain encoded data; The F test is used to screen the continuous features in the normalized continuous data.
7. The audit method according to claim 1, characterized in that: The target audit task that has passed the first trial is obtained according to the scoring score, including: Determine a comparison result between the scoring score and a preset score; If the comparison result is that the scoring score is greater than the preset score, it is determined that the audit task has passed the first review and the target audit task is obtained.
8. An audit device, characterized in that: include: A first-instance module, used to input the audit data of the audit task into the first-instance scoring model, and obtain the scoring score of the audit task output by the first-instance scoring model; The first-instance scoring model is obtained by training sample audit data and its corresponding score labels based on the extremely random tree; An approval module is used to obtain the target audit tasks that have passed the first review according to the scoring scores; A review sampling module is used to input the target audit task into a review sampling model to obtain the audit task to be reviewed output by the review sampling model; the review sampling model is determined by a control group set by different learning objectives; the learning objectives include taking the reviewed tasks as the first positive sample and taking the reviewed tasks with a review reduction rate greater than or equal to a set value as the second positive sample; The review module is used to review the audit tasks to be reviewed.
9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the audit method described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the audit method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the audit method according to any one of claims 1 to 7 is implemented.
