Audit analysis method and data center based on multi-agent model

The multi-agent model and evolutionary game theory are used to identify and handle anomalies in financial data auditing, which solves the problems of low efficiency and insufficient dynamic adaptability in the existing technology, and achieves more efficient and accurate data audit analysis.

CN118297739BActive Publication Date: 2024-09-03江西省通信产业服务有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410709913.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-03
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

The existing technology relies on manual inspection in financial data auditing, which is inefficient and difficult to adapt to the real-time analysis needs in the big data environment. Moreover, the autoencoder neural network lacks dynamic learning and strategy adjustment capabilities and cannot effectively identify errors that do not appear in the training data. Abnormal circumstances.

Method used

Using a multi-agent model, by setting a multi-agent model, different departments or agents in the enterprise are regarded as agent units, defining strategies and interaction rules, using evolutionary game theory and Q-value functions to update and optimize strategies, and introduce Cross-validation mechanism to ensure data accuracy and consistency.

Benefits of technology

It achieves more accurate identification and adaptation in complex environments and abnormal situations, improves the efficiency and accuracy of audit analysis, enables continuous learning and improvement, adapts to environmental changes, and ensures the accuracy and consistency of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118297739B
    Figure CN118297739B
Patent Text Reader

Abstract

The present invention discloses an audit analysis method and a data middle platform based on a multi-agent model; the present invention relates to the technical field of financial data analysis; each agent unit i has its own strategy space S corresponding to the goals and processes of its audit business i and the payment function u i For each agent unit i, its strategy space S i is a set that includes all possible actions or strategies that the agent unit i can choose when making decisions. Through the multi-agent model, the present invention enables different agents in the enterprise (such as financial data agents, business data agents, etc.) to make decisions based on their respective strategy spaces and payoff functions. At the same time, the evolutionary game algorithm solves the mixed strategy Nash equilibrium, so that the strategy combination predicted by the agent in a constantly changing environment can ensure the stability of the audit effect. At the same time, this mechanism allows the model of the present invention to continue learning, improving its adaptability to complex environments and abnormal situations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of financial data analysis, specifically to the technical field of intelligent information auditing, and in particular to an auditing analysis method and a data middle platform based on a multi-agent model. Background Art

[0002] In the fields of finance, accounting, auditing and corporate management, audit analysis refers to the systematic inspection, verification and evaluation of a company's economic activities, financial reports, internal controls, etc. to ensure their accuracy, completeness and effectiveness, and to identify possible problems and risks.

[0003] In modern society, as data applications become more popular and important, data audit analysis is becoming more and more important. Due to the continuous upgrading of modern enterprise management, the amount of data in various departments within the enterprise has increased sharply. Traditional manual data checking requires a lot of time and human resources, and cannot respond to business analysis needs in a timely manner.

[0004] Therefore, some existing technologies have built intelligent audit models for enterprises; for example, Chinese invention patent CN202311714747.9 discloses a data asset operation and management method and system (publication date: 2024-04-26), which sets the audit results of each data as the update loop logic, obtains data assets through standardized data model registration; encapsulates data assets, and provides data services based on the encapsulated data assets.

[0005] However, this model only introduces the data update mode into the circular logic. For the audit itself, this technology still needs to rely on manual inspection of the data. Although the circular logic can assist in improving the efficiency of audit packaging, it is essentially inefficient and difficult to adapt to the real-time analysis needs in the big data environment.

[0006] Based on this, Chinese invention patent CN202410112597.2 further discloses a corporate revenue audit method, system, device and storage medium (publication date: 2024-04-30), which constructs a neural network structure of the nature of an autoencoder and uses supervised learning to try to reconstruct its input data, with the aim of capturing the core features and structures in the data. When the input data contains abnormalities or features that are significantly different from the training data, the autoencoder will produce a large error in the reconstruction process, and then use this error as an indicator of abnormality to form an audit report.

[0007] However, the autoencoder neural network only relies on its own structure and training data to reconstruct the input, but the units involved in the audit in the enterprise architecture are not static, but intelligent entities with subjective consciousness and change dynamically in real time; the autoencoder neural network, by contrast, has a limited ability to process complex multi-source data and detect anomalies due to its architecture and the nature of the regression task.

[0008] At the same time, this technical solution lacks the ability of dynamic learning and strategy adjustment. Its performance mainly depends on the initial training data, and it may not be able to effectively identify abnormal situations that do not appear in the training data. To solve this problem, it is necessary to continuously update the training set and retrain the autoencoder neural network, but its computing resources and efficiency are not ideal.

[0009] To this end, the present invention proposes an audit analysis method and a data platform based on a multi-agent model. Summary of the invention

[0010] In view of this, the embodiment of the present invention hopes to provide an audit analysis method and a data middle platform based on a multi-agent model to solve or alleviate the technical problems existing in the prior art, namely:

[0011] (1) How to consider the business coordination and dynamic game process of multiple intelligent entities in the enterprise, and update their own strategies and actions based on the information between each other. This enables the entire system to more comprehensively consider information from different data sources, thereby more accurately identifying anomalies;

[0012] (2) How to iterate and dynamically adjust the model to respond to environmental changes and changes in the strategies of other agent units. This allows the model to continue to learn and improve during operation, improving its adaptability to complex environments (such as enterprises) and abnormal situations.

[0013] The technical solution of the present invention is achieved in this way:

[0014] First, the audit analysis method based on the multi-agent model:

[0015] 1. Overview:

[0016] The present invention aims to solve the above technical problems. By setting a multi-agent system (MAS) as a framework, different departments or agents in the enterprise are regarded as agent units, and by defining corresponding strategies and interaction rules, the agents are simulated to update their own strategies and actions according to the information between each other. At the same time, based on the introduction of evolutionary game theory (EGT) algorithm and Q value function, the multi-agent model is allowed to continuously learn and improve during its operation. At the same time, the cross-validation mechanism is introduced to require different agents to verify and verify data with each other, which can not only calculate the enterprise data cyclically, but also autonomously generate the audit reports required by the enterprise.

[0017] 2. Setting up the multi-agent model:

[0018] 2.1 Multi-agent model framework:

[0019] This solution selects a strategic multi-agent game model, referring to the connotations of some traditional game theory algorithms; specifically including:

[0020] 1) Agent unit i: refers to the participants or decision-makers in the competitive game. In this technical solution, each agent unit i is regarded as an intelligent unit in an enterprise (such as financial data intelligent agent, business data intelligent agent, sales intelligent agent, procurement intelligent agent, inventory intelligent agent, etc., representing the departments or individuals in the enterprise that interact with each other); there is an interactive influence between the strategies of different agent units i. The larger the number of agent units i, the greater the complexity:

[0021] ;

[0022] F is the set of agent units, and n is the total number of all agent units i.

[0023] 2) Strategy space: refers to the set S of decision choices or actions of the agent unit (hereinafter referred to as the strategy set S); for any agent unit i, its strategy set S i for:

[0024] ;

[0025] N is the number of strategies of agent unit i;

[0026] 3) Payment function u i : The output of this function is used to predict the benefits obtained by agent unit i in the game:

[0027] ;

[0028] 4) Game strategy: regarded as strategy rule G:

[0029] ;

[0030] If for any agent unit i, no other agent unit can unilaterally change its strategy and obtain better benefits, so that they will rationally stick to their current strategy, then the game reaches equilibrium state - Nash Equilibrium;

[0031] 2.2 Model idea:

[0032] The interaction between departments in an enterprise can be regarded as a repeated game process; and repeated games are essentially dynamic games, where the constant updating of strategies determines that the state of the players is also changing. Then, for any repeated game between two people (two agent units i), the strategic model is recorded as:

[0033] ;

[0034] In the above formula, A1 and A2 are the action spaces of the two agent units i respectively; in the following text, the action a of the two agent units i will be denoted as a 1 and a 2 In order to distinguish;

[0035] r1 and r2 are the payment benefits generated by the interaction of the strategy space and the actions of the two agent units i, totaling R. Their combination is recorded as the payment benefit r k ;Payment income r k The following constraints apply:

[0036] ;

[0037] p is the transition probability of the state under the action, and the transition probability p follows the following constraints:

[0038] ;

[0039] The number of game periods is recorded as t, t=0,1,2...; the state at time t is expressed as: ;

[0040] Since the two agent units i in repeated games are constantly updated and adjusted through learning actions, the state of agent unit i (player) in the game process can be regarded as the historical action combination of the two people; and because of the limited rationality of the players (as described in this paper: Evolution and the Theory of Games [M] Cambridge University Press, New York. 1982.), we can take the action combination of the previous finite number of games, and the continuous updating of the action combination corresponds to the continuous transfer of the state; at each given state When , the two agent units i as game players independently choose their own actions:

[0041] ;

[0042] Then, we get the payment returns r1 and r2 (i.e. instantaneous returns) respectively;

[0043] If r1+r2=0, it is considered a zero-sum game, and the action a of the two agent units i 1 and a 2 After confirmation, a new action combination is formed, thus transferring to a new state S i ', so the transition probability is recorded as ; Based on the guiding ideology of the following document, the constraints are as follows:

[0044] ;

[0045] The above-mentioned literature is: Liu Weibing, Wang Xianjia. Multi-agent reinforcement learning model in evolutionary games [J]. Systems Engineering - Theory and Practice, 2009(3), 6.

[0046] In this way, the repeated game process between any two intelligent agents corresponds to a two-agent unit reinforcement learning model, and the strategy adjustment process can be simulated by reinforcement learning.

[0047] However, in actual evolutionary games, the repetition of games is not a simple repetition, and the change of states is not a fixed rule. The constant changes in reality will cause the strategies of the players to be constantly updated; then, the state in the evolutionary game is the historical action combination of agent unit i, so for each agent unit i, the transfer of state is also the transfer of its selected action.

[0048] (III) Technical solution of the present invention:

[0049] In the above multi-agent model, the state transition probability of any agent unit i choosing action a in state s is p(a 1), the change of action causes the action combination of the two people to change; thus the state also changes to the new state S i ',exist Under the state, the state transition probability p(a 1 ), then the state S i ' is the probability of choosing action a. In other words, it is necessary to map the corresponding state transition probability p(a) for each agent unit i. i ) can set up the corresponding multi-agent model and introduce the corresponding evolutionary game mechanism to solve the technical problems to be solved.

[0050] Therefore, the technical context of the present invention has been clarified. The present invention will construct a multi-agent model for auditing. It is specifically implemented by the following steps S1 to S5.

[0051] 3.1 Step S1, read the multi-agent model:

[0052] It includes defining the information exchange and collaboration mechanism among all agent units i and determining the objectives and processes of the audit business.

[0053] 3.1.1 Step S100, determine agent unit i:

