Application exception detection method and device, storage medium and electronic equipment

By collecting and analyzing the abnormal data applied by targets, and using detection models to generate abnormal types and keywords, the problem of low efficiency in the analysis of abnormal data in the existing technology is solved, automated and intelligent analysis is realized, and analysis efficiency is improved.

CN119669023APending Publication Date: 2025-03-21INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411883751.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The analysis efficiency of abnormal data in the prior art is low, which causes operation and maintenance personnel to spend a lot of time and energy on manual analysis, making it difficult to deal with large-scale and high-frequency abnormal situations.

Method used

Provides a method for detecting abnormalities by collecting target abnormal data generated by target applications, extracting data characteristics, and inputting them into the target detection model to generate exception types and keywords, and assisting with manual analysis.

Benefits of technology

The automated and intelligent analysis of abnormal data is realized, the efficiency of abnormal data analysis is improved, and the complexity and difficulty of manual analysis is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119669023A_ABST
    Figure CN119669023A_ABST
Patent Text Reader

Abstract

The invention discloses an application exception detection method and device, a storage medium and electronic equipment, and relates to the field of financial science and technology or other related technical fields, and the method comprises the steps: collecting target exception data generated by a target application, and extracting target data features of the target exception data; inputting the target abnormal data into a target detection model to obtain a target abnormal type and a target keyword output by the target detection model; and displaying the target exception type and the target keyword. Through the method and the device, the problem of relatively low analysis efficiency of abnormal data in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology or other related technical fields, and specifically, to a method and device for detecting application anomalies, a storage medium, and an electronic device. Background Art

[0002] During the application development process, various types of data are usually monitored. During the monitoring process, a large number of abnormal data alarms often appear. How to identify and analyze abnormal data alarms is a major challenge for operation and maintenance personnel.

[0003] In the related technology, currently this type of abnormal data alarm mainly relies on manual analysis and confirmation. Operation and maintenance personnel need to spend a lot of time and energy to review the abnormal data alarm one by one to determine whether it is a real problem and the specific root cause of the problem. This manual analysis method is inefficient and difficult to deal with large-scale, high-frequency abnormal situations. Sometimes it may cause important problems to be delayed, affecting the overall progress and quality of the project. At the same time, when abnormal data alarms involve multiple dimensions (for example, personnel ability factors, planning factors, personnel operation factors, upstream and downstream coordination factors), the complexity and difficulty of manual analysis will be further increased, which may lead to low efficiency in abnormal data analysis.

[0004] Currently, no effective solution has been proposed to the problem of low analysis efficiency of abnormal data in related technologies. Summary of the invention

[0005] The main purpose of the present application is to provide a method and device for detecting application anomalies, a storage medium and an electronic device to solve the problem of low efficiency in analyzing abnormal data in related technologies.

