Fault diagnosis and alarm method, device, electronic device and computer readable medium

By obtaining the set of information on the termination point, calculating the fault risk rate and overall risk coefficient, and automatically performing alarms, the problems of untimely and inaccurate fault diagnosis in the existing technology are solved, and more accurate fault diagnosis and alarms are achieved.

CN114036020BActive Publication Date: 2025-08-19BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111312151.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2025-08-19
Estimated Expiration
2041-11-08

AI Technical Summary

Technical Problem

In the prior art, fault diagnosis and alarm methods are susceptible to manual subjective influence, the rule update speed is slow, and the method based on counting and threshold dependence on threshold values is too high, resulting in insufficient alarm results.

Method used

By obtaining the set of termination point information, the importance of the termination point is determined based on the number of terminations and the number of calls, the failure risk rate, risk growth rate and overall risk coefficient are calculated, and the alarm operation is automatically performed to avoid relying on external rules and thresholds.

Benefits of technology

It realizes timely and accurate alarms for abnormal situations during the operation of the program or software, improves the accuracy and comprehensiveness of fault diagnosis, and reduces the dependence on manual subjective influence and rule update speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114036020B_ABST
    Figure CN114036020B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a fault diagnosis and alarm method, apparatus, electronic device, and computer-readable medium. A specific implementation of the method includes: obtaining a termination point information set; selecting termination point information that meets a screening condition from the termination point information set as valid termination point information to obtain a valid termination point information set; determining the failure risk rate and failure risk growth rate of the termination point represented by each valid termination point information in the valid termination point information set; determining the overall risk coefficient of the termination point represented by each valid termination point information in the valid termination point information set based on the termination point type information and the termination point call information sequence; and executing an alarm operation in response to determining that there is a failure risk rate greater than a failure risk rate threshold, a failure risk growth rate greater than a failure risk growth rate threshold, or an overall risk coefficient greater than an overall risk coefficient threshold. This implementation can more accurately and comprehensively diagnose faults and issue alarms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and more particularly to a fault diagnosis and alarm method, apparatus, electronic device, and computer-readable medium. Background Art

[0002] Fault diagnosis and alarming are methods for diagnosing and alerting abnormalities during program or software execution. Currently, these methods typically rely on manual detection, rule-based techniques, or counting thresholds to detect abnormalities and generate alarms.

[0003] However, when using the above methods for fault diagnosis and alarm, the following technical problems often occur:

[0004] Relying on manual alarm generation makes the final alarm results highly susceptible to subjective perception and experience, making it difficult to issue alarms in a timely manner. Rule-based technologies often structure expert knowledge into rules, which are then used to detect faults and issue alarms. However, the rapid pace of program and software updates makes it difficult to detect faults introduced by these updates using existing rules. This makes it difficult to accurately detect anomalies and issue alarms, impacting the normal operation of the program or software. Counting and threshold-based technologies record the values of various indicators during program or software operation and perform fault diagnosis and alarms solely by comparing these indicators with thresholds. This relies heavily on thresholds, resulting in inaccurate alarm results. Consequently, it is difficult to promptly detect and resolve anomalies during program or software operation. Summary of the Invention

[0005] The content of this disclosure is used to briefly introduce concepts that will be described in detail in the detailed description section below. The content of this disclosure is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0006] Some embodiments of the present disclosure provide fault diagnosis and alarm methods, devices, electronic devices, and computer-readable media to solve the technical problems mentioned in the above background technology section.

[0007] In a first aspect, some embodiments of the present disclosure provide a fault diagnosis and alarm method, which includes: obtaining a termination point information set, wherein the termination point information in the termination point information set includes termination point type information and a termination point call information sequence, and the termination point call information in the termination point call information sequence includes: time period information, number of terminations and number of calls, and each termination point call information in the termination point call information sequence is arranged in chronological order according to the time period information; according to the number of terminations and the number of calls, selecting termination point information that meets the screening conditions from the termination point information set as valid termination point information to obtain a valid termination point information set; determining the failure risk rate and failure risk growth rate of the termination point represented by each valid termination point information in the valid termination point information set; determining the overall risk coefficient of the termination point represented by each valid termination point information in the valid termination point information set according to the termination point type information and the termination point call information sequence; and performing an alarm operation in response to determining that there is a failure risk rate greater than a failure risk rate threshold, a failure risk growth rate greater than a failure risk growth rate threshold, or the overall risk coefficient is greater than the overall risk coefficient threshold.

[0008] Optionally, the above-mentioned method selects the termination point information that meets the filtering conditions from the above-mentioned termination point information set as the valid termination point information based on the number of terminations and the number of calls to obtain the valid termination point information set, including: determining the termination point importance of the termination point represented by each termination point information in the above-mentioned termination point information set based on the number of terminations and the number of calls to obtain the termination point importance set; and selecting the termination point information that meets the filtering conditions from the above-mentioned termination point information set as the valid termination point information based on the above-mentioned termination point importance set to obtain the valid termination point information set.

[0009] Optionally, the above-mentioned method of determining the termination point importance of the termination point represented by each termination point information in the termination point information set based on the number of terminations and the number of calls to obtain the termination point importance set includes: determining the information entropy of the termination point represented by each termination point information in the termination point information set based on the number of terminations and the number of calls to obtain the information entropy set; normalizing each information entropy in the information entropy set, and using the normalized information entropy as the termination point importance to obtain the termination point importance set.

[0010] Optionally, the above-mentioned determination of the information entropy of the termination point represented by each termination point information in the above-mentioned termination point information set based on the number of terminations and the number of calls to obtain the information entropy set includes: segmenting the termination point call information sequence included in the above-mentioned termination point information to obtain a termination point call information subsequence set; determining the ratio of the number of terminations to the number of calls in each termination point call information in each termination point call information subsequence in the above-mentioned termination point call information subsequence set as the termination rate to obtain a termination rate subsequence set; determining the arithmetic mean of each termination rate in each termination rate subsequence in the above-mentioned termination rate subsequence set as the termination probability to obtain a termination probability set; and determining the information entropy of the termination point represented by the above-mentioned termination point information based on the above-mentioned termination probability set.

[0011] Optionally, the above-mentioned termination point importance set is based on, and the termination point information that meets the screening conditions is selected from the above-mentioned termination point information set as the valid termination point information to obtain the valid termination point information set, including: according to the preset initial coverage rate and initial termination point importance, performing the following screening steps: determining the difference between the termination point importance corresponding to the initial coverage rate and the initial termination point importance as the coverage rate difference; determining the difference between the coverage rate corresponding to the initial termination point importance and the initial coverage rate as the importance difference; in response to determining that the coverage rate difference is less than or equal to the coverage rate difference threshold, and the importance difference is less than or equal to the importance difference threshold, selecting the termination point information whose corresponding termination point importance is greater than the initial termination point importance from the above-mentioned termination point information set as the valid termination point information to obtain the valid termination point information set.

[0012] Optionally, the above-mentioned method of selecting the termination point information that meets the screening conditions from the above-mentioned termination point information set as the valid termination point information according to the above-mentioned termination point importance set to obtain the valid termination point information set also includes: in response to determining that the coverage difference is greater than the above-mentioned coverage difference threshold, or the importance difference is greater than the above-mentioned importance difference threshold, executing the following adjustment steps: in response to determining that the coverage difference is greater than or equal to the importance difference, adjusting the value of the initial coverage with a preset coverage growth step, and continuing to execute the above-mentioned screening steps according to the adjusted initial coverage.