[0054] Agent unit i represents different intelligent entities in the enterprise. Each agent unit i has its own strategy space S corresponding to the goals and processes of its audit business. i and the payment function u i .in:

[0055] 1) Strategy space S i :For each agent unit i, its strategy space S i is a set that contains all possible actions or strategies that the agent unit i can choose when making decisions:

[0056] ;

[0057] Among them, s ij Represents the j-th action strategy, i.e., state, of any agent unit i.

[0058] 2) Payment function u i : Also known as the utility function, it is used to quantify the benefits or utility obtained by agent unit i after adopting a certain strategy. This function depends on agent unit i's own strategy and the strategies of other agents:

[0059] ;

[0060] Among them, S1,S2,...,S nis the strategy space of all agent units i, and the output of the function is a real number, representing the benefit of agent unit i after choosing a specific strategy combination; the symbol * in the formula represents the Cartesian product operation, and the symbol → represents the mapping operation; R is the value range of the payment function, that is, the set of real numbers.

[0061] In order to consider accuracy and efficiency, two new factors can be introduced to adjust the payment: an accuracy factor A and an efficiency factor E. These two factors can be functions or constants defined according to specific circumstances.

[0062] 1) The accuracy factor A can be calculated based on the accuracy of the decision. For example, if the decision is completely accurate, then A=1; if there is a deviation, then A will decrease accordingly;

[0063] 2) The efficiency factor E can be calculated based on the efficiency of decision making or the time required;

[0064] Furthermore, the payment function u i Updated to:

[0065] ;

[0066] Among them, u i ′ is the adjusted payment function, A is the accuracy factor, and E is the efficiency factor.

[0067] 3.1.2 Step S101, executing business process interaction:

[0068] Set the information exchange and cooperation mechanism between each agent unit i. Set how any agent unit i should act according to the information exchange, cooperation mechanism and other agent unit j's action strategy s ij To update your action strategies ij ;

[0069] The information exchange and collaboration mechanism is described by the information exchange matrix C:

[0070] ;

[0071] Where n is the number of agent units i. Any element c of the matrix C ij represents the importance of any agent unit i receiving from another agent unit j. ij = 0, it means that agent unit i has not received information from agent unit j.

[0072] Let T be the policy matrix of all agent units, where each row represents the policy vector of any agent unit i:

[0073] ;

[0074] Among them, T ij is the action strategy s of any agent unit i towards another agent unit j ij tendency;

[0075] Assume that agent unit i needs to update its own state s according to the strategy of other agent unit j and the information exchange matrix C ij for The update rule is a weighted average, where the weights are given by the matrix T above:

[0076] ;

[0077] in, is the jth action strategy of any agent unit k at time step t, i.e., state, c ik is the importance corresponding to the information exchange matrix C; at time step t+1, the new strategy of agent unit i to agent unit j is the weighted average of the current strategies of all other agent units k to agent unit j, and the weight is determined by an element T in the matrix T ik Given.

[0078] 3.2 Step S2, mapping of state transition probability:

[0079] For each agent unit i, according to its historical action combination and current state s ij , mapping out the corresponding state transition probability p(a i ) to reflect the probability of agent unit i choosing different actions in a given state. And perform mutual game measurement for any two agent units (i, j), and perform strategy iteration to update the action strategy s of any agent unit i ij '.

[0080] 3.2.1 Step S200, executing a mapping mechanism, including a mapping function:

[0081] Based on what is described in 2.2, there is currently a state Indicates that given the current state S i and several actions i Under the condition that the system or model transfers to the new state S i 'Probability. In the state, it is necessary to calculate the agent unit i to take action a i The state transition probability p(a1) is realized in state S i The probability of choosing action a is:

[0082] ;

[0083] Among them, P is the probability, Si ' is any agent unit i taking action a i The function f describes the new state that may be transferred to in the current strategy space S i In the state, when any agent unit i takes action a i And the other agent units take action combination a -i When the state changes to S i ', that is, the strategy space S i The update probability of .

[0084] Among them, A i is the action space of agent unit i:

[0085] ;

[0086] a1,a2,...,a n is the behavior pattern of agent unit i, that is, the action described above; in the above formula, A1 and A2 are the action spaces of the two agent units (i, j) respectively.

[0087] 3.2.2 Step S201, executing the double matrix game mechanism:

[0088] The mutual game measurement is realized through the double matrix game: for any two agent units (i, j), their respective transition probabilities p i (a1) and p j (a1), and the payment income r generated by them k , set up a double-matrix game and solve the mixed strategy Nash equilibrium.

[0089] The expected total reward between agent units (i, j) is calculated by the Q-value function, which is based on historical data and their respective updated action strategies. , to update.

[0090] 3.2.2.1 Double Matrix Game and Nash Equilibrium:

[0091] The game process of the double matrix game is composed of two payment matrices A and B as the basis, corresponding to the benefits of the two agent units (i, j) respectively:

[0092] ;

[0093] Among them, assume that agent unit i has M strategies and agent unit j has N strategies; any element A in the payoff matrix A kl represents the benefit obtained by agent i when agent i chooses strategy k and agent j chooses strategy l; any element B in the payment matrix B klIt represents the benefit obtained by agent unit j when agent unit i chooses strategy k and agent unit j chooses strategy l.

[0094] In theory, we already have the expected payoffs corresponding to different strategy combinations, so we can directly use this information to solve the mixed strategy Nash equilibrium.

[0095] Solving the mixed strategy Nash equilibrium involves a linear programming problem. For agent i, its mixed strategy can be represented as a probability vector x, and for agent j, its mixed strategy can be represented as a probability vector y. The mixed strategy Nash equilibrium (x^, y^) can be solved by the following optimization problem:

[0096] For the optimization problem of agent unit i:

[0097] ;

[0098] For the optimization problem of agent unit j:

[0099] ;

[0100] Where T is the strategy matrix in the previous text, and any element in the strategy matrix represents the action strategy s taken by any agent unit i towards another agent unit j. ij The tendency of plays the role of weight in the above formula. The above optimization problem can be solved by linear programming algorithm.

[0101] 3.2.2.2 Calculate the Q value function:

[0102] For each agent unit i, its Q value function can be updated based on historical data and the currently updated action strategy. Let Q ij (s, a) is the number of agent units i and j in s ij The Q value of taking action a. After each iteration, based on the new transition probability and payment benefit, the Q value function can be updated as follows:

[0103] ;

[0104] Where: α is the learning rate, which controls the weight of new information. γ is the discount factor, which indicates the degree of discount of future rewards. s' is the new state transferred to after taking action a in state s. a' is the possible action to be taken in the new state s'.

[0105] This formula represents the update process of the Q-value function, which combines the current Q-value with the new reward information and the estimated value of the optimal reward that may be obtained in the future. In this way, agent unit i can gradually learn what actions to take in different states to obtain the maximum long-term reward.

[0106] 3.2.3 Step S202, executing the evolutionary game mechanism:

[0107] On the basis of step S201, the mechanism of mutual game measurement is extended to the evolutionary game of n agent units i;

[0108] That is, the strategy learning (dual matrix game and Nash equilibrium) and Q-value updating method of the two-agent game are extended to n agent units i, so that any agent unit i can dynamically adjust its own strategy according to the environment and the strategies of other agent units j.

[0109] In the field of evolutionary game theory, a key concept is evolutionarily stable strategy (ESS). i ∗ is called the ESS of agent unit i if for all s i ≠s i ∗, there exists a , so that for all , then the following conditions are met:

[0110] .

[0111] where s −i represents the strategy space of all agents except agent i, which is the strategy profile in traditional game theory. This inequality indicates that when a small part of other agent i deviates from ESS, agents adopting ESS will obtain higher benefits than agents adopting other strategies. ϵ here represents the proportion of individuals in the population that adopt the mutation strategy (or invasion strategy) in game theory.

[0112] In multiplayer games, the Q-value function can be updated in a similar way to the dual-matrix game. For each agent unit i, its Q-value function can be updated based on historical data and current strategy profile:

[0113] ;

[0114] 3.2.4 Step S203, perform strategy iteration:

[0115] Based on steps S200 to S202, combined with the strategy space S of step S1 i , perform policy iteration to update the action policy (i.e., state) of each agent unit i:

[0116] S2030, Initialization: Read each agent unit i and set the initial action strategy s ij , that is, state s ij ;

[0117] S2031, iterative process: In each time step of the total m time steps, let agent unit i act according to the current action strategy s ij (t m ) Select an action, observe the result and update the Q value;

[0118] After the action, agent unit i observes the result of the environment feedback and updates its Q value based on this result. This Q value represents the expected return of taking a certain strategy in a given state;

[0119] S2032, strategy update: based on the new Q value, update the state s of agent unit i ij ';

[0120] Strategies (states) with higher Q values ​​are selected because they lead to higher returns in the long run. The updated strategy becomes the new state s ij ', this state will be used for decision making in the next time step;

[0121] S2033, convergence judgment: stop iteration when the strategy is stable or reaches the preset number of iterations.

[0122] 3.3 Step S3, data monitoring and early warning:

[0123] Use the data monitoring matrix D to clarify the data monitoring responsibilities of each agent unit i to ensure that key performance indicators KPIs are effectively covered; set an early warning threshold T for each data type j (Can be adjusted dynamically based on historical data or business rules).

[0124] The data monitoring matrix D is a binary matrix, and any element D ij is the data value that triggers the warning, and its activation mechanism is:

[0125] ;

[0126] Through this data monitoring matrix D, the monitoring responsibilities of each agent unit can be clearly defined and all KPIs can be effectively covered.

[0127] For each data type (or KPIs), an alert threshold T can be set. j This threshold can be determined based on the statistical value of historical data (such as mean, median, standard deviation, etc.) or based on enterprise business rules. For example, for a certain KPI, the business rule requires that an early warning be triggered when its value exceeds a certain level. The early warning threshold can be adjusted dynamically to reflect changes in the business environment or new business needs. Therefore, it can also be achieved by recalculating the threshold regularly or based on real-time data feedback.

[0128] 3.4 Step S4, execute data cross-validation mechanism:

[0129] Based on the key performance indicators KPIs, the state s of the agent unit i updated in step S2033 is executed using the cross-validation matrix C. ij 'Verification process in case of abnormalities. Ensuring the accuracy and consistency of data is achieved through cross-validation between each agent unit i;

[0130] The cross-validation matrix C is a matrix used to determine which agent units will participate in validating the data of other units. Let C be an n*n matrix, where n is the number of agent units. The elements c in the matrix kl Indicates whether the kth agent unit verifies the data of the lth agent unit.

[0131] ;

[0132] The diagonal elements of the matrix are set to 0 so that each agent unit does not verify its own data to avoid logical errors.

