Fault analysis method and device, terminal equipment and storage medium

Through causal relationship analysis and impact assessment, the problem of data screening accuracy in terminal equipment troubleshooting is solved, the accuracy and efficiency of fault analysis are improved, and the efficiency of fault repair and equipment stability are improved.

CN118550737APending Publication Date: 2024-08-27GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310167047.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the current technology, due to the huge amount of global software and hardware data information in terminal equipment troubleshooting, it is easy to miss or misscreen relevant data, resulting in a reduction in the accuracy of determining the cause of the fault and affecting the efficiency of troubleshooting and repair.

Method used

By obtaining a variety of system data related to the target fault, we conduct causal relationship discovery and causal strength analysis to determine the impact of each system data on the fault, improve data correlation and avoid missing or wrong screening, and improve the accuracy and accuracy of fault analysis. Quantitative ability.

Benefits of technology

It improves the accuracy of determining the cause of faults and the efficiency of troubleshooting and repair, effectively explores potential causes of faults, and improves the operational stability and service life of terminal equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550737A
    Figure CN118550737A
Patent Text Reader

Abstract

The invention is suitable for the technical field of information processing, and provides a fault analysis method and device, terminal equipment and a storage medium. According to the method, the corresponding various system data are acquired based on the target fault; performing causal discovery on the various system data to obtain a causal relationship among the various system data; based on the causal strength of the causal relationship between each kind of first system data and the second system data, the influence degree of each kind of first system data on the target fault is determined, and the data type of the obtained system data is associated with the fault type of the target fault, so that the correlation between the collected system data and the target fault can be improved, and the fault detection accuracy is improved. According to the method, the target fault is determined, missing screening or wrong screening of the system data related to the target fault is avoided, the accuracy of determining the fault reason is improved, the influence degree of each type of first system data on the target fault is determined through the causal strength, the quantification capability of fault analysis can be improved, and therefore the troubleshooting and repairing efficiency of the fault is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information processing technology, and in particular, relates to a fault analysis method, apparatus, terminal equipment and storage medium. Background Art

[0002] With the rapid development of electronic technology, terminal devices have become an indispensable tool for learning, working and entertainment in life. However, due to the complexity of software and hardware coordination, terminal devices may occasionally experience freezes, performance restrictions, heat or application crashes during use. Terminal device manufacturers usually try to find out the causes of the failures to overcome related software and hardware defects and improve the operating stability and service life of terminal devices.

[0003] At present, manufacturers usually collect global software and hardware data during the life cycle of terminal equipment, and filter out relevant software and hardware data at the corresponding moment when the terminal equipment fails. However, the amount of information in the global software and hardware data is huge, and it is easy to miss or mis-screen relevant software and hardware data during the screening process, resulting in reduced accuracy in determining the cause of the failure, affecting the efficiency of fault detection and repair. Therefore, how to improve the accuracy of determining the cause of the failure has become an urgent problem to be solved. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a fault analysis method, apparatus, terminal device and storage medium to solve the problem of low accuracy in determining the cause of the existing fault.

[0005] A first aspect of an embodiment of the present application provides a fault analysis method, the method comprising:

[0006] Acquire corresponding multiple system data based on the target fault; the data type of the system data is associated with the fault type of the target fault;

[0007] Performing causal discovery on the multiple system data to obtain causal relationships between the multiple system data;

[0008] Determining the influence degree of each first system data on the target fault based on the causal strength of the causal relationship between each first system data and the second system data;

[0009] The first system data is used to characterize the local operating conditions, and the second system data is used to characterize the fault conditions of the target fault.