[0013] Optionally, the above-mentioned method of selecting the termination point information that meets the screening conditions from the above-mentioned termination point information set as the valid termination point information according to the above-mentioned termination point importance set to obtain the valid termination point information set also includes: in response to determining that the coverage difference is less than the importance difference, adjusting the value of the initial termination point importance with a preset importance growth step, and continuing to execute the above-mentioned screening step according to the adjusted initial termination point importance.

[0014] Optionally, the above-mentioned determination of the failure risk rate and failure risk growth rate of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set includes: determining an initial failure risk rate sequence based on the termination point importance corresponding to the above-mentioned valid termination point information and each termination rate subsequence in the termination rate subsequence set; selecting the last initial failure risk rate from the above-mentioned initial failure risk rate sequence as the failure risk rate of the termination point represented by the above-mentioned valid termination point information; and generating a failure risk growth rate based on the above-mentioned initial failure risk rate sequence.

[0015] Optionally, the above-mentioned determination of the initial fault risk rate sequence based on the termination point importance corresponding to the above-mentioned valid termination point information and each termination rate subsequence in the termination rate subsequence set includes: determining the mode in the above-mentioned termination rate subsequence as the termination rate mode; and determining the product value of the difference between the last termination rate in the above-mentioned termination rate subsequence and the above-mentioned termination rate mode and the termination point importance corresponding to the above-mentioned valid termination point information as the initial fault risk rate corresponding to the above-mentioned termination rate subsequence.

[0016] Optionally, generating a failure risk growth rate based on the initial failure risk rate sequence includes: determining the failure risk growth rate by the ratio of the difference between the second-to-last initial failure risk rate and the first-to-last initial failure risk rate in the initial failure risk rate sequence to the second-to-last initial failure risk rate.

[0017] Optionally, the termination point information in the above-mentioned termination point information set includes termination point type information that is a core process termination point or a basic process termination point; and the above-mentioned determination of the overall risk coefficient of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set based on the termination point type information and the termination point call information sequence includes: determining the core process termination point weight, the basic process termination point weight and the termination point importance weight; using the above-mentioned core process weight, the above-mentioned basic process termination point weight and the above-mentioned termination point importance weight, determining the termination point score of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set, and obtaining a termination point score set; determining the termination point weight of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set according to the above-mentioned termination point score set, and obtaining a termination point weight set; generating an overall risk coefficient based on the above-mentioned termination point score set and the above-mentioned termination point weight set.

[0018] Optionally, the above-mentioned determination of the core process termination point weight, the basic process termination point weight and the termination point importance weight includes: constructing a judgment matrix for the above-mentioned core process termination point, the above-mentioned basic process termination point and the above-mentioned termination point importance to obtain a first judgment matrix; using the above-mentioned first judgment matrix to generate the above-mentioned core process termination point weight, the above-mentioned basic process termination point weight and the above-mentioned termination point importance weight.

[0019] Optionally, the above-mentioned core process weight, the above-mentioned basic process termination point weight and the above-mentioned termination point importance weight are used to determine the termination point score of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set, and obtain the termination point score set, including: determining the sum of the weights corresponding to the above-mentioned valid termination point information in the above-mentioned core process termination point weight, the above-mentioned basic process termination point weight and the above-mentioned termination point importance weight as the termination point score of the termination point represented by the above-mentioned valid termination point information.

[0020] Optionally, the above-mentioned determination of the termination point weight of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set based on the above-mentioned termination point score set to obtain the termination point weight set includes: constructing a second judgment matrix based on the above-mentioned termination point score set; using the above-mentioned second judgment matrix to determine the termination point weight of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set to obtain the termination point weight set.

[0021] Optionally, the above-mentioned generation of an overall risk coefficient based on the above-mentioned endpoint score set and the above-mentioned endpoint weight set includes: determining the product value of the horizontal quantity composed of the respective endpoint scores in the above-mentioned endpoint score set and the vertical quantity composed of the respective endpoint weights in the above-mentioned endpoint weight set as the overall risk coefficient.

[0022] In a second aspect, some embodiments of the present disclosure provide a fault diagnosis and alarm device, the device comprising: an acquisition unit, configured to acquire a termination point information set, wherein the termination point information in the termination point information set comprises termination point type information and a termination point call information sequence, the termination point call information in the termination point call information sequence comprises: time period information, termination times and call times, and each termination point call information in the termination point call information sequence is arranged in chronological order according to the time period information; a selection unit, configured to select termination point information that meets the screening conditions from the termination point information set according to the termination times and call times. As the valid termination point information, a valid termination point information set is obtained; the first determination unit is configured to determine the failure risk rate and failure risk growth rate of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set; the second determination unit is configured to determine the overall risk coefficient of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set according to the termination point type information and the termination point call information sequence; the alarm unit is configured to perform an alarm operation in response to determining that there is a failure risk rate greater than a failure risk rate threshold, a failure risk growth rate greater than a failure risk growth rate threshold, or the above-mentioned overall risk coefficient is greater than the overall risk coefficient threshold.

[0023] Optionally, the selection unit includes a first determining subunit and a first selecting subunit. The first determining subunit is configured to determine the termination point importance of the termination point represented by each termination point information in the termination point information set based on the number of terminations and the number of calls, thereby obtaining a termination point importance set; and the first selecting subunit is configured to select, from the termination point information set, termination point information that meets a screening condition as valid termination point information based on the termination point importance set, thereby obtaining a valid termination point information set.

[0024] Optionally, the first determination subunit includes a first determination module and a normalization module. The first determination module is configured to determine the information entropy of the termination point represented by each termination point information in the termination point information set based on the number of terminations and the number of calls, thereby obtaining an information entropy set; and the normalization module is configured to normalize each information entropy in the information entropy set and use the normalized information entropy as the termination point importance, thereby obtaining a termination point importance set.

[0025] Optionally, the first determination module includes: a segmentation submodule, a first determination submodule, a second determination submodule, and a third determination submodule. The segmentation submodule is configured to segment the termination point call information sequence included in the termination point information to obtain a termination point call information subsequence set; the first determination submodule is configured to determine the ratio of the number of terminations to the number of calls in each termination point call information in each termination point call information subsequence in the termination point call information subsequence set as a termination rate to obtain a termination rate subsequence set; the second determination submodule is configured to determine the arithmetic mean of the termination rates in each termination rate subsequence in the termination rate subsequence set as a termination probability to obtain a termination probability set; and the third determination submodule is configured to determine the information entropy of the termination point represented by the termination point information based on the termination probability set.

[0026] Optionally, the above-mentioned first selection sub-unit is further configured to: perform the following screening steps based on the preset initial coverage rate and initial termination point importance: determine the difference between the termination point importance corresponding to the initial coverage rate and the initial termination point importance as the coverage rate difference; determine the difference between the coverage rate corresponding to the initial termination point importance and the initial coverage rate as the importance difference; in response to determining that the coverage rate difference is less than or equal to the coverage rate difference threshold, and the importance difference is less than or equal to the importance difference threshold, select the termination point information whose corresponding termination point importance is greater than the initial termination point importance from the above-mentioned termination point information set as the valid termination point information, and obtain the valid termination point information set.

[0027] Optionally, the above-mentioned first selection subunit is further configured to: in response to determining that the coverage difference is greater than the above-mentioned coverage difference threshold, or the importance difference is greater than the above-mentioned importance difference threshold, perform the following adjustment steps: in response to determining that the coverage difference is greater than or equal to the importance difference, adjust the value of the initial coverage with a preset coverage growth step, and continue to perform the above-mentioned screening steps according to the adjusted initial coverage.

