Abnormal access detection method, device, storage medium and electronic device

Through the abnormal access detection model of unsupervised learning, user equipment parameters are used to detect abnormal access of web crawlers, which solves the problems of low detection efficiency and high labor consumption in the existing technology, and realizes automatic monitoring and real-time monitoring of abnormal access in unlogged state. detection.

CN115134102BActive Publication Date: 2024-08-27DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110315488.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-24
Publication Date
2024-08-27
Estimated Expiration
2041-03-24

AI Technical Summary

Technical Problem

Existing technology is difficult to automatically detect abnormal access behaviors of web crawlers in real-time and efficiently, especially when not logged in, and the training model that relies on manually labeled samples is lagging and labor-intensive.

Method used

By obtaining historical access data, an unsupervised learning abnormal access detection model is established, and the data fitting model is used to detect abnormal access based on user equipment parameters, including first model learning parameters and second model learning parameters, which are used to characterize real and normal access data. Equipment parameter distribution to achieve automatic detection.

Benefits of technology

It realizes automatic detection and real-time monitoring of abnormal access, improves detection efficiency, reduces dependence on manually labeled samples, and can detect abnormal access behavior in unlogged states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115134102B
    Figure CN115134102B
Patent Text Reader

Abstract

The present disclosure relates to an abnormal access detection method, device, storage medium and electronic device, which realizes unsupervised crawler detection based on the time series change of device parameter distribution, does not rely on manually labeled crawler sample information, and can detect abnormal access behavior in a non-logged-in state. The method includes: obtaining access data to be detected, the access data is used to characterize user-related data and content-related data when the user accesses the content platform, and the user-related data includes user device parameters; based on an abnormal access detection model and user device parameters, determining whether the access data is abnormal access data, the abnormal access detection model includes a data fitting model, and the data fitting model includes a first model learning parameter and a second model learning parameter; the first model learning parameter and the second model learning parameter are obtained by unsupervised learning of historical access data within a first preset time period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network security technology, and in particular to an abnormal access detection method, device, storage medium and electronic device. Background Art

[0002] A web crawler is a program that can automatically complete a series of network requests to browse the World Wide Web to obtain information. Normal web crawlers are designed to form a network index and comply with corresponding protocol information. Abnormal web crawlers constitute abnormal access behavior, causing greater access pressure on the crawled network platform.

[0003] In the related art, the detection of abnormal access of web crawlers usually relies on human labor to identify crawler behavior patterns. This method relies heavily on manpower and cannot automatically detect abnormal access of web crawlers in real time and efficiently. Alternatively, the model is trained by relying on crawler samples with existing labels, and then the trained model is used for detection. However, the model trained in this way has a lag. When the abnormal crawler adopts a new behavior pattern, it is necessary to add new labeled crawler samples to the sample library, which consumes a lot of manpower and time. Summary of the invention

[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] In a first aspect, the present disclosure provides a method for detecting abnormal access, the method comprising:

[0006] Acquire access data to be detected, where the access data is used to characterize user-related data and content-related data when a user accesses a content platform, where the user-related data includes user device parameters;

[0007] Determining whether the access data is abnormal access data based on an abnormal access detection model and the user device parameters, the abnormal access detection model comprising a data fitting model, the data fitting model comprising a first model learning parameter and a second model learning parameter;

[0008] Among them, the first model learning parameters and the second model learning parameters are obtained by unsupervised learning through historical access data within a first preset time period, the first model learning parameters are used to characterize the device parameter distribution of real access data, and the second model learning parameters are used to characterize the device parameter distribution of normal access data, and the real access data includes normal access data and abnormal access data.

[0009] In a second aspect, the present disclosure provides an abnormal access detection device, the device comprising:

[0010] An acquisition module, used to acquire access data to be detected, wherein the access data is used to characterize user-related data and content-related data when a user accesses a content platform, and the user-related data includes user device parameters;

[0011] a detection module, configured to determine whether the access data is abnormal access data based on an abnormal access detection model and the user equipment parameters, wherein the abnormal access detection model includes a data fitting model, and the data fitting model includes a first model learning parameter and a second model learning parameter;

[0012] Among them, the first model learning parameters and the second model learning parameters are obtained by unsupervised learning through historical access data within a first preset time period, the first model learning parameters are used to characterize the device parameter distribution of real access data, and the second model learning parameters are used to characterize the device parameter distribution of normal access data, and the real access data includes normal access data and abnormal access data.

[0013] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in the first aspect when the program is executed by a processing device.

[0014] In a fourth aspect, the present disclosure provides an electronic device, including:

[0015] a storage device having a computer program stored thereon;

[0016] A processing device is used to execute the computer program in the storage device to implement the steps of the method in the first aspect.

[0017] Through the above technical solution, based on the abnormal access detection model and user device parameters, automatic detection of abnormal access can be achieved, thereby improving the efficiency of abnormal access detection. Secondly, the abnormal access detection model includes a data fitting model, and the first model learning parameter and the second model learning parameter of the data fitting model can be obtained through unsupervised learning of historical access data within a first preset time period, without relying on manually labeled sample information. In addition, when the historical access data is historical access data in an unlogged state, the unlogged abnormal access data can be detected according to the abnormal access detection model to achieve comprehensive detection of abnormal access.

[0018] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 is a flow chart of an abnormal access detection method according to an exemplary embodiment of the present disclosure;

[0021] Figure 2 is a process diagram of an abnormal access detection method according to an exemplary embodiment of the present disclosure;

[0022] Figure 3 is a block diagram of an abnormal access detection device according to an exemplary embodiment of the present disclosure;

[0023] Figure 4 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

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

[0025] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0026] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0027] It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. It should also be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

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

[0029] First, technical terms that may be involved in the embodiments of the present disclosure are explained.

[0030] Access behavior: Users access content platforms to obtain relevant information. For example, users access video content platforms to obtain short video information, and users access news content platforms to obtain news and other text information.

[0031] Device parameters: user-related device information obtained by the platform during the process of users obtaining information.

[0032] Access information: (short) videos, text news, user comments and other information on the platform.