[0010] A first aspect of an embodiment of the present application provides a fault analysis method, which obtains corresponding multiple system data based on a target fault; performs causal discovery on the multiple system data to obtain the causal relationship between the multiple system data; determines the degree of influence of each first system data on the target fault based on the causal strength of the causal relationship between each first system data and the second system data, and by associating the data type of the acquired system data with the fault type of the target fault, the correlation between the collected system data and the target fault can be improved, and the omission or misscreening of system data related to the target fault can be avoided, thereby improving the accuracy of determining the cause of the fault. Moreover, by determining the degree of influence of each first system data on the target fault through the above-mentioned causal strength, the quantitative ability of fault analysis can be improved, and potential causes of faults can be effectively explored, thereby improving the efficiency of fault detection and repair.

[0011] A second aspect of an embodiment of the present application provides a fault analysis device, including:

[0012] An acquisition module, used for acquiring corresponding multiple system data based on a target fault; the data type of the system data is associated with the fault type of the target fault;

[0013] A discovery module, used to perform causal discovery on the multiple system data to obtain the causal relationship between the multiple system data;

[0014] An analysis module, configured to determine the influence degree of each first system data on the target fault based on the causal strength of the causal relationship between each first system data and the second system data;

[0015] The first system data is used to characterize the local operating conditions, and the second system data is used to characterize the fault conditions of the target fault.

[0016] The third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the fault analysis method provided in the first aspect of the embodiment of the present application when executing the computer program.

[0017] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the fault analysis method provided in the first aspect of the embodiment of the present application are implemented.

[0018] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0021] Figure 2 This is a first flow chart of the fault analysis method provided in the embodiment of the present application;

[0022] Figure 3 This is a second flow chart of the fault analysis method provided in the embodiment of the present application;

[0023] Figure 4 It is a schematic diagram of the cause-effect relationship between various system data within a first preset time period provided in an embodiment of the present application;

[0024] Figure 5 It is a schematic diagram of a cause-and-effect relationship diagram between various system data within a second preset time period provided in an embodiment of the present application;

[0025] Figure 6 This is a third flow chart of the fault analysis method provided in the embodiment of the present application;

[0026] Figure 7 It is a structural schematic diagram of a fault analysis device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0028] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0029] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0030] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0031] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0032] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0033] In applications, manufacturers usually collect global software and hardware data during the life cycle of terminal devices, and filter out relevant software and hardware data at the corresponding moment when the terminal device fails. However, the amount of information in global software and hardware data is huge, and it is easy to miss or mis-screen relevant software and hardware data during the screening process, resulting in reduced accuracy in determining the cause of the failure, affecting the efficiency of fault detection and repair. Therefore, how to improve the accuracy of determining the cause of the failure has become an urgent problem to be solved.

[0034] In response to the above technical problems, an embodiment of the present application provides a fault analysis method, which obtains corresponding multiple system data based on a target fault; performs causal discovery on the multiple system data to obtain the causal relationship between the multiple system data; determines the degree of influence of each first system data on the target fault based on the causal strength of the causal relationship between each first system data and the second system data, and by associating the data type of the acquired system data with the fault type of the target fault, the correlation between the collected system data and the target fault can be improved, and the omission or misscreening of system data related to the target fault can be avoided, thereby improving the accuracy of determining the cause of the fault. Moreover, by determining the degree of influence of each first system data on the target fault through the above-mentioned causal strength, the quantitative ability of fault analysis can be improved, and potential causes of faults can be effectively explored, thereby improving the efficiency of fault detection and repair.

[0035] The fault analysis method provided in the embodiment of the present application can be applied to a terminal device. The terminal device can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.

[0036] Figure 1 The schematic diagram of the structure of the terminal device 100 is shown as an example, and the terminal device 100 includes a processor 10, a memory 20, an audio module 30, a camera module 40, a sensor module 50, an input module 60, a display module 70, a wireless communication module 80, and a power module 90. Among them, the audio module 30 may include a speaker 31 and a microphone 32, etc., the camera module 40 may include a short-focus camera 41, a long-focus camera 42, and a flash 43, etc., the sensor module 50 may include an infrared sensor 51, an acceleration sensor 52, a position sensor 53, a fingerprint sensor 54, and an iris sensor 55, etc., the input module 60 may include a touch panel 61 and an external input unit 62, etc., and the wireless communication module 80 may include wireless communication units such as Bluetooth, optical wireless communication (Optical Wireless), mobile communication (Mobile Communications), wireless local area network (Wireless Local Area Network, WLAN), near field communication (Near Field Communication, NFC) and ZigBee protocol (ZigBee).