[0028] Optionally, the above-mentioned first selection subunit is further configured to: in response to determining that the coverage difference is less than the importance difference, adjust the value of the initial end point importance with a preset importance growth step, and continue to perform the above-mentioned screening step according to the adjusted initial end point importance.

[0029] Optionally, the first determination unit includes a second determination subunit, a second selection subunit, and a first generation subunit. The second determination subunit is configured to determine an initial failure risk rate sequence based on the termination point importance corresponding to the valid termination point information and each termination rate subsequence in the termination rate subsequence set; the second selection subunit is configured to select the last initial failure risk rate from the initial failure risk rate sequence as the failure risk rate of the termination point represented by the valid termination point information; and the first generation subunit is configured to generate a failure risk growth rate based on the initial failure risk rate sequence.

[0030] Optionally, the second determination subunit includes a second determination module and a third determination module. The second determination module is configured to determine the mode of the termination rate subsequence as the termination rate mode; and the third determination module is configured to determine the initial failure risk rate corresponding to the termination rate subsequence as the product of the difference between the last termination rate in the termination rate subsequence and the termination rate mode and the termination point importance corresponding to the valid termination point information.

[0031] Optionally, the first generating subunit is further configured to determine the failure risk growth rate by taking the ratio of the difference between the second-to-last initial failure risk rate and the first-to-last initial failure risk rate in the initial failure risk rate sequence to the second-to-last initial failure risk rate.

[0032] Optionally, the termination point information in the termination point information set includes termination point type information of a core process termination point or a basic process termination point; and the second determining unit includes: a third determining subunit, a fourth determining subunit, a fifth determining subunit, and a second generating subunit. The third determining subunit is configured to determine the core process termination point weight, the basic process termination point weight, and the termination point importance weight; the fourth determining subunit is configured to use the core process weight, the basic process termination point weight, and the termination point importance weight to determine the termination point score of the termination point represented by each valid termination point information in the valid termination point information set, thereby obtaining a termination point score set; the fifth determining subunit is configured to determine the termination point weight of the termination point represented by each valid termination point information in the valid termination point information set based on the termination point score set, thereby obtaining a termination point weight set; and the second generating subunit is configured to generate an overall risk coefficient based on the termination point score set and the termination point weight set.

[0033] Optionally, the third determination subunit includes a first construction module and a generation module. The construction module is configured to construct a judgment matrix for the core process termination point, the basic process termination point, and the importance of the termination point to obtain a first judgment matrix; and the generation module is configured to use the first judgment matrix to generate the weight of the core process termination point, the weight of the basic process termination point, and the weight of the importance of the termination point.

[0034] Optionally, the fourth determination subunit is further configured to determine the sum of the weights corresponding to the valid termination point information among the core process termination point weight, the basic process termination point weight and the termination point importance weight as the termination point score of the termination point represented by the valid termination point information.

[0035] Optionally, the fifth determination subunit includes a second construction module and a fourth determination module. The second construction module is configured to construct a second judgment matrix based on the termination point score set; and the fourth determination module is configured to use the second judgment matrix to determine the termination point weight of each termination point represented by each valid termination point information in the valid termination point information set, thereby obtaining a termination point weight set.

[0036] Optionally, the second generating subunit is further configured to determine the overall risk coefficient by multiplying the horizontal quantity composed of the individual endpoint scores in the endpoint score set and the vertical quantity composed of the individual endpoint weights in the endpoint weight set.

[0037] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation of the first aspect above.

[0038] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation of the first aspect is implemented.

[0039] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the fault diagnosis and alarm methods of some embodiments of the present disclosure, timely and accurate alarms can be issued for abnormal situations that occur during the operation of a program or software. Specifically, the reasons why the alarms of the relevant fault diagnosis and alarm methods are not timely and accurate are: the alarm results of manual alarms are easily affected by people's subjective cognition and experience, the speed of rule updates in rule-based technologies is slower than the speed of program and software update iterations, and the reliance on thresholds in counting and threshold-based technologies is too high. Based on this, the fault diagnosis and alarm methods of some embodiments of the present disclosure determine the parameters related to the alarm based on the endpoint information of each endpoint obtained, without relying on externally formulated rules and set thresholds. The parameters related to the alarm can be determined only based on the endpoint data recorded during the operation of the program or software. In addition, the degree of abnormality during the operation of the program or software is measured from three perspectives: fault risk rate, fault risk growth rate, and overall risk, thereby achieving more accurate and comprehensive fault diagnosis and alarm. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0041] Figure 1 is a schematic diagram of an application scenario of the fault diagnosis and alarm method of some embodiments of the present disclosure;

[0042] Figure 2 is a flow chart of some embodiments of the fault diagnosis and alarm method according to the present disclosure;

[0043] Figure 3 is a flow chart of other embodiments of the fault diagnosis and alarm method according to the present disclosure;

[0044] Figure 4is a schematic diagram of information entropy for generating a termination point in some embodiments of the fault diagnosis and alarm method disclosed herein;

[0045] Figure 5 is a schematic structural diagram of some embodiments of the fault diagnosis and alarm device disclosed herein;

[0046] Figure 6 is a schematic structural diagram of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0047] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0048] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other.

[0049] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0050] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0051] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0052] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0053] Figure 1 This is a schematic diagram of an application scenario of the fault diagnosis and alarm method of some embodiments of the present disclosure.

[0054] exist Figure 1In an application scenario, computing device 101 can first obtain termination point information set 102, where the termination point information in termination point information set 102 includes termination point type information 1021 and termination point call information sequence 1022. The termination point call information in termination point call information sequence 1022 includes time period information, number of terminations, and number of calls. Each termination point call information in termination point call information sequence 1022 is arranged in chronological order according to the time period information. Next, computing device 101 can select termination point information that meets the screening criteria from termination point information set 102 as valid termination point information based on the number of terminations and number of calls, thereby obtaining valid termination point information set 103. Computing device 101 can then determine the failure risk rate 104 and failure risk growth rate 105 for each termination point represented by each valid termination point information in valid termination point information set 103. Then, the computing device 101 may determine the overall risk coefficient 106 of the termination point represented by each valid termination point information in the valid termination point information set 103 based on the termination point type information 1021 and the termination point call information sequence 1022. Finally, the computing device 101 may perform an alarm operation 110 in response to determining that there is a failure risk rate greater than a failure risk rate threshold 107, a failure risk growth rate greater than a failure risk growth rate threshold 108, or that the overall risk coefficient 106 is greater than an overall risk coefficient threshold 109.

[0055] It should be noted that the computing device 101 can be either hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitations are given here.

[0056] It should be understood that Figure 1 The number of computing devices in the embodiment is merely illustrative. Any number of computing devices may be provided according to implementation requirements.

[0057] Continue to refer Figure 2 , shows a process 200 of some embodiments of the fault diagnosis and alarm method according to the present disclosure. The fault diagnosis and alarm method includes the following steps:

[0058] Step 201: Acquire a set of termination point information.

