Modeling method and device based on big data auditing

Through the big data audit modeling method, audit business data is obtained and processed, and machine learning operators are combined for prediction, which solves the problem of difficulty in quickly building models in complex audit environments with existing technology, and achieves the visualization and timeliness of audit models. This ensures timely detection of audit risks and privacy security.

CN118709404APending Publication Date: 2024-09-27XIAMEN MEIYA YIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410828051.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing modeling technology is difficult to quickly build models in complex audit environments, cannot detect audit risks in a timely manner, and lacks timeliness and privacy security guarantees.

Method used

Adopting an audit modeling method based on big data, by obtaining audit business database information, filtering and aggregating data, and combining machine learning operators for prediction, it achieves visual modeling and process-based processing, simplifies operator packaging, and supports mathematical and machine learning calculations. Sub-association modeling to meet audit needs.

Benefits of technology

It realizes visual modeling of auditors, reduces technical costs, improves the timeliness and security of the model, and can quickly respond to complex audit business needs and detect risks in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709404A
    Figure CN118709404A
Patent Text Reader

Abstract

The invention discloses a modeling method and device based on big data auditing, and the method comprises the steps: obtaining database information of an auditing service, collecting user order data from a database, carrying out the filtering and aggregation, carrying out the corresponding service matching with the collected user data, and inputting the matched data into a service model, the service model generates service model output nodes according to specific service matching; filtering the collected payment detail data, and connecting, aggregating and sequencing the payment detail data with the service model output node to generate an output node; and carrying out machine learning classification and regression prediction on the output node by using an AI node, and outputting a final result. The modeling technology can be suitable for a risk control modeling method in a current complex auditing environment, an auditing model is rapidly built, and auditing risks are found in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of modeling technology, and mainly to a modeling method and device based on big data auditing. Background Art

[0002] Modeling technology has developed rapidly in the past few years, driven and influenced by emerging technologies such as artificial intelligence, big data analysis, and the Internet of Things, and its complexity is also constantly rising. In the auditing field, the model building in the form of rules in the past is gradually no longer applicable to the existing complex auditing business scenarios. Modeling through scripting technology requires too high technical costs and requires the participation of technical personnel, resulting in auditors being unable to model and discover audit problems in real time. Therefore, the industry urgently needs a risk control modeling method that can be applied to the current complex auditing environment to quickly build audit models and discover audit risks in a timely manner.

[0003] The current modeling methods have problems such as insufficient model explanation, lack of timeliness, and the need for technical background of auditors. They are difficult to cope with the challenges of big data and cannot guarantee privacy and security issues. Therefore, for this solution, we have improved all the processes of audit modeling in a streamlined and procedural manner. Auditors can build the audit models they need in a visual way. Technically, this solution visualizes and simplifies the operators required for the audit model to ensure that auditors can use them as soon as they get the operator input parameters. For complex audit business, mathematical operators, machine learning operators, and established business models can be used for associated modeling (forming a process chain) to meet the business needs of auditors. Summary of the invention

[0004] In response to the above-mentioned existing technical problems, the present application proposes a modeling method and device based on big data auditing.

[0005] According to one aspect of the present invention, a modeling method based on big data auditing is proposed, comprising:

[0006] Obtaining database information of the audit business, collecting user order data from the database for filtering and aggregation, and performing corresponding business matching with the collected user data and inputting it into the business model, wherein the business model generates a business model output node according to the specific business matching;

[0007] Filtering the collected payment detail data and connecting, aggregating, and sorting the business model output nodes to generate output nodes;

[0008] The output node uses the AI ​​node to perform machine learning classification and regression prediction, and outputs the final result.

[0009] Furthermore, the audit business includes financial statement audit, economic efficiency audit, information technology audit and special audit.

[0010] For example, a financial statement audit involves examining a company's financial statements, including: the balance sheet, income statement, cash flow statement, and statement of changes in owners' equity.

[0011] Furthermore, the filtering specifically represents a filtering node, an operator for completing data filtering, including a filtering field group and a filtering condition group.

[0012] A filter field group is a collection used to describe filter fields.

[0013] A filter condition group is a set used to describe filter conditions. The attributes in the set include sub-attributes and sub-attribute descriptions, as well as AND or OR relationship fields for each condition in the group.