[0037] In applications, the processor 10 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0038] In application, the memory 20 may be an internal storage unit of the terminal device in some embodiments, such as a hard disk or memory of the terminal device. The memory 20 may also be an external storage device of the terminal device in other embodiments, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory 20 may also include both an internal storage unit of the terminal device and an external storage device. The memory 20 is used to store computer programs 21 such as an operating system, an application program, and a boot loader (BootLoader). The memory 20 may also be used to temporarily store data that has been output or is to be output.

[0039] In application, the display module 70 can be a flat screen, a curved screen or a flexible screen, specifically a folding screen. The folding screen may include at least one flexible screen, or the folding screen may include at least one flexible screen and at least one flat screen or curved screen. The embodiment of the present application does not impose any restrictions on the specific type of the display module 70.

[0040] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than those illustrated, or may combine certain components, or different components, for example, may also include a graphics processor, etc. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0041] like Figure 2 As shown, the fault analysis method provided in the embodiment of the present application includes the following steps S201 to S203:

[0042] Step S201: acquiring corresponding multiple system data based on a target fault; the data type of the system data is associated with the fault type of the target fault.

[0043] In the application, the terminal device can determine whether the target fault occurs by monitoring the operation log. When the target fault occurs in the terminal device or after the target fault occurs, the fault type of the target fault is first determined: specifically, the target fault can be input into a preset mapping table by looking up the table to obtain the fault type of the target fault. The preset mapping table pre-stores multiple fault types and at least one local fault corresponding to each fault type.

[0044] In the application, for any type of fault, the terminal device stores the data type of the system data associated with the fault type, so that after determining the fault type of the target fault, the data type of the system data associated with the above fault type can be determined, and then the corresponding multiple system data within the preset time period can be obtained. It should be noted that the system data can specifically be pre-collected event tracking data. After the terminal device determines the data type of all system data associated with all fault types, it can collect event tracking data based on all data types, so that when any target fault occurs, it can obtain multiple system data corresponding to the preset time period based on the event tracking data, thereby realizing long-term collection of system data and improving the acquisition speed of the associated system data when the target fault occurs. Among them, the preset time period can include during the occurrence of the target fault, before the occurrence of the target fault and / or after the occurrence of the target fault.

[0045] For example, the fault types may include temperature fault, power consumption fault, operation fault (including automatic shutdown, automatic restart and freeze, etc.), network fault, audio fault and display fault, etc.;

[0046] Taking temperature fault as an example, there are four local faults: power module overheating, mainboard overheating, display module overheating and wireless communication module overheating.

[0047] When the fault type of the target fault is a temperature fault, the data type of the corresponding system data may include the model code (Model Type), system version, maximum current of the processor, name of the running application package, 50th percentile of the battery current, 50th percentile of the battery power consumption, and proportion of overheating time;

[0048] In addition, based on determining that the fault type of the target fault is a temperature fault, if a fault analysis is performed on a certain monitored application, the data type of the corresponding system data can be further refined, including the model code (ModelType), system version, maximum current of the processor, application package name of the monitored application, 50th percentile of the battery current during the operation of the monitored application, 50th percentile of the running time of the monitored application, 50th percentile of the power consumption of the monitored application, and the proportion of overheating time.

[0049] Step S202: Perform causal discovery on various system data to obtain causal relationships between the various system data.