[0133] The process of the cross-validation mechanism described in step S4 is:

[0134] S400, data submission: Each agent unit i updates its state s ij ', the system determines which agent units will participate in the cross-validation of the data according to the cross-validation matrix C. For each agent unit i, the system searches the i-th column of the matrix C and finds the agent unit k corresponding to all elements with a value of 1, that is, c kl = 1;

[0135] S401, data verification: each selected agent unit k will receive the data submitted by agent unit i and verify it according to the key performance indicators KPIs;

[0136] S402, verification result feedback: After completing the verification, each agent unit k participating in the verification will submit its verification result. If the data is accurate, then the state s ij ' will be accepted; otherwise, determine whether the data exceeds the warning threshold T j If it exceeds, the process proceeds to step S5; if it does not exceed, the process proceeds to step S403, triggering further investigation or correction process;

[0137] S403, exception handling: notify the relevant agent unit i to conduct further data review or take other necessary corrective measures.

[0138] 3.5 Step S5, monitoring and feedback loop:

[0139] The real-time monitoring data monitoring matrix D continuously collects and updates data. When the data exceeds the warning threshold T j Output audit report to determine which agent units i are in which state s ij 'There are abnormal records below. Including:

[0140] S500, generate audit report ch: for the status of triggering warning s ij 'List all exception records:

[0141] .

[0142] Where k is the maximum index of abnormal records;

[0143] Each exception record r d Represented as a triple:

[0144] .

[0145] Where I represents the index of the corresponding agent unit i; J represents the state s ij '(or KPIs) ID or index; D ij It is the data value that triggers the alert, which can be understood as the data value that is considered abnormal, unconventional, or outside the expected range.

[0146] S501, feedback loop: Based on the results of the audit report, notify the corresponding agent unit i to make necessary adjustments and optimizations, and then return to the cross-validation stage (i.e., S4), forming a continuous monitoring and feedback loop.

[0147] (IV) Principle and mechanism of the present invention in solving technical problems:

[0148] 4.1 Collaboration and information exchange mechanism among multiple agents:

[0149] The multi-agent model of the present invention defines the information exchange and collaboration mechanism between agent units, allowing different agents (such as financial data agents, business data agents, etc.) to update their own strategies and actions based on the information between each other. This mechanism enables the entire model to more comprehensively consider the information of different data sources, thereby more accurately identifying anomalies.

[0150] In contrast, traditional neural network or regression task models rely solely on their own structure and training data to reconstruct inputs and lack the ability to collaborate with other intelligent agents, limiting their ability to process complex multi-source data and detect anomalies.

[0151] 4.2 Evolutionary Game Theory and Strategy Iteration Mechanism:

[0152] The evolutionary game theory and strategy iteration mechanism of the present invention can dynamically adjust the strategy of each agent unit to cope with environmental changes and strategy changes of other agent units. This mechanism allows the multi-agent model to continuously learn and improve, improving its adaptability to complex environments and abnormal situations.

[0153] In contrast, traditional neural network or regression task models lack this ability of dynamic learning and strategy adjustment. Their performance mainly depends on the initial training data and has limitations for abnormal situations that do not appear in the training data.

[0154] 4.3 Data cross-validation mechanism:

[0155] The cross-validation mechanism of the present invention requires different agent units to verify data with each other to ensure the accuracy and consistency of the data, which helps to improve the accuracy and reliability of anomaly detection.

[0156] In contrast, traditional neural network or regression task models lack this data cross-validation capability, and the accuracy and reliability of their reconstruction errors may be affected by the quality of the input data, increasing the risk of false positives and negatives.

[0157] Second, the audit analysis data platform based on the multi-agent model:

[0158] like Figure 4 As shown, the data center includes a processor and a register coupled to the processor, wherein the register stores program instructions, and when the program instructions are executed by the processor, the processor executes the audit analysis method based on the multi-agent model as described above. When the collection report of step S500 is generated, the processor feeds back the audit report to a display for viewing by personnel within the enterprise.

[0159] Compared with the prior art, the present invention has the following beneficial effects:

[0160] 1. Optimize the decision-making process: Through the multi-agent model, the present invention enables different intelligent agents in the enterprise (such as financial data intelligent agents, business data intelligent agents, etc.) to make decisions based on their respective strategy spaces and payoff functions. At the same time, the evolutionary game algorithm solves the mixed strategy Nash equilibrium, so that the strategy combination predicted by the intelligent agent in a constantly changing environment can be guaranteed to ensure the stability of the audit effect. At the same time, this mechanism allows the model of the present invention to continue learning, improving its adaptability to complex environments and abnormal situations.

[0161] 2. Promote collaboration among agents: The business process interaction mechanism of the present invention clarifies the information exchange and collaboration mode among agents, so that each agent can adjust its own strategy according to the strategies and information of other agents to achieve collaborative optimization. The data cross-validation mechanism ensures that the data submitted by each agent can be verified by other agents by setting a cross-validation matrix, thereby ensuring the accuracy and consistency of the data during the audit process.

[0162] 3. Real-time monitoring and feedback: The data monitoring and early warning system of the present invention can monitor key performance indicators (KPIs) in real time, and output an audit report when the data exceeds the early warning threshold, forming a continuous monitoring and feedback loop to help enterprises discover and solve problems in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0163] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0164] Figure 1 A schematic diagram of a flow chart of the audit analysis method of the present invention;

[0165] Figure 2 A schematic diagram of the architectural flow of the audit analysis method of the present invention;

[0166] Figure 3 It is a flow chart of the strategy iteration method of step S203 of the present invention;

[0167] Figure 4 It is a schematic diagram of the composition of the data center of the present invention;

[0168] Figure 5 This is a flow chart of executing the evolutionary game mechanism in step S202 of the present invention;

[0169] Figure 6 A schematic Sankey diagram of the business relationship between various agent units in a specific implementation manner. DETAILED DESCRIPTION

[0170] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below;

[0171] Example 1: Please refer to Figure 1-Figure 2 This embodiment discloses an audit analysis method based on a multi-agent model; the implementation steps of this method are as follows S1-S5:

[0172] In this embodiment, regarding step S1, reading the multi-agent model includes defining the information exchange and collaboration mechanism between all agent units i, and determining the objectives and processes of the audit business. Specifically, it includes the following steps S100-S101.

[0173] Specifically, step S100 determines agent unit i: agent unit i represents different agents in the enterprise, such as financial data agent, business data agent, sales agent, procurement agent, inventory agent, etc. In the actual enterprise system, it represents different departmental decision-makers or individuals in the enterprise.

[0174] Each agent unit i has its own strategy space S corresponding to the goals and processes of its audit business. i and the payment function u i .in:

[0175] 1) Strategy space S i :For each agent unit i, its strategy space S i is a set that contains all possible actions or strategies that the agent unit i can choose when making decisions:

[0176] ;

[0177] Among them, s ij represents the jth action strategy, i.e., state, of any agent unit i. For example, the strategies of the financial data agent include selecting different financial data analysis methods, risk assessment strategies, etc.; the strategies of the sales agent include different sales strategies, pricing strategies, etc. The selection of these strategies directly affects the performance of the agent unit in the audit business, and thus affects the value of its payment function.

[0178] 2) Payment function u i : Also known as the utility function, it is used to quantify the benefits or utility obtained by agent unit i after adopting a certain strategy. This function depends on agent unit i's own strategy and the strategies of other agents:

[0179] ;

[0180] Among them, S1,S2,...,S nis the strategy space of all agent units i, and the output of the function is a real number, representing the benefit of agent unit i after choosing a specific strategy combination; the symbol * in the formula represents the Cartesian product operation, and the symbol → represents the mapping operation; R is the value range of the payment function, that is, the set of real numbers.

[0181] In order to consider accuracy and efficiency, two new factors can be introduced to adjust the payment: an accuracy factor A and an efficiency factor E. These two factors can be functions or constants defined according to specific circumstances.

[0182] 1) The accuracy factor A can be calculated based on the accuracy of the decision. For example, if the decision is completely accurate, then A=1; if there is a deviation, then A will decrease accordingly;

[0183] 2) The efficiency factor E can be calculated based on the efficiency of the decision or the time required. For example, if the decision is very quick and efficient, E can be close to 1; if the decision process is slow or inefficient, E will be reduced accordingly;

[0184] Furthermore, the payment function u i Updated to:

[0185] ;

[0186] Among them, u i ′ is the adjusted payment function, A is the accuracy factor, and E is the efficiency factor. In this way, by introducing the accuracy and efficiency factors, a strategy can be evaluated more comprehensively, rather than just based on the original payment function value. This adjustment helps to more accurately reflect the actual situation and improve the accuracy and efficiency of decision-making.

[0187] It can be understood that the above step S100 promotes the collaborative work among agents by defining the information exchange and collaboration mechanism among the agent units i. This collaborative work not only improves the work efficiency of a single agent, but also helps to achieve the global optimal solution, that is, the maximization of the total utility of all agents. In addition, by introducing accuracy and efficiency factors to adjust the payment function, the method further encourages efficient collaboration among agent units i to achieve accuracy and efficiency in audit analysis.

[0188] Specifically, step S101, execute business process interaction: set the information exchange and cooperation mechanism between each agent unit i. Set how any agent unit i should act according to the information exchange, cooperation mechanism and other agent unit j's action strategy s ij To update your action strategies ij ;

[0189] Furthermore, the information exchange and collaboration mechanism is described by the information exchange matrix C: the matrix C is an n*n matrix, where n represents the number of agent units. Any element c in the matrix C ij represents the importance of agent unit i receiving information from agent unit j. ij = 0, it is considered that agent unit i does not receive any information from agent unit j.

[0190] ;

[0191] If the business domain of agent unit j is highly related to agent unit i, then c ij The value of should be large. And if agent units i and j often need to communicate and cooperate, then c ij The value will also be higher.

[0192] Based on the above factors, c ij The assignment formula method is:

[0193] ;

[0194] Where de is the percentage of relevance between the business domain of agent unit j and the business domain of agent unit i, fr is the communication frequency between agent unit j and agent unit i, in (times / day);

[0195] Among them, α and β are corresponding weight coefficients, which are interval values ​​of [0,1]. The assignment method can refer to Figure 6 The established Sankey diagram selects the interaction relationship between the corresponding agent unit j and the agent unit i, establishes a proportional relationship with the overall interaction of other agent units, and then assigns values.

[0196] Furthermore, let T be the policy matrix of all agent units, where each row represents the policy vector of any agent unit i:

[0197] ;