[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for detecting application anomalies is provided. The method comprises: collecting target anomaly data generated by a target application, and extracting target data features of the target anomaly data, wherein the target anomaly data comprises a target parameter, an abnormal value corresponding to the target parameter, and abnormal description information, wherein the abnormal value does not fall within the target parameter range allowed by the target parameter, and the abnormal description information is used to describe the target factor that causes the value of the target parameter to be the abnormal value, and the target data features are used to generate the target parameter; inputting the target anomaly data into a target detection model, obtaining a target anomaly type and a target keyword output by the target detection model, wherein the target factor belongs to the target anomaly type, and the target keyword is used to describe the target anomaly type; and displaying the target anomaly type and the target keyword.

[0007] In an exemplary embodiment, the target abnormality data is input into a target detection model to obtain a target abnormality type and a target keyword output by the target detection model, including: inputting the target parameter, the abnormal value, the target data feature, and the abnormality description information into a first detection model to obtain the target abnormality type output by the first detection model, and inputting the abnormality description information into a second detection model to obtain the target keyword output by the second detection model, wherein the target detection model includes the first detection model and the second detection model.

[0008] In an exemplary embodiment, the inputting the abnormal description information into a second detection model to obtain the target keyword output by the second detection model includes: dividing the abnormal description information to obtain M words, where M is a positive integer; calculating M screening parameters corresponding to the M words, where the jth screening parameter of the M screening parameters is used to indicate the importance of the jth word in the M words, and the jth screening parameter is equal to the value obtained by performing a product operation on the jth frequency of the jth word in the M words multiplied by the jth weight of the jth word, where j is a positive integer less than or equal to M; determining N keywords in the M words whose screening parameters are greater than or equal to a parameter threshold as the target keywords, where N is a positive integer less than or equal to M.

[0009] In an exemplary embodiment, before inputting the target abnormality data into the target detection model to obtain the target abnormality type and target keyword output by the target detection model, the method further includes: inputting the sample abnormality data marked with the sample abnormality type and the sample data features of the sample abnormality data into the initial detection model to obtain the initial abnormality type output by the initial detection model, wherein the sample abnormality data is generated by a sample application, the sample abnormality data includes sample parameters, sample abnormality values ​​corresponding to the sample parameters and sample abnormality description information, the sample abnormality value does not fall within the sample parameter range allowed by the sample parameter, the sample abnormality description information is used to describe the sample factor that causes the sample parameter value to be the sample abnormality value, the sample factor belongs to the sample abnormality type, and the sample data features are used to generate the sample parameter; according to the sample abnormality type and the initial abnormality type, detecting the target accuracy of the initial abnormality type output by the initial detection model; when the target accuracy is greater than or equal to the accuracy threshold, determining the initial detection model as the first detection model in the target detection model.

[0010] In an exemplary embodiment, the detecting the target accuracy of the initial abnormality type output by the initial detection model according to the sample abnormality type and the initial abnormality type comprises: when the initial abnormality type comprises R1 group abnormality types and the sample abnormality type comprises R2 group abnormality types, detecting the target accuracy by performing the following steps, wherein R1 is a positive integer and R2 is a positive integer: detecting R accuracy rates according to the R1 group abnormality type and the R2 group abnormality type, wherein the i-th accuracy rate among the R accuracy rates is used to indicate the accuracy rate of the i1-th group abnormality type predicted by the initial detection model, the i1-th group abnormality type is the abnormality type to which the i1-th group of factors predicted by the initial detection model that causes the value of the i-th parameter to not fall within the i-th parameter range allowed by the i-th parameter belongs, R is a positive integer, i1 is a positive integer less than or equal to R1, the sample parameters include Q parameters, the Q parameters include the i-th parameter, Q is a positive integer, and i is a positive integer less than or equal to Q; performing an average operation on the R accuracy rates to obtain the target accuracy rate.

[0011] In an exemplary embodiment, the detecting R accuracy rates according to the R1 group of abnormal types and the R2 group of abnormal types includes: detecting the i-th accuracy rate of the i1-th group of abnormal types predicted by the first detection model according to the i1-th group of abnormal types and the i2-th group of abnormal types by performing the following steps, wherein the i2-th group of abnormal types is the abnormal type to which the i2-th group of factors that cause the value of the i-th parameter not to fall within the i-th parameter range belongs, and the sample abnormal types include the i2-th group of abnormal types, i2 being a positive integer less than or equal to R2: searching the i2-th group of abnormal types for the abnormal types included in the i1-th group of abnormal types; when both the i2-th group of abnormal types and the i1-th group of abnormal types include T abnormal types and T1 abnormal types in the i1-th group of abnormal types are found from the i2-th group of abnormal types, the i-th accuracy rate is determined as a value obtained by dividing T1 by T, T1 being a positive integer less than or equal to T, and T being a positive integer.

[0012] In an exemplary embodiment, when the target accuracy is less than the accuracy threshold, the method further includes: screening reference anomaly data from candidate anomaly data, and extracting reference data features of the reference anomaly data, wherein the reference anomaly data is generated by a reference application, the reference anomaly data includes a reference parameter, a reference anomaly value corresponding to the reference parameter, and reference anomaly description information, the reference anomaly value does not fall within the reference parameter range allowed by the reference parameter, the reference anomaly description information is used to describe a reference factor that causes the reference parameter value to be the reference anomaly value, the reference data features are used to generate the reference parameter, and the accuracy of the anomaly type to which the factor belonging to the reference anomaly type predicted by the first detection model in the target detection model belongs is less than is greater than or equal to the accuracy threshold, the reference factor belongs to the reference abnormality type; the reference abnormality data marked with the reference abnormality type and the reference keyword and the reference data features are input into the first detection model to obtain the candidate abnormality type output by the first detection model; according to the reference abnormality type and the candidate abnormality type, the reference accuracy of the candidate abnormality type output by the first detection model is detected; when the reference accuracy is less than the accuracy threshold, the model parameters of the first detection model are adjusted to obtain a third detection model; the third detection model is continued to be trained until the accuracy of the abnormality type output by the third detection model is greater than or equal to the accuracy threshold, wherein the target detection model includes the third detection model and the second detection model.

[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a device for detecting application anomalies is provided. The device includes: a first processing module, which is used to collect target anomaly data generated by a target application and extract target data features of the target anomaly data, wherein the target anomaly data includes a target parameter, an abnormal value corresponding to the target parameter, and abnormal description information, wherein the abnormal value does not fall within the target parameter range allowed by the target parameter, and the abnormal description information is used to describe the target factor that causes the value of the target parameter to be the abnormal value, and the target data features are used to generate the target parameter; a second processing module, which is used to input the target anomaly data into a target detection model to obtain a target anomaly type and a target keyword output by the target detection model, wherein the target factor belongs to the target anomaly type, and the target keyword is used to describe the target anomaly type; and a display module, which is used to display the target anomaly type and the target keyword.

[0014] In an embodiment of the present application, an application may generate some abnormal data. In order to quickly analyze the types of factors that cause the application to generate these abnormal data, the collected abnormal data of the application and the data features of the abnormal data can be input into a detection model, but is not limited to. The detection model automatically analyzes the types of factors that cause the application to generate these abnormal data and the keywords used to describe the abnormal types, thereby realizing automated and intelligent analysis of the abnormal data, assisting manual analysis, and improving the low analysis efficiency of the abnormal data, thereby solving the technical problem of low analysis efficiency of the abnormal data caused by the fact that abnormal data alarms mainly rely on manual analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0016] Figure 1 A hardware structure block diagram of a computer terminal for implementing a method for detecting application anomalies is shown;

[0017] Figure 2 is a flow chart of a method for detecting application anomalies provided in an embodiment of the present application;

[0018] Figure 3 is a flowchart of optionally using the TextRank algorithm model to obtain keywords according to an embodiment of the present application;

[0019] Figure 4 is a flowchart of an optional transformer model training according to an embodiment of the present application;

[0020] Figure 5 is an optional manual feedback model iterative optimization flow chart according to an embodiment of the present application;

[0021] Figure 6 is a flow chart of an optional abnormal type detection method according to an embodiment of the present application;

[0022] Figure 7 is a schematic diagram of an application anomaly detection device provided according to an embodiment of the present application;

[0023] Figure 8 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] It should be noted that the collected information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with relevant laws, regulations and standards, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions to provide users with corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.

[0027] Example 1

[0028] According to an embodiment of the present application, a method embodiment for detecting application anomalies is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0029] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1The hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for detecting application anomalies is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (shown as 102a, 102b, ..., 102n in the figure) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU (Micro Controller Unit) or a programmable logic device FPGA (Field-Programmable Gate Array)), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O (Input / Output) interface), a universal serial bus (USB (Universal Serial Bus)) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. Those skilled in the art will understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0030] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0031] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the detection method of application anomalies in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above-mentioned detection method of application anomalies is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0032] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0033] The display may be, for example, a touch screen liquid crystal display (LCD), which may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0034] Under the above operating environment, this application provides Figure 2 The method for detecting application anomalies is shown. Figure 2 It is a flowchart of the method for detecting application anomalies according to Example 1 of the present application.

[0035] Step S202, collecting target abnormal data generated by the target application, and extracting target data features of the target abnormal data, wherein the target abnormal data includes a target parameter, an abnormal value corresponding to the target parameter, and abnormal description information, the abnormal value does not fall within the target parameter range allowed by the target parameter, the abnormal description information is used to describe the target factor that causes the value of the target parameter to be the abnormal value, and the target data features are used to generate the target parameter;

[0036] Step S204, inputting the target abnormality data into a target detection model to obtain a target abnormality type and a target keyword output by the target detection model, wherein the target factor belongs to the target abnormality type, and the target keyword is used to describe the target abnormality type;

[0037] Step S206, displaying the target abnormality type and the target keyword.

[0038] In the technical solution provided in the above step S202, the abnormal data may include but is not limited to abnormal data generated during the running of the application, abnormal data generated during the debugging of the application, abnormal data generated during the development of the application, etc.

[0039] Optionally, in this embodiment, the data features may include but are not limited to the smallest functional unit features corresponding to the historical abnormal data, such as the qualifications of R&D personnel / tester, the corresponding R&D personnel / tester workload input, the corresponding plan schedule of the functional unit, the daily progress data of the functional unit, the daily bug (program error) data of the functional unit, the daily submitted code line data of the functional unit, the corresponding pipeline deployment frequency of the functional unit, etc.

[0040] Optionally, in this embodiment, the exception description information can be but is not limited to being used to describe factors that cause the parameter value to be an abnormal value. For example, in an application development process, the pipeline deployment time is abnormally extended and exceeds a preset threshold. The exception description information may include specific factors that lead to this abnormal result, such as factors in multiple dimensions such as software development, testing, environment configuration, and personnel operation.

[0041] Optionally, in this embodiment, the abnormal value that does not fall within the target parameter range allowed by the target parameter may include, but is not limited to, the abnormal value being greater than an upper limit value of the target parameter range, or the abnormal value being less than a lower limit value of the target parameter range, wherein the upper limit value is greater than the lower limit value.