[0050] In the application, after obtaining a variety of system data corresponding to the target fault, causal discovery can be performed on the various system data to obtain the causal relationship between the various systems. Specifically, the various system data can be input as data sets into a preset algorithm for causal discovery. The preset algorithm can be a causal discovery algorithm such as a greedy equivalence search algorithm (Fast Greedy Equivalence Search, FGES), a fast causal inference algorithm (Really Fast Causal Inference, RFCI) or a greedy fast causal inference algorithm (Greedy Fast Causal Inference, GFCI). The embodiment of the present application does not impose any restrictions on the specific type of the causal discovery algorithm selected by the preset algorithm.

[0051] In one embodiment, step S202 includes:

[0052] Perform causal discovery on various system data based on n preset algorithms to obtain n groups of sub-causal relationships between various system data;

[0053] Aggregate n groups of sub-causal relationships to obtain the causal relationships between multiple system data;

[0054] n is an integer greater than or equal to 2, and the n preset algorithms are different from each other.

[0055] In application, the above-mentioned various system data can be respectively input into the above-mentioned n causal discovery algorithms as data sets to obtain corresponding n groups of sub-causal relationships, and the above-mentioned n groups of sub-causal relationships can be aggregated to obtain the causal relationships between the various system data.

[0056] Specifically, the aggregation method of causal relationship may include a sorting and screening method and a threshold filtering method, which are specifically described below. For any two system data (assuming data A and data B), the sorting and screening method can obtain the causal relationship between data A and data B in multiple algorithms (the causal relationship may include four categories, namely: the first type of causal relationship, data A points to data B, that is, data A has an impact on data B; the second type of causal relationship, data B points to data A, that is, data B has an impact on data A; the third type of causal relationship, data A and data B are related and have no direction, that is, data A and data B affect each other; the fourth type of causal relationship, data A and data B are not related, that is, data A and data B do not affect each other), and all the causal relationships outputted from the multiple algorithms are sorted according to the category, and the causal relationship with the largest number of outputs is taken as the causal relationship between data A and data B; it should be noted that if the output numbers of any two types of causal relationships from the first to the third types of causal relationships are the same and are greater than the output number of the fourth type of causal relationship, the third type of causal relationship is taken as the causal relationship between data A and data B;

[0057] The threshold filtering method can obtain the causal relationship between data A and data B in multiple algorithms (the categories of causal relationships can refer to the above-mentioned relevant descriptions and will not be repeated here), and determine whether the output number of any type of causal relationship is greater than the preset threshold. If it is greater, the type of causal relationship with the largest output number is taken as the causal relationship between data A and data B. It should be noted that if the output numbers of any two types of causal relationships from the first to the third types of causal relationships are the same and greater than the output number of the fourth type of causal relationship, the third type of causal relationship is taken as the causal relationship between data A and data B; if it is less than, the causal relationship between data A and data B is determined to be that data A and data B are unrelated.

[0058] Step S203: determining the influence degree of each type of first system data on the target fault based on the causal strength of the causal relationship between each type of first system data and the second system data;

[0059] The first system data is used to characterize the local operating conditions, and the second system data is used to characterize the fault conditions of the target fault.

[0060] In the application, the system data may include multiple first system data and one second system data. The data type of the second system data may be determined by the fault type of the target fault (for example, when the fault type is a temperature fault, the data type of the second system data may be the overheating time ratio). After obtaining the causal relationship between the multiple system data and determining the data type of the second system data, the causal strength of the causal relationship between each first system data and the second system data may be further determined, thereby determining the degree of influence of each first system data on the target fault. It should be noted that the above causal strength and degree of influence are positively correlated.

[0061] In one embodiment, before step S203, the method further includes:

[0062] For any causal relationship between the first system data and the second system data, determine the causal strength of the causal relationship based on the path length of the causal relationship and the causal strength of each path in the causal relationship;

[0063] The path length of the causal relationship is determined based on the quantity of the first system data associated with the corresponding causal relationship.