[0059] In some embodiments, the execution subject of the fault diagnosis and alarm method (such as Figure 1The computing device 101 shown can read a set of termination point information from a log file via a wired or wireless connection. The termination point information can be used to represent a termination point. The termination point can be a location where an operational anomaly occurs during the execution of a software or program. The log file records various types of information about the software or program during its execution. The termination point information in the termination point information set can include termination point type information and a termination point call information sequence. The termination point type information can include the type of software or program flow to which the termination point belongs. The termination point type information can include a primary, secondary, or tertiary flow. The impact of primary, secondary, and tertiary flows on the normal operation of the program or software decreases in descending order. The termination point call information in the termination point call information sequence can include time period information, termination counts, and call counts. The time period information, termination counts, and call counts in the termination point call information can indicate the number of times the termination point experienced operational anomalies and the number of times it was called during the time period represented by the time period information. The individual termination point call information in the termination point call information sequence can be arranged in chronological order according to the time period information. The time period represented by the time period information included in the head of the termination point calling information sequence may be earlier than the time period represented by the time period information included in the tail of the termination point calling information sequence.

[0060] Step 202: Select termination point information that meets the screening conditions from the termination point information set according to the termination times and the call times as valid termination point information to obtain a valid termination point information set.

[0061] In some embodiments, the execution entity selects termination point information that meets the screening conditions from the termination point information set as valid termination point information based on the termination count and the call count, and obtains the valid termination point information set, which may include the following steps:

[0062] In the first step, the ratio of the sum of the number of terminations in the termination point call information sequence included in each termination point information in the termination point information set to the sum of the number of calls is determined as the termination point importance. The screening condition may be that the termination point importance corresponding to the termination point information is greater than a preset termination point importance threshold.

[0063] In the second step, according to the importance of the termination point, termination point information that meets the above screening conditions is selected from the above termination point information set as valid termination point information to obtain a valid termination point information set.

[0064] Step 203 : determining the failure risk rate and failure risk growth rate of the termination point represented by each valid termination point information in the valid termination point information set.

[0065] In some embodiments, the execution subject determines the failure risk rate and failure risk growth rate of the termination point represented by each valid termination point information in the valid termination point information set, which may include the following steps:

[0066] In the first step, the termination point validity score value of the valid termination point information is determined as the failure risk rate.

[0067] In the second step, the difference between the ratio of the number of terminations to the number of calls in the last termination point call information in the termination point call information sequence included in the above-mentioned valid termination point information and the ratio of the number of terminations to the number of calls in the first termination point call information is determined as the above-mentioned fault risk growth rate.

[0068] Step 204 : Determine the overall risk coefficient of the termination point represented by each valid termination point information in the valid termination point information set based on the termination point type information and the termination point call information sequence.

[0069] In some embodiments, the execution entity determines the overall risk coefficient of the termination point represented by each valid termination point information in the valid termination point information set based on the termination point type information and the termination point call information sequence, which may include the following steps:

[0070] In the first step, an independent risk coefficient is determined as the product of the failure risk rate corresponding to each valid termination point information in the valid termination point information set and the type weight value corresponding to the termination point type information included in the valid termination point information, thereby obtaining an independent risk coefficient set. The type weight value corresponding to the termination point type information may be preset.

[0071] In the second step, the arithmetic mean of each independent risk coefficient in the above independent risk coefficient set is determined as the above overall risk coefficient.

[0072] Step 205 , in response to determining that there is a failure risk rate greater than a failure risk rate threshold, a failure risk growth rate greater than a failure risk growth rate threshold, or an overall risk coefficient greater than an overall risk coefficient threshold, performing an alarm operation.

[0073] In some embodiments, the execution subject may execute an alarm operation in response to determining that there is a failure risk rate greater than a failure risk rate threshold, a failure risk growth rate greater than a failure risk growth rate threshold, or that the overall risk coefficient is greater than an overall risk coefficient threshold. The failure risk rate threshold, the failure risk growth rate threshold, and the overall risk coefficient may be pre-set. In practice, the values of the failure risk rate threshold, the failure risk growth rate threshold, and the overall risk coefficient may be set according to the actual application scenario, which is not limited here. The alarm operation may include sending an alarm message to a monitoring terminal. It may also include controlling an alarm device to emit an alarm tone, etc.

[0074] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the fault diagnosis and alarm methods of some embodiments of the present disclosure, timely and accurate alarms can be issued for abnormal situations that occur during the operation of a program or software. Specifically, the reason why the alarms of the relevant fault diagnosis and alarm methods are not timely and accurate is that the alarm results of manual alarms are easily affected by people's subjective cognition and experience, the speed of rule updates in rule-based technologies is slower than the speed of program and software update iterations, and the reliance on thresholds in counting and threshold-based technologies is too high. Based on this, the fault diagnosis and alarm methods of some embodiments of the present disclosure determine the parameters related to the alarm based on the termination point information of each termination point obtained, without relying on externally formulated rules and set thresholds. The parameters related to the alarm can be determined only based on the termination point data recorded during the operation of the program or software. In addition, the degree of abnormality during the operation of the program or software is measured from three perspectives: fault risk rate, fault risk growth rate and overall risk, so as to achieve more accurate and comprehensive alarms.

[0075] Further references Figure 3 , which shows a process 300 of another embodiment of the fault diagnosis and alarm method. The process 300 of the fault diagnosis and alarm method includes the following steps:

[0076] Step 301: Acquire a set of termination point information.

[0077] In some embodiments, the execution subject of the fault diagnosis and alarm method (such as Figure 1The computing device 101 shown can obtain a termination point information set via a wired or wireless connection. The termination point information can be used to represent a termination point. The termination point can be a location where an operational anomaly occurs during the execution of a software or program. The termination point information in the termination point information set can include termination point type information and a termination point call information sequence. The termination point type information can include the type of software process or program process to which the termination point belongs. The termination point type information included in the termination point information set can include core process termination points, basic process termination points, or common process termination points. The impact of core process termination points, basic process termination points, and common process termination points on the normal operation of the program or software decreases. The termination point call information in the termination point call information sequence can include time period information, termination counts, and call counts. The time period information, termination counts, and call counts in the termination point call information can indicate the number of times the termination point location experienced operational anomalies and the number of times it was called within the time period represented by the time period information. The individual termination point call information in the termination point call information sequence can be arranged in chronological order based on the time period information. The time period represented by the time period information included in the termination point calling information at the head of the termination point calling information sequence may be earlier than the time period represented by the time period information included in the termination point calling information at the tail.

[0078] Step 302 : Determine the termination point importance of each termination point represented by each termination point information in the termination point information set according to the termination times and the call times, and obtain a termination point importance set.

[0079] In some embodiments, the execution entity may determine the termination point importance by the ratio of the sum of each termination number to the sum of each call number in the termination point call information sequence included in each termination point information in the termination point information set.

[0080] In some optional implementations of some embodiments, the execution entity determines the termination point importance of the termination point represented by each termination point information in the termination point information set based on the termination count and the call count, and obtains the termination point importance set, which may include the following steps:

[0081] In the first step, the information entropy of the termination point represented by each termination point information in the above termination point information set is determined according to the termination number and the call number, and the information entropy set is obtained.

[0082] Optionally, the execution entity determines the information entropy of the termination point represented by each termination point information in the termination point information set according to the termination count and the call count to obtain the information entropy set, which may include the following sub-steps:

[0083] The first sub-step is to segment the termination point call information sequence included in the termination point information to obtain a set of termination point call information sub-sequences. The segmentation of the termination point call information sequence can be performed based on a preset number of termination point call information. Each termination point call information sub-sequence in the set of termination point call information sub-sequences includes the same number of termination point call information as the preset number of termination point call information.

[0084] In the second sub-step, the ratio of the number of terminations to the number of calls in each termination point call information in each termination point call information sub-sequence in the termination point call information sub-sequence set is determined as the termination rate to obtain a termination rate sub-sequence set.

[0085] In the third sub-step, the arithmetic mean of the termination rates in each termination rate sub-sequence in the above termination rate sub-sequence set is determined as the termination probability to obtain a termination probability set.

[0086] The fourth sub-step is to determine the information entropy of the termination point represented by the termination point information based on the termination probability set. The information entropy formula can be used to determine the information entropy of the termination point represented by the termination point information.

[0087] As an example, refer to Figure 4 First, the termination point call information sequence 402 included in the termination point information 401 can be segmented to obtain a termination point call information subsequence set 403. Then, the ratio of the number of terminations to the number of calls in each termination point call information in each termination point call information subsequence in the termination point call information subsequence set 403 is determined as the termination rate, to obtain a termination rate subsequence set 404. Next, the arithmetic mean of the termination rates in each termination rate subsequence in the termination rate subsequence set 404 is determined as the termination probability, to obtain a termination probability set 405. Finally, based on the termination probability set 405, the information entropy 406 of the termination point represented by the termination point information 401 is determined.

[0088] The second step is to normalize each information entropy in the above information entropy set, and use the normalized information entropy as the end point importance to obtain the end point importance set. The end point importance can be determined as the ratio of each information entropy in the above information entropy set to the maximum information entropy in the above information entropy set.

[0089] Therefore, the importance of the termination point can be objectively evaluated using information entropy. The larger the information entropy value, the more important the corresponding termination point is.

[0090] Step 303 : According to the termination point importance set, termination point information meeting the screening condition is selected from the termination point information set as valid termination point information, thereby obtaining a valid termination point information set.

[0091] In some embodiments, the execution entity may select, from the termination point information set, termination point information that satisfies a screening condition as valid termination point information based on the termination point importance set, thereby obtaining a valid termination point information set. The screening condition may be that the termination point importance corresponding to the termination point information is greater than the arithmetic mean of the importances of each termination point in the termination point importance set.

[0092] In some optional implementations of some embodiments, the execution entity selects, based on the termination point importance set, termination point information that meets a screening condition from the termination point information set as valid termination point information to obtain the valid termination point information set, which may include the following steps:

[0093] Based on the preset initial coverage and initial endpoint importance, the following screening steps are performed:

[0094] In the first step, the difference between the endpoint importance corresponding to the initial coverage ratio and the initial endpoint importance is determined as the coverage difference. The initial coverage ratio and initial endpoint importance can be pre-set. The coverage ratio is the percentage of the number of endpoint information in the endpoint information set. The endpoint importance corresponding to the initial coverage ratio can be the smallest endpoint importance among the endpoint importances of the initial coverage ratio before the largest endpoint importance in the endpoint information set.

[0095] In the second step, the difference between the coverage rate corresponding to the initial end point importance and the initial coverage rate is determined as the importance difference. The coverage rate corresponding to the initial end point importance can be the percentage of end point importances greater than or equal to the initial end point importance in the end point importance set.

[0096] In a third step, in response to determining that the coverage difference is less than or equal to the coverage difference threshold and the importance difference is less than or equal to the importance difference threshold, the termination point information having a corresponding termination point importance greater than the initial termination point importance is selected from the termination point information set as valid termination point information, thereby obtaining a valid termination point information set. The coverage difference threshold and the importance difference threshold may be preset.

[0097] Optionally, the execution subject selects, according to the termination point importance set, termination point information that meets a screening condition from the termination point information set as valid termination point information to obtain the valid termination point information set, and may further include the following steps:

[0098] In response to determining that the coverage difference is greater than the coverage difference threshold, or the importance difference is greater than the importance difference threshold, the following adjustment steps are performed:

[0099] In response to determining that the coverage difference is greater than or equal to the importance difference, the value of the initial coverage is adjusted by a preset coverage growth step, and the above screening step is continued according to the adjusted initial coverage.

[0100] Optionally, the execution subject selects, according to the termination point importance set, termination point information that meets a screening condition from the termination point information set as valid termination point information to obtain the valid termination point information set, and may further include the following steps:

[0101] In response to determining that the coverage difference is less than the importance difference, the value of the initial end point importance is adjusted by a preset importance growth step, and the above screening step is continued according to the adjusted initial end point importance.

[0102] Therefore, we can use points with lower endpoint importance as noise endpoints, and dynamically adjust the initial endpoint importance and initial coverage to determine the initial endpoint importance value used to eliminate noise endpoints. This prevents noise endpoints from interfering with the final alarm operation and improves alarm accuracy.

[0103] Step 304 : determining an initial failure risk rate sequence based on the termination point importance corresponding to the valid termination point information and each termination rate subsequence in the termination rate subsequence set.

[0104] In some embodiments, the execution entity may determine the product of the arithmetic mean of each termination rate in the termination rate subsequence and the termination point importance corresponding to the valid termination point information as the initial failure risk rate corresponding to the termination rate subsequence.

[0105] In some optional implementations of some embodiments, the execution entity determines the initial failure risk rate sequence based on the termination point importance corresponding to the valid termination point information and each termination rate subsequence in the termination rate subsequence set, which may include the following steps:

[0106] In the first step, the mode of the termination rate subsequence is determined as the termination rate mode.

[0107] In the second step, the product value of the difference between the last termination rate in the termination rate subsequence and the termination rate mode and the termination point importance corresponding to the valid termination point information is determined as the initial failure risk rate corresponding to the termination rate subsequence.

[0108] Step 305 : Select the last initial failure risk rate from the initial failure risk rate sequence as the failure risk rate of the termination point represented by the valid termination point information.

[0109] In some embodiments, the execution entity may select the last initial failure risk rate from the initial failure risk rate sequence as the failure risk rate of the termination point represented by the valid termination point information.

[0110] Step 306: Generate a failure risk growth rate based on the initial failure risk rate sequence.

[0111] In some embodiments, the execution entity may determine the difference between the last initial failure risk rate and the first initial failure risk rate in the initial failure risk rate sequence as the failure risk growth rate.

[0112] In some optional implementations of some embodiments, the above-mentioned execution entity may determine the failure risk growth rate as the ratio of the difference between the second-to-last initial failure risk rate and the first-to-last initial failure risk rate in the above-mentioned initial failure risk rate sequence to the second-to-last initial failure risk rate.

[0113] Step 307: Determine the core process termination point weight, basic process termination point weight, and termination point importance weight.

[0114] In some embodiments, the execution entity may determine the core process termination point weight, the basic process termination point weight, and the termination point importance weight. The core process termination point, the basic process termination point, and the termination point importance weight may be pre-set.

[0115] In some optional implementations of some embodiments, the execution entity may determine the core process termination point weight, the basic process termination point weight, and the termination point importance weight, which may include the following steps:

[0116] In the first step, a judgment matrix is constructed for the core process termination point, the basic process termination point, and the importance of the termination point to obtain a first judgment matrix, wherein the values in the first judgment matrix may be input by the user.

[0117] The second step is to use the first judgment matrix to generate the core process endpoint weights, the basic process endpoint weights, and the endpoint importance weights. The eigenvectors of the first judgment matrix can be calculated using the analytic hierarchy process (AHP) method, and the values in the eigenvectors of the first judgment matrix are used as the core process endpoint weights, the basic process endpoint weights, and the endpoint importance weights, respectively.

[0118] Therefore, the weights of the core process endpoints, the weights of the basic process endpoints, and the weights of the importance of the endpoints are comprehensively determined through the analytic hierarchy process (AHP) by decomposition, comparison, and judgment. This, to a certain extent, avoids the influence of subjective factors when determining weights.

[0119] Step 308 : Using the core process weight, the basic process termination point weight, and the termination point importance weight, determine the termination point score of each termination point represented by the valid termination point information set to obtain a termination point score set.

[0120] In some embodiments, the execution entity may use the core process weight, the basic process termination point weight, and the termination point importance weight to determine the termination point score of each termination point represented by each valid termination point information in the valid termination point information set to obtain a termination point score set.

[0121] In some optional implementations of some embodiments, the execution entity may further determine the sum of the weights corresponding to the valid termination point information among the core process termination point weight, the basic process termination point weight, and the termination point importance weight as the termination point score of the termination point represented by the valid termination point information. The weight corresponding to the valid termination point information may be the termination point importance weight and the weight of the basic process termination point weight or the termination point importance weight that matches the termination point type information included in the valid termination point information.

[0122] Step 309 : Determine the termination point weight of the termination point represented by each valid termination point information in the valid termination point information set according to the termination point score set, and obtain a termination point weight set.

[0123] In some embodiments, the execution entity may use the ratio of each termination point score in the termination point score set to the sum of all termination point scores in the termination point score set as the termination point weight of the termination point to obtain a termination point weight set.

[0124] In some optional implementations of some embodiments, the execution entity determines, based on the termination point score set, the termination point weight of the termination point represented by each valid termination point information in the valid termination point information set to obtain the termination point weight set, which may include the following steps:

[0125] In the first step, a second judgment matrix is constructed based on the above-mentioned set of endpoint scores, wherein the ratio of each of the endpoint scores in the above-mentioned set of endpoint scores can be used as the value in the above-mentioned second judgment matrix.

[0126] In the second step, the termination point weights of the termination points represented by each valid termination point information in the valid termination point information set are determined using the second judgment matrix to obtain a termination point weight set. The eigenvectors of the second judgment matrix can be solved using the analytic hierarchy process (AHP) method, and the values in the eigenvectors of the second judgment matrix are used as the termination point weights of the termination points represented by each valid termination point information in the valid termination point information set.

[0127] Therefore, the weight of the end point is determined comprehensively by the analytic hierarchy process in the way of decomposition, comparison and judgment, which avoids the influence of subjective factors when determining the weight to a certain extent.

[0128] Step 310: Generate an overall risk factor based on the endpoint score set and the endpoint weight set.

[0129] In some embodiments, the execution entity may generate an overall risk coefficient based on the termination point score set and the termination point weight set.

[0130] In some optional implementations of some embodiments, the execution entity may determine the overall risk coefficient as the product of a horizontal quantity composed of the individual endpoint scores in the endpoint score set and a vertical quantity composed of the individual endpoint weights in the endpoint weight set. The endpoint weights and endpoint scores at the same dimension in the vertical quantity composed of the individual endpoint weights and the horizontal quantity composed of the individual endpoint scores correspond to the same valid endpoint information.

[0131] From this, the endpoint score and endpoint weight can be combined to determine the overall risk of the software or program.

[0132] Step 311 , in response to determining that there is a failure risk rate greater than a failure risk rate threshold, a failure risk growth rate greater than a failure risk growth rate threshold, or an overall risk coefficient greater than an overall risk coefficient threshold, performing an alarm operation.

[0133] In some embodiments, the specific implementation of step 311 and the technical effects thereof can be referred to Figure 2 Step 205 in the corresponding embodiments will not be described again here.

[0134] from Figure 3 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 3 Flow 300 of the fault diagnosis and alarm method in some corresponding embodiments embodies the steps of using information entropy to filter valid endpoint information from the endpoint information set, and the step of using a judgment matrix to determine the overall risk factor. Thus, the solutions described in these embodiments can accurately determine the extent of abnormal conditions that occur during program or code execution, thereby providing more accurate alarms.

[0135] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a fault diagnosis and alarm device. These device embodiments are similar to Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0136] like Figure 5 As shown, the fault diagnosis and alarm device 500 of some embodiments includes: an acquisition unit 501, a selection unit 502, a first determination unit 503, a second determination unit 504 and an alarm unit 505. The acquisition unit 501 is configured to acquire a termination point information set, wherein the termination point information in the termination point information set includes termination point type information and a termination point call information sequence, and the termination point call information in the termination point call information sequence includes: time period information, termination times and call times, and each termination point call information in the termination point call information sequence is arranged in the order of time represented by the time period information; the selection unit 502 is configured to select termination point information that meets the screening conditions from the termination point information set as valid termination point information according to the termination times and call times, and obtain the valid termination point information. Information set; a first determining unit 503, configured to determine the failure risk rate and failure risk growth rate of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set; a second determining unit 504, configured to determine the overall risk coefficient of the termination point represented by each valid termination point information in the above-mentioned valid termination point information set according to the termination point type information and the termination point call information sequence; an alarm unit 505, configured to perform an alarm operation in response to determining that there is a failure risk rate greater than a failure risk rate threshold, a failure risk growth rate greater than a failure risk growth rate threshold, or the above-mentioned overall risk coefficient is greater than the overall risk coefficient threshold.

[0137] In an optional implementation of some embodiments, the selection unit includes a first determining subunit and a first selecting subunit. The first determining subunit is configured to determine the termination point importance of the termination point represented by each termination point information in the termination point information set based on the termination count and the call count, thereby obtaining a termination point importance set; and the first selecting subunit is configured to select, from the termination point information set, termination point information that meets a screening condition as valid termination point information based on the termination point importance set, thereby obtaining a valid termination point information set.

[0138] In an optional implementation of some embodiments, the first determination subunit includes a first determination module and a normalization module. The first determination module is configured to determine the information entropy of the termination point represented by each termination point information in the termination point information set based on the termination count and the call count, thereby obtaining an information entropy set; and the normalization module is configured to normalize each information entropy in the information entropy set and use the normalized information entropy as the termination point importance, thereby obtaining a termination point importance set.

[0139] In an optional implementation of some embodiments, the first determination module includes: a segmentation submodule, a first determination submodule, a second determination submodule, and a third determination submodule. The segmentation submodule is configured to segment the termination point call information sequence included in the termination point information to obtain a termination point call information subsequence set; the first determination submodule is configured to determine the ratio of the number of terminations to the number of calls in each termination point call information in each termination point call information subsequence in the termination point call information subsequence set as a termination rate to obtain a termination rate subsequence set; the second determination submodule is configured to determine the arithmetic mean of the termination rates in each termination rate subsequence in the termination rate subsequence set as a termination probability to obtain a termination probability set; and the third determination submodule is configured to determine the information entropy of the termination point represented by the termination point information based on the termination probability set.

[0140] In an optional implementation of some embodiments, the above-mentioned first selection sub-unit is further configured to: perform the following screening steps based on the preset initial coverage rate and initial termination point importance: determine the difference between the termination point importance corresponding to the initial coverage rate and the initial termination point importance as the coverage rate difference; determine the difference between the coverage rate corresponding to the initial termination point importance and the initial coverage rate as the importance difference; in response to determining that the coverage rate difference is less than or equal to the coverage rate difference threshold, and the importance difference is less than or equal to the importance difference threshold, select the termination point information whose corresponding termination point importance is greater than the initial termination point importance from the above-mentioned termination point information set as the valid termination point information, and obtain the valid termination point information set.

[0141] In an optional implementation of some embodiments, the above-mentioned first selection subunit is further configured to: in response to determining that the coverage difference is greater than the above-mentioned coverage difference threshold, or the importance difference is greater than the above-mentioned importance difference threshold, perform the following adjustment steps: in response to determining that the coverage difference is greater than or equal to the importance difference, adjust the value of the initial coverage with a preset coverage growth step, and continue to perform the above-mentioned screening steps according to the adjusted initial coverage.

[0142] In an optional implementation of some embodiments, the above-mentioned first selection sub-unit is further configured to: in response to determining that the coverage difference is less than the importance difference, adjust the value of the initial end point importance with a preset importance growth step, and continue to perform the above-mentioned screening step according to the adjusted initial end point importance.

[0143] In an optional implementation of some embodiments, the first determination unit includes a second determination subunit, a second selection subunit, and a first generation subunit. The second determination subunit is configured to determine an initial failure risk rate sequence based on the termination point importance corresponding to the valid termination point information and each termination rate subsequence in the termination rate subsequence set; the second selection subunit is configured to select the last initial failure risk rate from the initial failure risk rate sequence as the failure risk rate of the termination point represented by the valid termination point information; and the first generation subunit is configured to generate a failure risk growth rate based on the initial failure risk rate sequence.

[0144] In an optional implementation of some embodiments, the second determination subunit includes a second determination module and a third determination module. The second determination module is configured to determine the mode of the termination rate subsequence as the termination rate mode; and the third determination module is configured to determine the initial failure risk rate corresponding to the termination rate subsequence as the product of the difference between the last termination rate in the termination rate subsequence and the termination rate mode and the termination point importance corresponding to the valid termination point information.

[0145] In an optional implementation of some embodiments, the above-mentioned first generating subunit is further configured to determine the failure risk growth rate by taking the ratio of the difference between the second-to-last initial failure risk rate and the first-to-last initial failure risk rate in the above-mentioned initial failure risk rate sequence to the above-mentioned second-to-last initial failure risk rate.

[0146] In an optional implementation of some embodiments, the termination point information in the termination point information set includes termination point type information of a core process termination point or a basic process termination point; and the second determination unit includes: a third determination subunit, a fourth determination subunit, a fifth determination subunit, and a second generation subunit. The third determination subunit is configured to determine the core process termination point weight, the basic process termination point weight, and the termination point importance weight; the fourth determination subunit is configured to use the core process weight, the basic process termination point weight, and the termination point importance weight to determine the termination point score of the termination point represented by each valid termination point information in the valid termination point information set, thereby obtaining a termination point score set; the fifth determination subunit is configured to determine the termination point weight of the termination point represented by each valid termination point information in the valid termination point information set based on the termination point score set, thereby obtaining a termination point weight set; and the second generation subunit is configured to generate an overall risk coefficient based on the termination point score set and the termination point weight set.

[0147] In an optional implementation of some embodiments, the third determination subunit includes a first construction module and a generation module. The construction module is configured to construct a judgment matrix for the core process termination point, the basic process termination point, and the importance of the termination point to obtain a first judgment matrix; and the generation module is configured to use the first judgment matrix to generate the weight of the core process termination point, the weight of the basic process termination point, and the weight of the importance of the termination point.

[0148] In an optional implementation of some embodiments, the fourth determination sub-unit is further configured to determine the sum of the weights corresponding to the valid termination point information in the core process termination point weight, the basic process termination point weight and the termination point importance weight as the termination point score of the termination point represented by the valid termination point information.

[0149] In an optional implementation of some embodiments, the fifth determination subunit includes a second construction module and a fourth determination module. The second construction module is configured to construct a second judgment matrix based on the termination point score set; and the fourth determination module is configured to use the second judgment matrix to determine the termination point weight of each termination point represented by each valid termination point information in the valid termination point information set, thereby obtaining a termination point weight set.

[0150] In an optional implementation of some embodiments, the above-mentioned second generating sub-unit is further configured to determine the overall risk coefficient by multiplying the horizontal quantity composed of the respective endpoint scores in the above-mentioned endpoint score set and the vertical quantity composed of the respective endpoint weights in the above-mentioned endpoint weight set.

[0151] It is understood that the units described in the device 500 are similar to those in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 500 and the units included therein, and will not be repeated here.

[0152] Reference below Figure 6 , which shows a structural diagram of an electronic device 600 suitable for implementing some embodiments of the present disclosure. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0153] like Figure 6As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0154] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as needed.