[0014] The filter node also includes extra-group logical relationships, which represent the logical relationships between groups, such as and, or, etc.

[0015] Furthermore, only the input and output of the business model are involved in the process building, and the attributes other than the input and output need to be hidden, or only displayed without being allowed to be modified.

[0016] The business model node is a fixed logic. When building the model, the data set node information and output information used by the model are parsed according to the configuration of the business model node for front-end display. The input node of the business model can be changed according to the connection. If there is a pre-input node, the pre-input node calculation model is used, otherwise the default data set calculation model is used. The data field of the pre-input node must be consistent with the data field of the default node, otherwise the connection is not allowed.

[0017] Furthermore, the connection is specifically represented as a connection node, which implements the logic of connecting two data sets, including a connection node group, a connection condition group, and a filter field group.

[0018] The connection node group, connection condition group and filter field group are all sets, and each element in the set includes a sub-attribute code and a sub-attribute description.

[0019] Furthermore, the aggregation is specifically represented as an aggregation node, which implements the logic of grouping statistics, including a grouping field group and a statistical logic group.

[0020] Both the grouping field group and the statistical logic group are sets, and each element in the set includes a sub-attribute code and a sub-attribute description.

[0021] Furthermore, the sorting is specifically represented as a sorting node, which implements sorting of multiple fields of data in ascending and descending order, including sorting field groups.

[0022] Furthermore, the output node specifically represents the business logic of the data set output, represents the persistence of temporary results, and when parsing the model, the model is parsed into multiple directed acyclic graph subtasks according to the number of output nodes.

[0023] A chain model can have multiple outputs, and each output node represents the persistence of a temporary result. When parsing the model, the model is parsed into multiple directed acyclic graph subtasks according to the number of output nodes. By default, it is stored in the Hive table, and can also be stored in external systems such as HDFS.

[0024] After the output node persists the temporary data to the temporary table according to the configuration, if it is referenced by a subsequent node, the temporary table and its metadata description information will be used as the input of the next node. Subsequent nodes can find the corresponding temporary data only by following the naming rules of the output results. This convention is better than configuration.

[0025] Furthermore, the AI ​​node stores the trained model algorithms and parameters, and implements machine learning and regression prediction on the input data.

[0026] The model algorithms and parameters stored in the AI ​​node include: model storage path, model algorithm code, model algorithm name, model algorithm type, input X field set, input Y field set, and output field set;

[0027] If there is a supervised machine learning algorithm, the input Y field set needs to be introduced. If not, the input X field set is introduced.

[0028] According to a second aspect of the present invention, a model parsing method based on big data auditing is proposed, including: model segmentation and operator parsing, specifically including the following steps:

[0029] The model is divided into a plurality of different tasks using a plurality of output nodes of the model as boundaries, wherein the tasks are small directed acyclic graphs after the model is divided;

[0030] The task is parsed into an operator, converted into a SQL statement and handed over to Hive on Spark for execution.

[0031] A model has multiple output nodes. Each output logic corresponds to a small task. The output node can be used as a boundary to divide the model into multiple small tasks.

[0032] The small directed acyclic graph after model segmentation is a multi-level ordered node set. According to the hierarchical relationship and order of this set, each node is interpreted as a pyspark script fragment, and finally these script fragments are combined into a complete pyspark script. The parsed pyspark script is submitted and executed through the yarn client.

[0033] The basic operator designed by the present invention can be parsed into SQL and handed over to Hive on Spark for execution.

[0034] The sql statement is nested layer by layer using the with statement, and finally a complete sql is generated.

[0035] The basic operators specifically include data set nodes, filter nodes, aggregation nodes, connection nodes, sorting nodes, etc. In some businesses, they also include: intersection nodes, union nodes, difference nodes, deduplication nodes, etc.

[0036] According to a third aspect of the present invention, a computer-readable storage medium is provided, on which one or more computer programs are stored. When the one or more computer programs are executed by a computer processor, any of the above methods is implemented.

[0037] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:

[0038] The modeling technology of the present invention can realize flexible construction and configuration of parameters of each operator by dragging and dropping.