[0042] Optionally, in this embodiment, the application may include, but is not limited to, an application that may generate abnormal data, such as an app (Application), or software, or a mini-program, or a web page, etc.

[0043] In the technical solution provided in the above step S204, the detection model may be, but is not limited to, used for intelligent analysis of input abnormal data, and the detection model may be, but is not limited to, include a first detection model and a second detection model.

[0044] Optionally, in this embodiment, a factor may be, but is not limited to, belonging to one exception type. For example, the factor causing the abnormal value of parameter A is factor A: fewer developers. Multiple factors may be, but are not limited to, belonging to the same exception type. For example, the factors causing the abnormal value of parameter B are factor B and factor C: human operating errors and fewer developers. Factor A, factor B, and factor C may be, but are not limited to, all belonging to one exception type, for example, a development type.

[0045] In an exemplary embodiment, the target abnormality data can be input into a target detection model to obtain the target abnormality type and target keyword output by the target detection model in the following manner but not limited to: input the target parameter, the abnormal value, the target data feature and the abnormal description information into a first detection model to obtain the target abnormality type output by the first detection model, and input the abnormal description information into a second detection model to obtain the target keyword output by the second detection model, wherein the target detection model includes the first detection model and the second detection model.

[0046] Optionally, in this embodiment, the first detection model can be but is not limited to being used for intelligent analysis of input target parameters, abnormal values, target data features, and abnormal description information, and then outputting the target abnormality type. For example, the first detection model can be but is not limited to including a Transformer model, or other models, and this application does not impose any restrictions on this.

[0047] Optionally, in this embodiment, the second detection model can be but is not limited to being used to intelligently analyze the input abnormal description information, and then output the target keywords. For example, the second detection model can be but is not limited to including a TextRank algorithm model, or other models, and this application does not impose any restrictions on this.

[0048] Through the embodiments of the present application, by adopting the Transformer model (equivalent to the first detection model) for anomaly type detection and adopting the TextRank algorithm model (equivalent to the second detection model) for keyword extraction, different models can be adjusted during the iterative optimization process without interfering with each other, which can not only effectively improve the accuracy of intelligent analysis of abnormal data, but also provide greater flexibility for the iterative optimization of the model, thereby improving the efficiency and effectiveness of abnormal data analysis.

[0049] In an exemplary embodiment, the abnormal description information can be input into the second detection model in the following manner but is not limited to: dividing the abnormal description information to obtain M words, where M is a positive integer; calculating M screening parameters corresponding to the M words, where the jth screening parameter of the M screening parameters is used to indicate the importance of the jth word in the M words, and the jth screening parameter is equal to the value obtained by multiplying the jth frequency of the jth word in the M words by the jth weight of the jth word, where j is a positive integer less than or equal to M; and determining N keywords in the M words whose screening parameters are greater than or equal to a parameter threshold as the target keywords, where N is a positive integer less than or equal to M.

[0050] Optionally, in this embodiment, the jth frequency is equal to the value obtained by dividing the number of times the jth word appears in M ​​words by the total number of times each word appears in the M words, and the sum of the M weights corresponding to the M words is 1.

[0051] Optionally, in this embodiment, N may be, but is not limited to, preset based on experience or based on user demand and restrictions on the number of keywords, for example, N=10 or N=5, etc., and this application does not impose any limitation on this.

[0052] Figure 3 is a flowchart of optionally using the TextRank algorithm model to obtain keywords according to an embodiment of the present application, such as Figure 3 As shown, the process of generating target keywords for obtaining keywords in the target analysis set is as follows, wherein the target analysis set may include but is not limited to abnormal description information:

[0053] S301: Setting the number of keywords N;

[0054] S302: Input the analysis statements (equivalent to the abnormal description information) in the target analysis set into the TextRank algorithm model;

[0055] S303: Calculate the importance of each word in the target analysis set according to the TextRank algorithm model;

[0056] S304: Extract N words with the highest importance as keywords of the target analysis set.

[0057] Through the embodiments of the present application, by using the TextRank algorithm model, key information can be quickly and accurately extracted from a large amount of text data, which is significantly helpful for understanding the specific causes of anomalies and quickly locating problems. Operation and maintenance personnel can quickly identify the nature of anomalies and choose appropriate solutions, thereby speeding up problem solving and reducing the impact of anomalies on project progress or system stability.

[0058] In an exemplary embodiment, the target abnormality data may be input into a target detection model to obtain the target abnormality type and target keyword output by the target detection model in the following manner, but is not limited to: inputting sample abnormality data marked with sample abnormality types and sample data features of the sample abnormality data into an initial detection model to obtain an initial abnormality type output by the initial detection model, wherein the sample abnormality data is generated by a sample application, the sample abnormality data includes sample parameters, sample abnormality values ​​corresponding to the sample parameters, and sample abnormality description information, the sample abnormality values ​​do not fall within the sample parameter range allowed by the sample parameters, the sample abnormality description information is used to describe the sample factors that cause the sample parameters to take the sample abnormality values, the sample factors belong to the sample abnormality type, and the sample data features are used to generate the sample parameters; according to the sample abnormality type and the initial abnormality type, detecting the target accuracy of the initial abnormality type output by the initial detection model; when the target accuracy is greater than or equal to the accuracy threshold, determining the initial detection model as the first detection model in the target detection model.

[0059] Optionally, in this embodiment, the sample application may be, but is not limited to, the same as or different from the target application. For example, the sample application may be a different application of the same application type as the target application. These applications often share similar technology stacks, development processes, code structures or business requirements, etc. It can be understood that the similarity and correlation between the abnormal data of applications belonging to the same application type are relatively high. In this way, the correlation between the sample abnormal data and the target application can be improved, and the efficiency of the abnormal type output by the model can be improved; or, the sample application may be a different application of a different application type from the target application. Different application types may involve different technical fields and application scenarios. Such diverse training data can help the model build a more comprehensive and in-depth abnormality recognition capability. In this way, the scope of the training set used for model training can be increased, and the accuracy of the abnormal type output by the model can be improved.

[0060] Optionally, in this embodiment, when the target accuracy is less than the accuracy threshold, the model parameters of the initial detection model can be adjusted, but not limited to, and the initial detection model with the adjusted model parameters can be trained until the accuracy of the abnormal type output by the initial detection model is greater than or equal to the accuracy threshold, and the training is terminated.

[0061] Through the embodiments of the present application, by training the initial detection model, detecting the accuracy of the initial detection model and determining the first detection model based on the accuracy, not only the accuracy of the abnormal type analysis can be ensured, but also the efficiency and generalization ability of the abnormal type analysis can be improved, effectively promoting the rapid location and resolution of the problem.