[0033] Web crawler: A program that can automatically complete a series of network requests to browse the World Wide Web to obtain information, including normal web crawlers and abnormal web crawlers. Among them, normal web crawlers are to form a network index and comply with the corresponding protocol information. Abnormal web crawlers constitute abnormal access behavior, which will bring greater access pressure to the crawled network platform.

[0034] Logged-out state: Due to the influence of platform functions, users have not registered an account on the platform, but still use the platform to obtain the required information.

[0035] Unsupervised crawler detection: When detecting abnormal access behavior of web crawlers, it does not rely on the labeled web crawler database.

[0036] For network platforms, normal access behavior helps to increase user activity on network platforms, improve the attention of network platforms, etc. However, abnormal access behavior of web crawlers will consume resources for the platform, increase the access pressure of the platform, and is not conducive to the normal operation of the platform.

[0037] In the related art, abnormal access detection of web crawlers usually relies on human labor to identify crawler behavior patterns. It is highly dependent on manpower and cannot automatically detect abnormal access of web crawlers in real time and efficiently. Alternatively, model training is performed based on crawler samples with existing labels, and then detection is performed using the trained model. However, the model trained in this way has a lag. When an abnormal crawler adopts a new behavior pattern, new labeled crawler samples need to be added to the sample library, which consumes a lot of manpower and time.

[0038] In addition, the inventors have found that due to the characteristics of the network platform and other factors, users can obtain data on the platform without logging into the platform account, such as watching short videos, browsing articles, etc. Therefore, malicious abnormal access behaviors such as crawlers can access the platform as non-logged-in users without logging into the platform account, and can disguise themselves more easily, even by constantly tampering with device parameters. Compared with logged-in users, non-logged-in users record less information on the platform, so it is difficult to detect non-logged-in crawler accounts and the resulting abnormal access behaviors.

[0039] In addition, the inventors have found that the access behavior is related to the parameter information of the access device. For example, without registering an account, normal users will not deliberately change their network status when browsing content on the network platform, such as always using the same Wi-Fi to browse short videos on the short video platform. In order to better conceal themselves, crawler accounts may frequently change their network status in a short period of time. For example, after crawling short videos through a certain Wi-Fi, they will change to another Wi-Fi to crawl other short videos. Alternatively, the number of device visits will decrease late at night, and in theory, when users are resting at home, the network method of connecting to the platform is mostly Wi-Fi; while during commuting time, the network method of connecting to the platform is mostly 3 / 4G.

[0040] In view of this, the present disclosure provides an abnormal access detection method, device, storage medium and electronic device to realize unsupervised crawler detection based on the time series changes of device parameter distribution, which does not rely on manually labeled crawler sample information and can detect abnormal access behavior in a non-logged-in state.

[0041] Figure 1 FIG. 1 is a flow chart of an abnormal access detection method according to an exemplary embodiment of the present disclosure. Figure 1 , the abnormal access detection method includes:

[0042] Step 101 : obtaining access data to be detected, where the access data is used to characterize user-related data and content-related data when a user accesses a content platform, and the user-related data includes user device parameters.

[0043] Step 102: Determine whether the access data is abnormal access data based on an abnormal access detection model and user device parameters. The abnormal access detection model includes a data fitting model. The data fitting model includes a first model learning parameter and a second model learning parameter.

[0044] Among them, the first model learning parameters and the second model learning parameters are obtained through unsupervised learning of historical access data within a first preset time period. The first model learning parameters are used to characterize the device parameter distribution of real access data, and the second model learning parameters are used to characterize the device parameter distribution of normal access data. The real access data includes normal access data and abnormal access data.

[0045] Through the above method, based on the abnormal access detection model and user device parameters, automatic detection of abnormal access can be achieved, thereby improving the efficiency of abnormal access detection. Secondly, the abnormal access detection model includes a data fitting model, and the first model learning parameter and the second model learning parameter of the data fitting model can be obtained through unsupervised learning of historical access data within a first preset time period, and do not rely on manually labeled sample information. In addition, when the historical access data is historical access data in an unlogged state, the unlogged abnormal access data can be detected according to the abnormal access detection model to achieve comprehensive detection of abnormal access.

[0046] In order to enable those skilled in the art to better understand the abnormal access detection method provided by the present disclosure, the above steps are described in detail with examples below.

[0047] First, the training process of the abnormal access detection model is explained.

[0048] For example, the disclosed embodiment can perform abnormal access detection based on the time series changes of the device parameter distribution of the historical access data. Therefore, firstly, the historical access data of accessing the platform within a first preset time period can be obtained from the log database of the platform with the authorization of the user, so as to perform model training based on the historical device parameters corresponding to the historical access data.

[0049] For example, the historical device parameters include specific parameter information of the device that records historical accesses, which may include device model, device ID, device operating system, device screen resolution and other information. The first preset duration can be set accordingly according to actual needs (such as computing resource requirements, data volume requirements, etc.). For example, the first preset duration can be set to 8:00 a.m. on January 1, 2020 to 6:00 p.m. on January 1, 2020, which is not limited in the embodiments of the present disclosure. After obtaining the historical access data within the first preset duration, a data integrity check can be performed on the historical access data to detect whether the historical access data meets the data integrity requirements, thereby improving the accuracy of the results of the abnormal access model obtained by training the historical device parameters corresponding to the historical access data. Among them, the method of data integrity verification can be similar to that in the relevant technology, which will not be repeated here.

[0050] After obtaining the historical access data for training the abnormal access detection model, in order to reduce computing resources and improve training efficiency, the historical access data can be preprocessed. For example, the preprocessing may include: data format unification processing, processing of invalid data and missing data in the historical access data, mining of invalid frequent sets in the historical access data, processing of highly correlated feature combinations in the historical access data, etc., which are not limited in the embodiments of the present disclosure.

[0051] The data format unification process may be to unify the format of the time information in the historical access data, such as converting the time information into a timestamp format. The invalid data processing may be to delete the invalid data. For example, if the time of the historical access data exceeds the time range of 24 hours due to the user's wrong behavior and does not conform to the objective facts, the historical access data may be deleted as invalid data.