[0155] In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from a network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of some embodiments of the present disclosure are performed.

[0156] It should be noted that the computer-readable medium described in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0157] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0158] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a termination point information set, wherein the termination point information in the termination point information set includes termination point type information and a termination point call information sequence, and the termination point call information in the termination point call information sequence includes: time period information, number of terminations, and number of calls, and each termination point call information in the termination point call information sequence is arranged in chronological order according to the time period information; selects termination point information that meets the screening conditions from the termination point information set as valid termination point information based on the number of terminations and the number of calls, to obtain a valid termination point information set; determines the failure risk rate and failure risk growth rate of the termination point represented by each valid termination point information in the valid termination point information set; determines the overall risk coefficient of the termination point represented by each valid termination point information in the valid termination point information set based on the termination point type information and the termination point call information sequence; and performs an alarm operation in response to determining that there is a failure risk rate greater than a failure risk rate threshold, a failure risk growth rate greater than a failure risk growth rate threshold, or the overall risk coefficient is greater than the overall risk coefficient threshold.

[0159] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

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

[0161] The units described in some embodiments of the present disclosure may be implemented via software or hardware. The units described may also be provided within a processor. For example, they may be described as comprising an acquisition unit, a selection unit, a first determination unit, a second determination unit, and an alarm unit. The names of these units do not, in some cases, limit the units themselves. For example, the acquisition unit may also be described as a "unit for acquiring a set of termination point information."

