Index anomaly detection method and device, electronic equipment and storage medium

By performing density clustering and similarity calculations on communication service indicators, indicators that do not meet the normal distribution characteristics are selected, which solves the problem of low detection accuracy in the existing technology and achieves higher accuracy of indicator abnormal detection.

CN119046841APending Publication Date: 2024-11-29CHINA MOBILE COMM CORP TIANJIN +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411172726.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In the detection of abnormal communication service indicators in the prior art, year-on-year or month-on-month difference cannot effectively deal with the fluctuations in the busy and idle business, resulting in a low detection accuracy.

Method used

By density clustering of the detection index set, the normal index set and the suspected abnormal index set are obtained, and the target suspected abnormal index set that does not meet the distribution characteristics are filtered out. Similarity calculation is used to determine that the index with similarity less than the preset threshold is an abnormal index. .

Benefits of technology

The accuracy of indicator abnormality detection has been improved, and the impact of different log types and different statistical time points on indicator fluctuations has been eliminated.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046841A_ABST
    Figure CN119046841A_ABST
Patent Text Reader

Abstract

The invention discloses an index anomaly detection method and device, electronic equipment and a storage medium, and relates to the technical field of data processing, and the method comprises the steps: obtaining a to-be-detected index set, carrying out the density clustering of the to-be-detected index set, and obtaining a normal index set and a suspected anomaly index set; screening out a target suspected abnormal index set which does not meet the distribution characteristics in the suspected abnormal index set; performing similarity calculation on the first index sequence and the second index sequence to obtain the similarity between the first index sequence and the second index sequence; and if the similarity is smaller than a preset threshold, determining that the target to-be-detected index is an abnormal index. Compared with the prior art, according to the embodiment of the invention, the abnormal index is determined according to the first index sequence where the target to-be-detected index in the target suspected abnormal index set is located and the second index sequence which is adjacent to the first index sequence in time and is the same as the first index sequence in date type and statistical time point in the normal index set; and the detection accuracy of the index abnormity is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a method and device for detecting abnormal indicators, an electronic device, and a storage medium. Background Art

[0002] With the continuous development of communication services, users' perception of communication services has gradually increased, so it is particularly important to analyze the indicators of communication services. By discovering the abnormal values ​​in the indicators of communication services, it is possible to effectively locate the time of business abnormalities and further analyze the causes and degree of business impact.

[0003] In the related technologies for detecting abnormal indicators, the indicators are usually compared year-on-year or month-on-month, and the year-on-year or month-on-month difference of the indicators at a certain moment is calculated. When the difference is greater than a preset threshold, the indicator value at that moment is considered to be an abnormal value, and the moment is an abnormal moment.

[0004] Since the year-on-year or month-on-month differences in historical data cannot cope with the fluctuations that occur when the communication business is busy or not, the accuracy of detecting indicator anomalies is low. Summary of the invention

[0005] The present disclosure provides a method and device for detecting abnormal indicators, an electronic device and a storage medium, the main purpose of which is to solve the problem of low accuracy in detecting abnormal indicators.

[0006] According to a first aspect of the present disclosure, a method for detecting abnormal indicators is provided, which includes:

[0007] Obtaining a set of indicators to be detected, and performing density clustering on the set of indicators to be detected to obtain a normal indicator set and a suspected abnormal indicator set respectively; the indicators to be detected in the set of indicators to be detected have the same date type and the same statistical time point;

[0008] Filter out a target suspected abnormal indicator set that does not meet the distribution feature in the suspected abnormal indicator set; the distribution feature is a distribution feature obtained by performing feature calculation on the normal indicator set;

[0009] Calculate the similarity between the first indicator sequence and the second indicator sequence to obtain the similarity between the first indicator sequence and the second indicator sequence; the first indicator sequence is the indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and the second indicator sequence is the indicator sequence in the normal indicator set that is adjacent to the first indicator sequence in time and has the same date type and the same statistical time point as the first indicator sequence;

[0010] If the similarity is less than a preset threshold, it is determined that the target indicator to be detected is an abnormal indicator.

[0011] Optionally, performing density clustering on the indicator set to be detected to obtain a normal indicator set and a suspected abnormal indicator set respectively includes:

[0012] Obtaining a clustering radius of the indicator set to be detected, and obtaining a density threshold of the indicator set to be detected;

[0013] Clustering the set of indicators to be detected according to the clustering radius and the density threshold to obtain at least two clusters;

[0014] Calling a preset index demarcation algorithm to calculate the at least two clusters to obtain an index demarcation value;

[0015] Classifying the to-be-detected indicators in the cluster that are greater than the indicator cutoff value into the normal indicator set;

[0016] The indicators to be detected in the cluster that are less than or equal to the indicator cutoff value are classified into the suspected abnormal indicator set.

[0017] Optionally, obtaining the clustering radius of the indicator set to be detected includes:

[0018] Performing difference calculation on two different indicators to be detected in the indicator set to be detected, respectively, to obtain first difference between the two different indicators to be detected;

[0019] Arranging the first differences according to their numerical values ​​to obtain a difference sequence;

[0020] The median of the difference sequence is determined as the cluster radius.

[0021] Optionally, the obtaining of a density threshold of the set of indicators to be detected includes:

[0022] Obtaining a first quantity of all indicators to be detected in the indicator set to be detected;

[0023] Determine a range with each indicator to be detected in the indicator set to be detected as the center and with the cluster radius as the boundary as the cluster range of the indicator to be detected;

[0024] Finding a second number of indicators to be detected in the cluster range;

[0025] The density threshold is obtained by performing a difference calculation on the first quantity and the second quantity.

[0026] Optionally, calling a preset indicator demarcation algorithm to calculate the at least two clusters to obtain an indicator demarcation value includes:

[0027] Respectively obtaining a third number of indicators to be detected in the at least two clusters;

[0028] Arranging the third quantities according to numerical values ​​to obtain a quantity sequence;

[0029] Performing differential calculation on the quantity sequence to obtain a differential quantity sequence;