[0198] Among them, T ij is the action strategy s of any agent unit i towards another agent unit j ij The tendency is a proportional value. For department interactions in an actual enterprise, it can be assigned based on the actual business process type. For example Figure 6The interactive relationship shown in the example is inevitable for the agent unit i of the purchasing agent and the agent unit j of the financial agent (because the finance needs to be guided by the purchasing agent), so it can be assigned a value of 100%; while for the agent unit i of the business agent and the agent unit j of the sales agent, it depends on the specific number and professionalism of the agent unit j of the sales agent. The stronger agent unit j of a sales agent must have a greater inclination towards the agent unit i of the business agent, so a larger value can be assigned. If the business ability of the agent unit k of a sales agent is weak, the inclination of the agent unit i of the business agent must be smaller, so a smaller value can be assigned. Therefore, T ij The value assignment depends on the decision-makers of the actual enterprise to actively assign the value based on their actual situation.

[0199] It should be pointed out that the above strategies and the schemes of information exchange matrix C and strategy matrix T are static. If you want to further improve the accuracy of the model, you can also take action strategies based on the actual information received and the action strategy s ij The information exchange matrix C and strategy matrix T are actively updated based on the actual situation.

[0200] It should be noted that when agent unit i needs to update its state according to the strategies of other agent units j and the information exchange matrix C, we adopt a weighted average update rule. Specifically, at time step t+1, the new strategy sij(t+1) of agent unit i towards agent unit j is the current strategy s of all other agent units k towards agent unit j. kj (t). The weight of this average is determined by the element T in the policy matrix T ik Such an update mechanism ensures that each agent unit can comprehensively consider the strategies and information importance of all other agent units when updating its own strategy, thereby achieving collaborative optimization. The update method of the above scheme is expressed as:

[0201] ;

[0202] It is understandable that by updating its own strategy by comprehensively considering the strategies and information importance of other agent units, each agent unit can have a more comprehensive understanding of the status of the entire system and make more accurate decisions. This collaborative optimization mechanism helps to improve the accuracy and stability of audit analysis. And because each agent unit can dynamically adjust its own strategy according to the strategies and information importance of other agent units, the entire system can adapt to changes in the external environment more quickly. At the same time, this distributed decision-making mechanism also enhances the robustness of the system. Even if an agent unit fails or fails, other agent units can still continue to optimize according to their own strategies and information importance. At the same time, through the information exchange and collaboration mechanism, as well as the setting of the strategy matrix T, the various agent units can better cooperate with each other. This cooperation is not only reflected in information sharing, but also in strategy updating and decision making. Through collaboration, the entire system can complete tasks more efficiently and improve the efficiency and quality of audit analysis.

[0203] Furthermore, the C++ execution program of the above step S1 is as follows:

[0204] #include

[0205] #include

[0206] #include

[0207] / / Number of agent units

[0208] const int AGENT_COUNT = ();

[0209] / / Agent unit class

[0210] class Agent {

[0211] public:

[0212] std::vector

[0213] std::vector

[0214] Agent(int agentCount) {

[0215] strategies.resize(agentCount, 0.0);

[0216] states.resize(agentCount, 0.0);

[0217] }

[0218] void updateState(const std::vector

[0219] for (int j = 0; j <AGENT_COUNT; ++j) {

[0220] double numerator = 0.0;

[0221] double denominator = 0.0;

[0222] for (int k = 0; k <AGENT_COUNT; ++k) {

[0223] numerator += agents[k].strategies[j]* this->states[k];

[0224] denominator += C[this->strategies.size() - 1][k];

[0225] }

[0226] if (denominator != 0.0) {

[0227] this->states[j] = numerator / denominator;

[0228] }

[0229] }

[0230] }

[0231] };

[0232] int main() {

[0233] / / Initialize the information exchange matrix C and strategy matrix T (dynamically adjustable)

[0234] std::vector

[0235] std::vector

[0236] for (int i = 0; i <AGENT_COUNT; ++i) {

[0237] agents.push_back(Agent(AGENT_COUNT));

[0238] for (int j = 0; j <AGENT_COUNT; ++j) {

[0239] if (i == j) {

[0240] agents[i].strategies[j] = 1.0;

[0241] } else {

[0242] agents[i].strategies[j] = 0.5;

[0243] }

[0244] }

[0245] }

[0246] / / Status update function

[0247] for (auto&agent : agents) {

[0248] agent.updateState(C, agents);

[0249] }

[0250] / / Output the updated status

[0251] for (const auto&agent : agents) {

[0252] for (double state : agent.states) {

[0253] std::cout< <state<<"";

[0254] }

[0255] std::cout< <std::endl;

[0256] }

[0257] return 0;

[0258] }

[0259] Among them, the agent unit class (Agent) represents an agent unit and contains two main member variables: strategies and states. Strategies stores the agent's strategic inclinations towards all other agents, while states stores the agent's current state towards all other agents. The state update (updateState method) is responsible for updating the agent's state based on the information exchange matrix C and the current states of all other agents. It uses a weighted average method, where the weights are determined by the strategic inclination strategies and the information exchange matrix C. The main function (main) first initializes the information exchange matrix C and a group of agents. Then, the state update process is executed and the updated state is output.

[0260] In this embodiment, regarding step S2, the mapping of state transition probabilities is: for each agent unit i, according to its historical action combination and current state s ij , mapping out the corresponding state transition probability p(a i ) to reflect the probability of agent unit i choosing different actions in a given state. And perform mutual game measurement for any two agent units (i, j), and perform strategy iteration to update the action strategy s of any agent unit i ij '. It specifically includes the following steps S200~S203.

[0261] Specifically, step S200, execute the mapping mechanism: currently there is a state Indicates that given the current state S i and several actions i Under the condition that the system or model transfers to the new state S i '. Each agent unit i will take a certain action a in a specific state Si i The purpose of executing the mapping mechanism is to calculate the i Next, agent unit i takes action a i After that, the state is transferred to S i ', that is, the state transition probability p(a i ). Therefore, in In the state, it is necessary to calculate the agent unit i to take action a i The state transition probability p(a1) is realized in state S i The probability of choosing action a is:

[0262] ;

[0263] Among them, S i ' is any agent unit i taking action a iThe function f describes the new state that may be transferred to in the current strategy space S i In the state, when any agent unit i takes action a i And the other agent units take action combination a -i When the state changes to S i ', that is, the strategy space S i The update probability. P is the probability that given the current state Si and the combination of actions and states of all agent units Next, the state is transferred to S i '. This is a conditional probability representation method used to quantify the possibility of state transition. △ is a placeholder for a mapping, which represents the transition or mapping of an agent unit k from the current state to the next state. In this multi-agent model, the agent unit updates its own strategy based on the current state and the actions of other agents. Therefore, △ symbolizes the process of this strategy update or state transition.

[0264] Among them, A i is the action space of agent unit i, which contains all possible actions that the agent unit may take, that is, the behavior pattern, expressed as:

[0265] ;

[0266] a1,a2,...,a K is the behavior pattern of agent unit i, such as the interaction of process business, the exchange of funds, etc. In the above formula, A1 and A2 are the action spaces of the two agent units (i, j). When the agent unit is in the strategy space S i When actions are taken in the agent, these actions will interact with the actions of other agent units to produce a payment r k These payoffs are determined by the strategy space and the actions of the agent unit. The total payoff is R, and the combination of their payoffs r1 and r2 is recorded as payoff r k , subject to the following constraints:

[0267] ;

[0268] That is, the payment income r k It is determined by the strategy space S, the action space A1 of agent unit i and the action space A2 of agent unit j. For example, for the agent unit i of the purchasing agent and the agent unit j of the financial agent, they will inevitably generate capital flow in the actual business interaction process. This flow is the payment income r k .

[0269] It is understandable that by calculating the state transition probability, the agent unit can more accurately evaluate the consequences of taking a specific action in a given state, thereby improving the accuracy of decision-making. At the same time, the mapping mechanism takes into account the action combination of other agent units, which helps the agent units to work better together to achieve the overall optimal effect. And because the state transition probability is calculated dynamically based on the current state and the actions of other agent units, the model can quickly adapt to changes in the environment and changes in the strategies of other agent units.

[0270] Specifically, step S201, executing the double matrix game mechanism: In the multi-agent model, in order to coordinate and optimize the action strategies of each agent unit, this step S201 proposes to execute the double matrix game mechanism. This mechanism mainly involves two agent units (i, j), which achieve strategic equilibrium through game, and then achieve global optimization. That is, for any two agent units (i, j), the respective transition probability p i (a 1 ) and p j (a 1 ), and the payment income r k , set up a double matrix game, and solve the mixed strategy Nash equilibrium. The expected total reward between agent units (i, j) is calculated by the Q value function, which is based on historical data and their respective updated action strategies. , to update.

[0271] Furthermore, the game process of the double matrix game is composed of two payment matrices A and B as the basis, and its mechanism is:

[0272] 1) Setting and foundation: For any two agent units (i, j), read their respective transition probabilities, i.e., p i (a1) and p j (a1). These transition probabilities reflect the possibility of the agent unit taking different actions in different states, as well as the payment benefits r generated by the agent unit (i, j) when adopting a certain strategy combination. k (This profit is the result of the game between the two parties and is also a measure of the quality of their strategic choices).

[0273] 2) The two payment matrices A and B correspond to the payoffs of the two agent units (i, j) respectively.

[0274] ;

[0275] Among them, assume that agent unit i has M strategies and agent unit j has N strategies; any element A in the payoff matrix A klrepresents the benefit obtained by agent i when agent i chooses strategy k and agent j chooses strategy l; any element B in the payment matrix B kl It represents the benefit obtained by agent unit j when agent unit i chooses strategy k and agent unit j chooses strategy l.

[0276] In theory, we already have the expected payoff r corresponding to different strategy combinations k , so this information can be directly used to solve the mixed strategy Nash equilibrium. Therefore, the mixed strategy Nash equilibrium can be solved by setting the corresponding optimization problem and then using the linear programming method to solve it.

[0277] 3) Game process and Nash equilibrium: Two agent units (i, j) will choose the optimal strategy according to their respective payoff matrices. This is a game process. The goal of the game is to find a strategy combination that prevents both parties from increasing their benefits by unilaterally changing their strategies. This state is called a mixed strategy Nash equilibrium. In this equilibrium state, the strategy choices of both parties are optimal and stable, and neither party has the motivation to change the current strategy, thus ensuring the stability and effectiveness of the audit analysis.

[0278] 4) Expected total reward and Q-value function: The expected total reward between agent units (i, j) is calculated by the Q-value function. This function will be based on historical data and the current updated action strategies of both parties. , And update in real time. The update of Q value function reflects the ability of agent unit to learn strategy and adapt to the environment during the game, and is also the key to achieve the stability of audit analysis effect. The method of using Q value function to calculate the required Q value is:

[0279] First, for each agent unit i, its Q value function can be updated based on historical data and the currently updated action strategy. Let Q ij (s, a) is the number of agent units i and j in s ij The Q value of taking action a. After each iteration, based on the new transition probability and payment benefit, the Q value function can be updated as follows:

[0280] .

[0281] Where: α is the learning rate, which controls the weight of new information. γ is the discount factor, which indicates the degree of discount of future rewards. s' is the new state transferred to after taking action a in state s. a' is the possible action to be taken in the new state s'. is the output of the Q value we need, which refers to the Q value of agent units i and j taking action a in state s at time t+1 (i.e. after the next update). It represents the current Q value of agent units i and j taking action a in state s at time t. (1-α) means retaining part of the current Q value, which reflects our degree of trust in the current Q value, or our unwillingness to completely abandon existing knowledge. It represents the maximum Q value that can be obtained by taking all possible actions a' in the new state s' transferred to. It reflects the agent's prediction of the maximum possible reward in the future. By multiplying it by the discount factor γ, we discount the predicted value of this maximum future reward to the current moment.

[0282] It is understandable that this formula represents the update process of the Q-value function, which combines the current Q-value with the new reward information and the estimated value of the optimal reward that may be obtained in the future. Its update logic is:

[0283] P1. Retain old knowledge: It represents the preservation of the current Q value, that is, the agent unit will not completely forget the previous experience.

[0284] P2. Learn new experiences: It reflects the immediate rewards obtained by the agent unit through actual actions, which is part of the new knowledge.

[0285] P3. Prediction of future returns: It is an estimate of the optimal return that may be obtained in the future. The agent unit will consider which action to take in the current state to obtain the maximum return in the future.

[0286] It is understandable that by continuously updating the Q-value function, the agent unit can gradually learn what actions to take in different states to obtain the greatest long-term returns. This helps to improve the decision-making quality of the agent unit and the accuracy of the audit analysis. And because the Q-value function is updated based on historical data and the currently updated action strategy, it can help the agent unit adapt to the dynamically changing environment. When the corporate environment or audit standards change, the agent unit can quickly adapt to the new environment by updating the Q-value function. And in the multi-agent model, the various agent units achieve collaborative optimization by sharing and updating the Q-value function. The learning experience of an agent unit can indirectly help other agent units improve the quality of decision-making, thereby achieving global optimization (this is more intuitively reflected in the evolutionary game scheme later).

[0287] It is understandable that, based on the technical solution of step S201, through the dual-matrix game, each agent unit can optimize its own choices based on the other party's strategy and achieve collaborative work. This not only improves the efficiency of a single agent, but also improves the performance of the entire system. Moreover, if the mixed strategy Nash equilibrium idea given in this embodiment can be achieved, it is equivalent to the system reaching a stable state, at which time neither party has the motivation to break this balance. This greatly enhances the stability and reliability of the audit analysis. Moreover, the introduction of the Q-value function enables the system to dynamically adjust the calculation method of the expected total reward based on historical data and current strategies, so as to better adapt to the ever-changing environment and needs. This dynamic adaptability is one of the key factors in improving the audit effect.

[0288] Specifically, for step S202, please refer to Figure 5 , execute the evolutionary game mechanism: based on step S201, extend the mechanism of mutual game measurement to the evolutionary game of n agent units i; the purpose of this is to enable each agent unit to dynamically adjust its own strategy according to the current environment and the strategies of other agent units, so as to achieve global optimization and coordination.

[0289] The solution in this step is essentially an evolutionary stable strategy (ESS), which represents a strategy state such that when a small part of other agent units deviate from this state, the agent unit adopting ESS can obtain higher returns than the agent adopting other strategies. The stability of this strategy is defined by a specific inequality, that is, for all non-ESS strategies s i , there exists a positive small number ϵ ˉi , so that for all ˉi For a positive number ϵ, the ESS strategy s i *The returns are always higher than those of non-ESS strategies i The specific form of this inequality is:

[0290] ;

[0291] in, Indicates that agent unit i adopts strategy s i The other agents adopt strategy s -i The income at that time. -i represents the strategy space of all agents except agent unit i. When a small number (ratio ϵ) of other agents deviate from ESS (s -i *) and adopted other strategies (s -i ) when taking ESS (s i *) still has higher returns than those adopting non-ESS strategies (s i )’s agent unit.

[0292] It should be noted that ϵ represents the proportion of individuals who adopt the mutation strategy in the population. It is a small value, such as 0.1, which is used to simulate the small changes or mutations that may occur in actual situations. By considering such small strategy changes, we can evaluate the stability of the mainstream strategy (i.e., ESS) in the face of such changes.

[0293] It is understandable that in order to update the strategies of all agent units over time, an update mechanism needs to be introduced. This update mechanism can be a function based on the historical returns of the agent unit, the learning rate, and other related factors. For example, each agent unit can adjust its own strategy selection probability according to its own returns and the strategies of other agents after each round of the game, thereby achieving gradual optimization of the strategy.

[0294] For details, please refer to Figure 3 , step S203, perform strategy iteration: based on steps S200~S202, combined with the strategy space S of step S1 i , perform policy iteration to update the action policy (i.e., state) of each agent unit i:

[0295] S2030, Initialization: Read each agent unit i and set the initial action strategy s ij , that is, state s ij ;

[0296] S2031, iterative process: In each time step of the total m time steps, let agent unit i act according to the current action strategy s ij (t m ) Select an action, observe the result and update the Q value;

[0297] That is, after taking an action, agent unit i observes the result of the environmental feedback and updates its Q value based on this result. This Q value represents the expected return of taking a certain strategy in a given state;

[0298] S2032, strategy update: based on the new Q value, update the state s of agent unit i ij ';

[0299] Strategies with higher Q values ​​are selected because they lead to higher returns in the long run. The updated strategy becomes the new state s ij ', this state will be used for decision making in the next time step;

[0300] S2033, convergence judgment: stop iteration when the strategy is stable or reaches the preset number of iterations.

[0301] It is understandable that through the iterative process, the agent unit can gradually learn the optimal action strategy in a given state. This optimization is based on the actual feedback results, so it can adapt well to changes and uncertainties in the environment. Moreover, in the multi-agent model, the agent units can optimize the global strategy by sharing information (such as Q value) and co-evolution. This co-evolution helps to improve the performance and stability of the entire system. And because the policy iteration is based on actual feedback, the method has strong adaptability. Whether in a static or dynamic environment, the agent unit can gradually adapt and find the optimal strategy through the iterative process.

[0302] Furthermore, the C++ execution program of the overall technical solution of step S2 is as follows:

[0303] #include

[0304] #include

[0305] #include

[0306] #include

[0307] / / State and action enumeration

[0308] enum class State { S1, S2};

[0309] enum class Action { A1, A2};

[0310] / / Payoff matrix class, used to represent double matrix games