[0162] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

Claims

1. A fault diagnosis and alarm method, comprising: Obtaining a termination point information set, wherein the termination point is a location where an operational anomaly occurs during the running of the software or program, the termination point information in the termination point information set includes termination point type information and a termination point call information sequence, the termination point call information in the termination point call information sequence includes: time period information, termination count, and call count, and each termination point call information in the termination point call information sequence is arranged in chronological order according to the time period information; Selecting, from the termination point information set, termination point information that meets the screening condition according to the termination number and the call number as valid termination point information, to obtain a valid termination point information set; Determining a failure risk rate and a failure risk growth rate of a termination point represented by each valid termination point information in the valid termination point information set; Determining, based on the termination point type information and the termination point call information sequence, an overall risk coefficient of the termination point represented by each valid termination point information in the valid termination point information set; In response to determining that there is a failure risk rate greater than a failure risk rate threshold, a failure risk growth rate greater than a failure risk growth rate threshold, or the overall risk factor greater than an overall risk factor threshold, an alarm operation is performed.

2. The method according to claim 1, wherein The step of selecting, based on the number of terminations and the number of calls, termination point information that meets the screening condition from the termination point information set as valid termination point information, to obtain a valid termination point information set, including: Determining the termination point importance of each termination point represented by each termination point information in the termination point information set according to the termination number and the call number, to obtain a termination point importance set; According to the termination point importance set, termination point information meeting a screening condition is selected from the termination point information set as valid termination point information to obtain a valid termination point information set.

