Business data fault detection method, device and equipment and readable storage medium
Through the combination of the isolation forest algorithm and the fault expert database, active fault detection of the vehicle door business process is realized, which solves the problem of poor user experience and improves the efficiency and accuracy of fault detection.
Patent Information
- Application Number
- CN202410771154.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-14
AI Technical Summary
When the user remotely controls the vehicle door through the mobile phone APP, fault detection lags behind, resulting in a poor user experience. It is necessary to passively receive complaint information to analyze the cause of the fault.
Use the isolated forest algorithm to detect business data anomalies, and build a fault expert database to proactively detect and determine fault causes in advance to avoid passive analysis.
It improves the user experience and improves the anomaly detection efficiency and user satisfaction of business processes through active detection and accurate fault cause identification.
Smart Images

Figure CN118764409A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Vehicles big data technology, and in particular to a business data fault detection method, device, equipment and readable storage medium. Background Art
[0002] Users use mobile phone APP (short for application software) to remotely control the opening or closing of vehicle doors. The basic process of this service is that the user opens the APP on the mobile phone, clicks the door opening or closing control button, and then the control signal is transmitted to the TSP (Telematics Service Provider) platform, and the TSP platform sends it to the Tbox (telematics box, vehicle communication terminal), and then the Tbox sends it to the vehicle controller to execute the corresponding door control command.
[0003] When a failure occurs in the business process of remotely controlling a vehicle door through a mobile phone APP, the system currently mainly receives user complaint information passively and analyzes the cause of the failure based on the user complaint information, which has a lag and leads to a poor user experience. Summary of the invention
[0004] The present application provides a business data fault detection method, device, equipment and readable storage medium, which aims to solve the technical problem that when a business process of remotely controlling a vehicle door through a mobile phone APP fails, the current method mainly passively receives user complaint information, analyzes the cause of the fault based on the user complaint information, and has a lag that leads to a poor user experience.
[0005] In a first aspect, an embodiment of the present application provides a service data fault detection method, the service data fault detection method comprising:
[0006] Acquire a business data set to be detected, where each piece of business data to be detected in the business data set to be detected is business data occurring at each node in the business process;
[0007] Use the constructed isolation forest to calculate the anomaly score of the business data set to be detected;
[0008] Determine whether the business data set to be detected has an anomaly according to the anomaly score of the business data set to be detected;
[0009] If there is an abnormality in the service data set to be detected, the fault expert database is searched according to the message content of each service data to be detected to determine the abnormal service data and the corresponding fault cause.
[0010] Optionally, the obtaining of a service data set to be detected includes:
[0011] By setting tracking points at each node in the business process, the business data generated at each node is collected to obtain the business data set to be tested.
[0012] Optionally, before using the constructed isolation forest to calculate the anomaly score of the service data set to be detected, the method includes:
[0013] An isolated forest is constructed using multiple pieces of historical business data, where each piece of historical business data includes message content and fault cause;
[0014] The fault expert database is constructed using the message content and fault causes.
[0015] Optionally, the using multiple pieces of historical business data to construct an isolation forest includes:
[0016] Get multiple pieces of historical business data;
[0017] Divide multiple pieces of historical business data into multiple groups of data, and use each group of data as a piece of sample data;
[0018] All sample data are taken as sample data sets;
[0019] By randomly selecting the feature dimension of the sample data and randomly selecting the feature value of the feature dimension as the cutting point, all the sample data in the sample data set are cut to construct multiple isolated trees;
[0020] The constructed multiple isolated trees form an isolation forest.
[0021] Optionally, the step of calculating the anomaly score of the service data set to be detected by using the constructed isolation forest includes:
[0022] The constructed isolation forest is used to calculate the anomaly score of the business data set to be detected through the formula, which is:
[0023]
[0024] Among them, s(x,ψ) is the anomaly score of the business data set to be detected, x is the business data set to be detected, ψ is the number of isolated trees, h(x) is the path length of the business data set to be detected in each isolated tree, E(h(x)) is the expected path length of the business data set to be detected in all isolated trees, and ε(ψ) is the average path length of all isolated trees.
[0025] Optionally, determining whether the business data set to be detected has an anomaly according to the anomaly score of the business data set to be detected includes:
[0026] If the anomaly score of the service data set to be detected is greater than the first threshold and less than the second threshold, it is determined that the service data set to be detected has an anomaly;
[0027] If the anomaly score of the service data set to be detected is less than the first threshold, it is determined that there is no anomaly in the service data set to be detected.
[0028] Optionally, searching a fault expert database according to the message content of each piece of service data to be detected to determine abnormal service data and a corresponding fault cause includes:
[0029] For each piece of business data to be detected, the fault expert database is searched according to the message content. If there is consistent message content and corresponding fault cause in the fault expert database, the business data to be detected is determined as abnormal business data, and the corresponding fault cause is determined as the fault cause of the abnormal business data.
[0030] In a second aspect, an embodiment of the present application provides a service data fault detection device, the service data fault detection device comprising:
[0031] An acquisition module is used to acquire a data set of business data to be detected, wherein each piece of business data to be detected in the data set of business data to be detected is business data occurring at each node in the business process;
[0032] A calculation module, used to calculate the anomaly score of the business data set to be detected by using the constructed isolation forest;
[0033] A first determination module is used to determine whether the business data set to be detected has an anomaly according to the anomaly score of the business data set to be detected;
[0034] The second determination module is used to search the fault expert database according to the message content of each piece of the service data to be detected if there is an abnormality in the service data set to be detected, so as to determine the abnormal service data and the corresponding fault cause.
[0035] In the third aspect, an embodiment of the present application provides a business data fault detection device, which includes a processor, a memory, and a business data fault detection program stored in the memory and executable by the processor, wherein when the business data fault detection program is executed by the processor, the steps of the business data fault detection method described above are implemented.
[0036] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a business data fault detection program is stored, wherein when the business data fault detection program is executed by a processor, the steps of the business data fault detection method as described above are implemented.
[0037] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:
[0038] In an embodiment of the present application, a business data set to be detected is obtained, and each business data to be detected in the business data set to be detected is business data occurring at each node in the business process; the constructed isolated forest is used to calculate the anomaly score of the business data set to be detected; based on the anomaly score of the business data set to be detected, it is determined whether the business data set to be detected has an anomaly; if the business data set to be detected has an anomaly, a fault expert database is searched according to the message content of each business data to be detected, so as to determine the abnormal business data and the corresponding cause of the failure. In an embodiment of the present application, the business data occurring at each node in the collected business process is used as the business data set to be detected, and the constructed isolated forest is used to detect whether the business data set to be detected has an anomaly; if an anomaly exists, a fault expert database is searched according to the message content of each business data to be detected, so as to determine the abnormal business data and the corresponding cause of the failure, so that the abnormal business data in the business process can be actively detected in advance and the cause of the failure can be accurately determined, avoiding the passive analysis of the cause of the failure based on user complaint information, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is a flow chart of an embodiment of a method for detecting a business data fault of the present application;
[0040] Figure 2 This is a schematic diagram of the isolation forest construction process of an embodiment of the business data fault detection method of this application;
[0041] Figure 3 For this application Figure 1 Detailed flow chart of step S30;
[0042] Figure 4 This is a functional module diagram of an embodiment of a service data fault detection device of the present application;
[0043] Figure 5 This is a schematic diagram of the hardware structure of the business data fault detection device involved in the embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0046] In a first aspect, an embodiment of the present application provides a method for detecting business data faults.
[0047] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of an embodiment of a method for detecting business data failures in the present application. Figure 1 As shown, the service data fault detection method includes:
[0048] Step S10: obtaining a set of business data to be detected, wherein each piece of business data to be detected in the set of business data to be detected is business data occurring at each node in the business process.
[0049] In this embodiment, if the business data generated at each node in the collected business process is the business data set to be detected, the business process may include but is not limited to a business process such as a user remotely controlling the opening or closing of a vehicle door through a mobile phone APP. The basic process of this business is as described in the background technology: the user opens the APP on the mobile phone, clicks the door opening or closing control button, and then the control signal is transmitted to the TSP platform, the TSP platform sends it to the Tbox, and then the Tbox sends it to the vehicle controller to execute the corresponding door control instruction. The nodes in this business process are: the mobile phone APP, TSP platform, Tbox and vehicle controller. Each node cooperates to complete a business process once, and corresponding business data will occur on each node. The content of each business data includes the trigger time of this business process at the current node, the response time of this business process at the current node, and the message content. The collected business data generated at each node can be uniformly obtained from the TSP platform. For example, kafka (a popular distributed publish-subscribe message system) can be used to collect the business data generated from each node, upload and save it to the TSP platform, and then obtain the business data set to be detected from the TSP platform.
[0050] Step S20, using the constructed isolation forest to calculate the anomaly score of the business data set to be detected.
[0051] In this embodiment, the isolation forest algorithm uses the principle that abnormal samples have greater feature differences than normal samples and can be segmented and isolated more quickly to perform anomaly detection. The sample data can be used to construct an isolation forest in advance. The isolation forest is composed of multiple isolated binary trees. The process of using the constructed isolation forest to calculate the anomaly score of the business data set to be detected is mainly to comprehensively take the path length of the business data set to be detected on each isolated binary tree.
[0052] Step S30: determining whether the business data set to be detected has an anomaly according to the anomaly score of the business data set to be detected.
[0053] In this embodiment, the anomaly score represents the degree of anomaly of the business data set to be detected by the constructed isolation forest, and whether the business data set to be detected has an anomaly is determined by the size of the anomaly score of the business data set to be detected.
[0054] Step S40: If the service data set to be detected is abnormal, the fault expert database is searched according to the message content of each service data to be detected to determine the abnormal service data and the corresponding fault cause.
[0055] In this embodiment, in actual application scenarios, the TSP platform usually connects to a large number of vehicles and responds to many demands for remotely controlling the opening or closing of vehicle doors through a mobile phone APP. Therefore, the amount of business data generated by each node that the TSP platform needs to detect and process is very large. Therefore, the present application improves the efficiency of detection and processing through batch detection. The business data set to be detected includes multiple business data to be detected, and the corresponding business data set to be detected is detected to see whether there is an abnormality in the business data set to be detected. Therefore, after detecting that the business data set to be detected has an abnormality, it is also necessary to detect each business data to be detected in the business data set to be detected, that is, search the fault expert database according to the message content of each business data to be detected in turn, and determine the abnormal business data in the business data set to be detected and the corresponding fault cause.
[0056] In this embodiment, a business data set to be detected is obtained from the TSP platform. The business data set to be detected is a plurality of business data occurring at each node in the collected business process. The path length of the business data set to be detected on each isolated binary tree in the isolated forest is comprehensively calculated to obtain the abnormal score of the business data set to be detected. The abnormal score of the business data set to be detected is used to determine whether the business data set to be detected has an abnormality. If an abnormality exists, the fault expert database is searched in turn according to the message content of each business data to be detected, and the abnormal business data in the business data set to be detected and the corresponding fault cause are determined, so that the abnormal business data in the business process can be actively detected in advance and the fault cause can be accurately determined, avoiding the passive fault cause analysis based on user complaint information, and improving the user experience. Moreover, through the batch detection and processing of the business data set to be detected, the abnormal detection processing efficiency is improved, which can better adapt to the scenario where the amount of business data at each node in the business process is huge.
[0057] Furthermore, in one embodiment, step S10 includes:
[0058] By setting tracking points at each node in the business process, the business data generated at each node is collected to obtain the business data set to be tested.
[0059] In this embodiment, setting a tracking point at each node of the business process is a method of data collection. Specifically, the program code for data collection can be attached to the functional program code of each node, and the user behavior or events on each node can be captured, processed and sent to collect the business data occurring at each node. Similarly, Kafka can be used to set a tracking point at each node of the business process to collect the business data occurring at each node, upload and save it to the TSP platform, and then obtain the business data set to be tested from the TSP platform.
[0060] Furthermore, in one embodiment, before step S20, the following steps are included:
[0061] An isolated forest is constructed using multiple pieces of historical business data, where each piece of historical business data includes message content and fault cause;
[0062] The fault expert database is constructed using the message content and fault causes.
[0063] In this embodiment, multiple historical data that have been manually processed to identify the cause of the fault can be collected, and the multiple historical data that have identified the cause of the fault can be used as a sample data set to construct an isolation forest. The message content and the cause of the fault can be used to construct a fault expert database, that is, each piece of data stored in the fault expert database is a certain fault cause corresponding to a certain message content.
[0064] Further, in one embodiment, referring to Figure 2 , Figure 2 This is a schematic diagram of the isolation forest construction process of an embodiment of the business data fault detection method of this application, such as Figure 2 As shown, the isolation forest constructed by using multiple historical business data includes:
[0065] Step S01, obtaining multiple pieces of historical business data;
[0066] Step S02, dividing the multiple pieces of historical business data into multiple groups of data, and taking each group of data as a piece of sample data;
[0067] Step S03, taking all sample data as a sample data set;
[0068] Step S04, by randomly selecting a feature dimension of the sample data and randomly selecting a feature value of the feature dimension as a cutting point, all sample data in the sample data set are cut to construct multiple isolated trees;
[0069] Step S05, forming an isolation forest with the constructed multiple isolated trees.
[0070] In this embodiment, since anomaly detection is performed on batch business data, when constructing an isolated forest, each sample data used to construct the isolated forest is also in batches, that is, one sample data is composed of multiple historical business data. The process of constructing an isolated binary tree is: randomly select a feature dimension of a sample data such as response time, and randomly select a feature value of the feature dimension, such as the response time is 1 second. If the response time of a sample data is less than 1 second, it is placed on the left side of the binary tree. If the response time of a sample data is greater than or equal to 1 second, it is placed on the right side of the binary tree. In this way, all sample data in the sample data set are recursively cut to construct a binary tree until there is only one data on the leaf node (no further cutting is possible) or the isolated tree has grown to the set height. According to this process, multiple isolated trees are constructed, and the multiple isolated trees constructed form an isolated forest.
[0071] Furthermore, in one embodiment, step S20 includes:
[0072] The constructed isolation forest is used to calculate the anomaly score of the business data set to be detected through the formula, which is:
[0073]
[0074] Among them, s(x,ψ) is the anomaly score of the business data set to be detected, x is the business data set to be detected, ψ is the number of isolated trees, h(x) is the path length of the business data set to be detected in each isolated tree, E(h(x)) is the expected path length of the business data set to be detected in all isolated trees, and ε(ψ) is the average path length of all isolated trees.
[0075] In this embodiment, first, the anomaly score s(x, ψ) of the business data set to be detected is the result of the comprehensive path length of the business data set to be detected in each isolated tree in the isolation forest, and ε(ψ) is the average path length of all isolated trees, which is used to normalize the expected path length E(h(x)) of the business data set to be detected in all isolated trees.
[0076] Further, in one embodiment, referring to Figure 3 , Figure 3 For this application Figure 1 The detailed flow chart of step S30 is as follows: Figure 3 As shown, step S30 includes:
[0077] Step S301: if the anomaly score of the service data set to be detected is greater than a first threshold and less than a second threshold, it is determined that an anomaly exists in the service data set to be detected;
[0078] Step S302: If the anomaly score of the service data set to be detected is less than a first threshold, it is determined that there is no anomaly in the service data set to be detected.
[0079] In this embodiment, after the above-mentioned normalization processing, the value range of the anomaly score is [0, 1], the first threshold is, for example, 0.5, and the second threshold is, for example, 1. If 0.5<the anomaly score of the business data set to be detected<1, it means that there is an anomaly in the business data set to be detected; if the anomaly score of the business data set to be detected is <0.5, it means that there is no anomaly in the business data set to be detected.
[0080] Furthermore, in one embodiment, step S40 includes:
[0081] For each piece of business data to be detected, the fault expert database is searched according to the message content. If there is consistent message content and corresponding fault cause in the fault expert database, the business data to be detected is determined as abnormal business data, and the corresponding fault cause is determined as the fault cause of the abnormal business data.
[0082] In this embodiment, the message content and the corresponding fault cause are stored in the fault expert database, and the complaint information can be processed manually. After the specific fault cause is determined according to the message content, a fault expert database is constructed according to the message content and the fault cause. For each business data to be detected, the fault expert database is searched according to the message content. If there is consistent message content and corresponding fault cause in the fault expert database, the business data to be detected is determined as abnormal business data, and the corresponding fault cause is determined as the fault cause of the abnormal business data. If there is no consistent message content and corresponding fault cause in the fault expert database, it can be handed over to manual processing. After manually determining the abnormal business data in the business data set to be detected and determining the fault cause, the message content and the corresponding fault cause of the abnormal business data are further added to the fault expert database, and the fault expert database is continuously improved.
[0083] In a second aspect, an embodiment of the present application also provides a service data fault detection device.
[0084] In one embodiment, referring to Figure 4 , Figure 4 This is a functional module diagram of an embodiment of a service data fault detection device of the present application, such as Figure 4 As shown, the service data fault detection device includes:
[0085] The acquisition module 10 is used to acquire a data set of business data to be detected, wherein each piece of business data to be detected in the data set of business data to be detected is business data occurring at each node in the business process;
[0086] A calculation module 20, used to calculate the anomaly score of the service data set to be detected by using the constructed isolation forest;
[0087] A first determination module 30, configured to determine whether the business data set to be detected has an anomaly according to the anomaly score of the business data set to be detected;
[0088] The second determination module 40 is used to search the fault expert database according to the message content of each piece of the service data to be detected if there is an abnormality in the service data set to be detected, so as to determine the abnormal service data and the corresponding fault cause.
[0089] Furthermore, in one embodiment, the acquisition module 10 is used to:
[0090] By setting tracking points at each node in the business process, the business data generated at each node is collected to obtain the business data set to be tested.
[0091] Furthermore, in one embodiment, the service data fault detection device further includes a construction module, including:
[0092] A first construction unit is used to construct an isolation forest using multiple historical business data, wherein each historical business data includes message content and a fault cause;
[0093] The second construction unit is used to construct a fault expert database using the message content and the fault cause.
[0094] Furthermore, in one embodiment, the first building unit is used to:
[0095] Get multiple pieces of historical business data;
[0096] Divide multiple pieces of historical business data into multiple groups of data, and use each group of data as a piece of sample data;
[0097] All sample data are taken as sample data sets;
[0098] By randomly selecting the feature dimension of the sample data and randomly selecting the feature value of the feature dimension as the cutting point, all the sample data in the sample data set are cut to construct multiple isolated trees;
[0099] The constructed multiple isolated trees form an isolation forest.
[0100] Furthermore, in one embodiment, the calculation module 20 is used to:
[0101] The constructed isolation forest is used to calculate the anomaly score of the business data set to be detected through the formula, which is:
[0102]
[0103] Among them, s(x,ψ) is the anomaly score of the business data set to be detected, x is the business data set to be detected, ψ is the number of isolated trees, h(x) is the path length of the business data set to be detected in each isolated tree, E(h(x)) is the expected path length of the business data set to be detected in all isolated trees, and ε(ψ) is the average path length of all isolated trees.
[0104] Furthermore, in one embodiment, the first determining module 30 is configured to:
[0105] If the anomaly score of the service data set to be detected is greater than the first threshold and less than the second threshold, it is determined that the service data set to be detected has an anomaly;
[0106] If the anomaly score of the service data set to be detected is less than the first threshold, it is determined that there is no anomaly in the service data set to be detected.
[0107] Furthermore, in one embodiment, the second determining module 40 is configured to:
[0108] For each piece of business data to be detected, the fault expert database is searched according to the message content. If there is consistent message content and corresponding fault cause in the fault expert database, the business data to be detected is determined as abnormal business data, and the corresponding fault cause is determined as the fault cause of the abnormal business data.
[0109] Among them, the functional implementation of each module in the above-mentioned business data fault detection device corresponds to each step in the above-mentioned business data fault detection method embodiment, and its functions and implementation processes are no longer repeated here one by one.
[0110] In a third aspect, an embodiment of the present application provides a business data fault detection device.
[0111] Reference Figure 5 , Figure 5 Schematic diagram of the hardware structure of the service data fault detection device involved in the embodiment of the present application. In the embodiment of the present application, the service data fault detection device may include a processor, a memory, a communication interface and a communication bus.
[0112] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.
[0113] The communication interface includes input / output (I / O) interface, physical interface and logical interface, etc., which are used to realize the interconnection of devices inside the service data fault detection device, and the interface used to realize the interconnection between the service data fault detection device and other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.
[0114] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0115] The processor may be a general-purpose processor, and the general-purpose processor may call the service data fault detection program stored in the memory and execute the service data fault detection method provided by the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the service data fault detection program is called may refer to the various embodiments of the service data fault detection method of the present application, and will not be repeated here.
[0116] Those skilled in the art will understand that Figure 5 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0117] In a fourth aspect, an embodiment of the present application also provides a readable storage medium.
[0118] A business data fault detection program is stored on the readable storage medium of the present application, wherein when the business data fault detection program is executed by a processor, the steps of the business data fault detection method as described above are implemented.
[0119] Among them, the method implemented when the business data fault detection program is executed can refer to the various embodiments of the business data fault detection method of the present application, and will not be repeated here.
[0120] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0121] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0122] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0123] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0124] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0126] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for detecting business data failures, It is characterized in that The service data fault detection method comprises: Acquire a business data set to be detected, where each piece of business data to be detected in the business data set to be detected is business data occurring at each node in the business process; Use the constructed isolation forest to calculate the anomaly score of the business data set to be detected; Determine whether the business data set to be detected has an anomaly according to the anomaly score of the business data set to be detected; If there is an abnormality in the service data set to be detected, the fault expert database is searched according to the message content of each service data to be detected to determine the abnormal service data and the corresponding fault cause.
2. The service data fault detection method according to claim 1, It is characterized in that The obtaining of the service data set to be detected comprises: By setting tracking points at each node in the business process, the business data generated at each node is collected to obtain the business data set to be tested.
3. The service data fault detection method according to claim 1, It is characterized in that Before using the constructed isolation forest to calculate the anomaly score of the service data set to be detected, the following steps are included: An isolated forest is constructed using multiple pieces of historical business data, where each piece of historical business data includes message content and fault cause; The fault expert database is constructed using the message content and fault causes.
4. The service data fault detection method according to claim 3, It is characterized in that The isolation forest constructed by using multiple historical business data includes: Get multiple pieces of historical business data; Divide multiple pieces of historical business data into multiple groups of data, and use each group of data as a piece of sample data; All sample data are taken as sample data sets; By randomly selecting the feature dimension of the sample data and randomly selecting the feature value of the feature dimension as the cutting point, all the sample data in the sample data set are cut to construct multiple isolated trees; The constructed multiple isolated trees form an isolation forest.
5. The service data fault detection method according to claim 4, It is characterized in that The method of using the constructed isolation forest to calculate the anomaly score of the service data set to be detected includes: The constructed isolation forest is used to calculate the anomaly score of the business data set to be detected through the formula, which is: Among them, s(x,ψ) is the anomaly score of the business data set to be detected, x is the business data set to be detected, ψ is the number of isolated trees, h(x) is the path length of the business data set to be detected in each isolated tree, E(h(x)) is the expected path length of the business data set to be detected in all isolated trees, and ε(ψ) is the average path length of all isolated trees.
6. The service data fault detection method according to claim 1, It is characterized in that The determining whether the business data set to be detected has an anomaly according to the anomaly score of the business data set to be detected comprises: If the anomaly score of the service data set to be detected is greater than the first threshold and less than the second threshold, it is determined that the service data set to be detected has an anomaly; If the anomaly score of the service data set to be detected is less than the first threshold, it is determined that there is no anomaly in the service data set to be detected.
7. The service data fault detection method according to claim 3, It is characterized in that The searching of the fault expert database according to the message content of each service data to be detected to determine the abnormal service data and the corresponding fault cause includes: For each piece of business data to be detected, the fault expert database is searched according to the message content. If there is consistent message content and corresponding fault cause in the fault expert database, the business data to be detected is determined as abnormal business data, and the corresponding fault cause is determined as the fault cause of the abnormal business data.
8. A service data fault detection device, It is characterized in that The service data fault detection device comprises: An acquisition module is used to acquire a data set of business data to be detected, wherein each piece of business data to be detected in the data set of business data to be detected is business data occurring at each node in the business process; A calculation module, used to calculate the anomaly score of the business data set to be detected by using the constructed isolation forest; A first determination module is used to determine whether the business data set to be detected has an anomaly according to the anomaly score of the business data set to be detected; The second determination module is used to search the fault expert database according to the message content of each piece of the service data to be detected if there is an abnormality in the service data set to be detected, so as to determine the abnormal service data and the corresponding fault cause.
9. A service data fault detection device, It is characterized in that The business data fault detection device includes a processor, a memory, and a business data fault detection program stored in the memory and executable by the processor, wherein when the business data fault detection program is executed by the processor, the steps of the business data fault detection method as described in any one of claims 1 to 7 are implemented.
10. A readable storage medium, It is characterized in that The readable storage medium stores a business data fault detection program, wherein when the business data fault detection program is executed by a processor, the steps of the business data fault detection method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
End-to-end network perception anomaly detection and analysis method, system and device and medium
CN111669368A
Abnormity detection and attribution method and device, equipment and computer readable storage medium
CN111901171A
Online monitoring and fault analysis system for intelligent substation
CN111987794A
Abnormity detection method and device for micro-service system
CN112817785A
Network exception handling method, device and equipment
CN116546535A
Cited By
Fault prediction method, program product, device and medium
CN119046860A