[0030] The maximum value in the differential quantity sequence is determined as the indicator cutoff value.

[0031] Optionally, the distribution features obtained by performing feature calculation on the normal indicator set include:

[0032] Calculating the average value of all the indicators to be detected in the normal indicator set to obtain the average value of the normal indicator set;

[0033] Calculating the dispersion of all the indicators to be detected to obtain a first dispersion of the normal indicator set;

[0034] Performing a discreteness calculation on the first discreteness to obtain a second discreteness;

[0035] The distribution characteristics include: the average value, the first dispersion, and the second dispersion.

[0036] Optionally, the filtering out a target suspected abnormal indicator set that does not satisfy the distribution characteristics in the suspected abnormal indicator set includes:

[0037] Calculate the difference between each indicator to be detected and the average value in the suspected abnormal indicator set, and obtain a second difference between each indicator to be detected and the average value;

[0038] Adding the first discreteness and the second discreteness to obtain a sum result;

[0039] If the second difference is greater than the sum, the indicator to be detected corresponding to the second difference is included in the target suspected abnormal indicator set.

[0040] According to a second aspect of the present disclosure, there is provided a device for detecting abnormal indicators, comprising:

[0041] A clustering unit is used to obtain a set of indicators to be detected, and to perform density clustering on the set of indicators to be detected, to obtain a normal indicator set and a suspected abnormal indicator set respectively; the indicators to be detected in the set of indicators to be detected have the same date type and the same statistical time point;

[0042] A screening unit, used to screen out a target suspected abnormal indicator set that does not satisfy a distribution feature in the suspected abnormal indicator set; the distribution feature is a distribution feature obtained by performing feature calculation on the normal indicator set;

[0043] A first calculation unit is used to calculate the similarity between the first indicator sequence and the second indicator sequence to obtain the similarity between the first indicator sequence and the second indicator sequence; the first indicator sequence is the indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and the second indicator sequence is the indicator sequence in the normal indicator set that is adjacent to the first indicator sequence in time and has the same date type and the same statistical time point as the first indicator sequence;

[0044] The determination unit is used to determine that the target indicator to be detected is an abnormal indicator when the similarity is less than a preset threshold.

[0045] Optionally, the clustering unit includes:

[0046] An acquisition module, used to acquire the clustering radius of the indicator set to be detected, and to acquire the density threshold of the indicator set to be detected;

[0047] A clustering module, used for clustering the set of indicators to be detected according to the clustering radius and the density threshold, to obtain at least two clusters;

[0048] A first calculation module is used to call a preset index demarcation algorithm to calculate the at least two clusters to obtain an index demarcation value;

[0049] A division module, used for dividing the indicators to be detected in the cluster that are greater than the indicator cutoff value into the normal indicator set;

[0050] The division module is also used to divide the indicators to be detected in the cluster that are less than or equal to the indicator cutoff value into the suspected abnormal indicator set.

[0051] Optionally, the first acquisition module is further used to:

[0052] Performing difference calculation on two different indicators to be detected in the indicator set to be detected, respectively, to obtain first difference between the two different indicators to be detected;

[0053] Arranging the first differences according to their numerical values ​​to obtain a difference sequence;

[0054] The median of the difference sequence is determined as the cluster radius.

[0055] Optionally, the first acquisition module is further used to:

[0056] Obtaining a first quantity of all indicators to be detected in the indicator set to be detected;

[0057] Determine a range with each indicator to be detected in the indicator set to be detected as the center and with the cluster radius as the boundary as the cluster range of the indicator to be detected;

[0058] Finding a second number of indicators to be detected in the cluster range;

[0059] The density threshold is obtained by performing a difference calculation on the first quantity and the second quantity.

[0060] Optionally, the first calculation module is further used to:

[0061] Respectively obtaining a third number of indicators to be detected in the at least two clusters;

[0062] Arranging the third quantities according to numerical values ​​to obtain a quantity sequence;

[0063] Performing differential calculation on the quantity sequence to obtain a differential quantity sequence;

[0064] The maximum value in the differential quantity sequence is determined as the indicator cutoff value.

[0065] Optionally, the device further comprises:

[0066] A second calculation unit is used to calculate the average value of all the indicators to be detected in the normal indicator set to obtain the average value of the normal indicator set;

[0067] A third calculation unit is used to calculate the dispersion of all the indicators to be detected to obtain a first dispersion of the normal indicator set;

[0068] a fourth calculation unit, configured to perform a dispersion calculation on the first dispersion to obtain a second dispersion;

[0069] The distribution characteristics include: the average value, the first dispersion, and the second dispersion.

[0070] Optionally, the screening unit includes:

[0071] A second calculation module is used to calculate the difference between each indicator to be detected in the suspected abnormal indicator set and the average value, so as to obtain a second difference between each indicator to be detected and the average value;

[0072] A third calculation module, used for adding the first discreteness and the second discreteness to obtain a sum result;

[0073] The classification module is used to classify the to-be-detected indicator corresponding to the second difference into the target suspected abnormal indicator set when the second difference is greater than the summed result.

[0074] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0075] at least one processor; and

[0076] a memory communicatively connected to the at least one processor; wherein,

[0077] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0078] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0079] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.