[0064] In the application, the causal strength of the causal relationship can be determined by obtaining the path length of the causal relationship and the causal strength of each path in the causal relationship. Among them, the number of the first system data associated with the causal relationship determines the number of paths of the corresponding causal relationship, thereby determining the path length of the causal relationship (the number of paths and the path length are positively correlated); the causal strength of any path in the causal relationship is determined according to the causal strength of the two system data associated with any of the above paths. It should be noted that the path is composed of the two associated system data, the path has directionality, and the directionality of the path is determined according to the category of the causal relationship between the two associated system data.

[0065] In the application, the causal strength of each path in the causal relationship can be determined by calculating the Kendall rank correlation coefficient and / or Cramer's V between the two system data associated with the corresponding path. The embodiment of the present application does not impose any limitation on the calculation method of the causal strength of the path.

[0066] In application, the causal strength of a causal relationship is negatively correlated with the path length of the causal relationship, and positively correlated with the causal strength of any path in the causal relationship. The calculation formula for determining the causal strength of a causal relationship is:

[0067]

[0068] Among them, e pathrepresents the causal strength of the causal relationship, L represents the path length, i represents the number of any system data in the path (the number of the system data can be sorted in reverse or forward order according to the path sequence), e i , i+1 It represents the causal strength between the i-th system data and the i+1-th system data in the path, exp represents the exponential function with the natural constant e as the base, and α represents the control parameter of the decay rate.

[0069] In the application, by acquiring corresponding multiple system data based on the target fault; performing causal discovery on the multiple system data to acquire the causal relationship between the multiple system data; determining the influence of each first system data on the target fault based on the causal strength of the causal relationship between each first system data and the second system data, and by associating the data type of the acquired system data with the fault type of the target fault, the correlation between the collected system data and the target fault can be improved, and missing or misscreening of system data related to the target fault can be avoided, thereby improving the accuracy of determining the cause of the fault. Moreover, by determining the influence of each first system data on the target fault through the above-mentioned causal strength, the quantitative ability of fault analysis can be improved, and potential causes of faults can be effectively excavated, thereby improving the efficiency of fault detection and repair.

[0070] like Figure 3 As shown, in one embodiment, based on Figure 2 The corresponding embodiment includes the following steps S301 to S305:

[0071] Step S301, acquiring a variety of system data corresponding to a target fault within a first preset time period;

[0072] Step S302, acquiring a variety of system data corresponding to the target fault within a second preset time period;

[0073] Among them, no fault is detected locally during the first preset time period, and a target fault is detected locally during the second preset time period.

[0074] In the application, after determining the data type of the associated system data according to the fault type of the target fault, multiple system data corresponding to the target fault within a first preset time period and multiple system data corresponding to the target fault within a second preset time period can be obtained respectively, thereby obtaining two sets of system data, which is convenient for obtaining the causal relationship between the two sets of system data for comparison. The specific comparison method is explained below.

[0075] Step S303: perform causal discovery on the various system data to obtain the causal relationship between the various system data within a first preset time period and the causal relationship between the various system data within a second preset time period.

[0076] In the application, the various system data within the first preset period and the various system data within the second preset period can be respectively input into the preset algorithm for causal discovery, so as to obtain two sets of causal relationships according to whether the target fault is sent. The specific method of causal discovery can refer to the relevant description of the above step S202, which will not be repeated here.

[0077] Step S304: screening the multiple first system data to obtain suspicious system data according to the causal relationship between the multiple system data within the first preset time period and the causal relationship between the multiple system data within the second preset time period;

[0078] The suspicious system data has no causal relationship with the second system data within a first preset time period, and has a causal relationship with the second system data within a second preset time period.

[0079] In the application, after obtaining two sets of causal relationships, the two sets of causal relationships can be compared to screen out suspicious system data from a variety of first system data. Figure 4 and Figure 5 The following describes the screening of suspicious system data.

[0080] Figure 4 The causal relationship diagram between various system data within the first preset time period is shown as an example. Figure 5 The causal relationship diagram between various system data within the second preset time period is exemplarily shown, wherein the solid circles represent the first system data and the hollow circles represent the second system data.

