Account login state identification method and device, equipment and storage medium
By clustering account login frequencies and setting dynamic thresholds, the problem of low accuracy and efficiency in identifying abnormal account logins in the existing technology is solved, more accurate and efficient account status identification is achieved, and network security detection capabilities are enhanced. .
Patent Information
- Application Number
- CN202410695080.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, the identification accuracy of abnormal account login is low and the identification efficiency is poor. The traditional abnormal login frequency threshold determination method relies on experience. The static threshold cannot adapt to changes in business scenarios, resulting in a high false alarm rate and the inability to accurately and timely detect security. threaten.
By obtaining the login frequency of the target account in multiple login time periods, perform clustering operations, dynamically group and set frequency thresholds, determine the login status of the account based on the login frequency and grouping threshold, and use machine learning methods to dynamically adjust the threshold to adapt to the business Environmental changes.
It improves the accuracy and efficiency of account login status identification, reduces the false alarm rate, can respond to changes in business scenarios in a timely manner, and enhances network security detection capabilities.
Smart Images

Figure CN118797597A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to an account login status recognition method, device, equipment and storage medium. Background Art
[0002] In the field of network security, with the deepening of the informatization process, enterprise informatization is also developing continuously. While enjoying the convenience brought by informatization to enterprises, informatization and digitization also bring risks to enterprises, and the security of accounts is the first to bear the brunt. One of the common attack methods used by hackers is account penetration, which shows that the security of accounts is very important. Business systems and assets will generate a large number of login logs. By analyzing these logs, potential security threats and abnormal login behaviors can be discovered in a timely manner.
[0003] The traditional method of determining the abnormal login frequency threshold mainly relies on experience. The threshold is set based on experience, and most of them are static thresholds. The threshold is for all accounts, single and unchanged for a long time. When faced with changes in business scenarios, the rules cannot perform accurate and timely detection.
[0004] At present, the recognition accuracy of abnormal account logins is low and the recognition efficiency is poor. Summary of the invention
[0005] The present disclosure provides an account login status recognition method, device, equipment and storage medium to at least solve the problem of low recognition accuracy and poor recognition efficiency of existing abnormal account logins.
[0006] The technical solution of the present disclosure is as follows:
[0007] The present disclosure provides a method for identifying an account login status, including:
[0008] Obtain the target account's login frequency in multiple login time periods;
[0009] Performing a clustering operation on the login frequencies of the target account in the plurality of login time periods to obtain a target account group corresponding to the target account;
[0010] The login status of the target account is determined according to the login frequency of the target account in the multiple login time periods and the set frequency threshold of the target account group in the multiple login time periods.
[0011] Optionally, the login frequency of the target account in multiple login time periods is obtained, including:
[0012] Collecting login log data of the target account;
[0013] The login frequencies of the target account in the plurality of login time periods are counted from the login log data of the target account.
[0014] Optionally, determining the login status of the target account according to the login frequencies of the target account in the plurality of login time periods and the set frequency thresholds of the target account group in the plurality of login time periods includes:
[0015] In the case where the login frequencies of the target account in the multiple login time periods are all greater than the set frequency thresholds of the target account group in the multiple login time periods, determining that the login status of the target account is an abnormal login status;
[0016] If the login frequency of the target account in at least one login time period is less than or equal to the set frequency threshold of the target account group in at least one login time period, it is determined that the login status of the target account is a normal login status.
[0017] Optionally, before using the target account group to set the frequency threshold in the plurality of login time periods, the method further includes:
[0018] Collect sample login log data of multiple sample accounts;
[0019] Determine the login frequency of each of the sample accounts in the plurality of login time periods according to the sample login log data;
[0020] Calculate the median of the login frequency of each of the sample accounts in each of the login time periods;
[0021] Merging the medians of the login frequencies of the multiple sample accounts in each login time period to obtain a median data set of the multiple sample accounts in the multiple login time periods;
[0022] Performing a clustering operation on the median data sets of the plurality of sample accounts in the plurality of login time periods to obtain a plurality of sample account groups, wherein each sample account group corresponds to a frequency interval;
[0023] Performing data prediction based on the median data set of each sample account group under the multiple login time periods to obtain the predicted value, the lower limit of the predicted value, and the upper limit of the predicted value of the time series of each sample account group under the multiple login time periods;
[0024] According to the predicted value, the lower limit of the predicted value and the upper limit of the predicted value of the time series of each of the sample account groups in the multiple login time periods, the set frequency threshold of each of the sample account groups in the multiple login time periods is determined.
[0025] Optionally, determining the login frequency of each of the sample accounts in the plurality of login time periods according to the sample login log data includes:
[0026] Performing data cleaning on the sample login log data to obtain login log data after data cleaning;
[0027] Segmenting the cleaned login log data according to the account field to obtain login log data corresponding to each sample account;
[0028] According to the login log data corresponding to each of the sample accounts, the login frequencies of each of the sample accounts in the multiple login time periods are counted respectively.
[0029] Optionally, determining the set frequency threshold for each of the sample account groups in the multiple login time periods according to the predicted value, the lower limit of the predicted value, and the upper limit of the predicted value of the time series of each of the sample account groups in the multiple login time periods includes:
[0030] From the real login frequencies of each sample account group in each login time period that are less than or equal to the upper limit of the predicted value, the maximum real login frequency is selected as the set frequency threshold of each sample account group in each login time period.
[0031] The present disclosure also provides an account login status identification device, including:
[0032] An acquisition module is used to obtain the login frequency of the target account in multiple login time periods;
[0033] A clustering module, used to perform a clustering operation on the login frequencies of the target account in the plurality of login time periods to obtain a target account group corresponding to the target account;
[0034] The determination module determines the login status of the target account according to the login frequency of the target account in the multiple login time periods and the set frequency threshold of the target account group in the multiple login time periods.
[0035] Optionally, when acquiring the login frequencies of the target account in multiple login time periods, the acquisition module is used to:
[0036] Collecting login log data of the target account;
[0037] The login frequencies of the target account in the plurality of login time periods are counted from the login log data of the target account.
[0038] Optionally, the determination module determines the login status of the target account according to the login frequency of the target account in the plurality of login time periods and the set frequency threshold of the target account group in the plurality of login time periods, and is used to:
[0039] In the case where the login frequencies of the target account in the multiple login time periods are all greater than the set frequency thresholds of the target account group in the multiple login time periods, determining that the login status of the target account is an abnormal login status;
[0040] If the login frequency of the target account in at least one login time period is less than or equal to the set frequency threshold of the target account group in at least one login time period, it is determined that the login status of the target account is a normal login status.
[0041] Optionally, before using the target account group to set the frequency threshold in the plurality of login time periods, the determination module may also be used to:
[0042] Collect sample login log data of multiple sample accounts;
[0043] Determine the login frequency of each of the sample accounts in the plurality of login time periods according to the sample login log data;
[0044] Calculate the median of the login frequency of each of the sample accounts in each of the login time periods;
[0045] Merging the medians of the login frequencies of the multiple sample accounts in each login time period to obtain a median data set of the multiple sample accounts in the multiple login time periods;
[0046] Performing a clustering operation on the median data sets of the plurality of sample accounts in the plurality of login time periods to obtain a plurality of sample account groups, wherein each sample account group corresponds to a frequency interval;
[0047] Performing data prediction based on the median data set of each sample account group under the multiple login time periods to obtain the predicted value, the lower limit of the predicted value, and the upper limit of the predicted value of the time series of each sample account group under the multiple login time periods;
[0048] According to the predicted value, the lower limit of the predicted value and the upper limit of the predicted value of the time series of each of the sample account groups in the multiple login time periods, the set frequency threshold of each of the sample account groups in the multiple login time periods is determined.
[0049] Optionally, when determining the login frequency of each sample account in a plurality of login time periods according to the sample login log data, the determination module is used to:
[0050] Performing data cleaning on the sample login log data to obtain login log data after data cleaning;
[0051] Segmenting the cleaned login log data according to the account field to obtain login log data corresponding to each sample account;
[0052] According to the login log data corresponding to each of the sample accounts, the login frequencies of each of the sample accounts in the multiple login time periods are counted respectively.
[0053] Optionally, when determining the set frequency threshold for each of the sample account groups in the multiple login time periods according to the predicted value, the lower limit of the predicted value, and the upper limit of the predicted value of the time series of each of the sample account groups in the multiple login time periods, the determination module is used to:
[0054] From the real login frequencies of each sample account group in each login time period that are less than or equal to the upper limit of the predicted value, the maximum real login frequency is selected as the set frequency threshold of each sample account group in each login time period.
[0055] The present disclosure also provides an electronic device, including:
[0056] processor;
[0057] a memory for storing processor-executable instructions;
[0058] The processor is configured to execute instructions to implement each step in the above method.
[0059] The embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each step in the above method is implemented.
[0060] The embodiment of the present disclosure further provides a computer program product, including a computer program / instruction, which implements each step of the above method when executed by a processor.
[0061] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0062] In some embodiments of the present disclosure, the login frequencies of a target account in multiple login time periods are obtained; the login frequencies of the target account in multiple login time periods are clustered to obtain target account groups corresponding to the target accounts; the login status of the target account is determined according to the login frequencies of the target account in multiple login time periods and the set frequency thresholds of the target account groups in multiple login time periods. In the present disclosure, different accounts correspond to different account groups, and the accounts are dynamically grouped, and the set frequency thresholds of the account groups in multiple login time periods are set. According to the login frequencies of the target account in multiple login time periods and the set frequency thresholds of the target account groups in multiple login time periods, the login status of the target account is quickly determined, thereby improving the accuracy of account login status recognition; compared with the existing manually set thresholds, the efficiency of account login status recognition is improved.
[0063] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0065] Figure 1 A flowchart of a method for identifying an account login status provided by an exemplary embodiment of the present disclosure;
[0066] Figure 2 A schematic diagram of an execution logic of obtaining a result queue provided for an exemplary embodiment of the present disclosure;
[0067] Figure 3 A schematic diagram of execution logic of a clustering algorithm provided for an exemplary embodiment of the present disclosure;
[0068] Figure 4 A schematic diagram of the structure of an account login status identification device provided by an exemplary embodiment of the present disclosure;
[0069] Figure 5 A schematic structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0070] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0071] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure.
[0072] It should be noted that the user information involved in this disclosure includes but is not limited to: user device information and user personal information; the collection, storage, use, processing, transmission, provision and disclosure of user information in this disclosure comply with the relevant laws and regulations and do not violate public order and good morals.
[0073] In the field of network security, with the deepening of the informatization process, enterprise informatization is also developing continuously. While enjoying the convenience brought by informatization to enterprises, informatization and digitization also bring risks to enterprises, and the security of accounts is the first to bear the brunt. One of the common attack methods used by hackers is account penetration, which shows that the security of accounts is very important. Business systems and assets will generate a large number of login logs. By analyzing these logs, potential security threats and abnormal login behaviors can be discovered in a timely manner.
[0074] The traditional method of determining the abnormal login frequency threshold mainly relies on experience. The threshold is set based on experience, and most of them are static thresholds. The threshold is for all accounts, single and unchanged for a long time. When faced with changes in business scenarios, the rules cannot perform accurate and timely detection. The following are the basic principles and steps based on the static threshold method:
[0075] 1. Threshold definition: Implementers set static thresholds in the system or configuration based on experience. The threshold is single and unchanging.
[0076] 2. Login log collection: collect business system logs or asset login logs, etc.
[0077] 3. Threshold detection: Aggregate account data and compare it with the threshold. If it is greater than the threshold, it will be considered abnormal.
[0078] 4. Exception handling: For detected abnormal behaviors, corresponding handling measures need to be taken. This may include generating alerts, blocking further access, investigation and analysis, and taking appropriate response measures to deal with security threats.
[0079] Although the detection method based on static thresholds has the advantages of simple implementation, easy understanding and management, it also has great limitations. For example, static thresholds are for all accounts, and their login conditions often vary greatly due to different account permissions and responsibilities. Login conditions will also change according to specific business scenarios and period changes. Static thresholds cannot cope with and respond quickly to these changes. The above technical solution has the following disadvantages:
[0080] Single threshold: The login frequency threshold is configured the same for all accounts. However, due to differences in positions, responsibilities, permissions, and business, the login behaviors of accounts can vary greatly. The general judgment rule of a single threshold obviously cannot meet business requirements.
[0081] Static threshold: The threshold is set based on experience and cannot be adjusted dynamically with the development and evolution of business scale, changes in management methods, etc., and cannot adapt to changes in the business environment;
[0082] Due to the above technical defects such as single and fixed thresholds, there will be a high false alarm rate in the account login frequency anomaly detection scenario, and security issues cannot be accurately discovered.
[0083] In response to the above technical problems, in some embodiments of the present disclosure, the login frequencies of the target account in multiple login time periods are obtained; the login frequencies of the target account in multiple login time periods are clustered to obtain the target account groupings corresponding to the target accounts; the login status of the target account is determined according to the login frequencies of the target account in multiple login time periods and the set frequency thresholds of the target account groupings in multiple login time periods. In the present disclosure, different accounts correspond to different account groups, the accounts are dynamically grouped, and the set frequency thresholds of the account groupings in multiple login time periods are set. According to the login frequencies of the target account in multiple login time periods and the set frequency thresholds of the target account groupings in multiple login time periods, the login status of the target account is quickly determined, thereby improving the accuracy of the account login status recognition; compared with the existing manually set thresholds, the efficiency of the account login status recognition is improved.
[0084] The technical solutions provided by various embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings.
[0085] Figure 1 The following is a flow chart of a method for identifying an account login status provided by an exemplary embodiment of the present disclosure. Figure 1 As shown, the method includes:
[0086] S101: Obtain the login frequency of the target account in multiple login time periods;
[0087] S102: performing a clustering operation on the login frequencies of the target account in multiple login time periods to obtain target account groups corresponding to the target accounts;
[0088] S103: Determine the login status of the target account according to the login frequencies of the target account in the multiple login time periods and the set frequency thresholds of the target account groups in the multiple login time periods.
[0089] In this embodiment, the execution subject of the above method may be a terminal device or a server.
[0090] Among them, the terminal device includes but is not limited to a mobile station (MS), a mobile terminal, a mobile phone, a handset and a portable equipment, etc. The terminal device can communicate with one or more core networks via a radio access network (RAN). For example, the terminal device can be a mobile phone (or a "cellular" phone), a computer with a wireless communication function, etc. The terminal device can also be a computer with a wireless transceiver function, a virtual reality (VR) terminal device, an AR terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, etc., and the operating system installed on the terminal device includes but is not limited to: IOS, Android, windows, linux, Mac OS and other operating systems. In different networks, the terminal may be called different names, such as user equipment, mobile station, subscriber unit, station, cellular phone, personal digital assistant, wireless modem, wireless communication device, handheld device, laptop computer, cordless phone, wireless local loop station, television, etc. For the convenience of description, it is referred to as terminal equipment in this embodiment.
[0091] In this embodiment, the implementation form of the server is not limited. For example, the server can be a conventional server, a cloud server, a cloud host, a virtual center, or other server devices. The server mainly includes a processor, a hard disk, a memory, a system bus, etc., and a general computer architecture type.
[0092] The present invention discloses a method of threshold grouping and self-learning threshold based on machine learning, adopts the idea of diversion mechanism, dynamically groups accounts, trains baseline models for different grouping data respectively, better responds to the analysis needs of account differences and changes in business environment, and solves the problem of high false alarm rate of traditional methods.
[0093] In some embodiments of the present disclosure, the login frequencies of the target account in multiple login time periods are obtained. One achievable method is to collect login log data of the target account; and calculate the login frequencies of the target account in multiple login time periods from the login log data of the target account.
[0094] In some embodiments of the present disclosure, the login status of the target account is determined based on the login frequency of the target account in multiple login time periods and the set frequency threshold of the target account group in multiple login time periods. One achievable method is that if the login frequency of the target account in multiple login time periods is greater than the set frequency threshold of the target account group in multiple login time periods, the login status of the target account is determined to be an abnormal login status; if the login frequency of the target account in at least one login time period is less than or equal to the set frequency threshold of the target account group in at least one login time period, the login status of the target account is determined to be a normal login status.
[0095] For example, the login log data is tested in two ways: one is for offline data and the other is for real-time data.
[0096] The steps for testing offline data are as follows: segment offline data by account; aggregate 1-minute login frequency data, 5-minute login frequency data, and 10-minute login frequency data for each account after segmentation; confirm account grouping, obtain grouping thresholds, calculate the median for the 1-minute login frequency data of the account, and obtain the login frequency threshold value from the 1-minute training result data table based on the median through the minimum boundary of the data group and the maximum boundary of the data group; the 5-minute login frequency threshold and the 10-minute login frequency threshold are obtained in the same way as the 1-minute login frequency. Determine whether there are logins greater than the threshold for the 1-minute, 5-minute, and 10-minute login frequencies.
[0097] For real-time login data detection: the cumulative account login frequency of 1 minute, 5 minutes, and 10 minutes is collected from the 1-minute training result data, 5-minute training result data, and 10-minute training result data tables respectively through the minimum boundary of the data group and the maximum boundary of the data group. If the login frequency exceeds the threshold, a blocking alarm will be issued.
[0098] In some embodiments of the present disclosure, a set frequency threshold for each sample account group in multiple login time periods is determined. One achievable method is to collect sample login log data of multiple sample accounts; determine the login frequency of each sample account in multiple login time periods according to the sample login log data; calculate the median of the login frequency of each sample account in each login time period; merge the medians of the login frequencies of multiple sample accounts in each login time period to obtain a median data set of multiple sample accounts in multiple login time periods; perform clustering operations on the median data sets of multiple sample accounts in multiple login time periods to obtain multiple sample account groups, wherein each sample account group corresponds to a frequency interval; perform data prediction according to the median data set of each sample account group in multiple login time periods to obtain the predicted value, the lower limit of the predicted value, and the upper limit of the predicted value of the time series of each sample account group in multiple login time periods; determine the set frequency threshold for each sample account group in multiple login time periods according to the predicted value, the lower limit of the predicted value, and the upper limit of the predicted value of the time series of each sample account group in multiple login time periods.
[0099] In the above embodiment, the login frequency of each sample account in multiple login time periods is determined based on the sample login log data. One achievable method is to clean the sample login log data to obtain the login log data after data cleaning; segment the login log data after data cleaning according to the account field to obtain the login log data corresponding to each sample account; and count the login frequency of each sample account in multiple login time periods based on the login log data corresponding to each sample account.
[0100] In the above embodiment, the set frequency threshold of each sample account group in multiple login time periods is determined according to the predicted value, the lower limit of the predicted value and the upper limit of the predicted value of the time series of each sample account group in multiple login time periods. One achievable method is to select the maximum real login frequency from the real login frequencies of each sample account group in each login time period that are less than or equal to the upper limit of the predicted value as the set frequency threshold of each sample account group in each login time period.
[0101] The following is a description of the account login status identification method disclosed in the present invention with reference to a specific embodiment.
[0102] Step S1: Login log acquisition
[0103] After the login logs have been collected and stored, data can be obtained in the following ways:
[0104] Data file: Login log data can be transferred to the analysis model in the form of files for analysis and modeling.
[0105] Relational database: Login logs are stored in a relational database. The account and password of the storage database with query permissions and the data repository table can be provided, and the analysis engine can query the required data.
[0106] ES (full-text search): Login logs are stored in ES. You can provide an ES account and password with query permissions, as well as a data storage index, and the analysis engine will query the required data.
[0107] Step S2: Data preprocessing
[0108] The acquired login log data is preprocessed to prepare for subsequent model training. This stage mainly includes the following steps:
[0109] Data cleaning: Clean the obtained login log data and remove the data with empty account and login time fields to ensure the normal operation of the analysis program.
[0110] Data segmentation: The full amount of login log data is segmented by account field to generate independent analysis data for each account.
[0111] Step S3: Model training
[0112] This application proposal uses the Optics algorithm to cluster the login frequency data in the data grouping stage. The following are the specific steps:
[0113] Data preparation: In data preprocessing, the data has been segmented by account, and the login log data of each account has been obtained. Next, perform the following steps to complete the data preparation work and prepare for subsequent data analysis and model training.
[0114] Data aggregation: The data of each account is aggregated for 1 minute, 5 minutes, and 10 minutes respectively, and 3 sets of analysis login frequency data are generated for each account.
[0115] Data statistics calculation: Calculate the median of each account’s 1-minute, 5-minute, and 10-minute login frequency data.
[0116] Data fusion: The 1-minute median, 5-minute median, and 10-minute median of all accounts are fused to generate 1-minute, 5-minute, and 10-minute median data sets.
[0117] Data grouping model parameter initialization: The three median data sets of 1 minute, 5 minutes, and 10 minutes obtained in the data preparation stage are grouped.
[0118] Most of the grouping uses clustering algorithms. Since the number of groups is uncertain in this solution, that is, the number of clusters is unclear, the algorithms that require explicit specification of the number of clusters, such as KMeans, MiniBatchKMeans, GaussianMixture, and AgglomerativeClusteri, are discarded, and algorithms that do not require clustering are selected, such as DBSCAN and Optics. The two initial parameters Eps (neighborhood radius) and minPts (minimum number of points in the Eps neighborhood) in the DBSCAN algorithm need to be set manually, and the clustering results are very sensitive to the values of these two parameters. Different values will produce different clustering results. The Optics algorithm is not sensitive to the parameters Eps (neighborhood radius) and minPts (minimum number of points in the Eps neighborhood), but only plays an auxiliary role in the algorithm. In other words, slight changes in Eps and minPts will not affect the relative output order of sample points, which has no effect on the analysis of clustering results.
[0119] Figure 2 The following is a schematic diagram of an execution logic of obtaining a result queue provided by an exemplary embodiment of the present disclosure. Figure 2 As shown, the entire execution process of the algorithm is as follows:
[0120] D: the set to be clustered;
[0121] Q: Ordered queue, elements are sorted by reachable distance, and the one with the smallest reachable distance is at the head of the queue;
[0122] O: Result queue, the ordered queue of the point set that finally outputs the result.
[0123] Figure 3 The following is a schematic diagram of the execution logic of a clustering algorithm provided by an exemplary embodiment of the present disclosure. Figure 3 As shown in the figure, after obtaining the result queue, the following algorithm is used to obtain the final clustering result:
[0124] Take out points from the result queue in order. If the reachable distance of the point is not greater than the given radius ε, the point belongs to the current category, otherwise go to step 2;
[0125] If the core distance of the point is greater than the given radius Eps, the point is noise and can be ignored. Otherwise, the point belongs to a new cluster and jumps to step 1.
[0126] When the result queue traversal is completed, the algorithm ends.
[0127] The data grouping model training loop, each loop contains the following steps:
[0128] According to the clustering results of Optics, adjust the MinPts parameter and re-cluster.
[0129] Observe the number of outliers and the number of clusters until each cluster is dense, the number of clusters is less than 10, and the number of outliers is less than 5.
[0130] Get the data of each cluster, obtain the maximum and minimum values of the data, and use them as the interval of each group.
[0131] Confirmation of data grouping results. The specific confirmation steps are as follows:
[0132] Get the data of each cluster, obtain the maximum and minimum values of the data, and use them as the interval of each group.
[0133] Data grouping supplement: After clustering, the data is grouped. The data grouping is discrete. For discontinuous data, the grouping interval is supplemented. For example, the result after data grouping is: [100,190], [221,289], 191-220 is empty. The outliers after clustering are also supplemented in the region, and the supplementary grouping is [191,220].
[0134] In the login frequency threshold learning stage, the time series algorithm Prophet is used to build the threshold. The Prophet model consists of a loop system consisting of analysts and automation in the loop. The prediction process of Prophet is to establish a time series model based on the prediction problem, simulate historical data, evaluate the effect of the model, further adjust and model according to the problems that arise, and finally feedback the entire prediction result in a visual way. The algorithm has a better fitting effect on the detection of time series trend change points, seasonality, holidays and emergencies. The input data of the Prophet algorithm is divided into two columns ds and y. ds represents the timestamp of the time series, and y represents the value of the time series. After the algorithm is trained, it can output yhat: the predicted value of the time series; yhat_lower: the lower limit of the predicted value; yhat_upper: the upper limit of the predicted value.
[0135] The parameters involved in the Prophet algorithm in model training optimization include the following:
[0136] yearly_seasonality: The data contains seasonal phenomena with a yearly cycle. The default setting is auto. If this phenomenon exists in the data, set it to True.
[0137] weekly_seasonality: If there is a weekly seasonal phenomenon in the data, the default setting is auto. If there is such a phenomenon in the data, set it to True;
[0138] daily_seasonality: The data contains daily seasonality. The default setting is auto. If the data contains such seasonality, set it to True.
[0139] holidays: built-in holiday names and dates;
[0140] seasonality_prior_scale: seasonality model strength, the default is 10. If yearly_seasonality, weekly_seasonality and daily_seasonality are True, this parameter needs to be adjusted to change the weight of the season in the fitting process;
[0141] holidays_prior_scale: holiday model strength, the default is 10. If holidays is True, this parameter needs to be adjusted to change the weight of holidays during fitting;
[0142] The specific steps of training are as follows:
[0143] Login frequency threshold training: The login frequency data is grouped and merged to generate a data set for each group of 1 minute, 5 minutes, and 10 minutes. The Prophet algorithm make_future_dataframe is used to predict the data for each group of 1 minute, 5 minutes, and 10 minutes.
[0144] The parameters of make_future_dataframe are:
[0145] Periods: the number of forward prediction steps and the number of prediction points. This solution requires the upper limit of the prediction of historical data, which is not required for future predictions. The default setting is 1;
[0146] freq: The prediction unit is S for seconds, H for hours, D for days, and M for months, which should be consistent with the time step of the data. For example, the time interval of each data in the prediction data is 1 minute, which is set to 60S;
[0147] include_history: whether to include historical data forecasts. This disclosure requires historical data forecasts, so this item is set to True;
[0148] After the prediction is completed, you can get yhat: the predicted value of the time series, yhat_lower: the lower limit of the predicted value, and yhat_upper: the upper limit of the predicted value.
[0149] Login frequency threshold determination: Analyze the real login frequency data and the predicted frequency upper limit data, and remove the data with real login frequency data > predicted frequency upper limit. This part is an outlier, and the anomaly cannot be used as a threshold. Select the largest real login frequency data from the real login frequency data ≤ predicted frequency upper limit as the login frequency threshold.
[0150] Threshold determination of supplementary data grouping: For supplementary data groupings that lack training data, its threshold uses the average of its previous grouping and the next grouping as the threshold. If the threshold is greater than the maximum boundary value of the grouping, the maximum boundary value is defined as the threshold of the supplementary data grouping.
[0151] Model output: The model completes all the previous steps to form the final model results, including 1-minute results, 5-minute results, and 10-minute results. Each result has a threshold for each data group.
[0152] The results are as follows:
[0153] 10-minute training result data: minimum boundary of data grouping, maximum boundary of data grouping, and 10-minute login frequency threshold;
[0154] 5-minute training result table: minimum boundary of data grouping, maximum boundary of data grouping, and 5-minute login frequency threshold;
[0155] 1-minute training result table: minimum boundary of data grouping, maximum boundary of data grouping, and 1-minute login frequency threshold.
[0156] Step S4: Model optimization and saving
[0157] After the model training is completed, it needs to be continuously optimized. The division of time windows, data grouping, and frequency thresholds are not static. Regular learning and updates are required based on business scenarios and data changes:
[0158] Update the model periodically: Periodically retrain the model based on offline data and save the latest data grouping and login frequency threshold.
[0159] Regularly detect abnormal login behavior: Use the model to regularly detect abnormal login behavior.
[0160] Collect feedback information: Collect feedback information from model usage, which may include normal logins that are falsely reported as abnormal, real abnormal logins that are not detected, etc. This feedback information can help us understand the defects of the model and the direction of improvement.
[0161] Analyze feedback information: Analyze the collected feedback information to identify the problems and shortcomings of the model. Compare the differences between the model output and the actual situation to find out the reasons for false positives or false negatives.
[0162] Modify the model: Based on the feedback information, optimize the division of time windows, adjustment of data groups, determination of frequency thresholds, etc.
[0163] Iterative optimization: Based on changes in the environment and the characteristics of the data, the model is continuously updated and parameters are adjusted, forming a cyclic iterative process. Through continuous feedback and updates, the model can adapt to the ever-changing tasks and environmental requirements, and continuously improve the performance and accuracy of the model.
[0164] The present disclosure is based on user login behavior data, uses the Optics algorithm to dynamically confirm data grouping, and uses the median to supplement the missing grouping, and performs threshold learning modeling for dynamic grouping, which has greatly improved the training data sample volume, model training efficiency, and grouping accuracy. The present disclosure first integrates the multi-window mode, uses the Prophet algorithm to train the prediction value upper limit of the data for multiple time windows, analyzes the prediction value and prediction upper limit data, and finally determines the threshold of each time window. The confirmation of the threshold is completely based on real data, and it has the ability to be dynamically updated, which greatly improves the adaptability and efficiency of the model.
[0165] The present disclosure has intelligent learning capabilities: machine learning can automatically learn the account and login frequency features in the login log data, and self-learn the login frequency threshold based on the real data. In contrast, the method based on static thresholds relies on the experience of the implementer, and these rules may miss some unknown abnormal behaviors. Higher accuracy and generalization ability: the machine learning model is trained through large-scale real login log data, and can learn the characteristics of the account and the mode of more complex login business from it. It can provide higher accuracy and generalization ability by learning dynamic thresholds according to the characteristics of the account. In contrast, the method based on static thresholds can often only detect part of the abnormal behavior, and the false positives and false negatives are high. Abnormal detection ability: machine learning methods have strong detection capabilities in abnormal login scenarios. The model is modeled for different time windows, and the detection surface of abnormalities is wider and the coverage rate is higher. Adaptive ability: machine learning can be updated periodically, adapt to the constantly changing business scenarios, and can adapt and correct the changes in time. In contrast, it is difficult to adapt to changing needs based on the single and unchanging static threshold.
[0166] In the above method embodiment of the present disclosure, the login frequency of the target account in multiple login time periods is obtained; the login frequency of the target account in multiple login time periods is clustered to obtain the target account group corresponding to the target account; the login status of the target account is determined according to the login frequency of the target account in multiple login time periods and the set frequency threshold of the target account group in multiple login time periods. In the present disclosure, different accounts correspond to different account groups, the accounts are dynamically grouped, and the set frequency threshold of the account group in multiple login time periods is set. According to the login frequency of the target account in multiple login time periods and the set frequency threshold of the target account group in multiple login time periods, the login status of the target account is quickly determined, thereby improving the accuracy of the account login status recognition; compared with the existing manually set threshold, the efficiency of the account login status recognition is improved.
[0167] Figure 4 FIG. 4 is a schematic diagram of a structure of an account login status identification device 40 provided by an exemplary embodiment of the present disclosure. Figure 4 As shown, the account login status identification device 40 includes: an acquisition module 41, a clustering module 42 and a determination module 43.
[0168] The acquisition module 41 is used to acquire the login frequency of the target account in multiple login time periods;
[0169] A clustering module 42, used to perform a clustering operation on the login frequencies of the target account in multiple login time periods to obtain target account groups corresponding to the target accounts;
[0170] The determination module 43 determines the login status of the target account according to the login frequencies of the target account in multiple login time periods and the set frequency thresholds of the target account groups in multiple login time periods.
[0171] Optionally, when acquiring the login frequencies of the target account in multiple login time periods, the acquisition module 41 is used to:
[0172] Collect login log data of the target account;
[0173] The login frequency of the target account in multiple login time periods is counted from the login log data of the target account.
[0174] Optionally, the determination module 43 determines the login status of the target account according to the login frequencies of the target account in multiple login time periods and the set frequency thresholds of the target account groups in multiple login time periods, for:
[0175] If the login frequencies of the target account in multiple login time periods are all greater than the set frequency thresholds of the target account group in multiple login time periods, the login status of the target account is determined to be an abnormal login status;
[0176] When the login frequency of the target account in at least one login time period is less than or equal to the set frequency threshold of the target account group in at least one login time period, it is determined that the login status of the target account is a normal login status.
[0177] Optionally, before using the target account grouping to set the frequency threshold in multiple login time periods, the determination module 43 may also be used to:
[0178] Collect sample login log data of multiple sample accounts;
[0179] Determine the login frequency of each sample account in multiple login time periods based on the sample login log data;
[0180] Calculate the median login frequency of each sample account in each login time period;
[0181] The median of the login frequency of multiple sample accounts in each login time period is merged to obtain the median data set of multiple sample accounts in multiple login time periods;
[0182] Perform clustering operations on the median data sets of multiple sample accounts in multiple login time periods to obtain multiple sample account groups, where each sample account group corresponds to a frequency interval;
[0183] Data prediction is performed based on the median data set of each sample account group under multiple login time periods to obtain the predicted value, lower limit of the predicted value, and upper limit of the predicted value of the time series of each sample account group under multiple login time periods;
[0184] According to the predicted value, the lower limit of the predicted value and the upper limit of the predicted value of the time series of each sample account group in multiple login time periods, the set frequency threshold of each sample account group in multiple login time periods is determined.
[0185] Optionally, when determining the login frequency of each sample account in multiple login time periods according to the sample login log data, the determination module 43 is used to:
[0186] Perform data cleaning on the sample login log data to obtain the login log data after data cleaning;
[0187] The login log data after data cleaning is segmented according to the account field to obtain the login log data corresponding to each sample account;
[0188] According to the login log data corresponding to each sample account, the login frequency of each sample account in multiple login time periods is counted respectively.
[0189] Optionally, when determining the set frequency threshold for each sample account group in multiple login time periods according to the predicted value, the lower limit of the predicted value, and the upper limit of the predicted value of the time series of each sample account group in multiple login time periods, the determination module 43 is used to:
[0190] From the actual login frequencies of each sample account group in each login time period that are less than or equal to the upper limit of the predicted value, select the maximum actual login frequency as the set frequency threshold for each sample account group in each login time period.
[0191] 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.
[0192] Figure 5 FIG. 1 is a schematic diagram of a structure of an electronic device provided by an exemplary embodiment of the present disclosure. Figure 5 As shown, the electronic device includes: a memory 51 and a processor 52. In addition, the electronic device also includes a power supply component 53 and a communication component 54.
[0193] The memory 51 is used to store computer programs and can be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application program or method operating on the electronic device.
[0194] The memory 51 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0195] The communication component 54 is used for data transmission with other devices.
[0196] The processor 52 can execute computer instructions stored in the memory 51 to:
[0197] Obtain the target account's login frequency in multiple login time periods;
[0198] Performing a clustering operation on the login frequencies of the target account in multiple login time periods to obtain target account groups corresponding to the target accounts;
[0199] The login status of the target account is determined according to the login frequency of the target account in multiple login time periods and the set frequency thresholds of the target account group in multiple login time periods.
[0200] Optionally, when acquiring the login frequencies of the target account in multiple login time periods, the processor 52 is configured to:
[0201] Collect login log data of the target account;
[0202] The login frequency of the target account in multiple login time periods is counted from the login log data of the target account.
[0203] Optionally, when determining the login status of the target account according to the login frequencies of the target account in multiple login time periods and the set frequency thresholds of the target account group in multiple login time periods, the processor 52 is configured to:
[0204] If the login frequencies of the target account in multiple login time periods are all greater than the set frequency thresholds of the target account group in multiple login time periods, the login status of the target account is determined to be an abnormal login status;
[0205] When the login frequency of the target account in at least one login time period is less than or equal to the set frequency threshold of the target account group in at least one login time period, it is determined that the login status of the target account is a normal login status.
[0206] Optionally, before using the target account group to set the frequency threshold in multiple login time periods, the processor 52 may also be used to:
[0207] Collect sample login log data of multiple sample accounts;
[0208] Determine the login frequency of each sample account in multiple login time periods based on the sample login log data;
[0209] Calculate the median login frequency of each sample account in each login time period;
[0210] The median of the login frequency of multiple sample accounts in each login time period is merged to obtain the median data set of multiple sample accounts in multiple login time periods;
[0211] Perform clustering operations on the median data sets of multiple sample accounts in multiple login time periods to obtain multiple sample account groups, where each sample account group corresponds to a frequency interval;
[0212] Data prediction is performed based on the median data set of each sample account group under multiple login time periods to obtain the predicted value, lower limit of the predicted value, and upper limit of the predicted value of the time series of each sample account group under multiple login time periods;
[0213] According to the predicted value, the lower limit of the predicted value and the upper limit of the predicted value of the time series of each sample account group in multiple login time periods, the set frequency threshold of each sample account group in multiple login time periods is determined.
[0214] Optionally, when determining the login frequency of each sample account in a plurality of login time periods according to the sample login log data, the processor 52 is configured to:
[0215] Perform data cleaning on the sample login log data to obtain the login log data after data cleaning;
[0216] The login log data after data cleaning is segmented according to the account field to obtain the login log data corresponding to each sample account;
[0217] According to the login log data corresponding to each sample account, the login frequency of each sample account in multiple login time periods is counted respectively.
[0218] Optionally, when determining the set frequency threshold for each sample account group in multiple login time periods according to the predicted value, the lower limit of the predicted value, and the upper limit of the predicted value of the time series of each sample account group in multiple login time periods, the processor 52 is configured to:
[0219] From the actual login frequencies of each sample account group in each login time period that are less than or equal to the upper limit of the predicted value, select the maximum actual login frequency as the set frequency threshold for each sample account group in each login time period.
[0220] Accordingly, the present disclosure also provides a computer-readable storage medium storing a computer program. When the computer-readable storage medium stores the computer program and the computer program is executed by one or more processors, the one or more processors execute Figure 1 Each step in the method embodiment.
[0221] Accordingly, the present disclosure also provides a computer program product, the computer program product includes a computer program / instruction, the computer program / instruction is executed by a processor Figure 1 Each step in the method embodiment.
[0222] Above Figure 5The communication component in is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0223] Above Figure 5 The power supply component in the device provides power to various components of the device where the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply component is located.
[0224] The electronic device also includes a display screen and an audio component.
[0225] The display screen includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0226] The audio component may be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.
[0227] In the above-mentioned apparatus, device, storage medium and program product embodiments of the present disclosure, the login frequency of the target account in multiple login time periods is obtained; the login frequency of the target account in multiple login time periods is clustered to obtain the target account group corresponding to the target account; the login status of the target account is determined according to the login frequency of the target account in multiple login time periods and the set frequency threshold of the target account group in multiple login time periods. Different accounts of the present disclosure correspond to different account groups, and the accounts are dynamically grouped, and the set frequency threshold of the account group in multiple login time periods is set. According to the login frequency of the target account in multiple login time periods and the set frequency threshold of the target account group in multiple login time periods, the login status of the target account is quickly determined, thereby improving the accuracy of the account login status recognition; compared with the existing manually set threshold, the efficiency of the account login status recognition is improved.
[0228] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0229] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0230] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0231] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0232] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0233] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0234] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0235] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0236] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for identifying account login status, characterized in that: include: Obtain the target account's login frequency in multiple login time periods; Performing a clustering operation on the login frequencies of the target account in the plurality of login time periods to obtain a target account group corresponding to the target account; The login status of the target account is determined according to the login frequency of the target account in the multiple login time periods and the set frequency threshold of the target account group in the multiple login time periods.
2. The method according to claim 1, characterized in that: The obtaining of the login frequencies of the target account in multiple login time periods includes: Collecting login log data of the target account; The login frequencies of the target account in the plurality of login time periods are counted from the login log data of the target account.
3. The method according to claim 1, characterized in that The determining the login status of the target account according to the login frequencies of the target account in the multiple login time periods and the set frequency thresholds of the target account group in the multiple login time periods includes: In the case where the login frequencies of the target account in the multiple login time periods are all greater than the set frequency thresholds of the target account group in the multiple login time periods, determining that the login status of the target account is an abnormal login status; If the login frequency of the target account in at least one login time period is less than or equal to the set frequency threshold of the target account group in at least one login time period, it is determined that the login status of the target account is a normal login status.
4. The method according to claim 1, characterized in that: Before using the target account group to set the frequency threshold in the plurality of login time periods, the method further includes: Collect sample login log data of multiple sample accounts; Determine the login frequency of each of the sample accounts in the plurality of login time periods according to the sample login log data; Calculate the median of the login frequency of each of the sample accounts in each of the login time periods; Merging the medians of the login frequencies of the multiple sample accounts in each login time period to obtain a median data set of the multiple sample accounts in the multiple login time periods; Performing a clustering operation on the median data sets of the plurality of sample accounts in the plurality of login time periods to obtain a plurality of sample account groups, wherein each sample account group corresponds to a frequency interval; Performing data prediction based on the median data set of each sample account group under the multiple login time periods to obtain the predicted value, the lower limit of the predicted value, and the upper limit of the predicted value of the time series of each sample account group under the multiple login time periods; According to the predicted value, the lower limit of the predicted value and the upper limit of the predicted value of the time series of each of the sample account groups in the multiple login time periods, the set frequency threshold of each of the sample account groups in the multiple login time periods is determined.
5. The method according to claim 4, characterized in that Determining the login frequency of each of the sample accounts in the plurality of login time periods according to the sample login log data includes: Performing data cleaning on the sample login log data to obtain login log data after data cleaning; Segmenting the cleaned login log data according to the account field to obtain login log data corresponding to each sample account; According to the login log data corresponding to each of the sample accounts, the login frequencies of each of the sample accounts in the multiple login time periods are counted respectively.
6. The method according to claim 4, characterized in that The step of determining the set frequency threshold for each of the sample account groups in the multiple login time periods according to the predicted value, the lower limit of the predicted value, and the upper limit of the predicted value of the time series of each of the sample account groups in the multiple login time periods includes: From the real login frequencies of each sample account group in each login time period that are less than or equal to the upper limit of the predicted value, the maximum real login frequency is selected as the set frequency threshold of each sample account group in each login time period.
7. An account login status recognition device, characterized in that: include: An acquisition module is used to obtain the login frequency of the target account in multiple login time periods; A clustering module, used to perform a clustering operation on the login frequencies of the target account in the plurality of login time periods to obtain a target account group corresponding to the target account; The determination module determines the login status of the target account according to the login frequency of the target account in the multiple login time periods and the set frequency threshold of the target account group in the multiple login time periods.
8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute instructions to implement each step in the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the method according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps in the method according to any one of claims 1 to 6 are implemented.