[0062] In an exemplary embodiment, the target accuracy of the initial abnormality type output by the initial detection model can be detected according to the sample abnormality type and the initial abnormality type in the following manner, but is not limited to: when the initial abnormality type includes an R1 group of abnormality types and the sample abnormality type includes an R2 group of abnormality types, the target accuracy is detected by performing the following steps, wherein R1 is a positive integer and R2 is a positive integer: according to the R1 group of abnormality types and the R2 group of abnormality types, R accuracy rates are detected, wherein the i-th accuracy rate among the R accuracy rates is The accuracy is used to indicate the accuracy of the i1th group of abnormality types predicted by the initial detection model, the i1th group of abnormality types being the abnormality types to which the i1th group of factors predicted by the initial detection model cause the value of the i-th parameter to not fall within the i-th parameter range allowed by the i-th parameter, R is a positive integer, i1 is a positive integer less than or equal to R1, the sample parameters include Q parameters, the Q parameters include the i-th parameter, Q is a positive integer, and i is a positive integer less than or equal to Q; an average operation is performed on the R accuracy rates to obtain the target accuracy.

[0063] Optionally, in this embodiment, the number of exception types included in the R1 group of exception types may be, but is not limited to, less than, greater than or equal to the number of exception types included in the R2 group of exception types. For example, the number of exception types included in the R1 group of exception types and the number of exception types included in the R2 group of exception types are both 3; or, the number of exception types included in the R1 group of exception types is 3, and the number of exception types included in the R2 group of exception types is 4; or, the number of exception types included in the R1 group of exception types is 5, and the number of exception types included in the R2 group of exception types is 4.

[0064] Optionally, in this embodiment, the abnormality types included in the abnormality types of group R1 may be, but are not limited to, the same as, or different from, or partially the same as the abnormality types included in the abnormality types of group R2. For example, the abnormality types included in the abnormality types of group R1 and the abnormality types included in the abnormality types of group R2 are both development progress abnormalities; or the abnormality types included in the abnormality types of group R1 are upstream and downstream coordination abnormalities and development progress abnormalities, and the abnormality types included in the abnormality types of group R2 are operation error abnormalities; or the abnormality types included in the abnormality types of group R1 are upstream and downstream coordination abnormalities and development progress abnormalities, and the abnormality types included in the abnormality types of group R2 are upstream and downstream coordination abnormalities and operation error abnormalities.

[0065] Through the embodiments of the present application, by comparing the abnormality types predicted by the initial detection model with the actual abnormality types in the sample data, the average value of the abnormality type prediction accuracy output by the detection model is calculated, which not only reflects the average performance of the model in identifying abnormality types, but also can comprehensively consider the model's comprehensive recognition ability for all abnormality types, ensuring that the model can stably and accurately identify multiple abnormality types in actual applications, thereby improving the efficiency and reliability of abnormality monitoring and intelligent analysis.

[0066] In an exemplary embodiment, R accuracy rates may be detected according to the R1 group of abnormal types and the R2 group of abnormal types in the following manner, but not limited to: by performing the following steps, according to the i1 group of abnormal types and the i2 group of abnormal types, the i-th accuracy rate of the i1 group of abnormal types predicted by the first detection model is detected, wherein the i2 group of abnormal types is the abnormal type to which the i2 group of factors that cause the value of the i-th parameter not to fall within the i-th parameter range belongs, and the sample abnormal types include the i2 group of abnormal types, i2 being a positive integer less than or equal to R2: searching the i2 group of abnormal types for the abnormal types included in the i1 group of abnormal types; when both the i2 group of abnormal types and the i1 group of abnormal types include T abnormal types and T1 abnormal types in the i1 group of abnormal types are found from the i2 group of abnormal types, the i-th accuracy rate is determined as a value obtained by dividing T1 by T, T1 being a positive integer less than or equal to T, and T being a positive integer.

[0067] Optionally, in this embodiment, the value of the i-th parameter not falling within the i-th parameter range may include but is not limited to including the value of the i-th parameter being greater than the upper limit value of the i-th parameter range, or the value of the i-th parameter being less than the lower limit value of the i-th parameter range, wherein the upper limit value is greater than the lower limit value.

[0068] Optionally, in this embodiment, when the i2th group of abnormal types includes A1 abnormal types, the i1th group of abnormal types includes A2 abnormal types, and A1 is greater than A2, and A2 abnormal types include A1 abnormal types, the i-th accuracy rate can be determined as, but not limited to, a value obtained by 1-(A1-A2) / A2, where A1 is a positive integer and A2 is a positive integer; or, when the i2th group of abnormal types includes A1 abnormal types, the i1th group of abnormal types includes A2 abnormal types, and A1 is less than A2, and A2 abnormal types include A1 abnormal types, the i-th accuracy rate can be determined as, but not limited to, a value obtained by A1 / A2, where A1 is a positive integer and A2 is a positive integer.

[0069] Through the embodiments of the present application, by comparing the abnormality type predicted by the model with the actually marked abnormality type, the accuracy of the abnormality type predicted by the model is calculated for the abnormal situation of each monitoring parameter, which can ensure that the detection model provides high-precision and reliable abnormality type prediction in application monitoring and analysis, thereby effectively improving the efficiency of problem diagnosis and resolution.

[0070] Figure 4 is a flowchart of an optional transformer model training according to an embodiment of the present application, such as Figure 4 As shown, the training set is input into the transformer model for training to obtain an abnormal data intelligent analysis model (equivalent to the first detection model), which may include but is not limited to the following steps:

[0071] S401: input training set;

[0072] S402: Build a transformer training model and initialize the model;

[0073] S403: Outputting the abnormal indicators of the training set through the transformer training model to perform a preliminary analysis of abnormal data categories;

[0074] S404: Compare the preliminary analysis categories of the training set obtained by the transformer model with the annotated analysis categories, and calculate the accuracy of the model output;

[0075] S405: Determine whether the accuracy meets the threshold requirement. If so, obtain the abnormal indicator intelligent analysis model. If not, jump to S401 and continue to input a new training set for training.

[0076] In an exemplary embodiment, when the target accuracy is less than the accuracy threshold, the following method can be used, but is not limited to: filter reference abnormal data from candidate abnormal data, and extract reference data features of the reference abnormal data, wherein the reference abnormal data is generated by a reference application, the reference abnormal data includes a reference parameter, a reference abnormal value corresponding to the reference parameter, and reference abnormal description information, the reference abnormal value does not fall within the reference parameter range allowed by the reference parameter, the reference abnormal description information is used to describe the reference factor that causes the reference parameter value to be the reference abnormal value, the reference data feature is used to generate the reference parameter, and the accuracy of the abnormal type to which the factor belonging to the reference abnormal type predicted by the first detection model in the target detection model belongs is the rate is less than or equal to the accuracy threshold, the reference factor belongs to the reference abnormality type; the reference abnormality data marked with the reference abnormality type and the reference keyword and the reference data features are input into the first detection model to obtain the candidate abnormality type output by the first detection model; according to the reference abnormality type and the candidate abnormality type, the reference accuracy of the candidate abnormality type output by the first detection model is detected; when the reference accuracy is less than the accuracy threshold, the model parameters of the first detection model are adjusted to obtain a third detection model; the third detection model is continued to be trained until the accuracy of the abnormality type output by the third detection model is greater than or equal to the accuracy threshold, wherein the target detection model includes the third detection model and the second detection model.

