Data anomaly analysis method, device, equipment and storage medium
By preprocessing multi-source heterogeneous data and constructing knowledge graphs, the root causes of abnormal events can be automatically identified and located, solving the problem of low efficiency in data anomaly analysis in existing technologies and achieving efficient and accurate anomaly analysis.
Patent Information
- Application Number
- CN202611229530.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, rule-based auditing systems cannot identify complex and hidden risks, and data visualization and analysis systems cannot conduct in-depth analysis of underlying causes, resulting in inefficient and inaccurate data anomaly analysis.
By preprocessing multi-source heterogeneous data, a knowledge graph is constructed. Seed nodes of abnormal events are extracted using entities and relationships. Multi-hop relationship expansion and root cause analysis are then performed to automatically locate the root cause of abnormal events.
It enables the rapid and accurate discovery of abnormal events and the identification of their root causes from massive amounts of data, improving the efficiency and accuracy of data anomaly analysis and avoiding the blindness and inefficiency of manual investigation.
Smart Images

Figure CN123159518A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data analysis, and in particular to a data anomaly analysis method, apparatus, device, and storage medium. Background Technology
[0002] In enterprise operations, data anomaly analysis is a core task of risk management and compliance auditing. Currently, mainstream solutions mainly rely on two types of technologies: rule-based auditing systems and data visualization analysis systems. Rule-based auditing systems filter and verify business data by setting rules, but cannot identify complex and hidden risks; data visualization analysis systems summarize and statistically analyze business data and display the data distribution in chart form, but cannot conduct in-depth analysis of the root causes of anomalies. Summary of the Invention
[0003] This invention provides a data anomaly analysis method, apparatus, device, and storage medium to overcome the shortcomings of existing data analysis methods. By unifying and integrating multi-source data and intelligently mining the relationships between entities, the root cause of anomalies can be quickly located.
[0004] In a first aspect, embodiments of the present invention provide a data anomaly analysis method, comprising: Collect heterogeneous data from multiple sources from business systems and preprocess the heterogeneous data to obtain a structured dataset; Entities and relationships are extracted from structured datasets, and a knowledge graph is constructed based on the extracted entities and relationships; Anomaly identification is performed based on structured datasets, with identified anomalous events serving as seed nodes; Based on the seed nodes, target subgraphs corresponding to the abnormal events are extracted from the knowledge graph. Root cause analysis is then performed on the target subgraphs to obtain the root cause set.
[0005] Secondly, embodiments of the present invention provide a data anomaly analysis device, comprising: The data acquisition module is used to collect multi-source heterogeneous data from business systems and preprocess the multi-source heterogeneous data to obtain a structured dataset. The data extraction module is used to extract entities and relationships from structured datasets and to construct a knowledge graph based on the extracted entities and relationships. The anomaly detection module is used to detect anomalies based on the structured dataset, using the detected anomaly events as seed nodes. The output module is used to extract the target subgraph corresponding to the abnormal event from the knowledge graph based on the seed node, perform root cause analysis based on the target subgraph, and obtain the root cause set.
[0006] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described data anomaly analysis method.
[0007] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned data anomaly analysis method.
[0008] The aforementioned data anomaly analysis methods, devices, equipment, and storage media, by collecting multi-source heterogeneous data from business systems and preprocessing it, unify the heterogeneous data scattered across different business systems into a structured dataset. This solves the problems of severe data silos and difficulty in cross-system correlation analysis in existing technologies, providing a complete and consistent data foundation for subsequent anomaly identification and root cause analysis. Furthermore, by extracting entities and relationships from the structured dataset and constructing a knowledge graph, the originally isolated data records are transformed into a semantically related network of entity relationships, making the implicit relationships between data explicit and providing structured knowledge for deep causal analysis. Supported by anomaly identification based on structured datasets and using identified anomaly events as seed nodes, this system automatically discovers anomalies from massive datasets and accurately locates the core entities involved, avoiding the blindness and inefficiency of manual investigation. By extracting target subgraphs from knowledge graphs based on seed nodes and performing root cause analysis, it can automatically uncover deep-seated relationships between anomalies and related entities, quickly pinpointing the root causes of anomalies. This overcomes the shortcomings of existing technologies that rely on manual experience for cross-comparison, resulting in low efficiency and difficulty in discovering hidden root causes, significantly improving the efficiency and accuracy of data anomaly analysis. Attached Figure Description
[0009] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0010] Figure 1 This is a flowchart of a data anomaly analysis method according to an embodiment of the present invention; Figure 2 yes Figure 1 A flowchart of step S103; Figure 3 yes Figure 1 A flowchart of step S104; Figure 4 yes Figure 1A flowchart of step S101; Figure 5 This is a flowchart of a data anomaly analysis device according to an embodiment of the present invention; Figure 6 This is a schematic diagram of a computer device according to an embodiment of the present invention. Detailed Implementation
[0011] To make the technical problems solved, the technical solutions, and the beneficial effects of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0012] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0013] It should also be understood that the term “and / or” as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0014] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once [the described condition or event] is detected," or "in response to detection of [the described condition or event]."
[0015] Furthermore, in the description of this invention and the appended claims, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance.
[0016] In this specification, the terms "one embodiment" or "some embodiments," etc., mean that one or more embodiments of the invention include the specific features, structures, or characteristics described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification, do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0017] In one embodiment, please refer to Figure 1 This paper provides a data anomaly analysis method, which includes the following steps: Step S101: Collect multi-source heterogeneous data from the business system and preprocess the multi-source heterogeneous data to obtain a structured dataset; Step S102: Extract entities and relationships from the structured dataset, and construct a knowledge graph based on the extracted entities and relationships; Step S103: Perform anomaly identification based on the structured dataset, using the identified anomaly events as seed nodes; Step S104: Based on the seed node, extract the target subgraph corresponding to the abnormal event from the knowledge graph, perform root cause analysis based on the target subgraph, and obtain the root cause set.
[0018] Business systems refer to various information management systems used in the operation of an enterprise, including but not limited to expense reimbursement systems, enterprise resource planning (ERP) systems, customer relationship management (CRM) systems, human resource systems, project management systems, and supplier management databases. Multi-source heterogeneous data refers to data from different business systems with different data formats, storage structures, and semantic standards, such as expense reports, purchase orders, project budgets, employee information, and supplier qualifications. Structured datasets refer to standardized data sets with unified data formats and consistent semantic identifiers obtained after preprocessing multi-source heterogeneous data.
[0019] As an example, in step S101, the system connects to the enterprise's internal business systems and collects multi-source heterogeneous data generated by these systems in real time or periodically through API interfaces or log capture. The collected multi-source heterogeneous data is preprocessed to obtain a structured dataset. By collecting multi-source heterogeneous data from multiple business systems and preprocessing it, the heterogeneous data scattered across different systems is unified into a structured dataset. This solves the problem of severe data silos and difficulty in cross-system correlation analysis in existing technologies, providing a complete, consistent, and high-quality data foundation for subsequent steps, thereby ensuring the accuracy of subsequent anomaly identification and root cause analysis.
[0020] In this context, an entity refers to an object that has independent meaning and can be uniquely identified in business activities, including employees, departments, projects, suppliers, expense accounts, bank accounts, etc. A relationship refers to the business association or logical connection between entities, including the hierarchical relationship between employees and departments, the participation relationship between employees and projects, the procurement relationship between projects and suppliers, and the reimbursement relationship between employees and expense accounts and suppliers, etc. A knowledge graph is a data model that organizes knowledge using a graph structure, with nodes representing entities and edges representing relationships between entities, intuitively expressing the semantic associations and path information between entities.
[0021] As an example, in step S102, entities and their attribute information are extracted from the structured dataset obtained in step S101. Entities include employees, departments, projects, suppliers, expense items, and bank accounts. Simultaneously, business relationships between entities are extracted, including subordinate relationships, participation relationships, procurement relationships, and reimbursement relationships. Based on the extracted entities and relationships, a knowledge graph is constructed with entities as nodes and relationships as edges, and this knowledge graph is stored in a graph database. By extracting entities and relationships from the structured dataset and constructing a knowledge graph, the originally isolated and scattered data records are transformed into a semantically related entity relationship network. This allows the implicit relationships between data to be explicitly expressed, providing structured knowledge support for subsequent steps of tracing association paths and root cause analysis starting from abnormal events. This solves the problem of insufficient expression of relationships between data and difficulty in conducting deep causal analysis in existing technologies.
[0022] Among them, abnormal events refer to business records in business data that deviate from the normal range or violate preset rules, such as excessive expense reimbursement, suspected fraudulent transactions, and policy violations. Seed nodes refer to entity nodes in the knowledge graph that serve as the starting point for root cause analysis, i.e., the core subjects involved in the abnormal event, such as employees with abnormal expense reimbursements or suppliers with suspicious transactions.
[0023] As an example, in step S103, based on preset compliance rules or machine learning anomaly detection models, anomaly detection is performed on the business data in the structured dataset obtained in step S101 to identify abnormal events, and the identified anomalies are used as seed nodes. By automatically identifying abnormal events and determining seed nodes, anomalies can be automatically discovered from massive amounts of data, and the core entities involved in the abnormal events can be accurately located. This avoids the blindness and inefficiency of manually checking large amounts of data one by one, and provides a clear starting point for subsequent steps to trace relationships and perform root cause analysis from seed nodes, thereby improving the efficiency and accuracy of anomaly discovery and location.
[0024] The target subgraph refers to the local subgraph structure extracted from the knowledge graph that is related to the anomalous event. It includes seed nodes and the entities and relationship paths associated with them through multi-hop relationships. Root cause analysis is the analytical process of identifying the root causes of the anomalous event by calculating the influence scores of each associated entity and relationship path based on the target subgraph. The root cause set refers to the output of the root cause analysis, which includes the top-ranked association paths with the highest influence scores and their corresponding key entities, i.e., the root causes most likely to have caused the anomalous event.
[0025] As an example, in step S104, starting from the seed node determined in step S103, multi-hop relationship expansion is performed on the knowledge graph constructed in step S102 to form a target subgraph corresponding to the abnormal event. Root cause analysis is performed on this target subgraph to calculate the influence score of each associated entity and relationship path. Based on the influence score, the top-ranked associated paths and their corresponding key entities are selected as the root cause set. By performing multi-hop relationship expansion on the knowledge graph starting from the seed node, extracting the target subgraph related to the abnormal event, and running the root cause analysis algorithm on this subgraph, the deep causal relationship between the abnormal event and its associated entities is automatically mined, quickly locating the root cause of the abnormal event. This overcomes the shortcomings of existing technologies that rely on manual experience for cross-system cross-comparison, are inefficient, and have difficulty in discovering hidden root causes, significantly improving the efficiency and accuracy of anomaly analysis.
[0026] In one embodiment, please refer to Figure 2 In step S103, the structured dataset includes a cost log. The anomaly identification based on the structured dataset, using the entities corresponding to the identified anomaly events as seed nodes, includes: Step S1031: Perform anomaly identification on the expense flow in the structured dataset, identify abnormal expense events, and generate anomaly alerts containing key event features of the abnormal expense events. Key event features include target object, amount, time, and expense type. Step S1032: In response to the anomaly alarm, match the target object with the entities in the knowledge graph, and use the matched entities as seed nodes.
[0027] The structured dataset includes expense logs. Expense logs refer to various expense-related records generated in the daily operations of an enterprise, including but not limited to expense reimbursement forms, invoice information, payment records, and expense details. Abnormal expense events refer to expense records in the expense log data that, after being identified by preset compliance rules or machine learning anomaly detection models, are determined to deviate from the normal range or violate compliance requirements. Examples include reimbursement amounts exceeding job standards, invoice types not matching the reimbursement reason, duplicate submissions of the same invoice, and an abnormally high frequency of reimbursements for the same type of expense within a short period. Key event features refer to a set of core attribute information used to describe and characterize abnormal expense events, specifically including: target object (i.e., the core subject involved in the abnormal event, such as the employee making the reimbursement, the receiving supplier, the paying bank account, etc.), amount (the specific monetary value of the abnormal expense), time (the time of occurrence or reimbursement of the abnormal expense event), and expense type (such as travel expenses, office expenses, procurement expenses, etc.). Anomaly alerts are data structures automatically generated by the system to notify and record abnormal event after the anomaly detection module identifies the abnormal expense event; anomaly alerts contain key event features.
[0028] As an example, in step S1031, anomaly detection is performed on the expense records in the structured dataset obtained in step S101 based on preset compliance rules or machine learning anomaly detection models. Preset compliance rules may include amount limit rules, invoice type verification rules, reimbursement frequency restriction rules, etc.; machine learning anomaly detection models may include isolated forests, support vector machines, deep learning-based anomaly detection models, etc., used to identify abnormal expense records that do not conform to historical behavior patterns. When an abnormal expense event is detected, a corresponding anomaly alert is generated. Generating anomaly alerts containing key event features provides crucial clues for subsequent root cause analysis.
[0029] As an example, in step S1032, in response to the abnormal alarm generated in step S1031, the target object in the abnormal alarm is extracted, and the target object is matched with the entity nodes in the knowledge graph constructed in step S102. The matching criteria include entity name, unique identifier (such as employee ID, supplier number, bank account number, etc.) or other attribute information.
[0030] Upon successful matching, the corresponding entity node in the knowledge graph is designated as a seed node. For example, if the target object in the anomaly alert is "Employee A," the corresponding employee entity node is matched in the knowledge graph and designated as the seed node; if the target object is "Supplier B," the corresponding supplier entity node in the knowledge graph is designated as the seed node. The seed node serves as the starting query node for subsequent root cause analysis in the knowledge graph, determining the search scope and direction of the root cause analysis.
[0031] This embodiment limits anomaly identification to the detection of anomalies in expense records and clarifies that anomaly alerts include key event characteristics such as target object, amount, time, and expense type. This makes anomaly detection more targeted and domain-specific, enabling accurate identification of anomaly events in the expense domain. By matching target objects with entities in the knowledge graph, the target objects in the anomaly event are mapped to entity nodes in the knowledge graph as seed nodes, establishing a bridge between the anomaly event and the knowledge graph. This allows subsequent steps to trace the association and perform root cause analysis in the knowledge graph starting from the seed node, thus realizing a complete link from anomaly discovery to root cause location.
[0032] In one embodiment, step S104, extracting the target subgraph corresponding to the anomalous event from the knowledge graph based on the seed node, includes: Starting from the seed node, multi-hop relationship expansion is performed in the knowledge graph. Entities with direct or indirect relationships with the seed node are traversed until the expansion depth reaches a preset depth threshold or the number of expanded related entities reaches a preset number threshold. The traversed entities and relationship paths are extracted to form the target subgraph.
[0033] Multi-hop relationship expansion refers to the process of traversing outwards from a seed node along relationship edges in a knowledge graph. Each hop to a new entity node is called a "hop". Multi-hop relationship expansion is not limited to the direct neighbors of the seed node, but extends to deeper entities indirectly related to the seed node through multiple layers of relationships. Expansion depth refers to the number of relationship edge layers (hops) traversed from the seed node to a related entity. For example, the seed node itself has an expansion depth of 0, its direct neighbors have an expansion depth of 1, the entity reached through two relationship edges has an expansion depth of 2, and so on. Expansion depth reflects the density of the relationship between the related entity and the seed node; the shallower the depth, the closer the relationship, and the deeper the depth, the more distant the relationship. Preset thresholds are pre-defined numerical limits used to control the stopping conditions of multi-hop relationship expansion. These include depth thresholds and quantity thresholds. The depth threshold limits the maximum expansion depth (hop count). Expansion stops when the expansion depth reaches this threshold to avoid computational explosion due to infinite expansion. The quantity threshold limits the total number of related entities that can be expanded. Expansion stops when the cumulative number of all expanded related entities reaches this threshold, to prevent the target subgraph from becoming too large and introducing too many irrelevant entities, which could interfere with the accuracy of subsequent root cause analysis.
[0034] As an example, in step S104, starting from the seed node, multi-hop relationship expansion is performed along the relationship edges in the knowledge graph, traversing layer by layer entities that have direct or indirect relationships with the seed node. During the expansion process, it is determined in real time whether the current expansion depth has reached a preset depth threshold and whether the number of expanded related entities has reached a preset quantity threshold. When the expansion depth reaches the preset depth threshold or the number of expanded related entities reaches the preset quantity threshold, the expansion stops. The relationship paths between the entities and connected entities obtained during the traversal are extracted to form the target subgraph corresponding to the abnormal event.
[0035] This embodiment expands the knowledge graph through multi-hop relationships starting from the seed node, overcoming the limitations of single entity associations. It extends the search scope of root cause analysis from directly adjacent entities of the seed node to deeply related entities, thereby revealing hidden relationships and systemic risks beyond the multi-hop limit. This ensures the target subgraph covers the complete chain of relationships leading to anomalous events. Simultaneously, by setting extension depth and preset quantity thresholds to control the termination conditions of the expansion, it guarantees sufficient coverage of the anomalous event association range by the target subgraph while avoiding the waste of computational resources and interference from irrelevant entities caused by unlimited expansion. This approach improves the efficiency and accuracy of the analysis while ensuring the comprehensiveness of root cause analysis.
[0036] For one example, please refer to Figure 3 In step S104, root cause analysis is performed based on the target subgraph, resulting in a root cause set including: Step S1041: Extract the association paths from the seed node to each associated entity in the target subgraph; Step S1042: Obtain the path length, relationship type strength, historical anomaly frequency, and temporal proximity information for each associated path; Step S1043: Based on path length, relationship type strength, historical anomaly frequency, and time proximity information, calculate the influence score of each associated path and the key entity corresponding to the endpoint of each associated path; Step S1044: Based on the influence score, select the most influential paths and their corresponding key entities from the associated paths as the root cause set.
[0037] In this context, an association path refers to a complete link in the target subgraph that starts from a seed node, passes through a series of relational edges, and reaches a certain associated entity. An association path consists of a starting node (seed node), intermediate nodes (intermediate associated entities), and relational edges (business relationships between entities), describing how the association between the seed node and the associated entity is passed layer by layer through the business relationships between entities.
[0038] As an example, in step S1041, from the target subgraph obtained in step S104, starting from the seed node and ending at each associated entity in the target subgraph, all reachable paths from the seed node to each associated entity are extracted, forming a set of associated paths. Each associated path records a complete relationship link from the seed node to the associated entity, including intermediate entities and relationship edges along the path. By extracting the associated paths from the seed node to each associated entity in the target subgraph, the entity and relationship network in the target subgraph is transformed into a set of reachable paths starting from the seed node. This ensures that each associated path corresponds to a complete causal link from the abnormal event to the potential root cause, providing clear path units for subsequent quantitative analysis. This avoids the computational difficulties caused by directly analyzing the complex graph structure as a whole, improving the feasibility and interpretability of root cause analysis.
[0039] Here, path length refers to the number of relational edges in the associated path, i.e., the number of hops required to reach the associated entity from the seed node. A shorter path length indicates a stronger association between the associated entity and the seed node; a longer path length indicates a weaker association. Relationship type strength refers to the weight or importance of different types of relational edges in root cause analysis. Based on a pre-defined relational type weight mapping table, the type strength values of each relational edge in the associated path are obtained, and the overall relational type strength of the path is calculated. Historical anomaly frequency refers to the frequency with which an associated entity or path has been marked as anomaly in history. Temporal proximity refers to the proximity between the occurrence time of an entity or relationship in the associated path and the occurrence time of an anomaly event.
[0040] As an example, in step S1042, for each associated path extracted in step S1041, the path length, relationship type strength, historical anomaly frequency, and time proximity are obtained. Specifically, in relationship type strength, different relationship types have different degrees of influence on the abnormal event. For example, "reimbursement relationship" may have a more direct impact on expense anomalies than "subordinate relationship," therefore, the relationship type strength of the reimbursement relationship has a higher weight. Relationship type strength is usually preset based on business experience or historical data analysis. In historical anomaly frequency, the higher the historical anomaly frequency, the stronger the association between the entity or path and the abnormal event, and the higher the weight should be given in root cause analysis. For example, if a supplier has been marked as abnormal multiple times in history, the associated paths related to that supplier have a higher impact in root cause analysis. In time proximity, the closer the time, the closer the association between the entity or relationship and the abnormal event, and the higher the weight should be given in root cause analysis. For example, an expense reimbursement that occurred within a week before the abnormal event has a higher time proximity than an expense reimbursement that occurred a year ago.
[0041] By acquiring the path length, relationship type strength, historical anomaly frequency, and temporal proximity information of each associated path, the association characteristics between associated paths and anomalous events are quantified from multiple dimensions. This provides sufficient data support for the subsequent calculation of impact scores, enabling root cause analysis to comprehensively consider multiple factors, avoiding the one-sidedness caused by single-dimensional evaluation, and improving the accuracy and reliability of root cause analysis results.
[0042] The impact score is a numerical indicator calculated using the root cause analysis algorithm to quantify the impact of each associated path and corresponding key entity on the abnormal event.
[0043] As an example, in step S1043, based on the path length, relationship type strength, historical anomaly frequency, and temporal proximity information obtained in step S1042, a preset root cause analysis algorithm is used to calculate the influence score of each associated path and its endpoint key entity. Specifically, the calculation of the influence score comprehensively considers the above four factors, where a shorter path length, higher relationship type strength, higher historical anomaly frequency, and higher temporal proximity result in a higher influence score. By comprehensively considering path length, relationship type strength, historical anomaly frequency, and temporal proximity information to calculate the influence score, a quantitative assessment of the impact of each associated path and key entity on the abnormal event is achieved. This allows for the accurate identification of hidden, deeply associated, but highly influential paths, overcoming the limitations of existing technologies that rely solely on surface rules or human experience, and improving the intelligence and accuracy of root cause analysis.
[0044] As an example, in step S1044, based on the impact score calculated in step S1043, all related paths are sorted, and the top-ranked related paths and their corresponding key entities are selected as the root cause set. This root cause set is the result of the root cause analysis, identifying the most likely root causes of the abnormal event, including specific related paths and key entities. By selecting the top-ranked related paths and their corresponding key entities as the root cause set based on the impact score, the root cause analysis result is simplified to a limited number of candidate root causes most likely to cause the abnormal event. This avoids outputting a large amount of redundant information to the user, allowing auditors to quickly focus on the most critical root cause clues, improving the readability and usability of the root cause analysis results, and thus significantly improving the efficiency of abnormal event handling.
[0045] In one embodiment, please refer to Figure 4 In step S101, multi-source heterogeneous data is collected from the business system, and the multi-source heterogeneous data is preprocessed to obtain a structured dataset, including: Step S1011: Collect heterogeneous data from multiple sources, including the expense reimbursement system, enterprise resource planning system, customer relationship management system, human resources system, project management system, and supplier management database; Step S1012: Clean, standardize, and unify entity identifiers for multi-source heterogeneous data to obtain a structured dataset.
[0046] As an example, in step S1011, the system connects to the enterprise's internal expense reimbursement system, Enterprise Resource Planning (ERP) system, Customer Relationship Management (CRM) system, Human Resources system, Project Management system, and Supplier Management database via API interfaces or log capture to collect raw business data from these six systems in real time or periodically. This raw business data has different data formats and storage structures. For example, the expense reimbursement system outputs expense reports and invoices; the ERP system outputs purchase orders and financial vouchers; the CRM system outputs customer information and contract data; the Human Resources system outputs employee information and organizational structure data; the Project Management system outputs project budgets and schedule data; and the Supplier Management database outputs supplier qualifications and cooperation records. All of this data is collectively referred to as multi-source heterogeneous data.
[0047] Data cleaning refers to removing duplicate data, correcting erroneous data, filling in missing data, and identifying and handling outliers to ensure data accuracy and completeness. Standardization refers to unifying the format, units, encoding rules, and time format of data from different sources, so that data in different systems have a consistent way of expression. Uniform entity identification refers to assigning the same unique identifier to data representing the same entity in different systems.
[0048] As an example, in step S1012, the collected multi-source heterogeneous data is cleaned, standardized, and unified with entity identifiers to obtain a structured dataset with a unified format and consistent semantic identifiers. For example, employee IDs in the expense reimbursement system are mapped to employee employee numbers in the human resources system, unifying them into the same entity identifier, thereby achieving cross-system entity association. By cleaning, standardizing, and unifying entity identifiers for multi-source heterogeneous data, the data silo problem caused by inconsistencies in data formats, encoding rules, and identifier methods between different systems is eliminated. The heterogeneous data scattered across various systems is transformed into a structured dataset with a unified format and consistent semantic identifiers, enabling subsequent steps to perform unified entity and relationship extraction from data from different systems, as well as cross-system association analysis. This ensures the accuracy and completeness of knowledge graph construction, as well as the reliability of anomaly identification and root cause analysis.
[0049] In one embodiment, the aforementioned data anomaly analysis method further includes: step S001: displaying the root cause set in an interactive visualization, the visualization including anomaly event nodes, candidate root cause nodes, and the relationship path between the two.
[0050] As an example, in step S001, the root cause set obtained in step S104 is presented in an interactive visualization. Specifically, using the entity node corresponding to the abnormal event as the starting node, the key entity node in the root cause set as the root cause node, and the association path connecting the starting node and the root cause node as the relation edge, a topological graph containing the abnormal event node, candidate root cause nodes, and the relational path between them is constructed and displayed in the visualization interface. This visualization graph supports user interaction, including but not limited to: clicking on nodes or paths in the graph to view details, zooming, dragging, etc., so that users can intuitively view the relationship between abnormal events and root causes. By presenting the root cause set in an interactive and visual format, the abstract root cause analysis results are transformed into intuitive topological graphs. This allows auditors to quickly view the correlation paths and relationships between abnormal events and root causes, enabling them to understand the root cause analysis results without having to read the analysis report line by line. This improves the readability and comprehensibility of the root cause analysis results. At the same time, the interactive graphs allow users to click, zoom, and drag nodes and paths, making it easy for users to view the relationships from different angles and granularities, further enhancing the user experience and usability of root cause analysis.
[0051] In one embodiment, after displaying the root cause set in an interactive visual graphic in step S001, the method further includes: Step S002: In response to the user operation, perform the target operation on the visual graphic, the operation including drill-down operation, highlighting operation or path explanation text generation operation; Step S003: In response to the report generation instruction, generate a structured root cause analysis report.
[0052] As an example, in step S002, on the interactive visual graphic displayed in step S001, in response to an operation command triggered by the user, a corresponding target operation is performed on the visual graphic. The target operation includes at least one of the following: Drill-down operation: In response to the user's click on a node or relationship path in the visualization, the detailed information of the node or path is expanded, including the entity's attribute information, history, related data, etc., allowing the user to go from a macro overview to micro details and gain a deeper understanding of the specific entity or path.
[0053] Highlighting operation: In response to the user's selection of a node or relationship path in the visualization, the node or path is highlighted, while other unrelated nodes and paths are faded out, allowing the user to focus on specific related links and eliminate the interference of irrelevant information.
[0054] Path Explanation Text Generation: In response to the user's selection of a relational path in the visualization, the system automatically generates a natural language explanation text for that path, describing the complete association process from the seed node to the key entity, enabling the user to quickly understand the semantic meaning and business logic of the path.
[0055] By providing interactive operations such as drill-down, highlighting, and path explanation text generation, users can flexibly and interactively analyze visualizations according to their needs. Drill-down allows users to gain in-depth understanding of specific entities or paths, facilitating in-depth analysis; highlighting allows users to focus on specific related links, eliminating irrelevant information and improving analysis efficiency; path explanation text generation transforms abstract topological paths into natural language descriptions, enabling users to understand the semantic meaning of paths without specialized knowledge, lowering the barrier to understanding root cause analysis results, and enhancing the user experience.
[0056] As an example, in step S003, in response to a user-triggered report generation command, a structured root cause analysis report is automatically generated based on the data in the current root cause set and visualization. This report includes, but is not limited to, the following: basic information about the anomalous event, key entities in the root cause set and their impact scores, the association paths from the anomalous event to each root cause and their explanations, and recommended remedial measures. The generated report supports exporting to common document formats such as PDF and Word, facilitating archiving, sharing, and audit traceability. By generating a structured root cause analysis report with one click, the anomalous event information, root cause set, association paths, and other data involved in the root cause analysis process are automatically organized into a structured document, avoiding the time and manpower costs of auditors manually organizing analysis results and writing reports, thus improving the output efficiency of root cause analysis results. Simultaneously, the structured report format facilitates archiving, sharing, and audit traceability, providing traceable written evidence for compliance audits, further enhancing the practicality and compliance of the root cause analysis method.
[0057] Please see Figure 5 In one embodiment, a data anomaly analysis device is provided, which corresponds one-to-one with the data anomaly analysis methods described in the above embodiments. The data anomaly analysis device includes: The data acquisition module 301 is used to collect multi-source heterogeneous data from the business system and preprocess the multi-source heterogeneous data to obtain a structured dataset. The data extraction module 302 is used to extract entities and relationships from the structured dataset and construct a knowledge graph based on the extracted entities and relationships; The anomaly identification module 303 is used to identify anomalies based on the structured dataset, using the identified anomaly events as seed nodes; The output module 304 is used to extract the target subgraph corresponding to the abnormal event from the knowledge graph based on the seed node, perform root cause analysis based on the target subgraph, and obtain the root cause set.
[0058] Optionally, in one embodiment, the anomaly detection module 303 is further configured to: Anomaly detection is performed on expense records in structured datasets to identify abnormal expense events and generate anomaly alerts containing key event features, including the target object, amount, time, and expense type. In response to an anomaly alert, the target object is matched with entities in the knowledge graph, and the matched entities are used as seed nodes.
[0059] Optionally, in one embodiment, the output module 304 is further configured to: Starting from the seed node, multi-hop relationship expansion is performed in the knowledge graph, traversing entities that have direct or indirect relationships with the seed node until the expansion depth reaches a preset depth threshold or the number of expanded related entities reaches a preset number threshold. The traversed entities and relationship paths are then extracted to form the target subgraph.
[0060] Optionally, in one embodiment, the output module 304 is further configured to: Extract the association paths from the seed node to each associated entity in the target subgraph; Obtain the path length, relationship type strength, historical anomaly frequency, and time proximity information for each associated path; Based on path length, relationship type strength, historical anomaly frequency, and time proximity information, the influence score of each associated path and the key entity corresponding to the endpoint of each associated path is calculated. Based on the impact score, select the highest impact score association paths and their corresponding key entities from the association paths to form the root cause set.
[0061] Optionally, in one embodiment, the data acquisition module 301 is further configured to: Collect heterogeneous data from multiple sources, including expense reimbursement systems, enterprise resource planning systems, customer relationship management systems, human resource systems, project management systems, and supplier management databases. Multi-source heterogeneous data is cleaned, standardized, and given unified entity identifiers to obtain a structured dataset.
[0062] Optionally, in one embodiment, the data anomaly analysis device further includes an interactive display module 305, used for: The root cause set is presented in an interactive visualization, which includes anomalous event nodes, candidate root cause nodes, and the relationship path between them.
[0063] Optionally, in one embodiment, the data anomaly analysis apparatus further includes a report generation module 306, used for: In response to user actions, perform target operations on the visual graphics, including drill-down operations, highlighting operations, or path explanation text generation operations. In response to report generation instructions, generate a structured root cause analysis report.
[0064] Specific limitations regarding the data anomaly analysis device can be found in the limitations of the data anomaly analysis method described above, and will not be repeated here. Each module in the aforementioned data anomaly analysis device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0065] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides the environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores multi-source heterogeneous data, root causes, etc. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a data anomaly analysis method.
[0066] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When executed by a processor, the computer program implements the data anomaly analysis method described in the above embodiment; to avoid repetition, further details are omitted here. The computer-readable storage medium can be non-volatile or volatile.
[0067] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0068] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0069] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A data anomaly analysis method characterized by, include: Collect multi-source heterogeneous data from business systems and preprocess the multi-source heterogeneous data to obtain a structured dataset; Entities and relationships are extracted from the structured dataset, and a knowledge graph is constructed based on the extracted entities and relationships; Anomaly identification is performed based on the structured dataset, with the identified anomaly events serving as seed nodes; Based on the seed node, a target subgraph corresponding to the abnormal event is extracted from the knowledge graph, and root cause analysis is performed on the target subgraph to obtain a root cause set.
2. The data anomaly analysis method of claim 1, wherein, The structured dataset includes cost logs. The anomaly identification based on the structured dataset, using the entities corresponding to the identified anomaly events as seed nodes, includes: Anomaly identification is performed on the expense transaction records in the structured dataset to identify abnormal expense events and generate anomaly alerts containing key event features of the abnormal expense events, including the target object, amount, time, and expense type. In response to the anomaly alert, the target object is matched with entities in the knowledge graph, and the matched entities are used as seed nodes.
3. The data anomaly analysis method of claim 1, wherein, The step of extracting the target subgraph corresponding to the abnormal event from the knowledge graph based on the seed node includes: Starting from the seed node, multi-hop relationship expansion is performed in the knowledge graph, traversing entities that have direct or indirect relationships with the seed node until the expansion depth reaches a preset depth threshold or the number of expanded related entities reaches a preset number threshold. The traversed entities and relationship paths are then extracted to form the target subgraph.
4. The data anomaly analysis method of claim 1, wherein, The root cause analysis based on the target subgraph to obtain the root cause set includes: Extract the association paths from the seed node to each associated entity in the target subgraph; Obtain the path length, relationship type strength, historical anomaly frequency, and time proximity information for each associated path; Based on the path length, the relationship type strength, the historical anomaly frequency, and the time proximity information, the influence score of each associated path and the key entity corresponding to the endpoint of each associated path is calculated. Based on the influence score, select the highest-scoring association paths and their corresponding key entities from the association paths to form the root cause set.
5. The data anomaly analysis method of claim 1, wherein, The process of collecting multi-source heterogeneous data from business systems and preprocessing the multi-source heterogeneous data to obtain a structured dataset includes: Collect heterogeneous data from multiple sources, including expense reimbursement systems, enterprise resource planning systems, customer relationship management systems, human resource systems, project management systems, and supplier management databases. The multi-source heterogeneous data is cleaned, standardized, and given unified entity identifiers to obtain a structured dataset.
6. The data anomaly analysis method of claim 1, wherein, After performing root cause analysis based on the target subgraph to obtain the root cause set, the process further includes: The root cause set is displayed in an interactive visualization, which includes anomalous event nodes, candidate root cause nodes, and the relationship path between them.
7. The data anomaly analysis method of claim 1, wherein, After displaying the root cause set in an interactive visual graphic, the method further includes: In response to a user operation, a target operation is performed on the visualization, the target operation including a drill-down operation, a highlighting operation, or a path explanation text generation operation; In response to report generation instructions, generate a structured root cause analysis report.
8. A data anomaly analysis apparatus characterized by comprising: include: The data acquisition module is used to collect multi-source heterogeneous data from the business system and preprocess the multi-source heterogeneous data to obtain a structured dataset. The data extraction module is used to extract entities and relationships from the structured dataset and construct a knowledge graph based on the extracted entities and relationships. An anomaly detection module is used to detect anomalies based on the structured dataset, using the detected anomaly events as seed nodes. The output module is used to extract the target subgraph corresponding to the abnormal event from the knowledge graph based on the seed node, and perform root cause analysis based on the target subgraph to obtain the root cause set.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the data anomaly analysis method according to any one of claims 1-7.
10. A computer-readable storage medium storing a computer program, the computer-readable storage medium comprising: When the computer program is executed by the processor, it implements the data anomaly analysis method as described in any one of claims 1-7.