[0080] The present disclosure provides a method and device for detecting abnormal indicators, an electronic device and a storage medium, which obtain an indicator set to be detected, and density cluster the indicator set to be detected to obtain a normal indicator set and a suspected abnormal indicator set respectively; the date type and statistical time point of the indicators to be detected in the indicator set to be detected are the same; the target suspected abnormal indicator set that does not meet the distribution characteristics in the suspected abnormal indicator set is screened out; the distribution characteristics are the distribution characteristics obtained by feature calculation of the normal indicator set; similarity calculation is performed on a first indicator sequence and a second indicator sequence to obtain the similarity between the first indicator sequence and the second indicator sequence; the first indicator sequence is the indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and the second indicator sequence is the indicator sequence in the normal indicator set that is adjacent to the first indicator sequence in time, and has the same date type and the same statistical time point as the first indicator sequence; if the similarity is less than a preset threshold, the target indicator to be detected is determined to be an abnormal indicator. Compared with the related art, the embodiment of the present disclosure obtains a normal indicator set and a suspected abnormal indicator set by density clustering the indicators to be detected with the same date type and the same statistical time point, and screens out the target suspected abnormal indicator set in the suspected abnormal indicator set that does not meet the distribution characteristics of the normal indicator set, and uses the second indicator sequence in the normal indicator set that is adjacent in time to the first indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and has the same date type and the same statistical time point to perform similarity calculation with the first indicator sequence to obtain the similarity, and when it is determined that the similarity is less than a preset threshold, the target indicator to be detected is determined to be an abnormal indicator, thereby eliminating the impact of different log types and different statistical time points on the fluctuation of the indicator, and at the same time, according to the first indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located and the second indicator sequence in the normal indicator set that is adjacent in time to the first indicator sequence and has the same date type and the same statistical time point as the first indicator sequence, the abnormal indicator is determined, thereby improving the detection accuracy of indicator abnormality.

[0081] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0083] Figure 1 A flowchart of a method for detecting abnormal indicators provided by an embodiment of the present disclosure;

[0084] Figure 2 A schematic diagram of a flow chart of a density clustering method for a set of indicators to be detected provided by an embodiment of the present disclosure;

[0085] Figure 3 A schematic diagram of the structure of a device for detecting abnormal indicators provided by an embodiment of the present disclosure;

[0086] Figure 4 A schematic diagram of the structure of another device for detecting abnormal indicators provided by an embodiment of the present disclosure;

[0087] Figure 5 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0088] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0089] The following describes the method and device for detecting abnormal indicators, electronic equipment, and storage medium according to embodiments of the present disclosure with reference to the accompanying drawings.

[0090] Figure 1 A flowchart of a method for detecting abnormal indicators provided in an embodiment of the present disclosure.

[0091] like Figure 1 As shown, the method is applied in a server, and the method comprises the following steps:

[0092] Step 101, obtaining a set of indicators to be detected, and performing density clustering on the set of indicators to be detected to obtain a normal indicator set and a suspected abnormal indicator set respectively; the date types and statistical time points of the indicators to be detected in the set of indicators to be detected are the same.

[0093] The indicators to be detected refer to specific quantitative indicators or parameters used to evaluate the performance or status of the communication system. The indicators to be detected can be used to monitor the communication quality, network health, or the efficiency and reliability of data transmission. Abnormalities in the indicators to be detected may indicate that the communication system has a fault, attack, or abnormal behavior. By performing abnormal detection on the indicators to be detected, necessary repair measures can be discovered and taken early to ensure the stability and reliability of the system. The types of indicators to be detected include but are not limited to signal strength, signal-to-noise ratio, packet loss rate, delay rate, broadband utilization, and connection establishment time. The indicator set to be detected contains multiple indicators to be detected.

[0094] Date type refers to a category identifier that classifies the indicators to be detected according to specific standards or requirements based on the time when the indicators to be detected are generated. Date types are used to distinguish indicators to be detected of different time types so that the indicators to be detected can be understood and processed more accurately in analysis, business decision-making or other applications. Date types can be classified based on a variety of factors, including but not limited to working days and rest days (such as weekends), statutory holidays, special event days (such as the Double Eleven Shopping Festival), seasons (such as spring and summer), months, years, etc. These classifications help to reveal the laws and trends behind the logs to be detected and provide strong support for decision-making.

[0095] The statistical time point refers to the specific time reference point specified in the process of statistics or measurement of the indicator to be detected, which is used to mark the start or end time of recording or calculating the indicator to be detected. It is a key component of the time attribute of the indicator to be detected, and is used to ensure the consistency and comparability of the indicator to be detected. The statistical time point includes the statistical start time and the statistical end time.

[0096] For ease of understanding, an example is provided. Assume that the collection period of the indicator to be detected is 15 minutes, and one indicator to be detected is collected every 15 minutes. The indicator to be detected from 10:15:00 to 10:29:59 has a statistical start time of 10:15 and a statistical end time of 10:29. You only need to select one statistical time point, and the statistical time point selection method for all indicators to be detected needs to be consistent).

[0097] The method for obtaining the set of indicators to be detected can be to obtain the required indicators to be detected from a local database or a remote file transfer protocol (FTP) server through a database interface, a file interface, etc. In order to ensure the validity of the indicators to be detected, the null values ​​that have not been collected are not included in the abnormal value detection range, that is, the null values ​​in the indicators to be detected are eliminated to obtain an unclassified set of indicators to be detected. The unclassified indicators to be detected are classified according to the date type and statistical time point of the indicators to be detected to obtain a plurality of sets of indicators to be detected; wherein, the date types and statistical time points of the indicators to be detected in the same set of indicators to be detected are the same. However, it should be clear that this statement is not intended to limit the method for obtaining the set of indicators to be detected to only be obtained through the above method, and it can also be obtained through other methods.

[0098] The method for density clustering of the set of indicators to be detected can be: (1) according to the target indicator to be detected that has not been visited in the set of indicators to be detected, count the number of other indicators to be detected within the clustering radius of the target indicator to be detected; if the number of other indicators to be detected within the clustering radius of the target indicator to be detected is greater than or equal to the density threshold of the set of indicators to be detected, then determine the target indicator to be detected as a core point, and establish a cluster of the target indicator to be detected; if the number of other indicators to be detected within the clustering radius of the target indicator to be detected is less than the density threshold, then determine the target indicator to be detected as a noise point. (2) Select any indicator to be detected from the other indicators to be detected that have not been visited within the clustering radius of the target indicator to be detected, if the number of indicators to be detected within the clustering radius of any indicator to be detected is greater than or equal to the density threshold, then include all indicators to be detected within the clustering radius of any indicator to be detected into the clustering cluster of the target indicator to be detected. (3) Repeat the above step (2) until all other indicators to be detected within the clustering radius of the target indicator to be detected are visited. Repeat the above steps (1)-(3) until all the indicators to be detected in the indicator set to be detected are visited, and each indicator to be detected is added to the cluster or marked as a noise point. However, it should be clear that this statement is not intended to limit the method of density clustering of the indicator set to be detected to the above method, and it can also be achieved by other methods.