[0077] Optionally, in this embodiment, the reference application may be, but is not limited to, the same as or different from the target application. For example, the reference application may be a different application of the same application type as the target application; or, the reference application may be a different application of a different application type than the target application.

[0078] Optionally, in this embodiment, the reference abnormal value not falling within the reference parameter range allowed by the reference parameter may include, but is not limited to, the reference abnormal value being greater than an upper limit value of the reference parameter range allowed by the reference parameter, or the reference abnormal value being less than a lower limit value of the reference parameter range allowed by the reference parameter, wherein the upper limit value is greater than the lower limit value.

[0079] Optionally, in this embodiment, the reference anomaly type may include but is not limited to the anomaly type with the lowest accuracy of the first detection model in the target detection model prediction, for example, the accuracy of the first detection model predicting the anomaly type is less than a lower limit value of the accuracy, where the lower limit value of the accuracy is less than the accuracy threshold.

[0080] Optionally, in this embodiment, when the reference accuracy is greater than or equal to the accuracy threshold, the training may be terminated, but is not limited to, and the training model at the end of the training is determined as the first training model.

[0081] Through the embodiment of the present application, the accuracy of the abnormality type predicted by the calculation model and the actual abnormality type is adjusted. When the accuracy rate does not meet the standard, the model parameters are adjusted to generate a third detection model with better performance, and the training is continued until the third detection model's recognition accuracy rate for the abnormality type is greater than or equal to the threshold standard. This mechanism ensures that the abnormality detection model can be continuously iterated and upgraded, improving its adaptability and accuracy in complex application monitoring scenarios, thereby assisting operation and maintenance personnel in identifying and handling abnormal problems more efficiently and accurately.

[0082] In the technical solution provided in the above step S206, after displaying the target anomaly type and the target keyword, the method further includes: further iterating and optimizing the model according to the analysis information of manual feedback.

[0083] Optionally, in this embodiment, the preliminary analysis category and target keywords of the abnormal indicators (equivalent to abnormal data) can be provided to the indicator analyst for reference, supplemented with manual analysis information, and the manual analysis information is fed back to the intelligent analysis model (equivalent to the detection model) for iterative optimization.

[0084] Figure 5 is an optional manual feedback model iterative optimization flow chart according to an embodiment of the present application, such as Figure 5 As shown, according to the analysis information of manual feedback, further iteration and optimization of the model may include but is not limited to the following steps:

[0085] S501: Determine whether the analysis category of the manual analysis information is consistent with the analysis result of the abnormal index intelligent analysis model (equivalent to the first detection model). If not, execute S502. If consistent, end.

[0086] S502: extracting the minimum functional unit feature (equivalent to the data feature) corresponding to the abnormal indicator;

[0087] S503: inputting abnormal indicators (equivalent to abnormal data), minimum functional unit features, and manual analysis information into the abnormal indicator intelligent analysis model for cyclic training;

[0088] S504: Determine whether the accuracy of the model output meets the threshold requirement. If so, obtain the updated abnormal indicator intelligent analysis model. If not, jump to S503 and continue to repeat the training.

[0089] The embodiment of the present application proposes an intelligent analysis method for abnormal indicators. By collecting historical analysis information of relevant abnormal indicators (equivalent to abnormal data) and the characteristics of the smallest functional unit corresponding to the abnormal indicators (equivalent to data characteristics), the transformer model (equivalent to the first detection model) is used for training to obtain an intelligent analysis model for abnormal indicators. The TextRank algorithm (equivalent to the second detection model) is used to automatically extract analysis keywords, thereby realizing automated and intelligent analysis of abnormal indicators, assisting manual analysis, improving the efficiency of problem analysis, and continuously optimizing and improving the accuracy of the model through feedback from manual analysis during use.

[0090] Figure 6 is a flow chart of an optional abnormal type detection method according to an embodiment of the present application, such as Figure 6 As shown, the abnormal type detection method may include but is not limited to the following processes:

[0091] S601: Collect historical abnormal indicators (equivalent to abnormal data) and their corresponding analysis information as a training set;

[0092] S602: The analysis information in the training set is divided into invalid anomalies and valid anomalies. The valid anomalies are subdivided into multiple subcategories such as personnel ability factors, planning factors, personnel operation factors, and upstream and downstream coordination factors according to the specific analysis content, and the categories are marked;

[0093] S603: Extract the minimum functional unit features (equivalent to data features) corresponding to the historical abnormal indicators and add them to the training set. The features of the minimum functional unit include the qualifications of the R&D personnel / testers corresponding to the functional unit, the workload input of the R&D personnel / testers corresponding to the functional unit, the plan arrangement corresponding to the functional unit, the daily progress data of the functional unit, the daily bug data of the functional unit, the daily code line data submitted by the functional unit, the frequency of pipeline deployment corresponding to the functional unit, etc.

[0094] S604: Input the training set into the transformer model (equivalent to the first detection model) for training to obtain an abnormal data intelligent analysis model;

[0095] S605: Add the abnormal indicator to be analyzed and the minimum functional unit characteristics corresponding to the abnormal indicator to the abnormal indicator intelligent analysis model to obtain a preliminary analysis category;

[0096] S606: According to the preliminary analysis category, a target analysis set is selected from the analysis information of the historical abnormal indicators, and the analysis information in the target analysis set (equivalent to the abnormal description information) corresponds to the same analysis information category and abnormal indicator type as the abnormal indicator type to be analyzed and the preliminary analysis category;

[0097] S607: Obtain keywords in the target analysis set and generate target keywords;

[0098] S608: Provide the preliminary analysis category and target keywords of the abnormal indicators to the indicator analysts for reference, supplement the manual analysis information, and feed back the manual analysis information to the intelligent analysis model for iterative optimization.

[0099] In the application anomaly detection method provided in the embodiment of the present application, the application may generate some abnormal data. In order to quickly analyze the types of factors that cause the application to generate these abnormal data, the collected abnormal data of the application and the data features of the abnormal data can be input into the detection model, but are not limited to. The detection model automatically analyzes the types of factors that cause the application to generate these abnormal data and the keywords used to describe the abnormal types, thereby realizing automatic and intelligent analysis of the abnormal data, assisting manual analysis, and improving the low analysis efficiency of the abnormal data, thereby solving the technical problem of low analysis efficiency of the abnormal data caused by the abnormal data alarm mainly relying on manual analysis.

[0100] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0101] Example 2

[0102] The embodiment of the present application also provides an application anomaly detection device. It should be noted that the application anomaly detection device of the embodiment of the present application can be used to execute the application anomaly detection method provided by the embodiment of the present application. The following introduces the application anomaly detection device provided by the embodiment of the present application.