[0311] class PayoffMatrix {

[0312] public:

[0313] double getPayoff(Action playerAction, Action opponentAction) const{

[0314] return payoffs[static_cast

[0315] }

[0316] void setPayoff(Action playerAction, Action opponentAction, doublepayoff) {

[0317] payoffs[static_cast

[0318] }

[0319] private:

[0320] double payoffs[2][2]; / / Action

[0321] };

[0322] / / Agent unit class

[0323] class Agent {

[0324] public:

[0325] Agent(State initialState) : currentState(initialState) {}

[0326] / / Mapping mechanism: calculate state transition probability

[0327] double getStateTransitionProbability(Action action) const {

[0328] return 0.68; / / Current output value

[0329] }

[0330] / / Select actions based on Q value and state transition probability

[0331] Action chooseAction(const std::map

[0332] double totalProbability = 0.0;

[0333] std::map

[0334] for (const auto&action : {Action::A1, Action::A2}) {

[0335] double p = getStateTransitionProbability(action);

[0336] totalProbability += p;

[0337] probabilities[action] = p;

[0338] }

[0339] / / Choose actions based on probability

[0340] double randVal = (static_cast

[0341] double cumulativeProbability = 0.0;

[0342] for (const auto&kvp : probabilities) {

[0343] cumulativeProbability += kvp.second;

[0344] if (randVal<= cumulativeProbability) {

[0345] return kvp.first;

[0346] }

[0347] }

[0348] return Action::A1; / / default value

[0349] }

[0350] / / Update status

[0351] void updateState(const Action&action) {

[0352] / / Update the state based on the selected action

[0353] currentState = (currentState == State::S1) ? State::S2 : State::S1;

[0354] }

[0355] State getCurrentState() const { return currentState;}

[0356] private:

[0357] State currentState;

[0358] };

[0359] / / Q value function class

[0360] class QValueFunction {

[0361] public:

[0362] double getQValue(const Agent&agent, Action action, constPayoffMatrix&payoffMatrix, const Agent&opponent) const {

[0363] / / Calculate Q value

[0364] Action opponentAction = opponent.chooseAction({});

[0365] double payoff = payoffMatrix.getPayoff(action, opponentAction);

[0366] return payoff;

[0367] }

[0368] };

[0369] / / Dynamic update mechanism of replicator (need to read the program class of embodiment 4)

[0370] extern void replicatorDynamicsUpdate(std::vector

[0371] int main() {

[0372] / / Initialize the agent and two payment matrices

[0373] Agent agent1(State::S1), agent2(State::S1);

[0374] PayoffMatrix payoffMatrix1, payoffMatrix2;

[0375] / / Set the value of the payment matrix

[0376] payoffMatrix1.setPayoff(Action::A1, Action::A1, 3);

[0377] QValueFunction qValueFunction;

[0378] / / Strategy iteration process

[0379] for (int iteration = 0; iteration<100; ++iteration) { / / Default iteration is 100 times (adjustable)

[0380] / / Double matrix game and Q value calculation

[0381] double qValue1 = qValueFunction.getQValue(agent1,agent1.chooseAction({}), payoffMatrix1, agent2);

[0382] double qValue2 = qValueFunction.getQValue(agent2,agent2.chooseAction({}), payoffMatrix2, agent1);

[0383] / / Update status

[0384] agent1.updateState(agent1.chooseAction({})); / / Need to use Q value to choose action

[0385] agent2.updateState(agent2.chooseAction({})); / / Need to use Q value to choose action

[0386] / / Execute the replica dynamic update mechanism

[0387] replicatorDynamicsUpdate({agent1, agent2}, qValueFunction,payoffMatrix1); / / Update using payoffMatrix1

[0388] / / Q value update function

[0389] void updateQValues(std::map

[0390] double oldQValue = qValues[previousAction];

[0391] qValues[previousAction] = oldQValue + learningRate * (reward -oldQValue);

[0392] }

[0393] / / Initialize the random number generator

[0394] std::srand(static_cast

[0395] / / Initialize the agent and two payment matrices

[0396] Agent agent1(State::S1), agent2(State::S1);

[0397] PayoffMatrix payoffMatrix1, payoffMatrix2;

[0398] QValueFunction qValueFunction;

[0399] const double learningRate = 0.1; / / Learning rate, used for Q value update

[0400] / / Initialize the Q value table for each agent

[0401] std::map

[0402] qValuesAgent1[Action::A1] = 0.0;

[0403] qValuesAgent1[Action::A2] = 0.0;

[0404] qValuesAgent2[Action::A1] = 0.0;

[0405] qValuesAgent2[Action::A2] = 0.0;

[0406] / / The agent chooses an action based on the current Q value and strategy

[0407] Action actionAgent1 = agent1.chooseAction(qValuesAgent1);

[0408] Action actionAgent2 = agent2.chooseAction(qValuesAgent2);

[0409] / / Calculate the reward based on the double matrix game

[0410] double rewardAgent1 = payoffMatrix1.getPayoff(actionAgent1,actionAgent2);

[0411] double rewardAgent2 = payoffMatrix2.getPayoff(actionAgent2,actionAgent1);

[0412] / / Update Q value

[0413] updateQValues(qValuesAgent1, rewardAgent1, actionAgent1, learningRate);

[0414] updateQValues(qValuesAgent2, rewardAgent2, actionAgent2, learningRate);

[0415] / / The agent updates its state based on the selected action

[0416] agent1.updateState(actionAgent1);

[0417] agent2.updateState(actionAgent2);

[0418] / / Output or record current state and Q value information

[0419] std::cout<<"Iteration"< <iteration<<":"<<std::endl;

[0420] std::cout<<" Agent 1 State:"< <static_cast

[0421] <<", Action:"< <static_cast

[0422] <<", Q(A1):"< <qValuesAgent1[Action::A1]

[0423] <<", Q(A2):"< <qValuesAgent1[Action::A2]

[0424] <<", Reward:"< <rewardAgent1<<std::endl;

[0425] std::cout<<" Agent 2 State:"< <static_cast

[0426] <<", Action:"< <static_cast

[0427] <<", Q(A1):"< <qValuesAgent2[Action::A1]

[0428] <<", Q(A2):"< <qValuesAgent2[Action::A2]

[0429] <<", Reward:"< <rewardAgent2<<std::endl;

[0430] }

[0431] return 0;

[0432] }

[0433] In the above program, the replicatorDynamicsUpdate function is an externally provided replicator dynamics update mechanism, which updates the agent's strategy and state based on the provided agent array, Q-value function, and payment matrix. The chooseAction method selects an action based on the Q-value and the ε-greedy strategy. The Q-value is updated using the Q-learning update rule through the updateQValues ​​function. The reward is used to adjust the Q-value. In addition, we initialize a Q-value table for each agent and update these Q-values ​​in each iteration based on the agent's actions and rewards.

[0434] In this embodiment, regarding step S3, data monitoring and early warning: use the data monitoring matrix D to clarify the data monitoring responsibilities of each agent unit i to ensure that the key performance indicators KPIs are effectively covered; set an early warning threshold T for each data type. j . Warning thresholds can be adjusted dynamically based on historical data or business rules.

[0435] Specifically, the data monitoring matrix D is a binary matrix, any element D ijis the data value that triggers the warning, and its activation mechanism is:

[0436] ;

[0437] Through this matrix, the monitoring responsibilities of each agent unit can be clearly defined and ensure that all KPIs are effectively covered.

[0438] For each data type (or KPIs), an alert threshold T can be set. j This threshold can be determined based on the statistical value of historical data (such as mean, median, standard deviation, etc.) or based on the business rules of the enterprise. For example, for a certain KPI, the business rule requires that an alert be triggered when its value exceeds a certain level.

[0439] It is understandable that the warning threshold T j It can also be adjusted dynamically to reflect changes in the business environment or new business needs. This can also be achieved by recalculating thresholds regularly or based on real-time data feedback.

[0440] In this embodiment, regarding step S4, a data cross-validation mechanism is performed: based on the key performance indicators KPIs, the state s of the agent unit i updated in step S2033 is executed using the cross-validation matrix C. ij 'Verification process in case of abnormalities. Ensuring the accuracy and consistency of data is achieved through cross-validation between each agent unit i;

[0441] The cross validation matrix C is a matrix used to determine which agent units will participate in validating the data of other units. The cross validation matrix C is an n*n matrix used to determine which agent units will participate in validating the data of other units. In this matrix, the element c kl Indicates whether the kth agent unit verifies the data of the lth agent unit. kl If it is 1, it means that the kth agent unit will verify the data of the lth agent; if it is 0, it means no verification. The diagonal elements of the matrix are set to 0, which is equivalent to each agent unit not verifying its own data, thereby ensuring the objectivity and fairness of the verification.

[0442] ;

[0443] Specifically, the steps of the cross-validation mechanism are:

[0444] S400, data submission: Each agent unit i updates its state s ij'After that, determine which agent units will participate in the cross-validation of the data according to the cross-validation matrix C. For each agent unit i, find the i-th column of the matrix C and find the agent unit k corresponding to all elements with a value of 1, that is, c kl = 1;

[0445] S401, data verification: each selected agent unit k will receive the data submitted by agent unit i and verify it according to the key performance indicators KPIs; this step ensures the accuracy and consistency of the data because multiple agent units will independently verify the same data;

[0446] S402, verification result feedback: After completing the verification, each agent unit k participating in the verification will submit its verification result. If the data is accurate, then the state s ij ' will be accepted; otherwise, determine whether the data exceeds the warning threshold T j If it exceeds, the process goes to step S5; if it does not exceed, the process goes to step S403 to trigger further investigation or correction process.

[0447] S403, exception handling: notify the relevant agent unit i to conduct further data review or take other necessary corrective measures.

[0448] It should be pointed out that the "cross-validation" in this step is not the "cross-validation method" in traditional supervised learning or regression task models. The cross-validation method refers to taking out most of the samples from a given modeling sample to build a model, leaving a small number of samples to use the newly built model for prediction, and calculating the prediction error of this small number of samples, recording their square sum, which is mainly used for training models. The "cross-validation" in this solution refers to the state s ij 'The cross-evaluation and judgment by multiple agent units. The "cross-validation" in this step can more effectively identify and correct errors or inconsistencies in the data through independent verification by multiple agent units, thereby improving the overall data quality. In addition, the cross-validation mechanism increases the transparency and credibility of data processing, because the data of each agent unit will be supervised and verified by other units. At the same time, when the data is abnormal, the cross-validation mechanism can quickly discover and trigger the corresponding early warning and processing process, which helps enterprises to respond to potential risks and problems in a timely manner.

[0449] In this embodiment, regarding step S5, monitoring and feedback loop: continuously collect and update data through real-time monitoring data monitoring matrix D. When the data exceeds the warning threshold T j Output audit report to determine which agent units i are in which state s ij 'There are abnormal records below. Including:

[0450] S500, generate audit report ch: for the status of triggering warning s ij 'List all exception records:

[0451]

[0452] Where k is the maximum index of abnormal records;

[0453] Each exception record r d Represented as a triple:

[0454]

[0455] Where I represents the index of the corresponding agent unit i, and J represents the state s ij ' (or KPIs) identification, D ij It is the data value that triggers the early warning, that is, an element of the data monitoring matrix D.

[0456] S501, feedback loop: After the audit report ch is generated, the corresponding agent unit i is notified to make necessary adjustments and optimizations according to the results in the report. After the adjustment is completed, it returns to the cross-validation stage (i.e., step S4) to perform data cross-validation on the adjusted agent unit. This process forms a continuous monitoring and feedback loop, which can ensure the stability and continuous optimization of the entire audit analysis system.

[0457] Furthermore, the C++ execution program of the above steps S3 to S5 is as follows:

[0458] #include

[0459] #include

[0460] #include

[0461] / / N agent units and M KPIs

[0462] const int N = 5; / / Number of agent units

[0463] const int M = 3; / / Number of KPIs

[0464] / / Cross validation matrix C

[0465] std::vector

[0466] {0, 1, 0, 1, 0},

[0467] {1, 0, 1, 0, 1},

[0468] {0, 1, 0, 1, 0},

[0469] {1, 0, 1, 0, 1},

[0470] {0, 1, 0, 1, 0}

[0471] };

[0472] / / Data monitoring matrix D

[0473] std::vector

[0474] {1.2, 2.3, 3.4},

[0475] {2.3, 3.4, 4.5},

[0476] {3.4, 4.5, 5.6},

[0477] {4.5, 5.6, 6.7},

[0478] {5.6, 6.7, 7.8}

[0479] };

[0480] / / Set the warning threshold Tj

[0481] std::vector

[0482] / / S3: Update agent status (here simplified to use the value of D)

[0483] / / S4: Perform data cross validation

[0484] void crossValidation(int i, const std::vector

[0485] std::vector

[0486] for (int k = 0; k <N; ++k) {

[0487] if (C[k][i]== 1) {

[0488] validators.push_back(k);

[0489] }

[0490] }

[0491] for (int validator : validators) {

[0492] std::cout<<"Agent"< <validator<<" is validatingdata for Agent"<<i<<std::endl;

[0493] / / Check if the threshold is exceeded.

[0494] for (int j = 0; j <M; ++j) {

[0495] if (s_ij_prime[j]>Tj[j]) {

[0496] std::cout<<"Warning: Data for KPI"< <j<<" ofAgent"<<i<<" is above the threshold."<<std::endl;

[0497] }

[0498] }

[0499] }

[0500] }

[0501] / / S5: Monitoring and feedback loop

[0502] void monitorAndFeedback() {

[0503] for (int i = 0; i <N; ++i) {

[0504] for (int j = 0; j <M; ++j) {

[0505] if (D[i][j]>Tj[j]) {

[0506] std::cout<<"Generating audit report for Agent"< <i<<" and KPI"<<j<<std::endl;

[0507] / / Print the audit report.

[0508] / / The feedback loop part will notify the corresponding agent unit to make adjustments and optimizations.

[0509] }

[0510] }

[0511] }

[0512] }

[0513] int main() {

[0514] / / S4: Perform data cross-validation on each agent unit

[0515] for (int i = 0; i <N; ++i) {

[0516] crossValidation(i, D[i]);

[0517] }

[0518] / / S5: Execution monitoring and feedback loop

[0519] monitorAndFeedback();

[0520] return 0;

[0521] }

[0522] In the above program, the cross-validation matrix C defines which agent units will verify the data of other units. In C, c_kl = 1 means that the kth agent unit verifies the data of the lth agent unit. The data monitoring matrix D stores the data values ​​of each agent unit for each KPI. In actual applications, these data may be obtained through a real-time monitoring system. The warning threshold Tj sets a threshold for each KPI, and when the data exceeds this threshold, an alert is triggered. The crossValidation function performs the data cross-validation process. For each agent unit i, the function looks up the cross-validation matrix C to determine which other agent units will verify its data. Then, it simulates the verification process to check whether the data exceeds the warning threshold. In addition, the monitorAndFeedback function performs a monitoring and feedback loop. It traverses the data monitoring matrix D and compares it with the warning threshold Tj. If the data exceeds the threshold, an audit report is generated (here, a message is printed). In actual applications, more complex logic can be further added to notify and adjust the corresponding agent units, such as notifying the agent units of the business intelligence body to verify their financial statement information.

[0523] Embodiment 2: Based on Embodiment 1, this embodiment further provides a function solution of the accuracy factor A and the efficiency factor E;

[0524] In this embodiment, the function F of the accuracy factor A is:

[0525] A = F(ar) = time' / time;

[0526] Where ar is the accuracy, time and time' are the total number of decisions and the number of correct decisions, respectively. If the decision is completely accurate, that is, the accuracy is 1, then A will also be 1. If the decision is wrong, the accuracy will be less than 1, resulting in a decrease in the value of A. This definition can intuitively reflect the decision accuracy of agent unit i.

[0527] In practical applications, the accuracy rate can be calculated by comparing the agent's decision with the actual situation or standard answer. For example, in audit analysis, the accuracy rate can be determined by comparing the difference between the agent's analysis results and the actual financial data or business data.

[0528] In this embodiment, the efficiency factor E can be defined as a function g of the time required for agent unit i to complete a decision:

[0529] ;

[0530] Among them, T r is the time required for agent unit i to actually complete the decision, T min is the shortest time required to complete the decision in theory, and T max is the maximum acceptable decision time.

[0531] If the agent can make a decision in the shortest possible time, E will be 1, indicating high efficiency. If the decision time exceeds the maximum acceptable time, E will be 0, indicating low efficiency. min <T r

[0532] This definition can motivate agents to make decisions as quickly as possible while maintaining the quality of the decisions. In practical applications, T can be adjusted according to specific circumstances. min and T max value to suit different audit business needs and standards.

[0533] Embodiment 3: Based on Embodiment 1, this embodiment further provides a technical solution for the optimization problem and linear programming method required by the dual-matrix game mechanism in step S201 of Embodiment 1.

[0534] As described in Example 1, the two payment matrices A and B correspond to the benefits of the two agent units (i, j) respectively. In theory, we already have the expected payment benefits r corresponding to different strategy combinations. k , so this information can be directly used to solve the mixed strategy Nash equilibrium. Therefore, the technical solution of this embodiment is to solve the mixed strategy Nash equilibrium by setting a corresponding optimization problem, and then use the linear programming method to solve it.

[0535] In this embodiment, the optimization problem is set as follows: for agent i, its mixed strategy can be expressed as a probability vector x, and for agent j, its mixed strategy can be expressed as a probability vector y. The mixed strategy Nash equilibrium (x^, y^) can be solved by the following optimization problem:

[0536] 1) For agent unit i, its goal is to find a mixed strategy x (expressed as a probability vector) to maximize its worst-case payoff. It is expressed by the following optimization problem:

[0537] ;

[0538] These constraints ensure that x is a valid probability distribution. Its goal is to find a strategy distribution (mixed strategy x) that maximizes its own benefits, assuming that the opponent (agent unit j) will adopt the most unfavorable strategy for it (that is, minimize its benefits). This is actually seeking a conservative optimal strategy that can guarantee a certain benefit even in the worst case.

[0539] 2) Similarly, for agent unit j, the required optimization problem is:

[0540] ;

[0541] Its goal is similar to that of agent unit i, which is to try to find an optimal mixed strategy y to maximize its own benefits when the opponent (agent unit i) adopts the most unfavorable strategy.

[0542] It can be understood that these two optimization problems together constitute a double matrix game, in which each agent is trying to find a strategy to maximize its own benefits when confronting the opponent's most disadvantageous behavior. In essence, it reflects the idea of ​​zero-sum or constant-sum game in game theory, that is, an increase in the benefits of one party usually leads to a decrease in the benefits of the other party, and the total benefits remain unchanged.

[0543] In the above two formulas, T is the strategy matrix of the first embodiment, and represents any element in the strategy matrix, indicating that any agent unit i takes an action strategy s on another agent unit j. ij tendency.

[0544] The above optimization problem can be solved by a linear programming algorithm. This embodiment provides a C++ program to achieve the solution, in which an external mathematical library GLPK (GNU Linear Programming Kit) is introduced; and the program shows the solution to the optimization problem of agent unit i, and the application logic of the other agent units is the same:

[0545] #include

[0546] #include

[0547] int main() {

[0548] glp_prob *lp;

[0549] int ia[1+S_i], ja[A_NZ], *col, *row;

[0550] double ar[A_NZ], *val, z, x_opt[1+S_i];

[0551] GLP_CC *cut;

[0552] / / Initialize GLPK problem

[0553] lp = glp_create_prob();

[0554] glp_set_prob_name(lp,"Agent_i_Optimization");

[0555] glp_set_obj_dir(lp, GLP_MAX); / / Set the target to maximize

[0556] / / Define decision variables (mixed strategy of agent i)

[0557] for (int s = 1; s<= S_i; s++) {

[0558] glp_add_col(lp, 0, NULL, NULL, GLP_CV_CONT, 0, 1, 0);

[0559] glp_set_col_name(lp, s,"x_s");

[0560] }

[0561] / / Add constraints (probability sum is 1)

[0562] col = new int[S_i+1];

[0563] val = new double[S_i+1];

[0564] for (int s = 1; s<= S_i; s++) {

[0565] col[s] = s;

[0566] val[s] = 1.0;

[0567] }

[0568] glp_add_rows(lp, 1);

[0569] glp_set_row_bnds(lp, 1, GLP_FX, 1.0, 1.0);

[0570] glp_load_matrix(lp, S_i+1, col, val);

[0571] delete[] col;

[0572] delete[] val;

[0573] / / Set the objective function coefficient (needs to be calculated based on the specific payment matrix A and the strategy y of agent unit j)

[0574] / / The strategy y_opt of agent unit j can be defined through the actual company business planning

[0575] double obj_coef[1+S_i];

[0576] for (int s = 1; s<= S_i; s++) {

[0577] / / Calculate the objective function coefficients

[0578] obj_coef[s] = / * Calculate based on payment matrix A and y_opt* / ;

[0579] }

[0580] glp_set_obj_coef(lp, obj_coef);

[0581] / / Solve the linear programming problem

[0582] int ret = glp_simplex(lp, NULL);

[0583] / / Get the solution

[0584] if (ret == 0) {

[0585] z = glp_mip_obj_val(lp);

[0586] for (int s = 1; s<= S_i; s++) {

[0587] x_opt[s] = glp_mip_col_val(lp, s);

[0588] }

[0589] std::cout<<"Optimal solution found: z ="<<z<<std::endl;

[0590] std::cout<<"Optimal strategy for agent i:";

[0591] for (int s = 1; s<= S_i; s++) {

[0592] std::cout<<"x_"<<s<<" ="<<x_opt[s]<<"";

[0593] }

[0594] std::cout<<std::endl;

[0595] } else {

[0596] std::cout<<"No optimal solution found"<<std::endl;

[0597] }

[0598] return 0;

[0599] }

[0600] In the above program, GLPK's simplex method (glp_simplex) is used to solve this linear programming problem. The above program first creates a GLPK problem instance and sets its name and objective to maximize (because we are solving \max_{x} \min_{y} x \cdot A \cdot y^T). Then, we define a continuous variable x_s for each strategy s of agent i, which represents the probability of choosing each strategy. Then we add a constraint that the sum of all x_s variables must be equal to 1, which ensures the validity of the probability distribution. The coefficients of the objective function need to be calculated based on the specific payment matrix A and the opponent's strategy y. Because this technical solution is applied to the internal environment of an enterprise, and the business interactions between departments are transparent and constrained, it is not as difficult to predict as traditional game theory, and can actually be set directly. Then, the simplex method of GLPK is used to solve this linear programming problem. After finding the optimal solution, extract the optimal strategy x_opt and the objective function value z and print them out.

[0601] It is understandable that in the technical solution of this embodiment, by solving the mixed strategy Nash equilibrium, it can be ensured that the agent unit reaches an equilibrium state when selecting a strategy, in which no party can increase its benefits by unilaterally changing the strategy. This helps to ensure the stability and rationality of strategy selection during the audit analysis process. Moreover, in the multi-agent model, each agent unit reaches equilibrium through game theory, which is actually a collaborative optimization process. While considering its own benefits, each agent unit also indirectly promotes the optimization of the entire system. This collaborative optimization helps to improve the accuracy and efficiency of audit analysis. At the same time, the use of mixed strategies enables the agent unit to flexibly adjust its own strategy distribution according to the opponent's strategy, so as to better adapt to the dynamically changing environment. This has important guiding significance for handling complex and changeable enterprise audit analysis tasks.

[0602] Embodiment 4: Based on Embodiment 1, this embodiment further provides an update mechanism in step S202, so that the strategies of all agent units can be updated over time:

[0603] The update mechanism selected in this embodiment is Replicator Dynamics, which is a mathematical model that simulates the process of natural selection and genetic replication and is used to describe the evolution of strategies in a population. In Replicator Dynamics, the growth rate of a strategy is proportional to its relative adaptability, that is, the rate at which the proportion of a strategy in a population increases is related to its degree of advantage over other strategies.

[0604] In this embodiment, the relative adaptability of the strategy determines its growth rate. Then for agent unit i, a replica dynamic update function is proposed to express the dynamic s i The growth rate of the replica is:

[0605] ;

[0606] Among them, p(a i ) is the transition probability calculated in step S200, is the agent unit i’s decision based on other agents’ strategies s −i The average income under . Indicates that agent unit i adopts strategy s i and the other agents adopt strategy s -i The income at that time. Indicates that agent unit i adopts strategy s i The growth rate can be positive or negative. A positive value indicates that the proportion of the strategy in the population is increasing, while a negative value indicates that the proportion is decreasing.

[0607] By comparison and , we can know the strategy s i Relative to other strategies. If , then strategy s i In the current environment, it has high adaptability, and its proportion should be increased; otherwise, it should be reduced. The C++ execution program of the above method is:

[0608] #include

[0609] #include

[0610] / / Define the strategy profit function

[0611] double utility(char strategy, char opponent_strategy) {

[0612] / / Matrix

[0613] if (strategy =='A'&&opponent_strategy =='A') return 3;

[0614] if (strategy =='A'&&opponent_strategy =='B') return 1;

[0615] if (strategy =='B'&&opponent_strategy =='A') return 5;

[0616] if (strategy =='B'&&opponent_strategy =='B') return 2;

[0617] return 0; / / returns 0 by default

[0618] }

[0619] / / Define the replica dynamic update function

[0620] void replicatorDynamics(std::vector

[0621] double total_utility = 0;

[0622] std::vector

[0623] / / Calculate the profit of each strategy

[0624] for (size_t i = 0; i <strategies.size(); ++i) {

[0625] double agent_utility = 0;

[0626] for (char opponent_strategy : opponent_strategies) {

[0627] agent_utility += utility(strategies[i], opponent_strategy);

[0628] }

[0629] utilities[i] = agent_utility / opponent_strategies.size();

[0630] total_utility += population[i] * utilities[i];

[0631] }

[0632] / / Update population ratio

[0633] double average_utility = total_utility / std::accumulate(population.begin(), population.end(), 0.0);

[0634] for (size_t i = 0; i <population.size(); ++i) {

[0635] population[i] *= utilities[i]- average_utility;

[0636] }

[0637] / / Normalization

[0638] double sum = std::accumulate(population.begin(), population.end(), 0.0);

[0639] for (size_t i = 0; i <population.size(); ++i) {

[0640] population[i] / = sum;

[0641] }

[0642] }

[0643] int main() {

[0644] std::vector

[0645] std::vector

[0646] std::vector

[0647] / / Perform a round of replica dynamic update

[0648] replicatorDynamics(population, strategies, opponent_strategies);

[0649] / / Output the updated strategy ratio

[0650] for (size_t i = 0; i <population.size(); ++i) {

[0651] std::cout<<"Strategy"< <strategies[i]<<":"<<population[i]<<std::endl;

[0652] }

[0653] return 0;

[0654] }

[0655] In the above program, a utility function is first defined to calculate the payoff of a given strategy against the opponent's strategy. The replicatorDynamics function implements the core logic of replicator dynamics. It first calculates the average payoff of each strategy, and then updates the proportion of the strategy in the population based on these payoffs. The update formula is based on the growth rate formula of replicator dynamics, where the relative adaptability of the strategy (i.e., the difference between its payoff and the average payoff of the population) determines its growth rate. After updating the strategy proportions, normalization is performed to ensure that the sum of the proportions of all strategies is 1 to maintain the rationality of the population proportions. In the main function, the proportions of the two strategies, the strategy types, and the opponent's strategy types are initialized. Then the replicatorDynamics function is called to perform a round of replicator dynamics update and output the updated strategy proportions. This proportion reflects the relative proportions of various strategies in the population after a round of game.

[0656] In this embodiment, based on the multiplayer game environment, the Q value function can be updated in a similar manner to the dual matrix game. For each agent unit i, its Q value function can be updated based on historical data and the current strategy profile. This formula is roughly the same as the Q value function in step S201:

[0657] ;

[0658] in, It represents the Q value of agent unit i taking action a in state s at time t+1. is the Q value at the previous moment. α is the learning rate, which is used to control the weight of new information. is the immediate benefit when agent unit i takes action a in state s. γ is a discount factor used to weigh the importance of immediate benefits and future benefits. It represents the maximum Q value that can be obtained in the next state s', that is, the maximum possible benefit in the future.

[0659] Through this update formula, agent unit i is able to continuously update its Q-value function based on historical data and current policy profile, thereby more accurately evaluating the expected returns of different actions in different states.

[0660] It can be understood that through the continuous updating of the strategy proportion and Q-value function by the replica dynamics, the agent unit can more accurately evaluate the adaptability of different strategies in the current environment and the expected returns of different actions. This helps the agent unit make more informed decisions, thereby improving the accuracy of strategy selection. And because all agent units follow the same update mechanism and share information (such as strategy profiles and Q-value functions), they can learn from each other and co-evolve during the game. This helps the entire system reach a better state and achieve collaborative optimization. At the same time, the combined use of replica dynamics and Q-value function updates helps the system reach a dynamic equilibrium state. When the adaptability of a strategy or action decreases, its proportion or Q-value will decrease accordingly; and vice versa. This adaptive adjustment mechanism helps the system maintain stability in the face of changes.

[0661] All the above embodiments only express the implementation methods of the relevant practical applications of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. The audit analysis method based on the multi-agent model is characterized by: The steps include: S1, read the multi-agent model: including the information exchange and collaboration mechanism between all agent units i, and determine the goals and processes of the audit business; S2, mapping of state transition probability: For each agent unit i, according to its historical action combination and current state, map out its corresponding state transition probability p(a i ) to reflect the probability of choosing different actions in a given state; and perform mutual game calculation on any two agent units (i, j), and perform strategy iteration to update the state s of any of the agent units i ij '; In S2, the mapping, the mutual game calculation and the strategy iteration are respectively implemented through the following steps: S200, calculating the agent unit i to take action a i The state transition probability p(a i ): ; Among them, S i ' is any of the agent units i taking the action a i The new state transferred to after that; function f is used to calculate the current strategy space S i In the state ij When any of the agent units i takes action a i And the other agent units take action combination a -i When the strategy space S i The update probability of A i is the action space of the agent unit i; P is the probability; S201, the mutual game calculation is realized through the double matrix game: for any two agent units (i, j), their respective transition probabilities p i (a1) and p j (a1), and the payment income r generated by them k , set up a double matrix game and solve the mixed strategy Nash equilibrium; The expected total reward between the agent units (i, j) is calculated by the Q-value function, which is based on historical data and their respective updated action strategies. , Make updates; At the same time, based on S201, the mechanism of mutual game measurement is extended to the evolutionary game of n agent units i, so that any agent unit i can dynamically adjust its own strategy according to the environment and the strategies of other agent units j; In S201, the execution methods of the dual matrix game and the method of solving the mixed strategy Nash equilibrium are respectively: The game process of the dual-matrix game is composed of two payment matrices A and B as the basis, which correspond to the benefits of the two agent units (i, j) respectively: ; Among them, the agent unit i has M strategies, the agent unit j has N strategies; any element A in the payment matrix A kl represents the benefit obtained by agent i when agent i selects strategy k and agent j selects strategy l; any element B in the payment matrix B kl represents the benefit obtained by agent unit j when agent unit i selects strategy k and agent unit j selects strategy l; The mixed strategy Nash equilibrium is solved by a linear programming method; The updating method is: S203, perform policy iteration to update the state s of each agent unit i ij ': S2030, initialization: read each agent unit i and set the initial action strategy s ij , that is, state s ij ; S2031, iterative process: In each time step of the total m time steps, let the agent unit i be based on the current action strategy s ij (t m ) Select an action, observe the result and update the Q-value function; S2032, strategy update: based on the new Q value function, update the state s ij '; S3, data monitoring and early warning: Use the data monitoring matrix D to clarify the data monitoring responsibilities of each agent unit i, so that the key performance indicators KPIs are effectively covered, and read the early warning threshold T set for each data type j ; S4, execute data cross-validation mechanism: based on the key performance indicators KPIs, use the cross-validation matrix C to execute the state s ij 'Verification process in case of exception; S5, monitoring and feedback loop: determine which agent units i are in which state s through the data monitoring matrix D. ij 'There are abnormal records and output audit reports.

2. The audit analysis method according to claim 1, characterized in that: In S1, the agent unit i, and the information exchange and collaboration mechanism are implemented respectively through the following two steps: S100, the agent unit i represents different intelligent entities in the enterprise, and each agent unit i has its own strategy space S corresponding to its audit business i and the payment function u i : ; ; Among them, s ij represents the j-th action strategy, i.e., state, of any agent unit i in a total number of n; where S1, S2, ..., S n is the strategy space of all agent units i, and the output of the function represents the benefit of the agent unit i after selecting a specific strategy combination; the symbol * in the formula represents the Cartesian product operation, and the symbol → represents the mapping operation; R is the value range of the payment function; S101, set how any agent unit i should act according to the information exchange, cooperation mechanism and other agent units j’s action strategy s ij , and update its action strategy s by the information exchange matrix C ij : ; Any element c in this matrix ij Represents the importance of the message received by any of the agent units i from another of the agent units j.

3. The audit analysis method according to claim 2, characterized in that: In S101, the agent unit i updates its own state s according to the strategies of other agent units j and the information exchange matrix C. ij for , and its update rule is: ; in, is the jth action strategy of any agent unit k at time step t, i.e., state, c ik is the importance corresponding to the information exchange matrix C; at time step t+1, the new strategy of the agent unit i to the agent unit j is the weighted average of the current strategies of all other agent units k to the agent unit j, T ik is the weight.

4. The audit analysis method according to claim 1, characterized in that: In S3, the data monitoring matrix D is a binary matrix, any element D ij is the data value that triggers the warning, and its activation mechanism is: ; The warning threshold T j It is set based on the corresponding data type or the average, median or standard deviation of the statistical value of the key performance indicators KPIs.

5. The audit analysis method according to claim 4, characterized in that: In S4, the cross-validation matrix C is a matrix used to determine which of the agent units i will participate in validating other unit data: ; Any element c in the matrix except the diagonal kl Indicates whether the kth agent unit verifies the data of the lth agent unit; The steps of the cross-validation mechanism are: S400, data submission: for each agent unit i, search the i-th column of the cross-validation matrix C, and find the agent unit k corresponding to all elements whose value is 1; S401, data verification: each selected agent unit k will receive the data submitted by the agent unit i and verify it according to the key performance indicators KPIs; S402, verification result feedback: If the verification is accurate, then the state s ij 'will be accepted; Otherwise, determine whether the data exceeds the warning threshold T j If it exceeds, the process of S5 is entered; If not, proceed to S403; S403, exception handling: notifying the relevant agent unit i to conduct further data review.

6. The audit analysis method according to claim 5, characterized in that: In S5, the generation of the audit report and the feedback loop are achieved through the following two steps: S500, the audit report ch includes the status s that triggers the early warning ij 'List all exception records: ; Where k is the maximum index of abnormal records; Any abnormal record r d Represented as a triple: ; Where I represents the index of the corresponding agent unit i, and J represents the state s ij 'Identifier or index; S501, feedback loop: return to S4 to form a continuous monitoring and feedback loop.

7. The audit analysis data platform based on the multi-agent model is characterized by: The data middle station includes a processor and a register connected to the processor, wherein the register stores program instructions, and when the program instructions are executed by the processor, the processor executes the audit analysis method as described in any one of claims 1-6.