[0052] For example, missing data means that when an access behavior to obtain platform content occurs, the platform will retain device parameter information. However, there are situations where malicious access behaviors deliberately conceal their own information, and the platform cannot ideally collect the required information. This leads to missing data. In the disclosed embodiment, the processing of missing data may include the following methods: 1) When the missing data accounts for a large part of the corresponding historical access data, that is, when most of the information in the historical access data is empty, the historical access data is deleted. 2) The acquired historical access data is clustered, and then according to the data clustering results, those that are close to the center of the cluster and have a high confidence level are considered to belong to the current cluster, otherwise the historical access data is deleted. 3) In the data processing process, the historical access data exists in the form of a matrix, and each column of the matrix corresponds to the features of a dimension. When a large number of data are missing in a column in the data matrix corresponding to the historical access data, it means that a large number of features of a certain dimension are missing, and the column of data can be deleted.

[0053] For example, a frequent set refers to a combination of features of different dimensions that appear frequently in the data. For example, for feature A and feature B, the historical access data including (A=a, B=b) accounts for a high proportion of all historical access data, and the confidence of feature A and feature B is higher than a certain threshold, so (A=a, B=b) can be considered a frequent set. An invalid frequent set refers to a strong correlation between feature A and feature B, that is, when A=a, B=b will definitely result in B=b, so (A=a, B=b) can be called a set of invalid frequent sets.

[0054] Since the features in the invalid frequent set are strongly correlated, in order to reduce computing resources, the features in the invalid frequent set can be deleted. For example, in the above example, feature A or feature B can be deleted to reduce the number of features, thereby reducing model training or model running time and improving training efficiency. In addition, since the features in the invalid frequent set are strongly correlated, deleting a feature in the invalid frequent set can not only retain the given feature dimension in the feature selection process, but also reduce the information loss in the preprocessing process.

[0055] After preprocessing the historical access data, model training can be performed by obtaining historical device parameters corresponding to the preprocessed historical access data to obtain an anomaly detection model.

[0056] In a possible manner, the abnormal access detection model includes a data fitting model, and the data fitting model includes a first model learning parameter and a second model learning parameter. The first model learning parameter and the second model learning parameter can be obtained by: performing data fitting with time as an independent variable and historical device parameters corresponding to historical access data as dependent variables to obtain the first model learning parameter; performing random data changes on the historical device parameters to obtain target device parameters, and performing data fitting with time as an independent variable and the target device parameters as dependent variables to obtain the second model learning parameter.

[0057] It should be understood that in the embodiments of the present disclosure, historical access data can be understood as real access data, including normal access data and abnormal access data. Therefore, historical device parameters correspond to device parameters of real access data. In addition, it should be understood that normal access data is random and conforms to certain objective distributions, such as Gaussian distribution, while abnormal access data, such as abnormal web crawlers, has a specific purpose, and its parameter distribution is quite different from normal access data. Therefore, random data changes to historical device parameters can make historical device parameters random and obtain target device parameters that conform to normal access data.

[0058] Therefore, by fitting data based on historical device parameters within the first preset time period, first model learning parameters for characterizing the device parameter distribution of actual access data can be obtained, while by fitting data based on target device parameters within the first preset time period, second model learning parameters for characterizing the device parameter distribution of normal access data can be obtained.

[0059] In a possible way, performing random data changes on historical device parameters to obtain target device parameters can be: first construct a data matrix based on the historical device parameters corresponding to the historical access data within a first preset time period, the row data of the data matrix is ​​used to characterize the historical access data, and the column data of the data matrix is ​​used to characterize the device features corresponding to the historical device parameters, and each row of data corresponds to a first data change value, and each column of data corresponds to a second data change value. Then, determine the target row data whose first data change value is greater than the third preset threshold, and perform random data changes on the device features corresponding to the target row data to obtain the target device parameters; or determine the target column data whose second data change value is greater than the fourth preset threshold, and perform random data changes on the device features corresponding to the target column data to obtain the target device parameters. Among them, the third preset threshold and the fourth threshold can be set according to actual conditions, and the embodiments of the present disclosure are not limited to this.

[0060] That is to say, the random data change of the historical device parameters can be to first select the target historical access data (i.e., determine the target row data as described above), and then perform the random data change on the device features corresponding to the target historical access data, or directly select the target historical device features from all historical device features (i.e., determine the target column data as described above) to perform the random data change. Among them, the random data change can be, for example, replacing the value of the corresponding device feature in the data matrix with a random jump value, etc., which is not limited in the embodiments of the present disclosure.

[0061] For example, within the first preset time t, the preprocessed historical access data is X t , the i-th historical access data Historical access data The corresponding historical device parameters are Where D represents the total feature dimension corresponding to the historical device parameters, and j represents the jth feature dimension corresponding to the historical device parameters. After constructing the data matrix in accordance with the method in the relevant technology, the first data change value λ (λ∈[0,1]) corresponding to each row of data in the data matrix is ​​preset, and the second data change value μ (μ∈[0,1]) corresponding to each column of data in the data matrix is ​​preset. Accordingly, a random data change can be performed on the device features corresponding to the historical access data whose first data change value λ exceeds the third preset threshold, so as to fit the historical device parameters of the historical access data to the device parameters of normal access data, that is, to obtain the target device parameters. Alternatively, a random data change can be performed on the device features whose second data change value μ exceeds the fourth preset threshold, so as to fit the historical device parameters corresponding to the device features to the device parameters of normal access data, that is, to obtain the target device parameters. Wherein, all historical access data after the data change can be expressed as

[0062] Through the above method, random data changes can be made to historical access device parameters in two different ways to fit the historical device parameters to the device parameters of normal access data, which is convenient for subsequent data fitting based on the normal device parameters to obtain the second model learning parameters for characterizing the distribution of device parameters of normal access data.

[0063] For example, the multivariate Gaussian model can be used to fit the data with time as the independent variable and the historical device parameters as the dependent variable to obtain the first model learning parameters. Similarly, the multivariate Gaussian model can be used to fit the data with time as the independent variable and the target device parameters as the dependent variable to obtain the second model learning parameters. For example, using the above example, the multivariate Gaussian model can be used to fit all the preprocessed historical access data X within the first preset time t. t The device parameter distribution of the first model is obtained by t At the same time, all historical access data after data changes within the first preset time t can be fitted based on the multivariate Gaussian model. The device parameter distribution of the second model is obtained by

