Method for expanding white list and electronic equipment
By obtaining and analyzing the associated data of whitelist users, calculating user closeness and expanding the whitelist, the problem of low whitelist accuracy in the existing technology is solved, and the efficiency of anti-fraud activities and user satisfaction are improved.
Patent Information
- Application Number
- CN202311714015.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2024-10-18
AI Technical Summary
When the existing technology expands the whitelist, the data dimensions and expansion rules are single, resulting in a low accuracy of the whitelist, the inability to effectively identify fraudulent users, and an increase in the workload and misjudgment rate of the verification personnel.
By obtaining the call data, trajectory similarity data and business relationship data of users in the target whitelist and their associated users, calculate the closeness between users, and add them to the whitelist when the closeness is greater than the threshold, adapting Select data from different dimensions for analysis.
It improves the accuracy of the whitelist, reduces the workload of verification personnel, improves the efficiency of anti-fraud activities, reduces user complaint rates, and enhances user satisfaction.
Smart Images

Figure CN118803789A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communications, and specifically relates to a method for extending a whitelist and an electronic device. Background Art
[0002] Telecom fraud can cause serious property losses to citizens. If fraudulent users cannot be accurately identified, the workload of verification personnel will increase, the best time to combat fraud will be delayed, and the complaint rate of normal users will increase. Therefore, it is crucial to establish an accurate and effective whitelist.
[0003] When the related technology expands the whitelist, the selected data dimensions and expansion rules are relatively simple, resulting in a low accuracy of the obtained whitelist. Summary of the invention
[0004] The embodiments of the present application provide a method for extending a whitelist and an electronic device, which can solve the problem of low accuracy of the whitelist obtained in the related art.
[0005] In a first aspect, a method for extending a whitelist is provided, comprising:
[0006] Get the target whitelist;
[0007] Determine a second user associated with the first user in the target whitelist, where the second user is a user outside the target whitelist;
[0008] Acquire target data between the first user and the second user, the target data comprising at least one of call data, trajectory similarity data, and business relationship data;
[0009] Determining a target closeness between the first user and the second user based on the target data;
[0010] When the target closeness is greater than a closeness threshold, the second user is added to the target whitelist.
[0011] In a second aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0012] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed, the steps of the method described in the first aspect are implemented.
[0013] At least one of the above technical solutions provided in the embodiments of the present application can achieve the following technical effects:
[0014] In an embodiment of the present application, a target whitelist is obtained; a second user who is associated with a first user in the target whitelist is determined, and the second user is a user outside the target whitelist; target data between the first user and the second user is obtained, and the target data includes at least one of call data, trajectory similarity data, and business relationship data; based on the target data, the target closeness between the first user and the second user is determined; if the target closeness is greater than a closeness threshold, the second user is added to the target whitelist. In this way, the first user in the whitelist can be expanded to determine a second user who is outside the whitelist but associated with the first user in the whitelist. Data of at least one dimension of call data, trajectory similarity data, and business relationship data can be selected for analysis to obtain the closeness between the first user and the second user. If the obtained closeness is greater than the closeness threshold, it can be determined that there is a certain connection between the second user and the first user, and the second user can be added to the whitelist. Data of different dimensions can be adaptively selected, which solves the problem of low accuracy of the whitelist obtained in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 This is a flow chart of a method for extending a whitelist provided in an embodiment of the present application;
[0017] Figure 2 This is a flow chart of a method for extending a whitelist provided in an embodiment of the present application;
[0018] Figure 3 This is a general concept diagram of a method for extending a whitelist provided in an embodiment of the present application;
[0019] Figure 4 This is a flow chart of a method for extending a whitelist provided in an embodiment of the present application;
[0020] Figure 5 This is a flow chart of a method for extending a whitelist provided in an embodiment of the present application;
[0021] Figure 6 This is a complete flow chart of a method for extending a whitelist provided in an embodiment of the present application;
[0022] Figure 7 It is a structural block diagram of a device for extending a whitelist provided in an embodiment of the present application;
[0023] Figure 8 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0026] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] The method for extending the whitelist provided in the embodiment of the present application is applied in anti-fraud scenarios, and in particular, can be applied in telecommunications anti-fraud scenarios. For example, it can be expanded based on the existing whitelist to more effectively assist telecommunications anti-fraud activities.
[0028] The method for extending the whitelist provided in the embodiment of the present application involves a whitelist mechanism, and the whitelist is used to store user information that is clearly not involved in fraud after analysis. In telecommunications anti-fraud operations, after obtaining numbers suspected of being involved in fraud, the numbers involved in fraud are further confirmed through the whitelist, and normal numbers in the whitelist can be eliminated. Through the whitelist mechanism, the accuracy of identifying numbers suspected of being involved in fraud can be improved, and user complaints caused by misjudgment of the anti-fraud model can be effectively avoided, thereby improving customer satisfaction.
[0029] The method for extending the whitelist provided in the embodiment of the present application can be executed by a target device, wherein the target device can be one electronic device or multiple electronic devices. That is to say, the method for extending the whitelist provided in the embodiment of the present application can be executed by one electronic device, wherein the electronic device can be, for example, a terminal device such as a desktop computer, a laptop computer, a mobile phone, a tablet, or a server, such as an independent physical server, a server cluster composed of multiple servers, and a cloud server capable of cloud computing. In the case where the method for extending the whitelist provided in the embodiment of the present application is executed by multiple electronic devices, these multiple electronic devices can form a service cluster, which cooperate with each other to complete each step.
[0030] The following is a detailed description of the method for extending the whitelist provided in the embodiment of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0031] See also Figure 1 , Figure 1 A flowchart of a method for extending a whitelist provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method comprises the following steps:
[0032] Step 110: Obtain a target whitelist;
[0033] In the embodiment of the present application, the whitelist is used to store user numbers that are clearly not involved in fraud after analysis, and the whitelist can be obtained from the user list submitted by the information security department. The target whitelist can be an initial whitelist obtained from the information security department, or a whitelist that has been expanded once or multiple times, and the target whitelist can store one or more user information.
[0034] Step 120: Determine a second user that is associated with the first user in the target whitelist, where the second user is a user outside the target whitelist;
[0035] In the embodiment of the present application, the association relationship may be a call relationship, a business relationship, a telephone contact relationship, etc. that can associate two users. For example, if the user authorizes to obtain relevant information, the call history of the first user in the whitelist can be queried, and the user with the call record can be the second user; or the contact list of the first user in the whitelist can be queried, and the user in the list can be the second user.
[0036] In the embodiment of the present application, there may be multiple first users in the whitelist, wherein each first user may correspond to one or more associated second users. After the second user is determined, the second user may be compared with the target whitelist, and users that are already in the target whitelist may be screened out from the second user to obtain the final second user.
[0037] Step 130: Acquire target data between the first user and the second user, the target data including at least one of call data, trajectory similarity data, and business relationship data;
[0038] In an embodiment of the present application, the target data may be at least one of call data, trajectory similarity data, and business relationship data. The call data is data related to call behavior between the first user and the second user, and may include at least one of call frequency, call interval, call time, call duration, caller ratio, etc. The trajectory similarity data may be data related to the user's location information, and may include at least one user location information such as work permanent location, residential permanent location, night permanent location, and weekend permanent location. The business relationship data may be data related to the business relationship between the first user and the second user, and the business relationship may include at least one relationship such as the same ID card relationship, the same account payment relationship, the family network relationship, the primary and secondary card relationship, the traffic sharing relationship, the shared terminal relationship, the shared network card relationship, and the broadband work order contact relationship.
[0039] In an embodiment of the present application, with user authorization or legal permission, relevant data can be obtained from a database, and dirty data cleaning and data preprocessing can be performed on the relevant data to obtain target data.
[0040] In one embodiment of the present application, obtaining target data between the first user and the second user in step 130 includes: obtaining target data between the first user and the second user within a first time period.
[0041] Step 140: Determine the target closeness between the first user and the second user based on the target data;
[0042] In the embodiment of the present application, the target closeness is used to describe the degree of association between the first user and the second user. The higher the target closeness, the deeper the association between the first user and the second user. At this time, if the first user is not a user involved in fraud, the second user is unlikely to be involved in fraud either.
[0043] In an embodiment of the present application, when there are multiple first users or multiple second users corresponding to the first user, there are multiple groups of user data for closeness determination. Multiple groups of user data can be divided according to certain rules, and different user subsets can be assigned to different computing nodes. At the same time, for a computing node, a multi-threaded framework can be used to assign tasks to multiple sub-computing nodes. At this time, in each sub-computing node, a concurrent computing method is adopted. After the calculation is completed, the target closeness calculated in each subset can be merged, and at the same time, the target intimacy in the subset can be sorted according to certain rules (for example, from large to small) by merge sorting, and then an ordered target intimacy list can be obtained.
[0044] In an embodiment of the present application, the target data may be at least one of call data, trajectory similarity data, and business relationship data. The target closeness between the first user and the second user may be determined based on the call data, for example, the target closeness may be the number of calls between the first user and the second user or the longest single call duration. The target closeness between the first user and the second user may be determined based on the trajectory similarity data, for example, the trajectory similarity between the first user and the second user may be obtained by analyzing the trajectory similarity data, and the target closeness may be the trajectory similarity between the first user and the second user. The target closeness between the first user and the second user may be determined based on the business relationship data, for example, the number of business relationships between the first user and the second user may be counted, and the target closeness may be the number of business relationships counted.
[0045] In an embodiment of the present application, the target closeness between the first user and the second user can be determined based on the call data and the trajectory similarity data. For example, after obtaining the number of calls and the trajectory similarity between the first user and the second user, the weight of the number of calls and the trajectory similarity can be set according to the actual situation to obtain the score between the first user and the second user, and the target closeness can be the final score. The target closeness between the first user and the second user can be determined based on the call data and the business relationship data. For example, after obtaining the number of calls and the number of existing business relationships between the first user and the second user, the weight of the number of calls and the number of existing business relationships can be set according to the actual situation to obtain the score between the first user and the second user, and the target closeness can be the final score. The target closeness between the first user and the second user can be determined based on the trajectory similarity data and the business relationship data. For example, after obtaining the trajectory similarity and the number of existing business relationships between the first user and the second user, the weight of the trajectory similarity and the number of existing business relationships can be set according to the actual situation to obtain the score between the first user and the second user, and the target closeness can be the final score.
[0046] In an embodiment of the present application, the target closeness between the first user and the second user can be determined based on the call data, trajectory similarity data, and business relationship data. For example, after obtaining the number of calls, trajectory similarity, and the number of existing business relationships, the weights of the number of calls, trajectory similarity, and the number of existing business relationships can be set according to actual conditions to obtain the score between the first user and the second user, and the target closeness can be the final score.
[0047] In one embodiment of the present application, the target closeness between the first user and the second user is determined based on the target data in step 140, including: dividing the target data into units of a second time period to obtain K portions of specified data corresponding to K sliding time windows, one sliding time window corresponds to a second time period, and the second time period is less than or equal to the first time period; K is a positive integer; for each sliding time window, based on the specified data in the sliding time window, the closeness between the first user and the second user is determined; through the K sliding time windows, K closenesses are obtained; based on the K closenesses, the target closeness between the first user and the second user in the first time period is obtained.
[0048] Step 150: When the target closeness is greater than a closeness threshold, add the second user to the target whitelist.
[0049] In an embodiment of the present application, the closeness threshold is used to describe the critical value at which the whitelist can be extended, and the second user can be added to the target whitelist when the target closeness is greater than the closeness threshold. For example, the closeness threshold can be set to 0.8. At this time, if the target closeness is greater than the closeness threshold, the second user can be added to the target whitelist. After the target whitelist is extended, the extended whitelist can be extended again until no new second user can be added.
[0050] In the embodiment of the present application, after the whitelist-based expansion, the whitelist can be updated and adjusted, and new users who meet the conditions can be added. At the same time, the mandatory conditions of the whitelist can be pre-set before the expansion, and users who no longer meet the mandatory conditions in the whitelist can be directly deleted. The speed of expanding the whitelist can also be increased by increasing the number of users in the whitelist before the expansion.
[0051] In an embodiment of the present application, a target whitelist is obtained; a second user who is associated with a first user in the target whitelist is determined, and the second user is a user outside the target whitelist; target data between the first user and the second user is obtained, and the target data includes at least one of call data, trajectory similarity data, and business relationship data; based on the target data, the target closeness between the first user and the second user is determined; if the target closeness is greater than a closeness threshold, the second user is added to the target whitelist. In this way, the first user in the whitelist can be expanded to determine a second user who is outside the whitelist but associated with the first user in the whitelist. Data of at least one dimension of call data, trajectory similarity data, and business relationship data can be selected for analysis to obtain the closeness between the first user and the second user. If the obtained closeness is greater than the closeness threshold, it can be determined that there is a certain connection between the second user and the first user, and the second user can be added to the whitelist. Data of different dimensions can be adaptively selected, which solves the problem of low accuracy of the whitelist obtained in the related art.
[0052] See also Figure 2 , Figure 2 A flowchart of a method for extending a whitelist provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method comprises the following steps:
[0053] Step 210: Obtain a target whitelist;
[0054] In one embodiment of the present application, after obtaining the target whitelist in step 210, the method further includes: determining a decay coefficient of the target whitelist according to the fermentation times of the target whitelist, wherein the decay coefficient decreases as the fermentation times increase.
[0055] In the embodiment of the present application, a fermentation algorithm is used to expand the whitelist. The fermentation algorithm is an expansion strategy based on social networks. Figure 3 , Figure 3 This is a general concept diagram of a method for extending a whitelist provided in an embodiment of the present application. Through multiple fermentations, more potential users are gradually introduced into the whitelist. It should be noted that Figure 3 Only three fermentations are shown in the example, and the number of fermentations can be determined according to the actual situation. The decay coefficient is used to ensure the accuracy of the users in the whitelist. As the number of fermentations increases, there are more and more added users in the whitelist. At this time, in order to ensure the quality of the whitelist, the target tightness requirements for the added users can be higher, so the corresponding decay coefficient will also become smaller and smaller. The decay coefficient of this fermentation can be determined based on the number of fermentations. The determination of the decay coefficient can refer to the following formula:
[0056]
[0057] Where d is the decay coefficient and i is the number of fermentations. Through the above formula, the corresponding decay coefficient can be obtained by the number of fermentations. The following table shows the decay coefficients corresponding to fermentation times of 1 to 5.
[0058]
[0059] In the embodiment of the present application, the decay coefficient of the target whitelist is determined according to the fermentation times of the target whitelist, wherein the decay coefficient decreases as the fermentation times increase. Thus, during the fermentation process, by introducing the decay coefficient to indicate the decay of the closeness between users, the accuracy of the users in the whitelist after multiple fermentations can be guaranteed, thereby controlling the quality of the whitelist; at the same time, by limiting the fermentation times, the number of whitelists can also be controlled to a certain extent.
[0060] Step 220: Determine a second user who is associated with the first user in the target whitelist, where the second user is a user outside the target whitelist;
[0061] Step 230: Acquire target data between the first user and the second user in a first time period, the target data including at least one of call data, trajectory similarity data, and business relationship data;
[0062] In the embodiment of the present application, the first time period is a time period during which the second user is expected to be observed. The first time period may be a historical time period, for example, if data of the second user in the past six months is expected to be observed, the first time period may be a historical six months.
[0063] Step 240: Divide the target data into units of the second time period to obtain K portions of designated data corresponding to K sliding time windows, where one sliding time window corresponds to one second time period, and the second time period is less than or equal to the first time period; K is a positive integer;
[0064] In an embodiment of the present application, considering that the amount of data between the first user and the second user in the first time period is large, in order to avoid resource disasters caused by one-time calculations, the target data can be divided according to time periods and analyzed one by one. The second time period can be a time period for division, and the second time period is less than or equal to the first time period. For example, the first time period can be six months in history, in which case the second time period can be selected as one week, and the target data can be divided to obtain 24 designated data corresponding to 24 sliding time windows. One sliding time window corresponds to one second time period, the second time period is one week, and the sliding time window can also be one week.
[0065] Step 250: for each sliding time window, determining the closeness between the first user and the second user based on the specified data in the sliding time window;
[0066] In the embodiment of the present application, the closeness between the first user and the second user during each sliding time window, such as the data of each week, can be determined.
[0067] In one embodiment of the present application, the step 250 of determining the closeness between the first user and the second user based on the specified data in the sliding window includes: determining the closeness between the first user and the second user in the sliding time window based on the specified data in the sliding time window and the decay coefficient.
[0068] In one embodiment of the present application, determining the closeness between the first user and the second user within the sliding time window based on the specified data within the sliding time window and the decay coefficient may include: determining a normalized index of the sliding time window based on the specified data within the sliding time window; determining the closeness between the first user and the second user within the sliding time window based on the normalized index of the sliding time window and the decay coefficient.
[0069] In this embodiment of the present application, the closeness between the first user and the second user in the sliding time window can be determined by the following formula:
[0070] f=d×log2(N+1)
[0071] Among them, f is the tightness within the sliding time window, N is the normalized index, and d is the decay coefficient.
[0072] That is, in the embodiment of the present application, after analyzing the specified data within the sliding time window and obtaining the data related to the closeness between the first user and the second user, the decay coefficient may be considered to obtain the final closeness between the first user and the second user, as shown in the following formula:
[0073] f = df a ;
[0074] f a =log2(N+1)
[0075] Among them, d is the decay coefficient, f is the final compactness, and f a is the compactness result based on the specified data.
[0076] Step 260: Obtain K compactnesses through the K sliding time windows;
[0077] In the embodiment of the present application, each of the K sliding time windows obtained by division corresponds to a density, and K density can be finally obtained.
[0078] Step 270: Obtaining a target closeness between the first user and the second user in the first time period based on the K closenesses;
[0079] In the embodiment of the present application, K closenesses may be summed, and the target closeness between the first user and the second user in the first time period may be the sum of the K closenesses.
[0080] In one embodiment of the present application, K is greater than 1, and different sliding time windows in the K sliding time windows correspond to different weights; obtaining the target closeness between the first user and the second user in the first time period based on the K closenesses in step 270 includes: obtaining the target closeness between the first user and the second user in the first time period by the following formula:
[0081]
[0082] Among them, f represents the target tightness, w irepresents the weight of the i-th sliding time window, f i Indicates the density corresponding to the i-th sliding time window.
[0083] In the embodiment of the present application, in order to specifically analyze whether the association relationship between the first user and the second user is a long-term behavior or a short-term behavior, different weights can be set for different sliding time windows. The weight of a time period that is relatively long from the present can be lower, and the weight of a time period that is relatively close to the present can be higher. Specifically, each sliding time window can be numbered according to the length of time from the observation point (such as now), and the sliding time windows can be sorted first according to the length of time from the observation point. From the sliding time window closest to the present to the sliding time window farthest from the present, they can be numbered 1 to K in sequence. The specific setting of the weight can refer to the following formula:
[0084]
[0085] Among them, i is the number of the sliding time window, w i is the weight of the sliding time window numbered i, and a and b are parameters that can be specifically set.
[0086] In the embodiment of the present application, training can be performed through sample data, and the values of a and b can be further reasonably adjusted and determined. During the training process, the initial value of a can be selected as 1, and the initial value of b can be selected as 4. After determining the values of parameters a and b, the weights can be determined according to the above formula. For example, if a is determined to be 2 and b is determined to be 3, the weight of the sliding window numbered 1 is 0.2, and the weight of the sliding window numbered 2 is 1 / 7.
[0087] In the embodiment of the present application, by setting weights for different sliding windows, the closeness between users can be considered in stages, and the relationship between users can be analyzed to determine whether it is a long-term behavior or a short-term behavior, so that the closeness between users can be evaluated more objectively.
[0088] Step 280: When the target closeness is greater than a closeness threshold, add the second user to the target whitelist;
[0089] In the embodiment of the present application, if there is no second user who meets the conditions and the target closeness is greater than the closeness threshold, it means that no new user will be added to the target whitelist during this fermentation process, and the whitelist expansion through the fermentation algorithm is also terminated. You can choose to manually add users who are confirmed not to be involved in fraud to the whitelist, and then continue to expand the whitelist through the fermentation algorithm.
[0090] In the embodiment of the present application, the target data is divided into units of the second time period to obtain K pieces of designated data corresponding to K sliding time windows, one sliding time window corresponds to one second time period, and the second time period is less than or equal to the first time period. In this way, the use of sliding windows can avoid resource disasters caused by one-time calculations when the amount of data is large.
[0091] See also Figure 4 , Figure 4 A flowchart of a method for extending a whitelist provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method comprises the following steps:
[0092] Step 410: Obtain a target whitelist;
[0093] Step 415: determining a second user associated with the first user in the target whitelist, the second user being a user outside the target whitelist; the second user having a call relationship or a business relationship with the first user;
[0094] Step 420: Acquire target data between the first user and the second user in a first time period, the target data including at least one of call data, trajectory similarity data, and business relationship data;
[0095] Step 425: Divide the target data into units of the second time period to obtain K designated data corresponding to K sliding time windows, where one sliding time window corresponds to one second time period, and the second time period is less than or equal to the first time period; K is a positive integer; the designated data includes first sub-data and second sub-data;
[0096] Step 430: For each sliding time window, determine a first index and a first weight of the first sub-data within the sliding time window; the first sub-data includes call data or business relationship data.
[0097] In an embodiment of the present application, the first index is data related to closeness obtained based on the analysis of the first sub-data, and the first weight is used to describe the importance of the first index. In the case where the first sub-data includes call data, the first index can be the number of calls between the first user and the second user within the sliding time window. In the case where the first sub-data includes business relationship data, the number of business relationships between the first user and the second user within the sliding time window can be counted, and the first index can be the number of existing business relationships.
[0098] Step 435: determining a second index and a second weight of the second sub-data within the sliding time window; the second sub-data includes trajectory similarity data;
[0099] In an embodiment of the present application, the second index is data related to closeness obtained based on the analysis of the second sub-data, and the second weight is used to describe the importance of the second index. The trajectory similarity data is the user's location information. Since in actual situations, there are multiple user location information and the obtained second sub-data is difficult to quantify, the isolation distribution kernel can be used to process the second sub-data. Based on the kernel mean embeddings (KME) theory, the distribution kernel has the following definition:
[0100]
[0101] Among them, K G (P X ,P Y ) is the distribution kernel, which is used to measure the two distributions P x and P y is the similarity between them, X and Y are two groups of samples generated from two distributions respectively, k(x,y) is the isolation kernel, which is used to measure the similarity between data points x and y, such as Gaussian kernel.
[0102] In the embodiment of the present application, after obtaining the location information of the user (including the first user and the second user), the user's trajectory data set can be obtained. The isolation distribution kernel k(x,y) can be used to extract a finite-dimensional feature map from the dataset Right now: At this time, the formula of the distribution kernel can be transformed into:
[0103]
[0104] Among them, K l (P X ,P Y |D) is used to measure the trajectory similarity between two users, φ(P X |D),φ(P Y |D) maps the trajectory data of two users to two points in the Hilbert space, X and Y are the trajectory data samples of the two users, P X and P Y Generate distributions of X and Y respectively.
[0105] Through the mapping in the above formula The location information of the first user and the second user can be mapped to two points in the Hilbert space respectively, where a point φ(P X |D) is as follows:
[0106]
[0107] Among them, φ(P X |D) is the point in Hilbert space mapped to the user's trajectory data corresponding to the X sample, For finite-dimensional mapping, the trajectory similarity between the first user and the second user can be obtained by calculating the scalar product of two points in the Hilbert space.
[0108] In the embodiment of the present application, the second index may be the calculated trajectory similarity, and the weight of the second index is determined according to the importance of trajectory similarity in actual situations.
[0109] Step 440: Determine a normalized index of the sliding time window based on the first index and the first weight of the first sub-data and the second index and the second weight of the second sub-data;
[0110] Exemplarily, in one embodiment of the present application, determining the normalized index of the sliding time window based on the first index, the first weight of the first sub-data, the second index and the second weight of the second sub-data in step 340 includes: determining the normalized index of the sliding time window by the following formula:
[0111] N = M1 × E1 + M2 × E2;
[0112] Wherein, N is the normalized index of the sliding time window, M1 is the first index of the first sub-data, E1 is the first weight of the first sub-data, M2 is the second index of the second sub-data, and E2 is the second weight of the second sub-data.
[0113] In the embodiment of the present application, when determining the weights of the first sub-data and the second sub-data, the sum of the first weight and the second weight may be set to 1. The normalized index of the sliding time window may be obtained by the above formula, for example, if the first index is 2, the first weight is 0.4, the second index is 1.5, and the second weight is 0.6, the corresponding normalized index may be 1.7.
[0114] In the embodiment of the present application, the normalized index can be calculated according to an objective formula, the closeness of the connection between users can be quantified based on the importance of the indicator, and the accuracy of the result can be enhanced.
[0115] Exemplarily, in one embodiment of the present application, the first sub-data includes call data; the call data includes first call data, second call data, and third call data; the first call data is call data during the working period, the second call data is call data during the rest period, and the third call data is call data during the night period. The first index includes a first sub-index, a second sub-index, and a third sub-index; the first weight includes a first sub-weight, a second sub-weight, and a third sub-weight; the step 440 of determining the normalized index of the sliding time window based on the first index, the first weight of the first sub-data, the second index, and the second weight of the second sub-data includes:
[0116] The normalized index of the sliding time window is determined by the following formula:
[0117] N=N1×W1+N2×W2+N3×W3+N4×W4;
[0118] Among them, N is the normalized index of the sliding time window; N1 is the first sub-index of the first call data, W1 is the first sub-weight of the first call data; N2 is the second sub-index of the second call data, W2 is the second sub-weight of the second call data; N3 is the third sub-index of the third call data, W3 is the third sub-weight of the third call data; N4 is the fourth sub-index of the second sub-data, W4 is the fourth sub-weight of the second sub-data.
[0119] In an embodiment of the present application, the first sub-data may be call data, and the call data may be subdivided according to the time period type to obtain call data for the working period, the rest period, and the night period. The first sub-index may be the number of calls during the working period within the sliding time window, the second sub-index may be the number of calls during the rest period within the sliding time window, and the third sub-index may be the number of calls during the night period within the sliding time window. The second sub-data includes user trajectory data, and the fourth sub-index may be trajectory similarity. After determining the first sub-index, the second sub-index, the third sub-index, and the fourth sub-index, the weights of each index may be specifically set according to the importance of calls during different time periods and the importance of trajectory similarity in actual situations. For example, the first sub-weight may be set to 1 / 2, the second sub-weight to 4 / 5, the third sub-weight to 1, and the fourth sub-weight to 2; at this time, if the first sub-index is 0, the second sub-index is 1, the third sub-index is 1, and the fourth sub-index is 0.5, the normalized index may be 14 / 5. The sum of each weight may be set to 1, and the importance of each index may be obtained more intuitively from the normalized index.
[0120] In the embodiment of the present application, the call data is further subdivided according to the time period, into working time period, rest time period and night time period. Considering that the intimacy represented by calls in different time periods may also be different, the importance of calls in different time periods can be described by determining specific weights.
[0121] Step 445: Determine the closeness between the first user and the second user within the sliding time window based on the normalized index of the sliding time window;
[0122] In the embodiment of the present application, after the normalized index of the sliding time window is obtained, the compactness may be the normalized index of the sliding time window, or may be the normalized index after processing. Specifically, the calculation of the compactness may refer to the following formula:
[0123] f = log2(N+1);
[0124] Wherein, N is the normalized index of the sliding time window, and f is the compactness in the sliding time window. For example, when the normalized index of the sliding time window is 1, the compactness in the sliding time window is 1.
[0125] In one embodiment of the present application, taking into account the decay coefficient, the closeness between the first user and the second user within the sliding time window may be determined based on the normalized index and the decay coefficient of the sliding time window.
[0126] Step 450: Obtain K compactnesses through the K sliding time windows;
[0127] Step 455: based on the K closenesses, obtaining a target closeness between the first user and the second user in the first time period;
[0128] Step 460: When the target closeness is greater than a closeness threshold, add the second user to the target whitelist.
[0129] In the embodiment of the present application, the designated data includes the first sub-data and the second sub-data, and the first index and the first weight can be determined for the first sub-data, and the second index and the second weight can be determined for the second sub-data, wherein the first sub-data includes call data or business relationship data, and the second sub-data includes trajectory similarity data. In this way, the importance of the first sub-data and the second sub-data can be described more specifically and reflected in the final target closeness.
[0130] See also Figure 5 , Figure 5 A flowchart of a method for extending a whitelist provided in an embodiment of the present application is shown in FIG. Figure 5As shown, the method comprises the following steps:
[0131] Step 510: Obtain a target whitelist;
[0132] Step 515: Determine a second user associated with the first user in the target whitelist, where the second user is a user outside the target whitelist; the second user has a call relationship or a business relationship with the first user;
[0133] Step 520: Acquire target data between the first user and the second user in a first time period, the target data including at least one of call data, trajectory similarity data, and business relationship data;
[0134] Step 525: Divide the target data into units of the second time period to obtain K designated data corresponding to K sliding time windows, where one sliding time window corresponds to one second time period, and the second time period is less than or equal to the first time period; K is a positive integer; the designated data includes first sub-data, second sub-data and third sub-data;
[0135] In an embodiment of the present application, the first sub-data includes call data, the second sub-data includes trajectory similarity data, and the third sub-data includes business relationship data; wherein the call data includes first call data, second call data and third call data; the first call data is call data during the working period, the second call data is call data during the rest period, and the third call data is call data during the night period.
[0136] Step 530: for each sliding time window, determining a first index and a first weight of the first call data, a second index and a second weight of the second call data, and a third index and a third weight of the third call data within the sliding time window;
[0137] In an embodiment of the present application, the first index may be the number of calls during working hours, the second index may be the number of calls during rest hours, and the third index may be the number of calls during night time. The first weight, second weight, and third weight may be set according to the importance of the first index, the second index, and the third index, respectively.
[0138] Step 535: determining a fourth index and a fourth weight of the second sub-data within the sliding time window; the second sub-data includes trajectory similarity data;
[0139] In the embodiment of the present application, the fourth index may be the trajectory similarity between the first user and the second user, and a fourth weight may be set according to the importance of the trajectory similarity.
[0140] Step 540: Determine a fifth index and a fifth weight of the third sub-data within the sliding time window; the third sub-data includes business relationship data;
[0141] In the embodiment of the present application, the business relationship may include at least one of the following relationships: same ID card relationship, same account payment relationship, family network relationship, primary and secondary card relationship, traffic sharing relationship, shared terminal relationship, shared gateway relationship, and broadband work order contact relationship. The fifth index may be the number of business relationships between the first user and the second user, and a fifth weight may be set according to the importance of the business relationship.
[0142] Step 545: Determine the normalized index of the sliding time window through a formula;
[0143] In the embodiment of the present application, after obtaining each index, the normalized index can be determined by the following formula based on the weight of each index:
[0144] N=N1×W1+N2×W2+N3×W3+N4×W4+N5×W5
[0145] Wherein, N is the normalized index of the sliding time window; N1 is the first index of the first call data, W1 is the first weight of the first call data; N2 is the second index of the second call data, W2 is the second weight of the second call data; N3 is the third index of the third call data, W3 is the third weight of the third call data; N4 is the fourth index of the second sub-data, W4 is the fourth weight of the second sub-data; N5 is the fifth index of the third sub-data, W5 is the fifth weight of the third sub-data. For example, the first index can be 0, the second index can be 0, the third index can be 1, the fourth index can be 0.8, and the fifth index can be 3; at the same time, the first weight can be 1 / 2, the second weight can be 1 / 3, the third weight can be 1, the fourth weight can be 1, and the fifth weight can be 4 / 5; at this time, the normalized index of the sliding time window can be calculated to be 4.2.
[0146] Step 550: Determine the closeness between the first user and the second user within the sliding time window based on the normalized index of the sliding time window;
[0147] Step 555: Obtain K compactnesses through the K sliding time windows;
[0148] Step 560: Based on the K closenesses, obtain a target closeness between the first user and the second user in the first time period;
[0149] Step 565: When the target closeness is greater than a closeness threshold, add the second user to the target whitelist.
[0150] In the embodiment of the present application, instead of relying solely on call data between users, target closeness can be calculated by combining shared business relationships, trajectory similarity, and call period characteristics between users. The introduction of shared business relationships can make full use of the business relationship network. Trajectory similarity can measure the similarity of user behaviors from aspects such as user location information, and can calculate target closeness between users based on comprehensive social circle information.
[0151] See also Figure 6 , Figure 6 A complete flow chart of a method for extending a whitelist provided in an embodiment of the present application. Figure 6 As shown, a method for extending a whitelist provided in an embodiment of the present application includes the following steps:
[0152] Step 610: Obtain a target whitelist;
[0153] Step 615: determining a decay coefficient of the target whitelist according to the fermentation times of the target whitelist, wherein the decay coefficient decreases as the fermentation times increase;
[0154] Step 620: Determine a second user associated with the first user in the target whitelist, where the second user is a user outside the target whitelist; the second user has a call relationship or a business relationship with the first user;
[0155] Step 625: Acquire target data between the first user and the second user in a first time period, the target data including call data, trajectory similarity data, and business relationship data;
[0156] Step 630: Divide the target data into units of the second time period to obtain K portions of designated data corresponding to K sliding time windows, where one sliding time window corresponds to one second time period, and the second time period is less than or equal to the first time period; K is a positive integer;
[0157] In the embodiment of the present application, K>1, and different sliding time windows among the K sliding time windows correspond to different weights.
[0158] Step 635: for each sliding time window, determining a first index and a first weight of the first call data, a second index and a second weight of the second call data, and a third index and a third weight of the third call data within the sliding time window;
[0159] Step 640: Determine a fourth index and a fourth weight of the second sub-data within the sliding time window; wherein the second sub-data includes trajectory similarity data;
[0160] Step 645: Determine a fifth index and a fifth weight of the third sub-data within the sliding time window; wherein the third sub-data includes business relationship data;
[0161] Step 650: Determine the normalized index of the sliding time window by a specific formula;
[0162] In the embodiment of the present application, the normalized index of the i-th sliding time window may be determined by the following formula:
[0163] N(i)=N1(i)×W1+N2(i)×W2+N3(i)×W3+N4(i)×W4+N5(i)×W5;
[0164] Among them, for the i-th sliding time window, N(i) is the normalized index of the sliding time window; N1(i) is the first index of the first call data, and W1 is the first weight of the first call data; N2(i) is the second index of the second call data, and W2 is the second weight of the second call data; N3(i) is the third index of the third call data, and W3 is the third weight of the third call data; N4(i) is the fourth index of the second sub-data, and W4 is the fourth weight of the second sub-data; N5(i) is the fifth index of the third sub-data, and W5 is the fifth weight of the third sub-data.
[0165] Step 655: Determine the closeness between the first user and the second user within the sliding time window based on the normalized index and decay coefficient of the sliding time window;
[0166] Step 660: Obtain K compactnesses through the K sliding time windows;
[0167] Step 665: Obtaining the target closeness between the first user and the second user in the first time period through a specific formula;
[0168] In this embodiment of the present application, the target closeness between the first user and the second user in the first time period can be obtained by the following formula:
[0169]
[0170] Among them, f represents the target tightness, w i represents the weight of the i-th sliding time window, f i represents the compactness corresponding to the i-th sliding time window, d represents the decay coefficient, N(i) is the normalized index of the i-th sliding time window, and k is the number of sliding time windows obtained by division.
[0171] Step 670: When the target closeness is greater than a closeness threshold, add the second user to the target whitelist.
[0172] In an embodiment of the present application, a target whitelist is obtained; a second user who is associated with a first user in the target whitelist is determined, and the second user is a user outside the target whitelist; target data between the first user and the second user is obtained, and the target data includes at least one of call data, trajectory similarity data, and business relationship data; based on the target data, the target closeness between the first user and the second user is determined; if the target closeness is greater than a closeness threshold, the second user is added to the target whitelist. In this way, the first user in the whitelist can be expanded to determine a second user who is outside the whitelist but associated with the first user in the whitelist. Data of at least one dimension of call data, trajectory similarity data, and business relationship data can be selected for analysis to obtain the closeness between the first user and the second user. If the obtained closeness is greater than the closeness threshold, it can be determined that there is a certain connection between the second user and the first user, and the second user can be added to the whitelist. Data of different dimensions can be adaptively selected, which solves the problem of low accuracy of the whitelist obtained in the related art.
[0173] It is important to understand that Figures 1 to 6 The explanations of the same or corresponding steps in the above may refer to each other. For example, Figure 1 The explanation of step 110 and step 120 in Figure 2 Step 210 and step 220 in .
[0174] At the same time, it should be understood that a method for extending the whitelist provided in the embodiment of the present application can have the following beneficial effects: First, it can assist anti-fraud activities to be more efficient and reliable, reduce the workload of front-line verification personnel, improve verification efficiency, improve the accuracy of existing anti-fraud models, and effectively avoid problems such as wrong shutdown and wrong shutdown for users, and user complaints due to misjudgment of anti-fraud models, thereby improving user satisfaction. Second, the method provided by the present application uses a distribution kernel to represent user trajectories, which can be mapped to the Hilbert space for dot product calculations. Without the need for model training steps such as deep learning, the trajectory similarity between users can be quickly and accurately calculated, and the calculation of trajectory similarity is also very important for the judgment of user behavior patterns, and can get rid of the dependence on call data. Third, the method provided by the present application can expand the whitelist list according to the target closeness between users, and can more accurately determine the strength of the association relationship with other users. At the same time, the user's social circle network can be continuously improved by updating the user's social circle information and whitelist list.
[0175] Figure 7 is a structural block diagram of a device for extending a whitelist provided in an embodiment of the present application. Figure 7 The device 700 for extending the whitelist provided in the embodiment of the present application includes:
[0176] The acquisition module 710 is used to acquire a target whitelist; determine a second user associated with a first user in the target whitelist, where the second user is a user outside the target whitelist; acquire target data between the first user and the second user, where the target data includes at least one of call data, trajectory similarity data, and business relationship data;
[0177] A determination module 720, configured to determine a target closeness between the first user and the second user based on the target data;
[0178] The adding module 730 is configured to add the second user to the target whitelist when the target closeness is greater than a closeness threshold.
[0179] In the embodiment of the present application, the acquisition module is used to obtain a target whitelist; determine a second user who is associated with a first user in the target whitelist, and the second user is a user outside the target whitelist; obtain the target data between the first user and the second user, and the target data includes at least one of call data, trajectory similarity data and business relationship data; the determination module is used to determine the target closeness between the first user and the second user based on the target data; the adding module is used to add the second user to the target whitelist when the target closeness is greater than the closeness threshold. In this way, it can be expanded based on the first user in the whitelist to determine the second user who is outside the whitelist but associated with the first user in the whitelist, and the data of at least one dimension of the call data, trajectory similarity data and business relationship data can be selected for analysis to obtain the closeness between the first user and the second user. If the obtained closeness is greater than the closeness threshold, it can be determined that there is a certain connection between the second user and the first user, and the second user can be added to the whitelist. Data of different dimensions can be adaptively selected, which solves the problem of low accuracy of the whitelist obtained in the related art.
[0180] In one embodiment of the present application, in the process of acquiring the target data between the first user and the second user, the acquisition module 710 is specifically used to: acquire the target data between the first user and the second user in a first time period. In the process of determining the closeness between the first user and the second user based on the target data, the determination module 720 is specifically used to: divide the target data into units of the second time period to obtain K portions of designated data corresponding to K sliding time windows, one sliding time window corresponds to a second time period, and the second time period is less than or equal to the first time period; K is a positive integer; for each sliding time window, based on the designated data in the sliding time window, determine the closeness between the first user and the second user; through the K sliding time windows, obtain K closenesses; based on the K closenesses, obtain the target closeness between the first user and the second user in the first time period.
[0181] In one embodiment of the present application, K>1, different sliding time windows in the K sliding time windows correspond to different weights, and in the process of obtaining the target closeness between the first user and the second user in the first time period based on the K closenesses, the determination module 720 is specifically used to: obtain the target closeness between the first user and the second user in the first time period by the following formula:
[0182]
[0183] Among them, f represents the target tightness, w i represents the weight of the i-th sliding time window, f i Indicates the density corresponding to the i-th sliding time window.
[0184] In one embodiment of the present application, after acquiring the target whitelist, the acquisition module 710 is further used to: determine the decay coefficient of the target whitelist according to the fermentation times of the target whitelist, wherein the decay coefficient decreases as the fermentation times increase. In the process of determining the closeness between the first user and the second user based on the specified data in the sliding time window, the determination module 720 is specifically used to determine the closeness between the first user and the second user in the sliding time window based on the specified data in the sliding time window and the decay coefficient.
[0185] In one embodiment of the present application, the second user has a call relationship or a business relationship with the first user; the designated data includes first sub-data and second sub-data; the first sub-data includes call data or business relationship data, and the second sub-data includes trajectory similarity data. In the process of determining the closeness between the first user and the second user based on the designated data in the sliding time window, the determination module 720 is specifically used to: determine the first index and the first weight of the first sub-data in the sliding time window; determine the second index and the second weight of the second sub-data in the sliding time window; determine the normalized index of the sliding time window based on the first index, the first weight of the first sub-data, the second index and the second weight of the second sub-data; determine the closeness between the first user and the second user in the sliding time window based on the normalized index of the sliding time window.
[0186] In one embodiment of the present application, in the process of determining the normalized index of the sliding time window based on the first index, the first weight, the second index and the second weight of the first sub-data, the determination module 720 is specifically used to: determine the normalized index of the sliding time window by the following formula: N=M1×E1+M2×E2; wherein N is the normalized index of the sliding time window, M1 is the first index of the first sub-data, E1 is the first weight of the first sub-data, M2 is the second index of the second sub-data, and E2 is the second weight of the second sub-data.
[0187] In one embodiment of the present application, the first sub-data includes call data; the call data includes first call data, second call data and third call data; the first call data is call data during the working period, the second call data is call data during the rest period, and the third call data is call data during the night period; the first index includes a first sub-index, a second sub-index and a third sub-index; the first weight includes a first sub-weight, a second sub-weight and a third sub-weight. In the process of determining the normalized index of the sliding time window based on the first index, the first weight, the second index and the second weight of the second sub-data, the determination module 720 is specifically used to: determine the normalized index of the sliding time window by the following formula: N=N1×W1+N2×W2+N3×W3+N4×W4; wherein N is the normalized index of the sliding time window; N1 is the first sub-index of the first call data, and W1 is the first sub-weight of the first call data; N2 is the second sub-index of the second call data, and W2 is the second sub-weight of the second call data; N3 is the third sub-index of the third call data, and W3 is the third sub-weight of the third call data; N4 is the fourth sub-index of the second sub-data, and W4 is the fourth sub-weight of the second sub-data.
[0188] In one embodiment of the present application, the second user has a call relationship or a business relationship with the first user; the designated data includes first sub-data, second sub-data and third sub-data; the first sub-data includes call data, the second sub-data includes trajectory similarity data, and the third sub-data includes business relationship data; wherein the call data includes first call data, second call data and third call data; the first call data is call data during the working period, the second call data is call data during the rest period, and the third call data is call data during the night period. In the process of determining the closeness between the first user and the second user based on the designated data in the sliding time window, the determination module 720 is specifically used to: determine the first index and first weight of the first call data, the second index and second weight of the second call data, and the third index and third weight of the third call data in the sliding time window; determine the fourth index and fourth weight of the second sub-data in the sliding time window; determine the fifth index and fifth weight of the third sub-data in the sliding time window; determine the normalized index of the sliding time window by the following formula: N = N1×W1+N2×W2+N3×W3+N4×W4+ N5×W5; based on the normalized index of the sliding time window, determine the closeness between the first user and the second user within the sliding time window; wherein, N is the normalized index of the sliding time window; N1 is the first index of the first call data, and W1 is the first weight of the first call data; N2 is the second index of the second call data, and W2 is the second weight of the second call data; N3 is the third index of the third call data, and W3 is the third weight of the third call data; N4 is the fourth index of the second sub-data, and W4 is the fourth weight of the second sub-data; N5 is the fifth index of the third sub-data, and W5 is the fifth weight of the third sub-data.
[0189] like Figure 8As shown, an embodiment of the present application also provides an electronic device 800, which can be various types of computers, etc. The electronic device 800 includes: a processor 810 and a memory 820, and the memory 820 stores a program or instruction, and the program or instruction is executed by the processor 810 to implement the steps of any of the methods described above. For example, when the program is executed by the processor 810, the following process is implemented: obtaining a target whitelist; determining a second user who has an association relationship with the first user in the target whitelist, and the second user is a user outside the target whitelist; obtaining target data between the first user and the second user, and the target data includes at least one of call data, trajectory similarity data and business relationship data; based on the target data, determining the target closeness between the first user and the second user; when the target closeness is greater than the closeness threshold, adding the second user to the target whitelist. In this way, the whitelist can be expanded based on the first user in the whitelist to determine the second user who is outside the whitelist but is associated with the first user in the whitelist. Data of at least one dimension of call data, trajectory similarity data and business relationship data can be selected for analysis to obtain the closeness between the first user and the second user. If the obtained closeness is greater than the closeness threshold, it can be determined that there is a certain connection between the second user and the first user, and the second user can be added to the whitelist. Data of different dimensions can be adaptively selected, which solves the problem of low accuracy of the whitelist obtained in the related technology.
[0190] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of each embodiment of the method for extending the whitelist are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0191] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROK, a random access memory RAK, a magnetic disk or an optical disk.
[0192] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0193] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0194] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes 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 one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0195] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROK / RAK, a disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0196] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for extending a whitelist, characterized in that: include: Get the target whitelist; Determine a second user associated with the first user in the target whitelist, where the second user is a user outside the target whitelist; Acquire target data between the first user and the second user, the target data comprising at least one of call data, trajectory similarity data, and business relationship data; Determining, based on the target data, a target closeness between the first user and the second user; When the target closeness is greater than a closeness threshold, the second user is added to the target whitelist.
2. The method according to claim 1, characterized in that The acquiring target data between the first user and the second user includes: Acquire target data between the first user and the second user within a first time period; The determining, based on the target data, the closeness between the first user and the second user includes: Dividing the target data into units of a second time period to obtain K pieces of designated data corresponding to K sliding time windows, where one sliding time window corresponds to one second time period, and the second time period is less than or equal to the first time period; K is a positive integer; For each sliding time window, determining the closeness between the first user and the second user based on the specified data in the sliding time window; Obtain K compactnesses through the K sliding time windows; Based on the K closenesses, a target closeness between the first user and the second user in the first time period is obtained.
3. The method according to claim 2, characterized in that K>1, different sliding time windows in the K sliding time windows correspond to different weights; obtaining the target closeness between the first user and the second user in the first time period based on the K closenesses includes: The target closeness between the first user and the second user in the first time period is obtained by the following formula: Among them, f represents the target tightness, w i represents the weight of the i-th sliding time window, f i Indicates the density corresponding to the i-th sliding time window.
4. The method according to claim 2, characterized in that: After obtaining the target whitelist, the method further includes: Determining a decay coefficient of the target whitelist according to the fermentation times of the target whitelist, wherein the decay coefficient decreases as the fermentation times increase; The determining, based on the specified data in the sliding time window, the closeness between the first user and the second user includes: Based on the specified data in the sliding time window and the decay coefficient, the closeness between the first user and the second user in the sliding time window is determined.
5. The method according to claim 2, characterized in that: The second user has a call relationship or a business relationship with the first user; the specified data includes first sub-data and second sub-data; the first sub-data includes call data or business relationship data, and the second sub-data includes trajectory similarity data; The determining, based on the specified data in the sliding time window, the closeness between the first user and the second user includes: Determine a first index and a first weight of the first sub-data within the sliding time window; Determine a second index and a second weight of the second sub-data within the sliding time window; Determine a normalized index of the sliding time window based on a first index and a first weight of the first sub-data, a second index and a second weight of the second sub-data; Based on the normalized index of the sliding time window, the closeness between the first user and the second user in the sliding time window is determined.
6. The method according to claim 5, characterized in that The determining the normalized index of the sliding time window based on the first index and the first weight of the first sub-data and the second index and the second weight of the second sub-data includes: The normalized index of the sliding time window is determined by the following formula: N = M1 × E1 + M2 × E2; Wherein, N is the normalized index of the sliding time window, M1 is the first index of the first sub-data, E1 is the first weight of the first sub-data, M2 is the second index of the second sub-data, and E2 is the second weight of the second sub-data.
7. The method according to claim 5, characterized in that The first sub-data includes call data; the call data includes first call data, second call data and third call data; the first call data is call data during the working period, the second call data is call data during the rest period, and the third call data is call data during the night period; the first index includes a first sub-index, a second sub-index and a third sub-index; the first weight includes a first sub-weight, a second sub-weight and a third sub-weight; The determining the normalized index of the sliding time window based on the first index and the first weight of the first sub-data and the second index and the second weight of the second sub-data includes: The normalized index of the sliding time window is determined by the following formula: N=N1×W1+N2×W2+N3×W3+N4×W4; Among them, N is the normalized index of the sliding time window; N1 is the first sub-index of the first call data, W1 is the first sub-weight of the first call data; N2 is the second sub-index of the second call data, W2 is the second sub-weight of the second call data; N3 is the third sub-index of the third call data, W3 is the third sub-weight of the third call data; N4 is the second index of the second sub-data, W4 is the second weight of the second sub-data.
8. The method according to claim 2, characterized in that: The second user has a call relationship or a business relationship with the first user; the designated data includes first sub-data, second sub-data and third sub-data; the first sub-data includes call data, the second sub-data includes trajectory similarity data, and the third sub-data includes business relationship data; wherein the call data includes first call data, second call data and third call data; the first call data is call data during the working hours, the second call data is call data during the rest hours, and the third call data is call data during the night hours; The determining, based on the specified data in the sliding time window, the closeness between the first user and the second user includes: Determine a first index and a first weight of the first call data, a second index and a second weight of the second call data, and a third index and a third weight of the third call data within the sliding time window; Determine a fourth index and a fourth weight of the second sub-data within the sliding time window; determining a fifth index and a fifth weight of the third sub-data within the sliding time window; The normalized index of the sliding time window is determined by the following formula: N=N1×W1+N2×W2+N3×W3+N4×W4+N5×W5; Determining, based on a normalized index of the sliding time window, a closeness between the first user and the second user within the sliding time window; Among them, N is the normalized index of the sliding time window; N1 is the first index of the first call data, W1 is the first weight of the first call data; N2 is the second index of the second call data, W2 is the second weight of the second call data; N3 is the third index of the third call data, W3 is the third weight of the third call data; N4 is the fourth index of the second sub-data, W4 is the fourth weight of the second sub-data; N5 is the fifth index of the third sub-data, W5 is the fifth weight of the third sub-data.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium, characterized in that: The medium stores a program or an instruction, and when the program or the instruction is executed, the steps of the method according to any one of claims 1 to 8 are implemented.