[0103] According to an embodiment of the present application, a device for implementing the above-mentioned application anomaly detection method is also provided, such as Figure 7 As shown, the device comprises:

[0104] The first processing module 702 is used to collect target abnormal data generated by the target application and extract target data features of the target abnormal data, wherein the target abnormal data includes a target parameter, an abnormal value corresponding to the target parameter, and abnormal description information, the abnormal value does not fall within the target parameter range allowed by the target parameter, the abnormal description information is used to describe the target factor that causes the value of the target parameter to be the abnormal value, and the target data features are used to generate the target parameter;

[0105] The second processing module 704 is used to input the target abnormality data into a target detection model to obtain a target abnormality type and a target keyword output by the target detection model, wherein the target factor belongs to the target abnormality type and the target keyword is used to describe the target abnormality type;

[0106] The display module 706 is used to display the target abnormality type and the target keyword.

[0107] The application anomaly detection device provided in the embodiment of the present application may generate some abnormal data. In order to quickly analyze the types of factors that cause the application to generate these abnormal data, the collected abnormal data of the application and the data features of the abnormal data can be input into the detection model, but is not limited to. The detection model automatically analyzes the types of factors that cause the application to generate these abnormal data and the keywords used to describe the abnormal types, thereby realizing automatic and intelligent analysis of the abnormal data, assisting manual analysis, and improving the low analysis efficiency of the abnormal data, thereby solving the technical problem of low analysis efficiency of the abnormal data caused by the abnormal data alarm mainly relying on manual analysis.

[0108] In an exemplary embodiment, the second processing module includes:

[0109] The first processing unit is used to input the target parameters, the abnormal values, the target data features and the abnormal description information into a first detection model to obtain the target abnormality type output by the first detection model, and input the abnormal description information into a second detection model to obtain the target keyword output by the second detection model, wherein the target detection model includes the first detection model and the second detection model.

[0110] In an exemplary embodiment, the first processing unit is configured to:

[0111] Divide the abnormal description information into M words, where M is a positive integer;

[0112] Calculating M screening parameters corresponding to the M words, wherein the jth screening parameter among the M screening parameters is used to indicate the importance of the jth word among the M words, and the jth screening parameter is equal to a value obtained by multiplying the jth frequency of the jth word in the M words by the jth weight of the jth word, where j is a positive integer less than or equal to M;

[0113] N keywords whose screening parameters are greater than or equal to the parameter threshold among the M words are determined as the target keywords, where N is a positive integer less than or equal to M.

[0114] In an exemplary embodiment, the apparatus further comprises:

[0115] a third processing module, configured to input the sample abnormality data marked with the sample abnormality type and the sample data features of the sample abnormality data into the initial detection model before inputting the target abnormality data into the target detection model to obtain the target abnormality type and the target keyword output by the target detection model, so as to obtain the initial abnormality type output by the initial detection model, wherein the sample abnormality data is generated by a sample application, the sample abnormality data includes sample parameters, sample abnormality values ​​corresponding to the sample parameters, and sample abnormality description information, the sample abnormality value does not fall within the sample parameter range allowed by the sample parameter, the sample abnormality description information is used to describe the sample factor that causes the value of the sample parameter to be the sample abnormality value, the sample factor belongs to the sample abnormality type, and the sample data features are used to generate the sample parameters;

[0116] A first detection module, configured to detect a target accuracy rate of the initial abnormality type output by the initial detection model according to the sample abnormality type and the initial abnormality type;

[0117] A determination module is used to determine the initial detection model as the first detection model in the target detection model when the target accuracy is greater than or equal to an accuracy threshold.

[0118] In an exemplary embodiment, the first detection module includes:

[0119] In the case where the initial abnormality type includes an R1 group of abnormality types and the sample abnormality type includes an R2 group of abnormality types, the target accuracy is detected by performing the following steps, wherein R1 is a positive integer and R2 is a positive integer:

[0120] A detection unit, configured to detect R accuracy rates according to the R1 group of abnormality types and the R2 group of abnormality types, wherein the i-th accuracy rate among the R accuracy rates is used to indicate the accuracy rate of the i-th group of abnormality types predicted by the initial detection model, the i-th group of abnormality types is the abnormality type to which the i-th group of factors predicted by the initial detection model that causes the value of the i-th parameter to not fall within the i-th parameter range allowed by the i-th parameter belongs, R is a positive integer, i1 is a positive integer less than or equal to R1, the sample parameters include Q parameters, the Q parameters include the i-th parameter, Q is a positive integer, and i is a positive integer less than or equal to Q;

[0121] An execution unit is used to perform an average operation on the R accuracy rates to obtain the target accuracy rate.

[0122] In an exemplary embodiment, the detection unit is used to:

[0123] By executing the following steps, according to the i1th group of abnormal types and the i2th group of abnormal types, the i-th accuracy of the i1th group of abnormal types predicted by the first detection model is detected, wherein the i2th group of abnormal types is the abnormal type to which the i2th group of factors that cause the value of the i-th parameter not to fall within the i-th parameter range belong, and the sample abnormal types include the i2th group of abnormal types, and i2 is a positive integer less than or equal to R2: searching the abnormal types included in the i1th group of abnormal types from the i2th group of abnormal types; when the i2th group of abnormal types and the i1th group of abnormal types both include T abnormal types and T1 abnormal types in the i1th group of abnormal types are found from the i2th group of abnormal types, the i-th accuracy is determined as a value obtained by dividing T1 by T, T1 is a positive integer less than or equal to T, and T is a positive integer.

[0124] In an exemplary embodiment, when the target accuracy is less than the accuracy threshold, the apparatus further includes:

[0125] a fourth processing module, configured to screen reference abnormal data from candidate abnormal data and extract reference data features of the reference abnormal data, wherein the reference abnormal data is generated by a reference application, the reference abnormal data includes a reference parameter, a reference abnormal value corresponding to the reference parameter, and reference abnormal description information, the reference abnormal value does not fall within the reference parameter range allowed by the reference parameter, the reference abnormal description information is used to describe a reference factor causing the reference parameter value to be the reference abnormal value, the reference data features are used to generate the reference parameter, the accuracy of the abnormal type to which the factor belonging to the reference abnormal type predicted by the first detection model in the target detection model belongs is less than or equal to the accuracy threshold, and the reference factor belongs to the reference abnormal type;

[0126] A fifth processing module, configured to input the reference abnormality data annotated with the reference abnormality type and the reference keyword and the reference data feature into the first detection model to obtain a candidate abnormality type output by the first detection model;

[0127] A second detection module, configured to detect a reference accuracy rate of the candidate abnormality type output by the first detection model according to the reference abnormality type and the candidate abnormality type;

[0128] An adjustment module, configured to adjust the model parameters of the first detection model to obtain a third detection model when the reference accuracy is less than an accuracy threshold;

[0129] A training module is used to continue training the third detection model until the accuracy of the abnormal type output by the third detection model is greater than or equal to the accuracy threshold, wherein the target detection model includes the third detection model and the second detection model.