[0099] Since there is a large difference in the cluster density of the normal set of indicators to be detected and the suspected abnormal indicator set (i.e., the third number of all indicators to be detected contained in the cluster), and the third number difference between the clusters of the same type (the clusters of each normal indicator or the clusters of each suspected abnormal indicator) is not large, the boundary between the clusters of normal indicators and the clusters of suspected abnormal indicators can be characterized by the maximum third number change. The third number of each cluster is sorted by numerical size to obtain a quantity sequence, and the first-order difference calculation is performed on the quantity sequence to obtain the differenced quantity sequence. The boundary between the clusters of normal indicators and the clusters of suspected abnormal indicators is the indicator demarcation value, and the indicators to be detected in all clusters are divided into a normal indicator set and a suspected abnormal indicator set according to the indicator demarcation value. Among them, each indicator to be detected in the normal indicator set is greater than or equal to the indicator demarcation value, and each indicator to be detected in the suspected abnormal indicator set is less than the indicator demarcation value.

[0100] Step 102, screening out a target suspected abnormal indicator set that does not satisfy a distribution feature in the suspected abnormal indicator set; the distribution feature is a distribution feature obtained by performing feature calculation on the normal indicator set.

[0101] According to practical experience, normal indicators present a normal distribution, and the distribution characteristics of normal indicators can be expressed by expectation, entropy and super entropy. Expectation is the average value of all indicators to be detected in the normal indicator set, entropy is the dispersion of all indicators to be detected in the normal indicator set, and super entropy is the dispersion of the dispersion of all indicators to be detected in the normal indicator set.

[0102] If the normal distribution of the indicator to be detected in the suspected abnormal indicator set is the same as the normal distribution of the indicator to be detected in the normal indicator set, the indicator to be detected is determined to be a normal indicator. If the normal distribution of the indicator to be detected in the suspected abnormal indicator set is different from the normal distribution of the indicator to be detected in the normal indicator set, the indicator to be detected is classified into the target suspected abnormal indicator set.

[0103] Although the density clustering method can roughly divide the indicators to be detected into a normal indicator set and a suspected abnormal indicator set, due to the complexity and diversity of the indicators to be detected, the suspected abnormal indicator set may still contain some indicators that are actually normal, and these indicators are mistakenly classified as suspected abnormal. By comparing the distribution characteristics of the suspected abnormal indicators and the normal indicator set, we can further screen out those indicators that do not conform to the normal data distribution characteristics, thereby reducing the false alarm rate.

[0104] Step 103, calculate the similarity between the first indicator sequence and the second indicator sequence to obtain the similarity between the first indicator sequence and the second indicator sequence; the first indicator sequence is the indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and the second indicator sequence is the indicator sequence in the normal indicator set that is adjacent to the first indicator sequence in time and has the same date type and the same statistical time point as the first indicator sequence.

[0105] The first indicator sequence includes at least two indicators to be detected, and the second indicator sequence includes at least two indicators to be detected. The number of indicators to be detected in the first indicator sequence is the same as the number of indicators to be detected in the second indicator sequence.

[0106] The method for calculating the similarity between the first indicator sequence and the second indicator sequence can be to calculate the cosine similarity or the average cosine similarity between the first indicator sequence and the second indicator sequence. However, it should be clear that this statement is not intended to limit the method of similarity calculation to only cosine similarity or average cosine similarity, and the similarity can also be calculated by other methods.

[0107] The calculation formula of cosine similarity can be implemented by formula (1):

[0108]

[0109] Among them, cos n θ is the cosine similarity, S ijis the first sequence, Sn ij For the second sequence.

[0110] The calculation formula of average cosine similarity can be implemented by formula (2):

[0111]

[0112] Among them, cos avg θ is the average cosine similarity, S ij is the first sequence, Sn ij For the second sequence, SN ij is the number of the second sequence.

[0113] Through similarity calculation, the specific differences between suspected abnormal indicators and normal indicators can be examined more carefully, thereby improving the accuracy of abnormality detection of indicators.

[0114] Step 104: If the similarity is less than a preset threshold, it is determined that the target indicator to be detected is an abnormal indicator.

[0115] The preset threshold value may be any value, for example, 60%, but it should be clear that this statement is not intended to limit the preset threshold value to only 60%, and it may also be other values.

[0116] For ease of understanding, an example is provided. Assuming that the similarity between the first sequence and the second sequence where the target indicator to be detected is located is 70%, and the preset threshold is 60%, the target indicator to be detected is determined to be an abnormal indicator.

[0117] In practical applications, if the similarity between the first sequence and the second sequence where the target indicator to be detected is located is greater than or equal to a preset threshold, it is determined that the target indicator to be detected is a non-abnormal indicator.

[0118] By setting a preset threshold and determining that the target indicator to be detected is an abnormal indicator when the similarity between the first sequence and the second sequence where the target indicator to be detected is located is less than the preset threshold, the situation where a normal indicator is misjudged as an abnormal indicator can be reduced to a certain extent. This helps to improve the accuracy and reliability of abnormality detection of indicators.