[0081] Depend on Figure 4 and Figure 5 It can be seen that the model code and the application package name of the monitoring application have no causal relationship with the second system data within the first preset time period, and have a causal relationship with the second system data within the second preset time period. Therefore, the model code and the application package name of the monitoring application are screened as suspicious system data among multiple first system data.

[0082] Step S305: determining the influence degree of each type of suspicious system data on the target fault based on the causal strength of the causal relationship between each type of suspicious system data and the second system data;

[0083] The faulty system data has no causal relationship with the second system data within the first preset period, and has a causal relationship with the second system data within the second preset period.

[0084] In application, the method for determining the influence degree of the suspicious system data on the target fault may refer to the method for determining the influence degree of the first system data on the target fault in the above step S203, which will not be described in detail here.

[0085] In the application, by obtaining the system data before the fault occurs and when the target fault occurs, and performing causal discovery respectively, two sets of causal relationships are obtained; by comparing and analyzing the two sets of causal relationships, suspicious system data can be screened out, further improving the accuracy of judging the cause of the fault.

[0086] like Figure 6 As shown, in one embodiment, based on Figure 3 The corresponding embodiment includes the following steps S601 to S608:

[0087] Step S601, acquiring a variety of system data corresponding to a target fault within a first preset time period;

[0088] Step S602, acquiring a plurality of system data corresponding to the target fault within a second preset time period;

[0089] Among them, no fault is detected locally during the first preset time period, and a target fault is detected locally during the second preset time period.

[0090] In the application, the fault analysis method provided by step S601 and step S602 is consistent with the fault analysis method provided by the above-mentioned step S301 and step S302, and will not be repeated here.

[0091] In an application, after obtaining various system data, the system data may be processed to improve the availability of the system data. The specific method of data processing is described below.

[0092] Step S603: after acquiring the various system data, perform data screening on the various system data based on a preset null value ratio to remove invalid data;

[0093] Step S604: if any type of system data has a null value and the null value ratio is greater than a preset null value ratio, the null value is interpolated and filled based on a non-null value of any type of system data.

[0094] In the application, the system data records the values ​​at multiple times within a preset time period. The terminal device can obtain the null value ratio of multiple system data and determine whether the null value ratio of each system data is less than the preset null value ratio. If so, the corresponding system data is determined to be invalid data and discarded.

[0095] In the application, if any system data has null values ​​and the null value ratio is greater than the preset null value ratio, the null values ​​can be interpolated and filled based on the non-null values ​​of any system data. Specifically, the average value of the non-null values ​​of any of the above system data can be calculated, and the null values ​​can be interpolated and filled with the average value; or fitting can be performed based on the non-null values ​​of any of the above system data, and the null values ​​can be interpolated and filled with the fitting results. The embodiment of the present application does not impose any restrictions on the specific method of interpolating and filling null values.

[0096] Step S605: After acquiring a plurality of system data, for any system data, if the data format of the system data is continuous, discretization processing is performed on the system data to convert the data format of the system data into discrete type.

[0097] In the application, after obtaining a variety of system data, the data form of the system data can be obtained. If the data form of the system data is continuous, the data form of the corresponding system data can be converted into discrete form, so as to avoid greatly increasing the difficulty of causal discovery and the operating efficiency of the preset algorithm due to a variety of variable combinations during causal discovery, thereby improving the speed of causal discovery and reducing the local operating load, thereby improving the efficiency of fault detection and repair.

[0098] In one embodiment, step S605 includes:

[0099] For any system data in a continuous data format, determine the preset interval to which the original value of the system data at each moment belongs;

[0100] The preset value corresponding to the preset interval replaces the original value at the corresponding moment.