[0064] After the abnormal access detection model is trained in the above manner, it can be determined whether the access data is abnormal access data based on the abnormal access detection model and the user device parameters.

[0065] For example, the user device parameters may be processed first, and then abnormal access detection may be performed based on the preprocessed user device parameters and the abnormal access detection model. In a possible manner, the invalid frequent set in the user device parameters may be first feature deleted to obtain the target user device parameters, wherein if the first device feature in the user device parameters is a first value and the second device feature is a second value, the first device feature and the second device feature constitute an invalid frequent set. Then, based on the abnormal access detection model and the target user device parameters, it is determined whether the access data is abnormal access data.

[0066] For example, the first device feature C is a feature representing the mobile phone manufacturer, and the second device feature D is obtained through the first device feature C. For example, the first several bits of the first device feature C can be removed to obtain the second device feature D. Therefore, if the first device feature C is an empty field, the second device feature D must also be empty. In addition, the frequency of occurrence of the feature combination (C = empty, D = empty) will be higher than the given threshold, so the feature combination (C = empty, D = empty) can be identified as an invalid frequent set. In this case, since the first device feature C and the second device feature D can both represent the mobile phone manufacturer, after deleting the first device feature C or the second device feature D, the number of features can be reduced without affecting the feature dimension, thereby improving processing efficiency.

[0067] Of course, the access device parameters corresponding to the access data to be detected may be preprocessed by any of the preprocessing methods described above and then input into the abnormal access detection model. For details, please refer to the above and will not be repeated here.

[0068] In a possible manner, whether the access data is abnormal access data is determined based on an abnormal access detection model and user device parameters. It can also be: determining a first access probability that the access data is real access data based on the user device parameters and first model learning parameters, and determining a second access probability that the access data is normal access data based on the user device parameters and second model learning parameters, and then taking the difference between the first access probability and the second access probability as the abnormal probability that the access data is abnormal access data, and determining that the access data is abnormal access data when the abnormal probability is greater than a first preset threshold.

[0069] As described above, the first model learning parameters can be used to characterize the device parameter access situation of real access data, and the second model learning parameters can be used to characterize the device parameter access situation of normal access data. Therefore, based on the access device parameters corresponding to the access data to be detected and the first model learning parameters, the first access probability that the access data belongs to the real access data can be determined. And based on the access device parameters and the second model learning parameters, the second access probability that the access data belongs to the normal access data can be determined. Afterwards, it can be determined whether the access data is abnormal access data based on the first access probability and the second access probability. Specifically, the difference between the first access probability and the second access probability can be used as the abnormal probability that the access data is abnormal access data, and when the abnormal probability is greater than the first preset threshold, the access data is determined to be abnormal access data.

[0070] It should be understood that real access data includes normal access data and abnormal access data, and the first access probability represents the probability that the access data belongs to real access data, and the second access probability represents the probability that the access data belongs to normal access data. Therefore, the probability of real access data minus the probability of normal access data can mathematically eliminate the semantic information of normal users, leaving the probability of abnormal access data, that is, the abnormal probability that the access data is abnormal access data can be obtained. After that, the abnormal probability can be compared with the first preset threshold. If the abnormal probability is greater than the first preset threshold, it means that the access data is abnormal access data. If the abnormal probability is less than or equal to the first preset threshold, it means that the access data is normal access data.

[0071] For example, the first preset threshold value can be used to characterize the distribution of device parameters at different times, and can be determined by analyzing a large amount of abnormal crawler sample data, or can also be dynamically determined based on the device parameters of historical access data.

[0072] For example, in a possible manner, the abnormal access detection model includes an autoregressive model, and the first preset threshold can be determined in the following manner: based on the autoregressive model, data fitting is performed on the historical device parameters within the second preset time length and the normal device parameters within the second preset time length to obtain the model parameters of the autoregressive model, wherein the time period represented by the second preset time length is earlier than the time period represented by the first preset time length, and the normal device parameters within the second preset time length are obtained by data modification of the historical device parameters within the second preset time length. Then, the first preset threshold can be determined based on the model parameters of the autoregressive model and the normal device parameters within the first preset time length. Thus, the first preset threshold can be automatically adjusted based on the historical access data to better adapt to abnormal access detection in different scenarios.

[0073] It should be understood that an autoregressive model is a process that uses itself as a regression variable, that is, a linear regression model that uses a linear combination of random variables at several previous moments to describe a random variable at a certain future moment. In the embodiments of the present disclosure, the normal device parameters of the data within the first preset duration can be predicted based on the historical device parameters and the normal device parameters within the second preset duration, and then the model parameters of the autoregressive model can be adjusted according to the prediction result and the normal device parameters obtained by randomly changing the historical device parameters within the first preset duration, so as to obtain an accurate first preset threshold.

[0074] For example, continuing with the above example, the formula of the autoregressive model is as follows:

[0075]

[0076] Among them, n represents the number of historical access data, φ i represents the autocorrelation coefficient, ω represents the random error value, and γ represents the target threshold. Among them, φ i and ω are similar to the autoregressive model parameters in the related art and will not be elaborated here.

[0077] Based on the above autoregressive model, within the second preset duration t', according to the historical device parameters corresponding to the original historical access data X t' and the normal device parameters corresponding to the historical access data after data change , data fitting can be performed to obtain the model parameters θ ht of the autoregressive model. Among them, t' ∈ [t1, t), t1 < t, that is, the time period represented by the second preset duration is earlier than the time period represented by the first preset duration. Then, the device parameters of the historical access data after data change within the first preset duration can be predicted according to the model parameters θ ht , and then the model parameters θ can be adjusted according to the predicted device parameters and the normal device parameters corresponding to the historical access data within the first preset duration . Among them, the model parameters θ ht include the parameter φ ht , the parameter ω, and the first preset threshold γ. Thus, the change of the device parameters of the historical access data over time can be captured through the first preset threshold γ, so as to automatically adjust the first preset threshold γ and better adapt to the abnormal access detection in different scenarios.