[0119] The present invention provides a method for detecting abnormal indicators, which comprises the following steps: obtaining an indicator set to be detected, and performing density clustering on the indicator set to be detected to obtain a normal indicator set and a suspected abnormal indicator set respectively; the indicators to be detected in the indicator set to be detected have the same date type and the same statistical time point; filtering out a target suspected abnormal indicator set that does not meet the distribution characteristics in the suspected abnormal indicator set; the distribution characteristics are the distribution characteristics obtained by performing feature calculation on the normal indicator set; performing similarity calculation on a first indicator sequence and a second indicator sequence to obtain the similarity between the first indicator sequence and the second indicator sequence; the first indicator sequence is an indicator sequence in which the target indicator to be detected in the target suspected abnormal indicator set is located, and the second indicator sequence is an indicator sequence in the normal indicator set that is adjacent to the first indicator sequence in time and has the same date type and the same statistical time point as the first indicator sequence; if the similarity is less than a preset threshold, determining that the target indicator to be detected is an abnormal indicator. Compared with the related art, the embodiment of the present disclosure obtains a normal indicator set and a suspected abnormal indicator set by density clustering the indicators to be detected with the same date type and the same statistical time point, and screens out the target suspected abnormal indicator set in the suspected abnormal indicator set that does not meet the distribution characteristics of the normal indicator set, and uses the second indicator sequence in the normal indicator set that is adjacent in time to the first indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and has the same date type and the same statistical time point to perform similarity calculation with the first indicator sequence to obtain the similarity, and when it is determined that the similarity is less than a preset threshold, the target indicator to be detected is determined to be an abnormal indicator, thereby eliminating the impact of different log types and different statistical time points on the fluctuation of the indicator, and at the same time, according to the first indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located and the second indicator sequence in the normal indicator set that is adjacent in time to the first indicator sequence and has the same date type and the same statistical time point as the first indicator sequence, the abnormal indicator is determined, thereby improving the detection accuracy of indicator abnormality.

[0120] As a refinement of step 101, when performing density clustering on the indicator set to be detected to obtain a normal indicator set and a suspected abnormal indicator set, the following methods may be used but are not limited to: Figure 2 As shown, Figure 2 A schematic flow chart of a density clustering method for a set of indicators to be detected provided by an embodiment of the present disclosure includes:

[0121] Step 201, obtaining the clustering radius of the indicator set to be detected, and obtaining the density threshold of the indicator set to be detected.

[0122] The cluster radius refers to the minimum neighborhood distance used to determine whether other indicators to be detected in the set of indicators to be detected belong to a certain cluster cluster. The density threshold refers to the distance used to compare the size of other indicators to be detected in the cluster range of the indicator to be detected; where the cluster range is the range with the indicator to be detected as the center and the cluster radius as the boundary. If the number of other indicators to be detected in the cluster range of the indicator to be detected is greater than the density threshold, then the indicator to be detected is a core point.

[0123] The selection of cluster radius and density threshold will directly affect the quality and quantity of clustering results. Too large a cluster radius and too low a density threshold may lead to clusters that are too large and contain too many noise points; while too small a cluster radius and too high a density threshold may lead to clusters that are too fragmented and cannot effectively reflect the internal structure of the data. Therefore, by carefully setting the size of the cluster radius and density threshold, the clustering effect can be optimized to make it more in line with the needs of practical applications.

[0124] Step 202: cluster the set of indicators to be detected according to the cluster radius and the density threshold to obtain at least two clusters.

[0125] The implementation method of the embodiment of the present disclosure has been described in detail in step 101, and will not be described again in the embodiment of the present disclosure.

[0126] Step 203: Call a preset index demarcation algorithm to calculate the at least two clusters to obtain an index demarcation value.

[0127] The method of calling a preset indicator demarcation algorithm and calculating the at least two clusters to obtain the indicator demarcation value can be by respectively obtaining the third quantity of the indicator to be detected in the at least two clusters obtained by density clustering, arranging the third quantity according to the numerical value to obtain a quantity sequence; performing difference calculation on the quantity sequence to obtain a differenced quantity sequence; and determining the maximum value in the differenced quantity sequence as the indicator demarcation value.

[0128] Through precise indicator cutoff values, the accuracy of anomaly detection can be improved and false positives and false negatives can be reduced.

[0129] Step 204: classify the indicators to be detected in the cluster that are greater than the indicator cutoff value into the normal indicator set.

[0130] For ease of understanding, an example is provided. Assume that there are four indicators to be detected in the cluster, namely a, b, c, and d, and the indicator boundary value is e. A and b are greater than e, and c and d are less than e, then a and b are classified into the normal indicator set.

[0131] In the process of data analysis, a large amount of data usually needs to be processed and interpreted. Separating normal indicators from indicators to be detected can reduce the in-depth investigation and analysis of suspected abnormal data, thereby improving the overall analysis efficiency.

[0132] Step 205: classify the indicators to be detected in the cluster that are less than or equal to the indicator cutoff value into the suspected abnormal indicator set.

[0133] For ease of understanding, an example is provided. Assume that there are four indicators to be detected in the cluster, namely a, b, c, and d, and the indicator boundary value is e. If a and b are greater than e, and c and d are less than e, then c and d are classified into the suspected abnormal indicator set.

[0134] By considering the indicators to be detected that are less than or equal to the indicator cutoff value as suspected abnormal indicators, the indicators to be detected that may have problems can be preliminarily screened out for further investigation and analysis.

[0135] As a refinement of step 201, when executing the method of obtaining the clustering radius of the set of indicators to be detected, it can be implemented in but not limited to the following manner: performing difference calculations on two different indicators to be detected in the set of indicators to be detected, respectively, to obtain a first difference between the two different indicators to be detected; arranging the first differences according to their numerical values ​​to obtain a difference sequence; and determining the median in the difference sequence as the clustering radius.

[0136] The calculation formula of cluster radius can be realized by formula (3):

[0137]

[0138] Among them, Eps is the cluster radius, ||D i || is the number of indicators to be detected, For the Indicators to be tested, For the Indicators to be tested.

[0139] For ease of understanding, an example is provided. Assume that there are three indicators to be detected in the indicator set to be detected, namely a, b, and c, where a=6, b=5, and c=3. The first difference includes ab=1, ac=3, and bc=2. The difference sequence is [3,2,1], and the clustering radius is 2.

[0140] As a refinement of step 201, when executing the method of obtaining the density threshold of the set of indicators to be detected, it can be implemented in but not limited to the following manner: obtaining the first number of all indicators to be detected in the set of indicators to be detected; determining the clustering range of the indicators to be detected with each indicator to be detected in the set of indicators to be detected as the center and the range with the clustering radius as the boundary; searching for the second number of indicators to be detected in the clustering range; and calculating the difference between the first number and the second number to obtain the density threshold.