[0101] In the application, for any system data in a continuous data form, the preset interval to which the original value of the system data at each moment belongs can be determined, and the original data can be replaced according to the preset value corresponding to the preset interval. It should be noted that the preset value corresponding to each preset interval can be preset, and the embodiment of the present application does not impose any restrictions on the specific method of discretizing the system data.

[0102] Step S606: performing causal discovery on the various system data to obtain the causal relationship between the various system data within the first preset time period and the causal relationship between the various system data within the second preset time period;

[0103] Step S607: screening the multiple first system data to obtain suspicious system data according to the causal relationship between the multiple system data within the first preset time period and the causal relationship between the multiple system data within the second preset time period;

[0104] The suspicious system data has no causal relationship with the second system data within a first preset period, and has a causal relationship with the second system data within a second preset period;

[0105] Step S608: determining the influence degree of each type of suspicious system data on the target fault based on the causal strength of the causal relationship between each type of suspicious system data and the second system data;

[0106] The faulty system data has no causal relationship with the second system data within the first preset period, and has a causal relationship with the second system data within the second preset period.

[0107] In the application, the fault analysis method provided by steps S606 to S608 is consistent with the fault analysis method provided by steps S303 to S305 above, and will not be described in detail here.

[0108] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0109] like Figure 7 As shown, the embodiment of the present application also provides a fault analysis device for executing the steps in the above fault analysis method embodiment. The fault analysis device can be a virtual appliance in the terminal device, which is run by the processor of the terminal device, or it can be the terminal device itself.

[0110] like Figure 7 As shown, the fault analysis device 7 provided in the embodiment of the present application includes:

[0111] An acquisition module 710 is used to acquire corresponding multiple system data based on the target fault; the data type of the system data is associated with the fault type of the target fault;

[0112] A discovery module 720 is used to perform causal discovery on various system data and obtain causal relationships between various system data;

[0113] An analysis module 730, configured to determine faulty system data from among the plurality of first system data based on a causal relationship between each type of first system data and the second system data;

[0114] The first system data is used to characterize the local operating conditions, and the second system data is used to characterize the fault conditions of the target fault.

[0115] In one embodiment, the acquisition module 710 includes:

[0116] A first acquisition unit, configured to acquire a plurality of system data corresponding to a target fault within a first preset time period;

[0117] A second acquisition unit, used to acquire a plurality of system data corresponding to the target fault within a second preset time period;

[0118] Among them, no fault is detected locally during the first preset time period, and a target fault is detected locally during the second preset time period.

[0119] In one embodiment, the discovery module 720 includes:

[0120] A sub-discovery unit, configured to perform causal discovery on the various system data, and obtain the causal relationship between the various system data within a first preset time period, and the causal relationship between the various system data within a second preset time period;

[0121] In one embodiment, the fault analysis device 7 further includes:

[0122] A screening module, used for screening suspicious system data from a plurality of first system data according to the causal relationship between the plurality of system data within a first preset time period and the causal relationship between the plurality of system data within a second preset time period;

[0123] The suspicious system data has no causal relationship with the second system data within a first preset period, and has a causal relationship with the second system data within a second preset period;

[0124] In one embodiment, the analysis module 730 includes:

[0125] The sub-analysis unit is used to determine the influence degree of each suspicious system data on the target fault based on the causal strength of the causal relationship between each suspicious system data and the second system data.

[0126] In one embodiment, the fault analysis device 7 further includes:

[0127] A first data processing module is used to perform data screening on the various system data based on a preset null value ratio after acquiring the various system data to remove invalid data;

[0128] If any system data has null values ​​and the null value ratio is greater than the preset null value ratio, the null values ​​are interpolated and filled based on the non-null values ​​of any system data.

[0129] The second data processing module is used for, after acquiring a plurality of system data, discretizing any system data if the data form of the system data is continuous, so as to convert the data form of the system data into discrete form.

[0130] In application, each module in the fault analysis device 7 may be a software program module, or may be implemented by different logic circuits integrated in a processor, or may be implemented by multiple distributed processors.