[0130] It should be noted that the first processing module 702, the second processing module 704 and the display module 706 correspond to steps S202 to S206 in Example 1, and the three modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules or units may be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n), and the above-mentioned modules may also be part of the device and may be run in the computer terminal 10 provided in Example 1.

[0131] Example 3

[0132] An embodiment of the present application may provide an electronic device, Figure 8 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 8 As shown, the electronic device may include: one or more ( Figure 8 (only one is shown) processor 802, memory 804, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0133] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0134] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: collect target abnormal data generated by the target application, and extract target data features of the target abnormal data, wherein the target abnormal data includes a target parameter, an abnormal value corresponding to the target parameter, and abnormal description information, the abnormal value does not fall within the target parameter range allowed by the target parameter, the abnormal description information is used to describe the target factor that causes the value of the target parameter to be the abnormal value, and the target data feature is used to generate the target parameter; input the target abnormal data into a target detection model to obtain a target abnormal type and a target keyword output by the target detection model, wherein the target factor belongs to the target abnormal type, and the target keyword is used to describe the target abnormal type; and display the target abnormal type and the target keyword.

[0135] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: input the target parameters, the abnormal values, the target data features and the abnormal description information into the first detection model to obtain the target abnormality type output by the first detection model, and input the abnormal description information into the second detection model to obtain the target keywords output by the second detection model, wherein the target detection model includes the first detection model and the second detection model.

[0136] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: divide the exception description information to obtain M words, where M is a positive integer; calculate M screening parameters corresponding to the M words, where the jth screening parameter of the M screening parameters is used to indicate the importance of the jth word in the M words, and the jth screening parameter is equal to the value obtained by multiplying the jth frequency of the jth word in the M words by the jth weight of the jth word, where j is a positive integer less than or equal to M; determine N keywords in the M words whose screening parameters are greater than or equal to the parameter threshold as the target keywords, where N is a positive integer less than or equal to M.

[0137] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: input the sample abnormality data marked with the sample abnormality type and the sample data features of the sample abnormality data into the initial detection model to obtain the initial abnormality type output by the initial detection model, wherein the sample abnormality data is generated by the sample application, and the sample abnormality data includes sample parameters, sample abnormality values ​​corresponding to the sample parameters and sample abnormality description information, the sample abnormality value does not fall within the sample parameter range allowed by the sample parameter, the sample abnormality description information is used to describe the sample factor that causes the value of the sample parameter to be the sample abnormality value, the sample factor belongs to the sample abnormality type, and the sample data features are used to generate the sample parameter; according to the sample abnormality type and the initial abnormality type, detect the target accuracy of the initial abnormality type output by the initial detection model; when the target accuracy is greater than or equal to the accuracy threshold, determine the initial detection model as the first detection model in the target detection model.

[0138] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: when the initial abnormality type includes R1 group abnormality types and the sample abnormality type includes R2 group abnormality types, the target accuracy is detected by performing the following steps, wherein R1 is a positive integer and R2 is a positive integer: according to the R1 group abnormality type and the R2 group abnormality type, R accuracy rates are detected, wherein the i-th accuracy rate among the R accuracy rates is used to indicate the accuracy rate of the i1-th group abnormality type predicted by the initial detection model, the i1-th group abnormality type is the abnormality type to which the i1-th group of factors predicted by the initial detection model that causes the value of the i-th parameter to not fall within the i-th parameter range allowed by the i-th parameter belongs, R is a positive integer, i1 is a positive integer less than or equal to R1, the sample parameters include Q parameters, the Q parameters include the i-th parameter, Q is a positive integer, and i is a positive integer less than or equal to Q; an average operation is performed on the R accuracy rates to obtain the target accuracy rate.

[0139] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: by performing the following steps, according to the i1th group of abnormal types and the i2th group of abnormal types, detect the i-th accuracy of the i1th group of abnormal types predicted by the first detection model, wherein the i2th group of abnormal types is the abnormal type to which the i2th group of factors that cause the value of the i-th parameter not to fall within the i-th parameter range belongs, and the sample abnormal types include the i2th group of abnormal types, i2 is a positive integer less than or equal to R2: search for the abnormal types included in the i1th group of abnormal types from the i2th group of abnormal types; when the i2th group of abnormal types and the i1th group of abnormal types both include T abnormal types and T1 abnormal types in the i1th group of abnormal types are found from the i2th group of abnormal types, the i-th accuracy is determined as the value obtained by dividing T1 by T, T1 is a positive integer less than or equal to T, and T is a positive integer.

[0140] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: filter reference abnormal data from the candidate abnormal data, and extract reference data features of the reference abnormal data, wherein the reference abnormal data is generated by the reference application, and the reference abnormal data includes a reference parameter, a reference abnormal value corresponding to the reference parameter, and a reference abnormal description information, the reference abnormal value does not fall within the reference parameter range allowed by the reference parameter, the reference abnormal description information is used to describe the reference factor that causes the reference parameter to take the reference abnormal value, the reference data feature is used to generate the reference parameter, and the accuracy of the abnormal type to which the factor belonging to the reference abnormal type predicted by the first detection model in the target detection model belongs is less than or is equal to the accuracy threshold, the reference factor belongs to the reference abnormality type; the reference abnormality data marked with the reference abnormality type and the reference keyword and the reference data features are input into the first detection model to obtain the candidate abnormality type output by the first detection model; according to the reference abnormality type and the candidate abnormality type, the reference accuracy of the candidate abnormality type output by the first detection model is detected; when the reference accuracy is less than the accuracy threshold, the model parameters of the first detection model are adjusted to obtain a third detection model; the third detection model is continued to be trained until the accuracy of the abnormality type output by the third detection model is greater than or equal to the accuracy threshold, wherein the target detection model includes the third detection model and the second detection model.

[0141] By using the embodiment of the present application, a solution for detecting application anomalies is provided. The application may generate some abnormal data. In order to quickly analyze the types of factors that cause the application to generate these abnormal data, the collected abnormal data of the application and the data features of the abnormal data can be input into the detection model, but not limited to. The detection model automatically analyzes the types of factors that cause the application to generate these abnormal data and the keywords used to describe the abnormal types, thereby realizing automatic and intelligent analysis of abnormal data, assisting manual analysis, and improving the low efficiency of abnormal data analysis, thereby solving the technical problem of low efficiency of abnormal data analysis caused by abnormal data alarm mainly relying on manual analysis.

[0142] It can be understood by those skilled in the art that Figure 8 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 8 The structure of the electronic device is not limited. Figure 8 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 8 Different configurations are shown.

[0143] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0144] Example 4

[0145] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the application anomaly detection method provided in the first embodiment.

[0146] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0147] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the program steps of the method for detecting application anomalies.