[0078] ​​In another possible manner, the abnormal access detection model also includes a neural network model, which can be trained through historical access information and historical device parameters corresponding to the historical access data. Accordingly, based on the abnormal access detection model and the user device parameters, determining whether the access data is abnormal access data can be: determining the first abnormal detection value corresponding to the access data according to the user device parameters, the first model learning parameters and the second model learning parameters, and determining the second abnormal detection value corresponding to the access data through the neural network model. Then, the first abnormal detection value and the second abnormal detection value are weightedly calculated to obtain a target detection value, and when the target detection value exceeds the second preset threshold, the access data is determined to be abnormal access data.

[0079] For example, the second preset threshold can be set according to actual conditions, and the embodiment of the present disclosure does not limit this. The historical access information is used to characterize the information obtained by the user on the network platform, such as the video viewed by the user or the news browsed by the user.

[0080] It should be understood that in the absence of sample labels, the neural network model can be trained using an auto encoder architecture. The difference between the training process and the related art lies in the difference in training samples, that is, the embodiment of the present disclosure can perform model training through the time series distribution data of device parameters. The specific details of the training process can be similar to those of the related art, and are briefly described below.

[0081] For example, the neural network model includes a convolutional neural network, a recurrent neural network and a fully connected layer. The training process may be: for the historical access data within the first preset time length t, the convolutional neural network is used to extract different historical access data {(x i ,x j )|x i ,x j ∈X t Specifically, the context information of the training sample can be constructed according to the order of the historical access data recorded in the database, that is, the global feature r of the data matrix corresponding to the historical access data can be extracted. t Then, a recurrent neural network is used to represent r based on the low-dimensional features within the second preset time length. t' , learn and obtain the low-dimensional feature representation h corresponding to the device parameters within the first preset time length t Correspondingly, for the historical access parameters, each piece of historical access data within the first preset time period can also be extracted through the convolutional neural network and the recurrent neural network. The access parameter features are used to obtain the low-dimensional information representation of the access parameters. Afterwards, the anomaly score of the historical access data within the first preset time period can be predicted through the fully connected layer Finally, according to the numerical relationship between the abnormal score and the preset abnormal score, the abnormal access detection result is determined, and the parameters of the neural network model are automatically adjusted according to the abnormal access detection result to realize the training of the neural network model.

[0082] The trained neural network model can output the corresponding abnormality score for the input access data to be detected, that is, obtain the second abnormality detection value. Then, the second abnormality detection value can be weighted calculated with the first abnormality detection value determined according to the difference between the first access probability and the second access probability to obtain the target detection value. If the target detection value exceeds the second preset threshold, it can be determined that the access data to be detected is abnormal access data, otherwise it can be determined that the access data to be detected is normal access data. Therefore, the results output by the neural network model and the results output by the probability value can be combined to perform abnormal access detection, thereby improving the accuracy of abnormal access detection.

[0083] The following is referenced Figure 2 The abnormal access detection method provided by the embodiment of the present disclosure is described.

[0084] Reference Figure 2 , the abnormal access detection method in the embodiment of the present disclosure may include 5 main processes: device parameter acquisition, data preprocessing, model training, model online and model detection. Among them, device parameter acquisition and data preprocessing can be performed in the manner described above, and will not be repeated here. Model training may include 2 training processes, namely, training a neural network model through historical device parameters preprocessed within a first preset time length and data fitting (i.e., feature distribution statistics) through historical device parameters preprocessed within a first preset time length, and adjusting the parameters of the model according to the final output result to achieve the training of the abnormal access detection model. Model online may be to deploy the trained abnormal access detection model online, and continuously update data and iteratively optimize the model according to the platform database log, so as to continuously improve the accuracy of the model prediction of abnormal access behavior detection in the unlogged state. Model detection may be based on the trained abnormal access detection model, input data, obtain abnormal access detection results, and save the abnormal access detection results to the database. The subsequent process may obtain the abnormal access detection results from the database to ban the user accounts related to the abnormal access detection results and other punishments, reduce the abnormal access of the platform, and ensure the normal operation of the platform.

[0085] Based on the same inventive concept, the embodiment of the present disclosure also provides an abnormal access detection device. Figure 3 As shown, the abnormal access detection device includes:

[0086] An acquisition module 301 is used to acquire access data to be detected, wherein the access data is used to characterize user-related data and content-related data when a user accesses a content platform, and the user-related data includes user device parameters;

[0087] A detection module 302, configured to determine whether the access data is abnormal access data based on an abnormal access detection model and the user equipment parameters, wherein the abnormal access detection model includes a data fitting model, and the data fitting model includes a first model learning parameter and a second model learning parameter;

[0088] Among them, the first model learning parameters and the second model learning parameters are obtained by unsupervised learning through historical access data within a first preset time period, the first model learning parameters are used to characterize the device parameter distribution of real access data, and the second model learning parameters are used to characterize the device parameter distribution of normal access data, and the real access data includes normal access data and abnormal access data.

[0089] Optionally, the detection module 302 is used to:

[0090] Determine, based on the user device parameter and the first model learning parameter, a first access probability that the access data belongs to real access data, and determine, based on the user device parameter and the second model learning parameter, a second access probability that the access data belongs to normal access data;

[0091] The difference between the first access probability and the second access probability is used as the abnormal probability that the access data is abnormal access data, and when the abnormal probability is greater than a first preset threshold, the access data is determined to be abnormal access data.

[0092] Optionally, the abnormal access detection model further includes an autoregressive model, and the device 300 further includes the following module for determining the first preset threshold:

[0093] A first determination module is used to perform data fitting on historical device parameters within a second preset time length and normal device parameters within the second preset time length based on the autoregressive model, using model parameters of the autoregressive model, wherein the time period represented by the second preset time length is earlier than the time period represented by the first preset time length, and the normal device parameters within the second preset time length are obtained by performing random data changes on the historical device parameters within the second preset time length;

[0094] The second determination module is used to determine the first preset threshold according to the model parameters of the autoregressive model and the normal device parameters within the first preset time period.

[0095] Optionally, the abnormal access detection model further includes a neural network model, and the neural network model is obtained by training the historical access information and historical device parameters corresponding to the historical access data. The detection module 302 is used to:

[0096] determining a first abnormality detection value corresponding to the access data according to the user device parameter, the first model learning parameter, and the second model learning parameter;

[0097] Determine a second abnormality detection value corresponding to the access data by using the neural network model;

[0098] The first abnormality detection value and the second abnormality detection value are weightedly calculated to obtain a target detection value, and when the target detection value exceeds a second preset threshold, the access data is determined to be abnormal access data.

[0099] Optionally, the apparatus 300 further includes the following module for determining the first model learning parameter and the second model learning parameter:

[0100] A first fitting module, configured to perform data fitting with time as an independent variable and historical device parameters corresponding to the historical access data as a dependent variable to obtain the first model learning parameters;

[0101] The second fitting module is used to perform random data changes on the historical device parameters to obtain target device parameters, and perform data fitting with time as the independent variable and the target device parameters as the dependent variable to obtain the second model learning parameters.

[0102] Optionally, the second fitting module is used for:

[0103] Constructing a data matrix based on the historical device parameters corresponding to the historical access data within the first preset time period, wherein the row data of the data matrix is ​​used to characterize the historical access data, and the column data of the data matrix is ​​used to characterize the device characteristics corresponding to the historical device parameters, and each row data corresponds to a first data change value, and each column data corresponds to a second data change value;

[0104] Determine the target row data whose first data change value is greater than a third preset threshold, and perform random data changes on the device characteristics corresponding to the target row data to obtain the target device parameters; or determine the target column data whose second data change value is greater than a fourth preset threshold, and perform random data changes on the device characteristics corresponding to the target column data to obtain the target device parameters.

[0105] Optionally, the detection module 302 is used to:

[0106] Deleting features of the invalid frequent set in the user equipment parameters to obtain target user equipment parameters, wherein if the first device feature in the user equipment parameters is a first value and the second device feature is a second value, the first device feature and the second device feature constitute the invalid frequent set;

[0107] Based on the abnormal access detection model and the target user equipment parameter, it is determined whether the access data is abnormal access data.

[0108] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0109] Based on the same inventive concept, an embodiment of the present disclosure further provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of any of the above-mentioned abnormal access detection methods are implemented.

