The invention belongs to the field of detection algorithms, and particularly relates to an anomaly alarm method based on an improved
anomaly detection algorithm, which comprises the following steps: carrying out
data acquisition work on an index source to obtain real-
time index data, and storing historical index data of a to-be-calculated threshold and the real-
time index data; according to a manually set threshold value A, weighting the historical index data in the threshold value A, carrying out
anomaly detection on the historical index data based on a weighted
anomaly detection algorithm, calculating to obtain a threshold value B, and outputting a data anomaly
label according to the threshold value B; judging the index type of the historical index data, obtaining an alarm threshold range according to the index type, and storing the alarm threshold range; and extracting real-
time index data and an alarm threshold range, and triggering alarm information when any kind of index data is within the alarm threshold range. According to the method, automatic calculation and updating of the index threshold are achieved, and the problem that the calculated threshold exceeds a reasonable interval due to the fact that the standard deviation is large when fluctuation of historical data of the index is large is avoided.