[0148] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0149] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0150] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0152] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0154] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for detecting application anomalies, characterized in that: The method comprises: Collect target abnormal data generated by a target application, and extract target data features of the target abnormal data, wherein the target abnormal data includes a target parameter, an abnormal value corresponding to the target parameter, and abnormal description information, the abnormal value does not fall within a target parameter range allowed by the target parameter, the abnormal description information is used to describe a target factor causing the value of the target parameter to be the abnormal value, and the target data features are used to generate the target parameter; Inputting the target abnormality data into a target detection model to obtain a target abnormality type and a target keyword output by the target detection model, wherein the target factor belongs to the target abnormality type, and the target keyword is used to describe the target abnormality type; The target anomaly type and the target keyword are displayed.

2. The method according to claim 1, characterized in that The step of inputting the target abnormality data into a target detection model to obtain a target abnormality type and a target keyword output by the target detection model includes: The target parameters, the abnormal values, the target data features and the abnormal description information are input into a first detection model to obtain the target abnormality type output by the first detection model, and the abnormal description information is input into a second detection model to obtain the target keywords output by the second detection model, wherein the target detection model includes the first detection model and the second detection model.

3. The method according to claim 2, characterized in that The step of inputting the abnormal description information into a second detection model to obtain the target keyword output by the second detection model includes: Divide the abnormal description information into M words, where M is a positive integer; Calculating M screening parameters corresponding to the M words, wherein the jth screening parameter among the M screening parameters is used to indicate the importance of the jth word among the M words, and the jth screening parameter is equal to a value obtained by multiplying the jth frequency of the jth word in the M words by the jth weight of the jth word, where j is a positive integer less than or equal to M; N keywords whose screening parameters are greater than or equal to the parameter threshold among the M words are determined as the target keywords, where N is a positive integer less than or equal to M.

4. The method according to claim 1, characterized in that Before inputting the target abnormality data into a target detection model to obtain the target abnormality type and target keyword output by the target detection model, the method further includes: Inputting sample abnormality data marked with sample abnormality types and sample data features of the sample abnormality data into an initial detection model to obtain an initial abnormality type output by the initial detection model, wherein the sample abnormality data is generated by a sample application, the sample abnormality data includes sample parameters, sample abnormality values ​​corresponding to the sample parameters, and sample abnormality description information, the sample abnormality value does not fall within the sample parameter range allowed by the sample parameter, the sample abnormality description information is used to describe the sample factor that causes the value of the sample parameter to be the sample abnormality value, the sample factor belongs to the sample abnormality type, and the sample data features are used to generate the sample parameters; Detecting a target accuracy rate of the initial abnormality type output by the initial detection model according to the sample abnormality type and the initial abnormality type; When the target accuracy is greater than or equal to an accuracy threshold, the initial detection model is determined as the first detection model in the target detection model.

5. The method according to claim 4, characterized in that The step of detecting a target accuracy rate of the initial abnormality type output by the initial detection model according to the sample abnormality type and the initial abnormality type includes: In the case where the initial abnormality type includes an R1 group of abnormality types and the sample abnormality type includes an R2 group of abnormality types, the target accuracy is detected by performing the following steps, wherein R1 is a positive integer and R2 is a positive integer: According to the R1 group of abnormality types and the R2 group of abnormality types, R accuracy rates are detected, wherein the i-th accuracy rate among the R accuracy rates is used to indicate the accuracy rate of the i1-th group of abnormality types predicted by the initial detection model, the i1-th group of abnormality types is the abnormality type to which the i1-th group of factors that cause the value of the i-th parameter not to fall within the i-th parameter range allowed by the i-th parameter, as predicted by the initial detection model, belongs, R is a positive integer, i1 is a positive integer less than or equal to R1, the sample parameters include Q parameters, the Q parameters include the i-th parameter, Q is a positive integer, and i is a positive integer less than or equal to Q; An average operation is performed on the R accuracy rates to obtain the target accuracy rate.

6. The method according to claim 5, characterized in that The detecting R accuracy rates according to the R1 group of abnormal types and the R2 group of abnormal types comprises: detecting the i-th accuracy rate of the i1-th group of abnormal types predicted by the first detection model according to the i1-th group of abnormal types and the i2-th group of abnormal types by performing the following steps, wherein the i2-th group of abnormal types is the abnormal type to which the i2-th group of factors that cause the value of the i-th parameter not to fall within the i-th parameter range belongs, the sample abnormal types include the i2-th group of abnormal types, and i2 is a positive integer less than or equal to R2: Searching the exception types included in the i1th group of exception types from the i2th group of exception types; In the case that the i2th group of abnormal types and the i1th group of abnormal types both include T abnormal types and T1 abnormal types in the i1th group of abnormal types are found from the i2th group of abnormal types, the i-th accuracy rate is determined as the value obtained by dividing T1 by T, T1 is a positive integer less than or equal to T, and T is a positive integer.

7. The method according to claim 4, characterized in that When the target accuracy is less than the accuracy threshold, the method further includes: Screening reference abnormal data from candidate abnormal data, and extracting reference data features of the reference abnormal data, wherein the reference abnormal data is generated by a reference application, the reference abnormal data includes a reference parameter, a reference abnormal value corresponding to the reference parameter, and reference abnormal description information, the reference abnormal value does not fall within a reference parameter range allowed by the reference parameter, the reference abnormal description information is used to describe a reference factor that causes the reference parameter value to be the reference abnormal value, the reference data features are used to generate the reference parameter, the accuracy of the abnormal type to which the factor belonging to the reference abnormal type predicted by the first detection model in the target detection model belongs is less than or equal to an accuracy threshold, and the reference factor belongs to the reference abnormal type; Inputting the reference abnormality data marked with the reference abnormality type and the reference keyword and the reference data features into the first detection model to obtain the candidate abnormality type output by the first detection model; Detecting a reference accuracy rate of the candidate abnormality type output by the first detection model according to the reference abnormality type and the candidate abnormality type; When the reference accuracy is less than the accuracy threshold, adjusting the model parameters of the first detection model to obtain a third detection model; Continue to train the third detection model until the accuracy of the abnormal type output by the third detection model is greater than or equal to the accuracy threshold, wherein the target detection model includes the third detection model and the second detection model.

8. A device for detecting an application anomaly, characterized in that: The device comprises: A first processing module is used to collect target abnormal data generated by a target application and extract target data features of the target abnormal data, wherein the target abnormal data includes a target parameter, an abnormal value corresponding to the target parameter, and abnormal description information, the abnormal value does not fall within a target parameter range allowed by the target parameter, the abnormal description information is used to describe a target factor causing the value of the target parameter to be the abnormal value, and the target data features are used to generate the target parameter; A second processing module is used to input the target abnormality data into a target detection model to obtain a target abnormality type and a target keyword output by the target detection model, wherein the target factor belongs to the target abnormality type and the target keyword is used to describe the target abnormality type; A display module is used to display the target abnormality type and the target keyword.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for detecting application anomalies according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the program executes the method for detecting application anomalies as described in any one of claims 1 to 7 when running.

11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method for detecting application anomalies according to any one of claims 1 to 7 are implemented.