[0110] Based on the same inventive concept, the present disclosure also provides an electronic device, including:

[0111] a storage device having a computer program stored thereon;

[0112] A processing device is used to execute the computer program in the storage device to implement the steps of any of the above-mentioned abnormal access detection methods.

[0113] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device 400 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0114] like Figure 4As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0115] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0116] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

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

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

[0119] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0120] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains access data to be detected, and the access data is used to characterize user-related data and content-related data when the user accesses the content platform, and the user-related data includes user device parameters; based on an abnormal access detection model and the user device parameters, determines whether the access data is abnormal access data, and the abnormal access detection model includes a data fitting model, and the data fitting model includes a first model learning parameter and a second model learning parameter; wherein the first model learning parameter and the second model learning parameter are obtained by unsupervised learning of historical access data within a first preset time period, and the first model learning parameter is used to characterize the device parameter distribution of real access data, and the second model learning parameter is used to characterize the device parameter distribution of normal access data, and the real access data includes normal access data and abnormal access data.

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

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

[0123] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, constitute a limitation on the module itself.

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

[0125] 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 equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0126] According to one or more embodiments of the present disclosure, Example 1 provides an abnormal access detection method, including:

[0127] Acquire access data to be detected, where the access data is used to characterize user-related data and content-related data when a user accesses a content platform, where the user-related data includes user device parameters;

[0128] Determining whether the access data is abnormal access data based on an abnormal access detection model and the user device parameters, the abnormal access detection model comprising a data fitting model, the data fitting model comprising a first model learning parameter and a second model learning parameter;

[0129] Among them, the first model learning parameters and the second model learning parameters are obtained by unsupervised learning through historical access data within a first preset time period, the first model learning parameters are used to characterize the device parameter distribution of real access data, and the second model learning parameters are used to characterize the device parameter distribution of normal access data, and the real access data includes normal access data and abnormal access data.

[0130] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein determining whether the access data is abnormal access data based on the abnormal access detection model and the user device parameter includes:

[0131] Determine, based on the user device parameter and the first model learning parameter, a first access probability that the access data belongs to real access data, and determine, based on the user device parameter and the second model learning parameter, a second access probability that the access data belongs to normal access data;

[0132] The difference between the first access probability and the second access probability is used as the abnormal probability that the access data is abnormal access data, and when the abnormal probability is greater than a first preset threshold, the access data is determined to be abnormal access data.

[0133] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, wherein the abnormal access detection model further includes an autoregressive model, and the first preset threshold is determined in the following manner:

[0134] Performing data fitting on historical device parameters within a second preset time period and normal device parameters within the second preset time period based on the autoregressive model to determine model parameters of the autoregressive model, wherein the time period represented by the second preset time period is earlier than the time period represented by the first preset time period, and the normal device parameters within the second preset time period are obtained by performing random data changes on the historical device parameters within the second preset time period;

[0135] The first preset threshold is determined according to model parameters of the autoregressive model and normal device parameters within the first preset time period.

[0136] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 1, wherein the abnormal access detection model further includes a neural network model, and the neural network model is obtained by training the historical access information and historical device parameters corresponding to the historical access data, and determining whether the access data is abnormal access data based on the abnormal access detection model and the user device parameters includes:

[0137] determining a first abnormality detection value corresponding to the access data according to the user device parameter, the first model learning parameter, and the second model learning parameter;

[0138] Determine a second abnormality detection value corresponding to the access data by using the neural network model;

[0139] The first abnormality detection value and the second abnormality detection value are weightedly calculated to obtain a target detection value, and when the target detection value exceeds a second preset threshold, the access data is determined to be abnormal access data.

[0140] According to one or more embodiments of the present disclosure, Example 5 provides the method of any one of Examples 1-4, wherein the first model learning parameter and the second model learning parameter are determined in the following manner:

[0141] Taking time as an independent variable and taking historical device parameters corresponding to the historical access data as dependent variables to perform data fitting, thereby obtaining the first model learning parameters;

[0142] The historical device parameters are randomly changed to obtain target device parameters, and data fitting is performed with time as an independent variable and the target device parameters as a dependent variable to obtain the second model learning parameters.