3. The method according to claim 2, wherein: The step of determining the termination point importance of each termination point represented by each termination point information in the termination point information set based on the termination count and the call count, and obtaining the termination point importance set, includes: Determine, according to the number of terminations and the number of calls, the information entropy of the termination point represented by each termination point information in the termination point information set, to obtain an information entropy set; Each information entropy in the information entropy set is normalized, and the normalized information entropy is used as the end point importance to obtain the end point importance set.

4. The method according to claim 3, wherein: The step of determining the information entropy of the termination point represented by each termination point information in the termination point information set according to the termination number and the call number, and obtaining the information entropy set, comprises: Segmenting the termination point call information sequence included in the termination point information to obtain a termination point call information subsequence set; Determine the ratio of the number of terminations to the number of calls in each termination point call information in each termination point call information subsequence in the termination point call information subsequence set as a termination rate, and obtain a termination rate subsequence set; Determine the arithmetic mean of each termination rate in each termination rate subsequence in the termination rate subsequence set as the termination probability to obtain a termination probability set; The information entropy of the termination point represented by the termination point information is determined according to the termination probability set.

5. The method according to claim 2, wherein: The step of selecting, according to the termination point importance set, termination point information that meets a screening condition from the termination point information set as valid termination point information to obtain a valid termination point information set includes: Based on the preset initial coverage and initial endpoint importance, the following screening steps are performed: The difference between the importance of the termination point corresponding to the initial coverage and the importance of the initial termination point is determined as the coverage difference; The difference between the coverage rate corresponding to the initial end point importance and the initial coverage rate is determined as the importance difference; In response to determining that the coverage difference is less than or equal to the coverage difference threshold, and the importance difference is less than or equal to the importance difference threshold, the termination point information whose corresponding termination point importance is greater than the initial termination point importance is selected from the termination point information set as the valid termination point information to obtain the valid termination point information set.

