The invention provides an abnormal behavior detection method and device, and the method comprises the steps: collecting
Web access log data from various sources, carrying out the preprocessing, and extracting key information; constructing a user behavior model based on the user
unique identifier ID, and extracting quantized behavior features; calculating a transition probability between user behavior states based on a
Markov chain model, and constructing a
state transition probability matrix; learning a normal behavior pattern and an abnormal behavior pattern by using a
machine learning
algorithm, and classifying different types of abnormal behaviors; dynamically setting a threshold value of the abnormal behavior based on a
statistical analysis method; and analyzing the real-time
Web access log data, calculating an abnormal
score of a user behavior, and comparing the abnormal
score with a dynamic threshold to judge whether an abnormal behavior exists or not. According to the scheme, the efficient and universal
feature extraction and behavior sequence detection method is provided, detection of different abnormal behavior types is supported, the
false alarm rate and the missing report rate can be effectively reduced, and the generalization ability is very high.