[0143] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 5, wherein the step of performing random data changes on the historical device parameters to obtain target device parameters includes:

[0144] Constructing a data matrix based on the historical device parameters corresponding to the historical access data within the first preset time period, wherein the row data of the data matrix is ​​used to characterize the historical access data, and the column data of the data matrix is ​​used to characterize the device characteristics corresponding to the historical device parameters, and each row data corresponds to a first data change value, and each column data corresponds to a second data change value;

[0145] Determine the target row data whose first data change value is greater than a third preset threshold, and perform random data changes on the device characteristics corresponding to the target row data to obtain the target device parameters; or determine the target column data whose second data change value is greater than a fourth preset threshold, and perform random data changes on the device characteristics corresponding to the target column data to obtain the target device parameters.

[0146] According to one or more embodiments of the present disclosure, Example 7 provides the method of any one of Examples 1-4, wherein determining whether the access data is abnormal access data based on the abnormal access detection model and the user device parameter includes:

[0147] Deleting features of the invalid frequent set in the user equipment parameters to obtain target user equipment parameters, wherein if the first device feature in the user equipment parameters is a first value and the second device feature is a second value, the first device feature and the second device feature constitute the invalid frequent set;

[0148] Based on the abnormal access detection model and the target user equipment parameter, it is determined whether the access data is abnormal access data.

[0149] According to one or more embodiments of the present disclosure, Example 8 provides an abnormal access detection device, the device comprising:

[0150] An acquisition module, used to acquire access data to be detected, wherein the access data is used to characterize user-related data and content-related data when a user accesses a content platform, and the user-related data includes user device parameters;

[0151] a detection module, configured to determine whether the access data is abnormal access data based on an abnormal access detection model and the user equipment parameters, wherein the abnormal access detection model includes a data fitting model, and the data fitting model includes a first model learning parameter and a second model learning parameter;

[0152] Among them, the first model learning parameters and the second model learning parameters are obtained by unsupervised learning through historical access data within a first preset time period, the first model learning parameters are used to characterize the device parameter distribution of real access data, and the second model learning parameters are used to characterize the device parameter distribution of normal access data, and the real access data includes normal access data and abnormal access data.

[0153] According to one or more embodiments of the present disclosure, Example 9 provides the apparatus of Example 8, wherein the detection module is used for:

[0154] Determine, based on the user device parameter and the first model learning parameter, a first access probability that the access data belongs to real access data, and determine, based on the user device parameter and the second model learning parameter, a second access probability that the access data belongs to normal access data;

[0155] The difference between the first access probability and the second access probability is used as the abnormal probability that the access data is abnormal access data, and when the abnormal probability is greater than a first preset threshold, the access data is determined to be abnormal access data.

[0156] According to one or more embodiments of the present disclosure, Example 10 provides the apparatus of Example 9, wherein the abnormal access detection model further includes an autoregressive model, and the apparatus further includes the following module for determining the first preset threshold:

[0157] A first determination module is used to perform data fitting on historical device parameters within a second preset time length and normal device parameters within the second preset time length based on the autoregressive model, using model parameters of the autoregressive model, wherein the time period represented by the second preset time length is earlier than the time period represented by the first preset time length, and the normal device parameters within the second preset time length are obtained by performing random data changes on the historical device parameters within the second preset time length;

[0158] The second determination module is used to determine the first preset threshold according to the model parameters of the autoregressive model and the normal device parameters within the first preset time period.

[0159] According to one or more embodiments of the present disclosure, Example 11 provides the apparatus of Example 8, wherein the abnormal access detection model further includes a neural network model, wherein the neural network model is obtained by training the historical access information and historical device parameters corresponding to the historical access data, and the detection module is used to:

[0160] determining a first abnormality detection value corresponding to the access data according to the user device parameter, the first model learning parameter, and the second model learning parameter;

[0161] Determine a second abnormality detection value corresponding to the access data by using the neural network model;

[0162] The first abnormality detection value and the second abnormality detection value are weightedly calculated to obtain a target detection value, and when the target detection value exceeds a second preset threshold, the access data is determined to be abnormal access data.

[0163] According to one or more embodiments of the present disclosure, Example 12 provides the device described in any one of Examples 8-11, wherein the device further includes the following module for determining the first model learning parameter and the second model learning parameter:

[0164] A first fitting module, configured to perform data fitting with time as an independent variable and historical device parameters corresponding to the historical access data as a dependent variable to obtain the first model learning parameters;

[0165] The second fitting module is used to perform random data changes on the historical device parameters to obtain target device parameters, and perform data fitting with time as the independent variable and the target device parameters as the dependent variable to obtain the second model learning parameters.

[0166] According to one or more embodiments of the present disclosure, Example 13 provides the apparatus of Example 12, wherein the second fitting module is used for:

[0167] Constructing a data matrix based on the historical device parameters corresponding to the historical access data within the first preset time period, wherein the row data of the data matrix is ​​used to characterize the historical access data, and the column data of the data matrix is ​​used to characterize the device characteristics corresponding to the historical device parameters, and each row data corresponds to a first data change value, and each column data corresponds to a second data change value;

[0168] Determine the target row data whose first data change value is greater than a third preset threshold, and perform random data changes on the device characteristics corresponding to the target row data to obtain the target device parameters; or determine the target column data whose second data change value is greater than a fourth preset threshold, and perform random data changes on the device characteristics corresponding to the target column data to obtain the target device parameters.

[0169] According to one or more embodiments of the present disclosure, Example 14 provides the apparatus of any one of Examples 8 to 11, wherein the detection module is used for:

[0170] Deleting features of the invalid frequent set in the user equipment parameters to obtain target user equipment parameters, wherein if the first device feature in the user equipment parameters is a first value and the second device feature is a second value, the first device feature and the second device feature constitute the invalid frequent set;

[0171] Based on the abnormal access detection model and the target user equipment parameter, it is determined whether the access data is abnormal access data.

[0172] According to one or more embodiments of the present disclosure, Example 15 provides a computer-readable medium having a computer program stored thereon, which implements the steps of any of the methods described in Examples 1-7 when executed by a processing device.