6. The method according to claim 5, wherein: The step of selecting, according to the termination point importance set, termination point information that meets a screening condition from the termination point information set as valid termination point information to obtain a valid termination point information set further includes: In response to determining that the coverage difference is greater than the coverage difference threshold, or the importance difference is greater than the importance difference threshold, performing the following adjustment steps: In response to determining that the coverage difference is greater than or equal to the importance difference, the value of the initial coverage is adjusted with a preset coverage growth step, and the screening step is continued according to the adjusted initial coverage.

7. The method according to claim 6, wherein: The step of selecting, according to the termination point importance set, termination point information that meets a screening condition from the termination point information set as valid termination point information to obtain a valid termination point information set further includes: In response to determining that the coverage difference is less than the importance difference, the value of the initial end point importance is adjusted by a preset importance growth step, and the screening step is continued according to the adjusted initial end point importance.

8. The method according to claim 4, wherein The determining of the failure risk rate and the failure risk growth rate of the termination point represented by each valid termination point information in the valid termination point information set includes: Determining an initial failure risk rate sequence according to the termination point importance corresponding to the valid termination point information and each termination rate subsequence in the termination rate subsequence set; Selecting the last initial failure risk rate from the initial failure risk rate sequence as the failure risk rate of the termination point represented by the valid termination point information; A failure risk growth rate is generated according to the initial failure risk rate sequence.

9. The method according to claim 8, wherein The determining of the initial failure risk rate sequence according to the termination point importance corresponding to the valid termination point information and each termination rate subsequence in the termination rate subsequence set includes: determining the mode in the termination rate subsequence as the termination rate mode; The product value of the difference between the last termination rate in the termination rate subsequence and the termination rate mode and the termination point importance corresponding to the valid termination point information is determined as the initial failure risk rate corresponding to the termination rate subsequence.

10. The method according to claim 8, wherein Generating a failure risk growth rate according to the initial failure risk rate sequence includes: The ratio of the difference between the second-to-last initial failure risk rate and the first-to-last initial failure risk rate in the initial failure risk rate sequence to the second-to-last initial failure risk rate is determined as the failure risk growth rate.

11. The method according to claim 2, wherein: The termination point information in the termination point information set includes termination point type information of a core process termination point or a basic process termination point; as well as The determining, based on the termination point type information and the termination point call information sequence, of the overall risk coefficient of the termination point represented by each valid termination point information in the valid termination point information set includes: Determine the core process termination weight, basic process termination weight, and termination importance weight; Determine the termination point score of each termination point represented by each valid termination point information in the valid termination point information set by using the core process termination point weight, the basic process termination point weight, and the termination point importance weight, to obtain a termination point score set; Determining, according to the termination point score set, a termination point weight of a termination point represented by each valid termination point information in the valid termination point information set, to obtain a termination point weight set; An overall risk factor is generated based on the set of endpoint scores and the set of endpoint weights.

12. The method according to claim 11, wherein Determining the core process termination point weight, the basic process termination point weight, and the termination point importance weight includes: Constructing a judgment matrix for the core process termination point, the basic process termination point, and the termination point importance to obtain a first judgment matrix; The core process termination point weight, the basic process termination point weight, and the termination point importance weight are generated by using the first judgment matrix.

13. The method according to claim 11, wherein The method of determining a termination point score of a termination point represented by each valid termination point information in the valid termination point information set by using the core process termination point weight, the basic process termination point weight, and the termination point importance weight to obtain a termination point score set includes: The sum of the core process termination point weight, the basic process termination point weight, and the termination point importance weight corresponding to the valid termination point information is determined as the termination point score of the termination point represented by the valid termination point information.

14. The method according to claim 11, wherein The step of determining the termination point weight of the termination point represented by each valid termination point information in the valid termination point information set according to the termination point score set to obtain the termination point weight set includes: Constructing a second judgment matrix according to the termination point score set; The second judgment matrix is used to determine the termination point weight of the termination point represented by each valid termination point information in the valid termination point information set, to obtain a termination point weight set.

15. The method according to claim 11, wherein Generating an overall risk coefficient based on the endpoint score set and the endpoint weight set includes: The product value of the horizontal quantity composed of each end point score in the end point score set and the vertical quantity composed of each end point weight in the end point weight set is determined as the overall risk coefficient.

16. A fault diagnosis and alarm device comprising: an acquisition unit configured to acquire a termination point information set, wherein the termination point is a location where an operation abnormality occurs during the operation of the software or program, the termination point information in the termination point information set includes termination point type information and a termination point call information sequence, the termination point call information in the termination point call information sequence includes: time period information, termination count, and call count, and each termination point call information in the termination point call information sequence is arranged in chronological order according to the time period information; A selection unit is configured to select, from the termination point information set, termination point information that meets a screening condition as valid termination point information based on the termination count and the call count, to obtain a valid termination point information set; a first determining unit configured to determine a failure risk rate and a failure risk growth rate of a termination point represented by each valid termination point information in the valid termination point information set; A second determining unit is configured to determine an overall risk coefficient of a termination point represented by each valid termination point information in the valid termination point information set according to the termination point type information and the termination point call information sequence; The alarm unit is configured to perform an alarm operation in response to determining that there is a failure risk rate greater than a failure risk rate threshold, a failure risk growth rate greater than a failure risk growth rate threshold, or the overall risk coefficient is greater than an overall risk coefficient threshold.

17. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 15.

18. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.

Citation Information

Patent Citations

  • Log-based alarm method and related device

    CN110224858A

  • Fault early warning method, device, equipment and storage medium

    CN112734138A