[0039] The persistence of model configuration uses the json type. Basic information such as model name and category are stored as separate fields. The entire process chain forms a directed acyclic graph and is saved to the database in json format. A directed acyclic graph task will have many logical concepts. Using json avoids complex addition, deletion, and modification operations caused by multi-table associations, and the json field type can be serialized and deserialized through Java programs.

[0040] The model is parsed and saved. The front end generates a directed acyclic graph and generates the corresponding script of the model according to the nodes and edges in the chain model. It is put into the scheduling for periodic execution according to the directed acyclic graph. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and are used together with the description to explain the principles of the present invention. It will be easy to recognize other embodiments and many expected advantages of the embodiments because they become better understood by reference to the following detailed description. The elements of the drawings are not necessarily to scale with each other. The same reference numerals refer to corresponding similar parts.

[0042] Figure 1 A schematic diagram of a traditional modeling technique according to an embodiment of the present invention is shown;

[0043] Figure 2 A schematic diagram of a modeling method based on big data auditing according to an embodiment of the present invention is shown;

[0044] Figure 3 A functional schematic diagram of a business model implementation according to a specific embodiment of the present invention is shown. DETAILED DESCRIPTION

[0045] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0046] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0047] A task is a directed acyclic graph consisting of nodes and edges. A node represents a data set or an operator, which includes basic operators, output operators, AI operators, business model operators, and chain model operators. An edge represents the relationship between points, and an edge connects the start node and the target node.

[0048] Traditional modeling flowcharts such as Figure 1 As shown, the model is created by simply dragging nodes to create a directed acyclic graph. This method faces great risks in complex businesses and requires auditors to have a certain technical background. Therefore, the present invention visualizes and simplifies the operators required for the audit model to ensure that auditors can use them after getting the operator input parameters. The operator is the node involved in the present invention, and the node is the logical description of the operator. Its public attribute data structure is as follows, and each operator has unique attributes:

[0049]

[0050] The modeling technology of the present invention is as follows Figure 2 As shown, Figure 2 A schematic diagram of a modeling method based on big data auditing according to an embodiment of the present invention is shown, and the specific steps are as follows:

[0051] Obtaining database information of the audit business, collecting user order data from the database for filtering and aggregation, and performing corresponding business matching with the collected user data and inputting it into the business model, wherein the business model generates a business model output node according to the specific business matching;

[0052] For example, a financial statement audit involves examining a company's financial statements, including: the balance sheet, income statement, cash flow statement, and statement of changes in owners' equity.

[0053] A data set is a table or view in a database, which is a specific data description required for user modeling. In this embodiment, user order data, user data, and payment detail data are all data sets for order analysis and auditing business. Auditors only need to extract data sets based on user names and user numbers, and input the data sets into the model as the original data to be audited.

[0054] The dataset is a dataset node in the directed acyclic graph, which describes the nodes of available data and is the first layer of nodes in the model construction. The data structure is as follows:

[0055]

[0056] The filtering specifically refers to the filtering node, which is an operator for completing data filtering, including a filtering field group and a filtering condition group. The data structure is as follows:

[0057] The filter field group is a set used to describe the filter fields, and the filter condition group is a set used to describe the filter conditions, and also includes the AND or relationship fields of each condition in the group;

[0058] In the business model, only input and output are involved in process building, and non-input and output attributes need to be hidden, or only displayed without modification.

[0059] The business model node is a fixed logic. When building the model, the data set node information and output information used by the model are parsed according to the configuration of the business model node for front-end display. The input node of the business model can be changed according to the connection. If there is a pre-input node, the pre-input node calculation model is used. Otherwise, the default data set calculation model is used. The data field of the pre-input node must be consistent with the data field of the default node, otherwise the connection is not allowed. Figure 3 As shown:

[0060] 1) The display effect within the curly brackets is the approximate effect of the business model in the streaming model construction.

[0061] 2) The output of other nodes outside the business model can be used as the input of the business model node. For example, the "Aggregation 1" and "Dataset 2" nodes in the above figure will be used to replace the matched nodes of the business model during the streaming model parsing execution process.

[0062] 3) The output node of the business model node can also be used as the input of other nodes. Because it has multiple outputs, an output matching process is required to pass the matched output to the next operator. For example, as shown in the figure above, "Business Model Output 1" and "Business Model Output 2" are passed to the "Filter 3" and "Filter 4" nodes respectively.