[0131] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0132] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The functional modules in the embodiment can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. In addition, the specific names of the functional modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0133] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various fault analysis method embodiments can be implemented.

[0134] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may at least include: any entity or device that can carry the computer program code to the camera terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

[0135] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0136] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0137] In the embodiments provided in the present application, it should be understood that the disclosed terminal device and method can be implemented in other ways. For example, the terminal device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0138] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A fault analysis method, It is characterized in that include: Obtain corresponding various system data based on target faults; The data type of the system data is associated with the fault type of the target fault; Performing causal discovery on the multiple system data to obtain causal relationships between the multiple system data; Determining the influence degree of each first system data on the target fault based on the causal strength of the causal relationship between each first system data and the second system data; The first system data is used to characterize the local operating conditions, and the second system data is used to characterize the fault conditions of the target fault.

2. The fault analysis method according to claim 1, It is characterized in that The obtaining of corresponding multiple system data based on the target fault includes: Acquire a plurality of system data corresponding to the target fault within a first preset time period; Acquire a plurality of system data corresponding to the target fault within a second preset time period; Among them, no fault is detected locally during the first preset time period, and the target fault is detected locally during the second preset time period.

3. The fault analysis method according to claim 2, It is characterized in that The performing causal discovery on the multiple system data to obtain the causal relationship between the multiple system data includes: Performing causal discovery on the multiple system data to obtain causal relationships between the multiple system data within the first preset time period and causal relationships between the multiple system data within the second preset time period; The method further comprises: Screening the multiple first system data to obtain suspicious system data according to the causal relationship between the multiple system data within the first preset time period and the causal relationship between the multiple system data within the second preset time period; The suspicious system data has no causal relationship with the second system data within a first preset period, and has a causal relationship with the second system data within a second preset period; The determining, based on the causal strength of the causal relationship between each type of first system data and the second system data, the degree of influence of each type of first system data on the target fault comprises: Based on the causal strength of the causal relationship between each type of suspicious system data and the second system data, the influence degree of each type of suspicious system data on the target fault is determined.

4. The fault analysis method according to any one of claims 1 to 3, It is characterized in that The method further comprises: After acquiring the plurality of system data, performing data screening on the plurality of system data based on a preset null value ratio to remove invalid data; If any type of system data has null values ​​and the null value ratio is greater than a preset null value ratio, the null values ​​are interpolated and filled based on the non-null values ​​of any type of system data.

5. The fault analysis method according to any one of claims 1 to 3, It is characterized in that The method further comprises: After acquiring the plurality of system data, for any one type of system data, if the data format of the system data is continuous, discretization processing is performed on the system data to convert the data format of the system data into discrete format.

6. The fault analysis method according to claim 5, It is characterized in that For any type of system data, if the data format of the system data is continuous, discretization processing is performed on the system data, including: For any system data in a continuous data format, determining a preset interval to which an original value of the system data at each moment belongs; The preset value corresponding to the preset interval replaces the original value at the corresponding moment.

7. The fault analysis method according to any one of claims 1 to 3, It is characterized in that The method further comprises: For any causal relationship between the first system data and the second system data, determine the causal strength of the causal relationship based on the path length of the causal relationship and the causal strength of each path in the causal relationship; The path length of the causal relationship is determined based on the quantity of the first system data associated with the corresponding causal relationship.

8. A fault analysis device, It is characterized in that include: An acquisition module, used to acquire corresponding various system data based on the target fault; The data type of the system data is associated with the fault type of the target fault; A discovery module, used to perform causal discovery on the multiple system data to obtain the causal relationship between the multiple system data; An analysis module, configured to determine the influence degree of each first system data on the target fault based on the causal strength of the causal relationship between each first system data and the second system data; The first system data is used to characterize the local operating conditions, and the second system data is used to characterize the fault conditions of the target fault.

9. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the fault analysis method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the fault analysis method according to any one of claims 1 to 7 are implemented.