[0173] According to one or more embodiments of the present disclosure, Example 16 provides an electronic device, including:

[0174] a storage device having a computer program stored thereon;

[0175] A processing device is used to execute the computer program in the storage device to implement the steps of any one of the methods described in Examples 1-7.

[0176] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0177] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0178] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A method for detecting abnormal access, It is characterized in that The method comprises: Acquire access data to be detected, where the access data is used to characterize user-related data and content-related data when a user accesses a content platform, where the user-related data includes user device parameters; Determining whether the access data is abnormal access data based on an abnormal access detection model and the user device parameters, the abnormal access detection model comprising a data fitting model, the data fitting model comprising a first model learning parameter and a second model learning parameter; Among them, the first model learning parameters and the second model learning parameters are obtained by unsupervised learning on historical access data within a first preset time period, the first model learning parameters are used to characterize the device parameter distribution of real access data, and the second model learning parameters are used to characterize the device parameter distribution of normal access data, the real access data includes normal access data and abnormal access data, the first model learning parameters are obtained by data fitting based on the historical device parameters within the first preset time period, and the second model learning parameters are obtained by data fitting based on the target device parameters within the first preset time period, the target device parameters are device parameters that conform to normal access data obtained by performing random data changes on device features corresponding to row data or column data of a data matrix constructed based on the historical device parameters, the row data of the data matrix is ​​used to characterize historical access data, and the column data of the data matrix is ​​used to characterize device features corresponding to historical device parameters.

2. The method according to claim 1, It is characterized in that The determining whether the access data is abnormal access data based on the abnormal access detection model and the user equipment parameter includes: Determine, based on the user device parameter and the first model learning parameter, a first access probability that the access data belongs to real access data, and determine, based on the user device parameter and the second model learning parameter, a second access probability that the access data belongs to normal access data; The difference between the first access probability and the second access probability is used as the abnormal probability that the access data is abnormal access data, and when the abnormal probability is greater than a first preset threshold, the access data is determined to be abnormal access data.

3. The method according to claim 2, It is characterized in that The abnormal access detection model also includes an autoregressive model, and the first preset threshold is determined in the following manner: Performing data fitting on historical device parameters within a second preset time period and normal device parameters within the second preset time period based on the autoregressive model to determine model parameters of the autoregressive model, wherein the time period represented by the second preset time period is earlier than the time period represented by the first preset time period, and the normal device parameters within the second preset time period are obtained by performing random data changes on the historical device parameters within the second preset time period; The first preset threshold is determined according to model parameters of the autoregressive model and normal device parameters within the first preset time period.

4. The method according to claim 1, It is characterized in that The abnormal access detection model further includes a neural network model, which is obtained by training the historical access information and historical device parameters corresponding to the historical access data. The determining whether the access data is abnormal access data based on the abnormal access detection model and the user device parameters includes: determining a first abnormality detection value corresponding to the access data according to the user device parameter, the first model learning parameter, and the second model learning parameter; Determine a second abnormality detection value corresponding to the access data by using the neural network model; The first abnormality detection value and the second abnormality detection value are weightedly calculated to obtain a target detection value, and when the target detection value exceeds a second preset threshold, the access data is determined to be abnormal access data.

5. The method according to any one of claims 1 to 4, It is characterized in that The first model learning parameter and the second model learning parameter are determined in the following manner: Taking time as an independent variable and taking historical device parameters corresponding to the historical access data as dependent variables to perform data fitting, thereby obtaining the first model learning parameters; The historical device parameters are randomly changed to obtain target device parameters, and data fitting is performed with time as an independent variable and the target device parameters as a dependent variable to obtain the second model learning parameters.

6. The method according to claim 5, It is characterized in that The randomly changing the historical device parameters to obtain target device parameters includes: Constructing a data matrix based on the historical device parameters corresponding to the historical access data within the first preset time period, wherein the row data of the data matrix is ​​used to characterize the historical access data, and the column data of the data matrix is ​​used to characterize the device characteristics corresponding to the historical device parameters, and each row data corresponds to a first data change value, and each column data corresponds to a second data change value; Determine the target row data whose first data change value is greater than a third preset threshold, and perform random data changes on the device characteristics corresponding to the target row data to obtain the target device parameters; or determine the target column data whose second data change value is greater than a fourth preset threshold, and perform random data changes on the device characteristics corresponding to the target column data to obtain the target device parameters.

7. The method according to any one of claims 1 to 4, It is characterized in that The determining whether the access data is abnormal access data based on the abnormal access detection model and the user equipment parameter includes: Deleting features of the invalid frequent set in the user equipment parameters to obtain target user equipment parameters, wherein if a first device feature in the user equipment parameters is a first value and a second device feature in the user equipment parameters is a second value, the first device feature and the second device feature constitute the invalid frequent set; Based on the abnormal access detection model and the target user equipment parameter, it is determined whether the access data is abnormal access data.

8. An abnormal access detection device, It is characterized in that The device comprises: An acquisition module, used to acquire access data to be detected, wherein the access data is used to characterize user-related data and content-related data when a user accesses a content platform, and the user-related data includes user device parameters; a detection module, configured to determine whether the access data is abnormal access data based on an abnormal access detection model and the user equipment parameters, wherein the abnormal access detection model includes a data fitting model, and the data fitting model includes a first model learning parameter and a second model learning parameter; Among them, the first model learning parameters and the second model learning parameters are obtained by unsupervised learning on historical access data within a first preset time period, the first model learning parameters are used to characterize the device parameter distribution of real access data, and the second model learning parameters are used to characterize the device parameter distribution of normal access data, and the real access data includes normal access data and abnormal access data; the first model learning parameters are obtained by data fitting based on the historical device parameters within the first preset time period, and the second model learning parameters are obtained by data fitting based on the target device parameters within the first preset time period, and the target device parameters are device parameters that conform to normal access data obtained by randomly changing the device features corresponding to the row data or column data of the data matrix constructed based on the historical device parameters, the row data of the data matrix is ​​used to characterize the historical access data, and the column data of the data matrix is ​​used to characterize the device features corresponding to the historical device parameters.

9. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 7 are implemented.

10. An electronic device, It is characterized in that include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 7.