[0063] 4) The reference relationship between the business model and the streaming model needs to be recorded, and the referenced business model is not allowed to be modified at will.

[0064] 5) Only inputs and outputs of the business model are involved in process building. Non-input and non-output attributes need to be hidden, or only displayed and not allowed to be modified.

[0065] Filtering the collected payment detail data and connecting, aggregating, and sorting the business model output nodes to generate output nodes;

[0066] The connection is specifically represented by a connection node, which implements the logic of connecting two data sets, including a connection node group, a connection condition group, and a filter field group.

[0067] The connection node group, connection condition group and filter field group are all sets, and each element in the set includes a sub-attribute code and a sub-attribute description.

[0068] The aggregation is specifically represented by an aggregation node, which implements the logic of grouping statistics, including a grouping field group and a statistical logic group.

[0069] Both the grouping field group and the statistical logic group are sets, and each element in the set includes a sub-attribute code and a sub-attribute description.

[0070] The sorting is specifically represented as a sorting node, which implements sorting of multiple fields of data in ascending and descending order, including a sorting field group.

[0071] The output node specifically represents the business logic of the data set output, representing the persistence of temporary results. When parsing the model, the model is parsed into multiple directed acyclic graph subtasks according to the number of output nodes.

[0072] A chain model can have multiple outputs, and each output node represents the persistence of a temporary result. When parsing the model, the model is parsed into multiple directed acyclic graph subtasks according to the number of output nodes. It is stored in the hive table by default, and can also be stored in external systems such as hdfs.

[0073] The naming rule of the output results is: Tmp_result_node_ID_batch ID;

[0074] After the output node persists the temporary data to the temporary table according to the configuration, if it is referenced by a subsequent node, the temporary table and its metadata description information will be used as the input of the next node. Subsequent nodes can find the corresponding temporary data only by following the naming rules of the output results. This convention is better than configuration.

[0075] The output node uses the AI ​​node to perform machine learning classification and regression prediction, and outputs the final result.

[0076] The AI ​​node stores the trained model algorithms and parameters, and implements machine learning and regression prediction on the input data.

[0077] The model algorithm and parameter data structure contained in the AI ​​node are as follows:

[0078]

[0079]

[0080] According to the model established by the present invention, an embodiment of the model parsing method based on big data auditing is as follows:

[0081] Model parsing includes two processes: model segmentation and operator parsing. The relevant concepts are as follows:

[0082] 1) A node with only one input is called a single-input node.

[0083] 2) Continuous single-node input is called a pipeline.

[0084] 3) The collection that stores pipelines is called the pipeline collection.

[0085] 4) A node with multiple inputs is called a multi-input node.

[0086] The model is divided into a plurality of different tasks using a plurality of output nodes of the model as boundaries, wherein the tasks are small directed acyclic graphs after the model is divided;

[0087] A model has multiple output nodes, and each output logic corresponds to a small task. The output node can be used as a boundary to divide the model into multiple small tasks, such as Figure 2 As shown in the figure, there are four output nodes, namely: business model output 1, business model output 2 and two output nodes, so the model can be divided into four tasks and handed over to the scheduler for execution.

[0088] The task is parsed into an operator, converted into a SQL statement and handed over to Hive on Spark for execution.

[0089] Traditional general operator parsing: After the model is segmented, the small directed acyclic graph is a multi-level ordered node set. According to the hierarchical relationship and order of this set, each node is interpreted as a pyspark script fragment, and finally these script fragments are combined into a complete pyspark script. The parsed pyspark script is submitted and executed through the yarn client.

[0090] The basic operator provided by the present invention can be parsed into SQL and handed over to Hive on Spark for execution. For example, the with statement is nested layer by layer to finally generate a complete SQL. The specific example is as follows:

[0091] with t1 as(

[0092] select*from test where id=1001

[0093] ),

[0094] t2 as(

[0095] select*from student where id=1001

[0096] ),

[0097] t3 as(

[0098] select t2.*from t2 leftjoin t1 on t2.id=t1.id

[0099] ),

[0100] t4 as(

[0101] select max(score)as max_score,name from t3 group by name )

[0103] Select*from t4 where max_score>10;