[0141] The calculation formula of the density threshold can be implemented by formula (4):

[0142]

[0143] Among them, MinPts is the density threshold, ||D i || is the first quantity, ε ij is the second quantity.

[0144] To facilitate understanding, an example is provided. Assuming that there are 4 indicators to be detected in the set of indicators to be detected, namely a, b, and c, where the second number of indicators to be detected in the clustering range of a is 3, the second number of indicators to be detected in the clustering range of b is 2, and the second number of indicators to be detected in the clustering range of c is 1, then the density threshold is 2.

[0145] As a refinement of step 203, when executing the calling of the preset indicator demarcation algorithm, calculating the at least two clusters, and obtaining the indicator demarcation value, it can be implemented in but not limited to the following ways: respectively obtaining the third quantity of the indicators to be detected in the at least two clusters; arranging the third quantities according to the numerical values ​​to obtain a quantity sequence; performing differential calculation on the quantity sequence to obtain a differential quantity sequence; and determining the maximum value in the differential quantity sequence as the indicator demarcation value.

[0146] To facilitate understanding, an example is provided. Suppose that after density clustering of the indicator set to be detected, three clusters are obtained, namely A, B, and C. Among them, the third number of A is 9, the third number of B is 5, and the third number of C is 2. The number sequence is [9,5,2], and the number sequence after difference is [4,3]. Then the indicator boundary value is 4.

[0147] As a refinement of step 102, when executing the distribution feature obtained by performing feature calculation on the normal indicator set, it can be implemented in but not limited to the following manner: performing average value calculation on all indicators to be detected in the normal indicator set to obtain the average value of the normal indicator set; performing discreteness calculation on all indicators to be detected to obtain the first discreteness of the normal indicator set; performing discreteness calculation on the first discreteness to obtain the second discreteness; the distribution feature includes: the average value, the first discreteness and the second discreteness.

[0148] The calculation formula of the average value of the normal indicator set can be implemented by formula (5):

[0149]

[0150] Among them, Ex(N i ) is the average value of the normal index set of the i-th category, ||N i || is the number of indicators to be detected in the normal indicator set of the i-th category, n ij It is the jth indicator to be detected in the normal indicator set of the i-th category.

[0151] The calculation formula of the first discreteness of the normal index set can be implemented by formula (6):

[0152]

[0153] Among them, En(N i ) is the first dispersion of the normal index set of the i-th class, ||N i || is the number of indicators to be detected in the normal indicator set of the i-th category, n ij is the jth indicator to be detected in the normal indicator set of the i-th category, Ex i is the average value of the normal indicator set of the i-th class.

[0154] The calculation formula of the second discreteness of the normal index set can be implemented by formula (7):

[0155]

[0156] Among them, He(N i ) is the second dispersion of the normal index set, En i is the first dispersion of the normal index set of the i-th class, ||N i || is the number of indicators to be detected in the normal indicator set of the i-th category, n ij is the jth indicator to be detected in the normal indicator set of the i-th category, Ex i is the average value of the normal indicator set of the i-th class.

[0157] As a refinement of step 102, when performing the screening out of the target suspected abnormal indicator set that does not meet the distribution characteristics in the suspected abnormal indicator set, it can be implemented in but not limited to the following manner: performing difference calculations on each indicator to be detected in the suspected abnormal indicator set and the average value, respectively, to obtain a second difference between each indicator to be detected and the average value; performing sum calculation on the first discreteness and the second discreteness to obtain a sum result; if the second difference is greater than the sum result, the indicator to be detected corresponding to the second difference is included in the target suspected abnormal indicator set.

[0158] The method of screening out the target suspected abnormal indicator set that does not meet the distribution characteristics in the suspected abnormal indicator set can be achieved by formula (8):

[0159]

[0160] If f(e) is 1, the indicator to be detected is classified into the normal indicator set; if f(e) is 0, the indicator to be detected is classified into the suspected abnormal indicator set. e is the indicator to be detected, Ex i is the average value of the normal indicator set, En i is the first dispersion of the normal index set, He i is the second discreteness of the normal indicator set, r and l are preset parameters.

[0161] For ease of understanding, an example is provided. Suppose the value of the indicator to be detected is 6, the average value of the normal indicator set is 3, the first discreteness of the normal indicator set is 4, the second discreteness of the normal indicator set is 2, and are 0.5 and 0.6 respectively, then f(e) is 1, and the indicator to be detected is classified into the target suspected abnormal indicator set.

[0162] In summary, the embodiments of the present disclosure can achieve the following effects:

[0163] The disclosed embodiment obtains a normal indicator set and a suspected abnormal indicator set by density clustering the indicators to be detected with the same date type and the same statistical time point, and screens out a target suspected abnormal indicator set that does not meet the distribution characteristics of the normal indicator set in the suspected abnormal indicator set, and calculates similarity with the first indicator sequence using a second indicator sequence in the normal indicator set that is adjacent in time to the first indicator sequence in the target suspected abnormal indicator set and has the same date type and the same statistical time point to obtain the similarity, and when it is determined that the similarity is less than a preset threshold, the target indicator to be detected is determined to be an abnormal indicator, thereby eliminating the impact of different log types and different statistical time points on the fluctuation of the indicator, and at the same time, according to the first indicator sequence in the target suspected abnormal indicator set where the target indicator to be detected is located and the second indicator sequence in the normal indicator set that is adjacent in time to the first indicator sequence and has the same date type and the same statistical time point as the first indicator sequence, the abnormal indicator is determined, thereby improving the detection accuracy of the indicator abnormality.

[0164] Corresponding to the above-mentioned method for detecting abnormal indicators, the present invention also provides a device for detecting abnormal indicators. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.

[0165] Figure 3 A schematic diagram of a device for detecting abnormal indicators provided by an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, the device is applied to a server and includes:

[0166] The clustering unit 31 is used to obtain a set of indicators to be detected, and to perform density clustering on the set of indicators to be detected, to obtain a normal indicator set and a suspected abnormal indicator set respectively; the indicators to be detected in the set of indicators to be detected have the same date type and the same statistical time point;

[0167] A screening unit 32 is used to screen out a target suspected abnormal indicator set that does not meet the distribution feature in the suspected abnormal indicator set; the distribution feature is a distribution feature obtained by performing feature calculation on the normal indicator set;

[0168] The first calculation unit 33 is used to calculate the similarity between the first indicator sequence and the second indicator sequence to obtain the similarity between the first indicator sequence and the second indicator sequence; the first indicator sequence is the indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and the second indicator sequence is the indicator sequence in the normal indicator set that is adjacent to the first indicator sequence in time and has the same date type and the same statistical time point as the first indicator sequence;

[0169] The determination unit 34 is configured to determine that the target indicator to be detected is an abnormal indicator when the similarity is less than a preset threshold.

[0170] The present invention provides an abnormal indicator detection device, which obtains an indicator set to be detected, and performs density clustering on the indicator set to be detected to obtain a normal indicator set and a suspected abnormal indicator set respectively; the date type and statistical time point of the indicators to be detected in the indicator set to be detected are the same; the target suspected abnormal indicator set that does not meet the distribution characteristics in the suspected abnormal indicator set is screened out; the distribution characteristics are the distribution characteristics obtained by performing feature calculation on the normal indicator set; similarity calculation is performed on a first indicator sequence and a second indicator sequence to obtain the similarity between the first indicator sequence and the second indicator sequence; the first indicator sequence is the indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and the second indicator sequence is the indicator sequence in the normal indicator set that is adjacent to the first indicator sequence in time, and has the same date type and the same statistical time point as the first indicator sequence; if the similarity is less than a preset threshold, it is determined that the target indicator to be detected is an abnormal indicator. Compared with the related art, the embodiment of the present disclosure obtains a normal indicator set and a suspected abnormal indicator set by density clustering the indicators to be detected with the same date type and the same statistical time point, and screens out the target suspected abnormal indicator set in the suspected abnormal indicator set that does not meet the distribution characteristics of the normal indicator set, and uses the second indicator sequence in the normal indicator set that is adjacent in time to the first indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and has the same date type and the same statistical time point to perform similarity calculation with the first indicator sequence to obtain the similarity, and when it is determined that the similarity is less than a preset threshold, the target indicator to be detected is determined to be an abnormal indicator, thereby eliminating the impact of different log types and different statistical time points on the fluctuation of the indicator, and at the same time, according to the first indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located and the second indicator sequence in the normal indicator set that is adjacent in time to the first indicator sequence and has the same date type and the same statistical time point as the first indicator sequence, the abnormal indicator is determined, thereby improving the detection accuracy of indicator abnormality.

[0171] Furthermore, in a possible implementation of this embodiment, as Figure 4 As shown, the clustering unit 31 includes:

[0172] An acquisition module 311 is used to acquire the clustering radius of the indicator set to be detected and to acquire the density threshold of the indicator set to be detected;

[0173] A clustering module 312, configured to cluster the set of indicators to be detected according to the clustering radius and the density threshold, to obtain at least two clusters;

[0174] A first calculation module 313 is used to call a preset index demarcation algorithm to calculate the at least two clusters to obtain an index demarcation value;

[0175] A division module 314, configured to divide the indicators to be detected in the clusters that are greater than the indicator cutoff value into the normal indicator set;

[0176] The division module 314 is further used to divide the indicators to be detected in the cluster that are less than or equal to the indicator cutoff value into the suspected abnormal indicator set.

[0177] Furthermore, in a possible implementation of this embodiment, as Figure 4 As shown, the first acquisition module 311 is also used for:

[0178] Performing difference calculation on two different indicators to be detected in the indicator set to be detected, respectively, to obtain first difference between the two different indicators to be detected;

[0179] Arranging the first differences according to their numerical values ​​to obtain a difference sequence;

[0180] The median of the difference sequence is determined as the cluster radius.

[0181] Furthermore, in a possible implementation of this embodiment, as Figure 4 As shown, the first acquisition module 311 is also used for:

[0182] Obtaining a first quantity of all indicators to be detected in the indicator set to be detected;

[0183] Determine a range with each indicator to be detected in the indicator set to be detected as the center and with the cluster radius as the boundary as the cluster range of the indicator to be detected;

[0184] Finding a second number of indicators to be detected in the cluster range;

[0185] The density threshold is obtained by performing a difference calculation on the first quantity and the second quantity.

[0186] Furthermore, in a possible implementation of this embodiment, as Figure 4 As shown, the first calculation module 313 is also used for:

[0187] Respectively obtaining a third number of indicators to be detected in the at least two clusters;

[0188] Arranging the third quantities according to numerical values ​​to obtain a quantity sequence;

[0189] Performing differential calculation on the quantity sequence to obtain a differential quantity sequence;

[0190] The maximum value in the differential quantity sequence is determined as the indicator cutoff value.

[0191] Furthermore, in a possible implementation of this embodiment, as Figure 4 As shown, the device also includes:

[0192] A second calculation unit 35 is used to calculate the average value of all the indicators to be detected in the normal indicator set to obtain the average value of the normal indicator set;

[0193] A third calculation unit 36 ​​is used to calculate the dispersion of all the indicators to be detected to obtain a first dispersion of the normal indicator set;

[0194] A fourth calculation unit 37, configured to perform a dispersion calculation on the first dispersion to obtain a second dispersion;

[0195] The distribution characteristics include: the average value, the first dispersion, and the second dispersion.

[0196] Furthermore, in a possible implementation of this embodiment, as Figure 4 As shown, the screening unit 32 includes:

[0197] The second calculation module 321 is used to calculate the difference between each indicator to be detected in the suspected abnormal indicator set and the average value, and obtain a second difference between each indicator to be detected and the average value;