[0104] The basic operators specifically include data set nodes, filter nodes, aggregation nodes, connection nodes, sorting nodes, etc. In some businesses, they also include: intersection nodes, union nodes, difference nodes, deduplication nodes, etc.

[0105] Using the jsonB field type of postgres, basic information such as model name and category are stored as separate fields. The directed acyclic graph is saved to the database in jsonB mode to achieve model persistence (a directed acyclic graph task will have many logical concepts. Using JSON avoids complex add, delete and modify operations caused by multi-table associations. Mybatis-plus will automatically serialize and deserialize the jsonB field type).

[0106] On the other hand, the storage of the model depends on the automatic serialization and deserialization of the model in the backend through JSON and JavaBeans, and the model is stored in the database. Before storage, the parameters and data structure of each operator need to be verified, and after verification, it is persisted in the database.

[0107] In summary, the modeling process optimization of the present invention is:

[0108] 1) Determine the purpose and scope of modeling: The auditor determines the scope of modeling, including the starting and end points of the process, as well as the specific links that need attention.

[0109] 2) Identify the steps and links in the process: break down the entire process into specific steps and links, and determine the relationship and sequence between each step.

[0110] 3) Draw a flowchart: Use graphics to represent each step, such as rectangles for tasks, diamonds for decisions, arrows for process directions, etc. Make sure the flowchart is clear, concise, and easy to understand.

[0111] 4) Add decision points and concurrency points in the process chain: Add decision points (such as judgment conditions) and concurrency points (multiple steps executed simultaneously) in the flowchart to reflect various possible situations in the actual process.

[0112] 5) Optimize and improve processes: Check and test each node of the drawn process chain diagram, identify possible bottlenecks, repeated steps or unnecessary links, and have the auditors optimize and improve them.

[0113] 6) Verification and improvement: Auditors confirm its accuracy and completeness. Make necessary modifications and improvements based on the node test results.

[0114] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0115] The modules involved in the embodiments of the present application may be implemented by software or by hardware.

[0116] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A modeling method based on big data auditing, characterized in that: The following steps are involved: Obtaining database information of the audit business, collecting user order data from the database for filtering and aggregation, and performing corresponding business matching with the collected user data and inputting it into the business model, wherein the business model generates a business model output node according to the specific business matching; Filtering the collected payment detail data and connecting, aggregating, and sorting the business model output nodes to generate output nodes; The output node uses the AI ​​node to perform machine learning classification and regression prediction, and outputs the final result.

2. The modeling method according to claim 1, characterized in that: The filtering specifically refers to a filtering node, an operator that completes data filtering, including a filtering field group and a filtering condition group.

3. The modeling method according to claim 1, characterized in that: In the business model, only input and output are involved in process building, and non-input and output attributes need to be hidden, or only displayed without modification.

4. The modeling method according to claim 1, characterized in that: The connection is specifically represented by a connection node, which implements the logic of connecting two data sets, including a connection node group, a connection condition group, and a filter field group.

5. The modeling method according to claim 1, characterized in that: The aggregation is specifically represented by an aggregation node, which implements the logic of grouping statistics, including a grouping field group and a statistical logic group.

6. The modeling method according to claim 1, characterized in that: The sorting is specifically represented as a sorting node, which implements the sorting of multiple fields of data in ascending and descending order, including a sorting field group.

7. The modeling method according to claim 1, characterized in that: The output node specifically represents the business logic of the data set output, representing the persistence of temporary results. When parsing the model, the model is parsed into multiple directed acyclic graph subtasks according to the number of output nodes.

8. The modeling method according to claim 1, characterized in that: The AI ​​node stores the trained model algorithms and parameters, and implements machine learning and regression prediction on the input data.

9. A model analysis method based on big data auditing, characterized in that: The modeling method according to any one of claims 1 to 8, comprising: model segmentation and operator parsing, specifically comprising the following steps: The model is divided into a plurality of different tasks using a plurality of output nodes of the model as boundaries, wherein the tasks are small directed acyclic graphs after the model is divided; The task is parsed into an operator, converted into a SQL statement and handed over to Hive on Spark for execution.

10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 8 when executed by a processor.

11. A computing system comprising a processor and a memory, wherein the processor is configured to execute the method according to any one of claims 1 to 8.