[0198] A third calculation module 322 is used to add the first discreteness and the second discreteness to obtain a sum result;

[0199] The classification module 323 is used to classify the to-be-detected indicator corresponding to the second difference into the target suspected abnormal indicator set when the second difference is greater than the sum result.

[0200] It should be noted that the above explanation of the method embodiment is also applicable to the device of the embodiment of the present disclosure, and the principle is the same, which is no longer limited in the embodiment of the present disclosure.

[0201] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0202] Figure 5A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0203] like Figure 5 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 402 or a computer program loaded from a storage unit 408 to a RAM (Random Access Memory) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An I / O (Input / Output) interface 405 is also connected to the bus 404.

[0204] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0205] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as a method for detecting abnormal indicators. For example, in some embodiments, the method for detecting abnormal indicators may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute the aforementioned indicator abnormality detection method in any other appropriate manner (eg, by means of firmware).

[0206] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0207] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0208] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0209] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0210] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0211] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0212] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0213] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0214] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for detecting abnormal indicators. It is characterized in that include: Obtaining a set of indicators to be detected, and performing density clustering on the set of indicators to be detected to obtain a normal indicator set and a suspected abnormal indicator set respectively; the indicators to be detected in the set of indicators to be detected have the same date type and the same statistical time point; Filter out a target suspected abnormal indicator set that does not meet the distribution feature in the suspected abnormal indicator set; the distribution feature is a distribution feature obtained by performing feature calculation on the normal indicator set; Calculate the similarity between the first indicator sequence and the second indicator sequence to obtain the similarity between the first indicator sequence and the second indicator sequence; the first indicator sequence is the indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and the second indicator sequence is the indicator sequence in the normal indicator set that is adjacent to the first indicator sequence in time and has the same date type and the same statistical time point as the first indicator sequence; If the similarity is less than a preset threshold, it is determined that the target indicator to be detected is an abnormal indicator.

2. The method according to claim 1, It is characterized in that The density clustering of the indicator set to be detected to obtain a normal indicator set and a suspected abnormal indicator set includes: Obtaining a clustering radius of the indicator set to be detected, and obtaining a density threshold of the indicator set to be detected; Clustering the set of indicators to be detected according to the clustering radius and the density threshold to obtain at least two clusters; Calling a preset index demarcation algorithm to calculate the at least two clusters to obtain an index demarcation value; Classifying the to-be-detected indicators in the cluster that are greater than the indicator cutoff value into the normal indicator set; The indicators to be detected in the cluster that are less than or equal to the indicator cutoff value are classified into the suspected abnormal indicator set.

3. The method according to claim 2, It is characterized in that The step of obtaining the clustering radius of the set of indicators to be detected includes: Performing difference calculation on two different indicators to be detected in the indicator set to be detected, respectively, to obtain first difference between the two different indicators to be detected; Arranging the first differences according to their numerical values ​​to obtain a difference sequence; The median of the difference sequence is determined as the cluster radius.

4. The method according to claim 2, It is characterized in that The step of obtaining the density threshold of the set of indicators to be detected includes: Obtaining a first quantity of all indicators to be detected in the indicator set to be detected; Determine a range with each indicator to be detected in the indicator set to be detected as the center and with the cluster radius as the boundary as the cluster range of the indicator to be detected; Finding a second number of indicators to be detected in the cluster range; The density threshold is obtained by performing a difference calculation on the first quantity and the second quantity.

5. The method according to claim 2, It is characterized in that The calling of the preset index demarcation algorithm to calculate the at least two clusters to obtain the index demarcation value includes: Respectively obtaining a third number of indicators to be detected in the at least two clusters; Arranging the third quantities according to numerical values ​​to obtain a quantity sequence; Performing differential calculation on the quantity sequence to obtain a differential quantity sequence; The maximum value in the differential quantity sequence is determined as the indicator cutoff value.

6. The method according to claim 1, It is characterized in that The distribution features obtained by performing feature calculation on the normal indicator set include: Calculating the average value of all the indicators to be detected in the normal indicator set to obtain the average value of the normal indicator set; Calculating the dispersion of all the indicators to be detected to obtain a first dispersion of the normal indicator set; Performing a discreteness calculation on the first discreteness to obtain a second discreteness; The distribution characteristics include: the average value, the first dispersion, and the second dispersion.

7. The method according to claim 6, It is characterized in that The step of filtering out the target suspected abnormal indicator set that does not meet the distribution characteristics in the suspected abnormal indicator set includes: Calculate the difference between each indicator to be detected and the average value in the suspected abnormal indicator set, and obtain a second difference between each indicator to be detected and the average value; Adding the first discreteness and the second discreteness to obtain a sum result; If the second difference is greater than the sum, the indicator to be detected corresponding to the second difference is included in the target suspected abnormal indicator set.

8. A device for detecting abnormal indicators, It is characterized in that include: A clustering unit is used to obtain a set of indicators to be detected, and to perform density clustering on the set of indicators to be detected to obtain a normal indicator set and a suspected abnormal indicator set; The indicators to be detected in the set of indicators to be detected have the same date type and the same statistical time point; A screening unit, used to screen out a target suspected abnormal indicator set that does not satisfy a distribution feature in the suspected abnormal indicator set; the distribution feature is a distribution feature obtained by performing feature calculation on the normal indicator set; A first calculation unit is used to calculate the similarity between the first indicator sequence and the second indicator sequence to obtain the similarity between the first indicator sequence and the second indicator sequence; the first indicator sequence is the indicator sequence where the target indicator to be detected in the target suspected abnormal indicator set is located, and the second indicator sequence is the indicator sequence in the normal indicator set that is adjacent to the first indicator sequence in time and has the same date type and the same statistical time point as the first indicator sequence; The determination unit is used to determine that the target indicator to be detected is an abnormal indicator when the similarity is less than a preset threshold.

9. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.

10. A computer program product, It is characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Medical water purifier auditing and tracking method and system

    CN119724528A