User grouping method, device, computer-readable storage medium, and electronic device

By calculating the similarity based on the tags associated with the user and the tagging time of the tag, user grouping is performed, which solves the problem in the existing technology that the timeliness of tags affects the classification accuracy, achieves more accurate and timely user grouping, and improves user experience and Data support.

CN109766913BActive Publication Date: 2024-10-25NEUSOFT CORP
View PDF 18 Cites 0 Cited by

Patent Information

Application Number
CN201811512144.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-11
Publication Date
2024-10-25
Estimated Expiration
2038-12-11

AI Technical Summary

Technical Problem

Existing user grouping methods lead to reduced classification accuracy when the timeliness of user-associated tags is low, and cannot effectively reflect users' current behaviors and habits.

Method used

By combining the tags associated with users and the tagging time of the tags, the similarity between users is calculated and classified based on this. A clustering algorithm is used to generate user groups, and users who do not meet the similarity confidence interval are deleted to determine the grouping of user groups. tags, taking into account the tag's document frequency, average weight, and time factor.

Benefits of technology

It improves the accuracy and timeliness of user grouping, enhances the real-time nature of classification results, improves user experience, and provides accurate data support for subsequent processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109766913B_ABST
    Figure CN109766913B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a user clustering method, device, computer-readable storage medium and electronic device, the method comprising: determining the similarity between each user based on the tags associated with each user and the tag marking time of the tags; and classifying each of the users based on the similarity. In the above technical scheme, the similarity between each user is determined based on the tags associated with each user and the tag marking time, thereby effectively ensuring the real-time determination of the similarity between users and fitting the user's usage habits. Afterwards, each user is classified based on the similarity, thereby ensuring the accuracy of the user classification results, effectively avoiding the influence of the timeliness of the tags on the classification results when directly classifying based on the tags, and improving the user experience. At the same time, it can also provide accurate data support for subsequent processing based on user clustering results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data analysis, and in particular, to a user grouping method, device, computer-readable storage medium, and electronic device. Background Art

[0002] In user intelligent analysis, user grouping is an extremely important component. In the prior art, user grouping usually directly profiles a single user based on the tags associated with the user, thereby grouping multiple users and finding similar user groups. However, in the above method, when the timeliness of the tags associated with the user is low, the accuracy of grouping users directly based on the tags associated with the user will be low. Summary of the invention

[0003] The purpose of the present disclosure is to provide an accurate user grouping method, device, computer-readable storage medium and electronic device.

[0004] In order to achieve the above objective, according to a first aspect of the present disclosure, a user grouping method is provided, the method comprising:

[0005] Determine the similarity between users based on the tags associated with each user and the tagging time of the tags;

[0006] The users are classified according to the similarities.

[0007] Optionally, classifying each of the users according to the similarity includes:

[0008] Performing a first classification process on each of the users according to the similarity to obtain at least one first user group, wherein each of the first user groups has a corresponding class center;

[0009] Using the class center corresponding to each of the first user groups as the class center of each second user group to be generated, performing a second classification process on each of the users, and obtaining the same number of the second user groups as the first user groups;

[0010] For each of the second user groups, perform the following operations:

[0011] Determine the similarity between each user in the current second user group and the class center of the current second user group according to the tags associated with each user in the current second user group and the tagging time of the tags;

[0012] Determining an average similarity between users of the current second user group and a class center of the current second user group;

[0013] Determining a similarity confidence interval corresponding to the current second user group according to the average similarity;

[0014] Deleting users in the current second user group whose similarity with the class center of the current second user group is outside the similarity confidence interval.

[0015] Optionally, the similarity between users is determined by the following formula:

[0016]

[0017] Among them, cosin(X,Y) represents the similarity between user X and user Y;

[0018] n represents the total number of tags associated with user X and user Y after duplication;

[0019] T(x i ) represents the time factor corresponding to the normalized label of user X;

[0020] x i represents the weight of the i-th tag of user X;

[0021] T(y i ) represents the time factor corresponding to the normalized i-th label of user Y;

[0022] y i represents the weight of the i-th tag of user Y.

[0023] Optionally, the time factor of the label is determined as follows:

[0024]

[0025] Wherein, t(x) represents the time factor of the label x;

[0026] t from Indicates the marking time of the tag;

[0027] t end Indicates the current time;

[0028] t term Indicates a preset time interval;

[0029] t(x) min Indicates the minimum value of the time factor of each tag associated with the current user;

[0030] t(x) max Indicates the maximum value of the time factor of each tag associated with the current user;

[0031] T(x) represents the time factor corresponding to the normalized label x.

[0032] Optionally, after the step of classifying each of the users according to the similarity, the method further includes:

[0033] For each user group obtained after classification, determine the target weight corresponding to the tag according to the document frequency, average weight and time factor corresponding to the tag contained in each user group, where the tags contained in the user group are the tags associated with each user in the user group;

[0034] According to the target weights of the labels, the group label of the user group is determined by any one of the following methods:

[0035] Determine the tag whose target weight is greater than a preset threshold as the group tag of the user group;

[0036] The tags are ranked top N in descending order of target weight and are determined as group tags of the user group.

[0037] Optionally, according to the document frequency, average weight and time factor corresponding to the tags contained in each user group, the target weight corresponding to the tag is determined by the following formula:

[0038]

[0039] Wherein, W(x) represents the target weight of the label x;

[0040] Indicates the document frequency of tag x in the current user group;

[0041] D x Indicates the number of users associated with tag x in the current user group;

[0042] D represents the total number of users in the current user group;

[0043] W avg Represents the average weight of label x in the current user group;

[0044] T(x) avg Represents the average value of the time factor of label x in the current user group.

[0045] According to a second aspect of the present disclosure, a user grouping device is provided, the device comprising:

[0046] A first determination module, used to determine the similarity between each user according to the tag associated with each user and the tag marking time;

[0047] A classification module is used to classify each of the users according to the similarity.

[0048] Optionally, the classification module includes:

[0049] A first classification submodule, configured to perform a first classification process on each of the users according to the similarity to obtain at least one first user group, wherein each of the first user groups has a corresponding class center;

[0050] A second classification submodule, configured to use the class center corresponding to each of the first user groups as the class center of each second user group to be generated, perform a second classification process on each of the users, and obtain the same number of second user groups as the first user groups;

[0051] A first determination submodule is used to determine, for each of the second user groups, the similarity between each user in the current second user group and the class center of the current second user group according to the tags associated with each user in the current second user group and the tagging time of the tags;

[0052] A second determination submodule, configured to determine, for each of the second user groups, an average similarity between users of the current second user group and a class center of the current second user group;

[0053] A third determination submodule, configured to determine, for each of the second user groups, a similarity confidence interval corresponding to the current second user group according to the average similarity;

[0054] The deleting submodule is used to delete, for each of the second user groups, users in the current second user group whose similarity with the cluster center of the current second user group is outside the similarity confidence interval.

[0055] Optionally, the first determination module determines the similarity between users by the following formula:

[0056]

[0057] Among them, cosin(X,Y) represents the similarity between user X and user Y;

[0058] n represents the total number of tags associated with user X and user Y after duplication;

[0059] T(x i ) represents the time factor corresponding to the normalized label of user X;

[0060] x i represents the weight of the i-th tag of user X;

[0061] T(y i ) represents the time factor corresponding to the normalized i-th label of user Y;

[0062] y i represents the weight of the i-th tag of user Y.

[0063] Optionally, the first determining module determines the time factor of the tag in the following manner:

[0064]

[0065] Wherein, t(x) represents the time factor of the label x;

[0066] t from Indicates the marking time of the tag;

[0067] t end Indicates the current time;

[0068] t term Indicates a preset time interval;

[0069] t(x) min Indicates the minimum value of the time factor of each tag associated with the current user;

[0070] t(x) max Indicates the maximum value of the time factor of each tag associated with the current user;

[0071] T(x) represents the time factor corresponding to the normalized label x.

[0072] Optionally, the device further comprises:

[0073] A second determination module is used to determine, for each user group obtained after the classification module classifies each of the users according to the similarity, a target weight corresponding to the tag according to the document frequency, average weight and time factor corresponding to the tag contained in each user group, wherein the tags contained in the user group are tags associated with each user in the user group;

[0074] The third determination module is configured to determine the group label of the user group according to the target weight of each label by any one of the following methods:

[0075] Determine the tag whose target weight is greater than a preset threshold as the group tag of the user group;

[0076] The tags are ranked top N in descending order of target weight and are determined as group tags of the user group.

[0077] Optionally, the second determination module is used to determine the target weight corresponding to the tag according to the document frequency, average weight and time factor corresponding to the tag contained in each user group by the following formula:

[0078]

[0079] Wherein, W(x) represents the target weight of the label x;

[0080] Indicates the document frequency of tag x in the current user group;

[0081] D x Indicates the number of users associated with tag x in the current user group;

[0082] D represents the total number of users in the current user group;

[0083] W avg Represents the average weight of label x in the current user group;

[0084] T(x) avg Represents the average value of the time factor of label x in the current user group.

[0085] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of any method described in the first aspect are implemented.

[0086] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:

[0087] a memory having a computer program stored thereon;

[0088] A processor is used to execute the computer program in the memory to implement the steps of any method described in the first aspect above.

[0089] In the above technical solution, the similarity between users is determined based on the tags associated with each user and the tagging time of the tags, so that the real-time determination of the similarity between users can be effectively guaranteed, which is in line with the user's usage habits. Afterwards, each user is classified according to the similarity, so as to ensure the accuracy of the user classification results, effectively avoid the influence of the timeliness of the tags on the classification results when directly classifying according to the tags, and improve the user experience. At the same time, it can also provide accurate data support for the subsequent processing based on the user grouping results.

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

[0091] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0092] Figure 1 is a flow chart of a user grouping method provided according to an embodiment of the present disclosure;

[0093] Figure 2 is a flowchart of an exemplary implementation method of classifying each user according to similarity provided according to an embodiment of the present disclosure;

[0094] Figure 3 is a block diagram of a user grouping device provided according to an embodiment of the present disclosure;

[0095] Figure 4 is a block diagram of a classification module in a user grouping device provided according to an embodiment of the present disclosure;

[0096] Figure 5 is a block diagram of an electronic device according to an exemplary embodiment;

[0097] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0098] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0099] Figure 1 As shown, it is a flow chart of a user grouping method provided according to an embodiment of the present disclosure, as shown Figure 1 As shown, the method includes:

[0100] In S11, the similarity between the users is determined based on the tags associated with the users and the tagging time of the tags.

[0101] As described in the background technology, in the prior art, user clustering is usually performed directly based on user-associated tags. However, user-associated tags are generally time-phased. For example, user U participated in a training activity a year ago and browsed multiple books related to the training activity. The weight of the tags corresponding to this type of book should gradually decrease over time for the user's current portrait. Therefore, when users are grouped directly based on user-associated tags, the error is large. In the embodiments provided in the present disclosure, when determining the similarity between users, the timeliness of user clustering is ensured not only based on the user-associated tags, but also based on the marking time of each tag.

[0102] In S12, each user is classified according to the similarity. After the similarity between users is determined, similar users can be clustered according to the similarity. For example, when classifying users, existing clustering algorithms can be used for classification, which is not limited in the present disclosure.

[0103] In the above technical solution, the similarity between users is determined based on the tags associated with each user and the tagging time of the tags, so that the real-time similarity between users can be effectively guaranteed and in line with the user's usage habits. Afterwards, each user is classified according to the similarity, so as to ensure the accuracy of the user classification results, effectively avoid the influence of the timeliness of the tags on the classification results when directly classifying according to the tags, and improve the user experience. At the same time, it can also provide accurate data support for the subsequent processing based on the user grouping results.

[0104] In order to enable those skilled in the art to better understand the technical solution provided by the embodiment of the present invention, the above steps are described in detail below.

[0105] As shown above, since user-associated tags generally have time phases, the user grouping method provided by the present disclosure determines the similarity between users based not only on the tags associated with the users, but also on the marking time of the tags associated with the users. Specifically, the similarity between users can be determined by the following formula:

[0106]

[0107] Among them, cosin(X,Y) represents the similarity between user X and user Y;

[0108] n represents the total number of tags associated with user X and user Y after duplication;

[0109] T(x i ) represents the time factor corresponding to the normalized label of user X;

[0110] x i represents the weight of the i-th tag of user X;

[0111] T(y i ) represents the time factor corresponding to the normalized i-th label of user Y;

[0112] y i represents the weight of the i-th tag of user Y.

[0113] In this embodiment, the weight of the tag associated with the user can be determined according to the relationship between the user and the tag. For example, when the tag associated with the user is an item, the weight can be set according to the user's operation on the associated item. For example, items browsed by the user, purchased by the user, and purchased and praised by the user can be associated with the user, and the weight is determined according to the above operations. For example, the weight of the tag of the item browsed by the user can be set to 0.5, the weight of the tag of the item purchased by the user can be set to 0.7, and the weight of the tag of the item purchased and praised by the user can be set to 0.9. For another example, when the tag associated with the user is a text, the weight of the tag can be set according to the user's reading progress or the number of times the text is read. The greater the user's reading progress of the text, the greater the weight of the tag of the text; the more times the user reads the text, the greater the weight of the tag of the text. The weight setting method of other tags is similar to the above method, which will not be repeated here.

[0114] In the above embodiment, the labels obtained after deduplication of the labels associated with user X and user Y are used as the dimensions of the user's vector to vectorize user X and user Y, wherein each dimension corresponds to a label. When there is no label corresponding to the dimension in the labels associated with the user, the value of the dimension in the user's vector is 0, and when there is a label corresponding to the dimension in the labels associated with the user, the value of the dimension in the user's vector is 1. In addition, when there is no label corresponding to the dimension in the labels associated with the user, the weight and time factor of the label corresponding to the user are both 0.

[0115] The weight setting of the tag is described in detail above. The time factor corresponding to the tag is described below.

[0116] Optionally, the time factor of the label can be determined as follows:

[0117]

[0118] Wherein, t(x) represents the time factor of the label x;

[0119] t from Indicates the marking time of the tag;

[0120] t end Indicates the current time;

[0121] t term Indicates a preset time interval, wherein the time interval can be set according to the actual usage scenario, and the time unit is generally day. For example, the time interval can be set to 30 days;

[0122] t(x) minIndicates the minimum value of the time factor of each tag associated with the current user;

[0123] t(x) max Indicates the maximum value of the time factor of each tag associated with the current user;

[0124] T(x) represents the time factor corresponding to the normalized label x.

[0125] In the above embodiment, when determining the corresponding time factor of a tag, the time factors corresponding to each tag associated with the user are normalized so that the time factors of the tags associated with each user can be judged based on the same standard, thereby effectively ensuring the accuracy of the calculated similarity between users and providing accurate data support for user grouping.

[0126] In the embodiments of the present disclosure, the distance between users is calculated to characterize the similarity of users. The smaller the distance between users, the more similar they are. Generally speaking, the tags associated with different users are not exactly the same. However, sometimes due to factors such as data errors and time separation, the tags that should have been shared by users are not shared, while tags that should not have been shared become shared tags between users, which affects the calculation of user similarity. Therefore, in the present disclosure, by increasing the penalty factor To effectively avoid the above problems. For example, when the i-th label in the dimension of the user's vector is a shared label, the penalty factor will be greater than 0, thereby increasing the calculated distance between users; and when the i-th label in the dimension of the user's vector is a non-shared label, the penalty factor will be equal to 0, which has no effect on the calculated distance between users. Therefore, through the above technical solution, the impact of shared labels between users on user similarity can be reduced, and the accuracy of user similarity calculation can be guaranteed.

[0127] When grouping users, some abnormal data will inevitably appear in the user data. Therefore, in order to further improve the accuracy of user grouping, the present disclosure also provides the following embodiments to filter abnormal users in the user group.

[0128] Optionally, an exemplary implementation of classifying each user according to similarity is as follows: Figure 2 As shown, including:

[0129] In S21, a first classification process is performed on each user according to the similarity to obtain at least one first user group, wherein each of the first user groups has a corresponding class center. The first classification process may be a hierarchical clustering algorithm, and by clustering each user based on the hierarchical clustering algorithm, the total number of clusters that each user can be divided into and the corresponding class center can be determined. The hierarchical clustering algorithm is a prior art and will not be described in detail here.

[0130] In S22, the class center corresponding to each first user group is used as the class center of each second user group to be generated, and a second classification process is performed on each user to obtain the same number of second user groups as the first user groups.

[0131] The second classification process may be a K-means clustering algorithm, wherein the total number of clusters determined in S21 is determined as K, and the class center determined in S21 is determined as the class center during K-means clustering to cluster each user, thereby obtaining a second user group. It should be noted that in the process of clustering by the K-means clustering algorithm, the class center is not changed. The K-means clustering algorithm is a prior art and will not be described in detail here.

[0132] For each of the second user groups, perform the following operations:

[0133] In S23, the similarity between each user in the current second user group and the class center of the current second user group is determined according to the tag associated with each user in the current second user group and the tag marking time.

[0134] Among them, the vector corresponding to the class center can be determined according to the vectors of each user in the corresponding user group, and the time factors corresponding to each label of the class center can be set by default. For example, the time factors of the labels of the class center are all set by default to 1. Therefore, the vector of the class center can be used as the vector of a virtual user, and the similarity between the user and the class center can be determined by the formula for determining the similarity between users described above. The specific method of determining the similarity will not be repeated here.

[0135] In S24, the average similarity between the users of the current second user group and the class center of the current second user group is determined.

[0136] When determining the similarity between each user in the second user group and the class center of the second user group, the average similarity may be determined directly by determining an average value.

[0137] In S25, a similarity confidence interval corresponding to the current second user group is determined according to the average similarity.

[0138] For example, the similarity confidence interval can be set according to the actual usage. For example, for user grouping with general accuracy requirements, the similarity confidence interval can be set to a confidence interval of α=0.05, and for user grouping with higher accuracy requirements, the similarity confidence interval can be set to a confidence interval of α=0.01. Among them, the method of determining the similarity confidence interval is a prior art and will not be repeated here.

[0139] In S26, users in the current second user group whose similarity with the cluster center of the current second user group is outside the similarity confidence interval are deleted.

[0140] According to statistical principles, when determining the similarity confidence interval, if the similarity between the user and the corresponding class center is within the confidence interval, the user is characterized as a normal user. If the similarity between the user and the corresponding class center is outside the confidence interval, the user is characterized as an abnormal user. Therefore, the abnormal user can be deleted.

[0141] In the above technical solution, users are secondary classified based on the number of user groups and the corresponding class centers obtained by the first classification process. On the one hand, the accuracy of the number of user groups and class centers during secondary classification can be guaranteed. On the other hand, the accuracy of user grouping can also be guaranteed by secondary classification of users. In addition, based on statistical principles, abnormal users in the user group are filtered, thereby effectively ensuring the purity of the user group, effectively avoiding the influence of abnormal users on subsequent processing, and providing accurate data support for subsequent processing based on user groups.

[0142] After user grouping, a group portrait of the user group can be generated based on the group label of each user group, so as to perform recommendations, user analysis, user graphs and other functions based on the group portrait. However, in the prior art, the labels associated with each user in the user group are usually summarized as the group label of the user group. However, the actual use of the label is not considered in the above process. For example, in the current user group, there is only user A associated with label a, and the time when user A associated label a was 1 year ago. At this time, if label a is directly determined as the group label of the current user group as in the prior art, it will have a great impact on the accuracy of the group label of the user group.

[0143] Therefore, the present disclosure also provides the following embodiments. Optionally, after the step of classifying each of the users according to the similarity, the method further includes:

[0144] For each user group obtained after classification, the target weight corresponding to the tag is determined according to the document frequency, average weight and time factor corresponding to the tag contained in each user group, wherein the tags contained in the user group are the tags associated with each user in the user group.

[0145] The user group obtained after classification may be the first user group or the second user group.

[0146] Optionally, according to the document frequency, average weight and time factor corresponding to the tags contained in each user group, the target weight corresponding to the tag is determined by the following formula:

[0147]

[0148] Wherein, W(x) represents the target weight of the label x;

[0149] Indicates the document frequency of label x in the current user group, wherein the labels associated with each user in the current user group can be respectively formed into a document, and each label is each word segment in the document to calculate the document frequency of the label; the document frequency of the label is used to represent the frequency of the label appearing in the labels associated with each user in the current user group. The larger the document frequency of the label, the higher the frequency of the label appearing in the labels associated with each user in the current user group;

[0150] Dx represents the number of users with associated tag x in the current user group;

[0151] D represents the total number of users in the current user group;

[0152] W avg Represents the average weight of label x in the current user group;

[0153] T(x) avg Represents the average value of the time factor of label x in the current user group.

[0154] Among them, W avg It can be determined by the following formula:

[0155] w j Represents the weight of label x corresponding to the j-th user in the current user group.

[0156] T(x) avg It can be determined by the following formula:

[0157] T(x) j Indicates the time factor corresponding to the normalized label x of the j-th user in the current user group.

[0158] According to the target weights of the labels, the group label of the user group is determined by any one of the following methods:

[0159] 1) The tags whose target weight is greater than a preset threshold are determined as group tags of the user group.

[0160] For example, the preset threshold can be set according to actual usage or experience. When the target weight of the tag is greater than the preset threshold, it means that the comprehensive weight of the tag is large, and at this time, the tag can be determined as the group tag of the current user group.

[0161] 2) The tags are sorted in descending order of target weight, and the top N tags are determined as the group tags of the user group.

[0162] For example, the number of group labels is preset. Therefore, when determining the target weight of each label, the group labels can be selected in descending order of the target weight.

[0163] In the above technical solution, when determining the group label according to the labels associated with each user in the user group, the target weight of the label is determined by comprehensively determining factors such as the document frequency, average weight and time factor corresponding to the label, so as to ensure the comprehensiveness of the target weight. In addition, when determining the group label of the user group, the label is selected according to the target weight. On the one hand, it can avoid the one-sidedness of directly determining the group label in the prior art, thereby effectively ensuring the accuracy of the group label. On the other hand, by ensuring the accuracy and comprehensiveness of the group label, the comprehensiveness and accuracy of the results of subsequent processing based on the group label can be guaranteed, further improving the user experience.

[0164] The present disclosure also provides a user grouping device, such as Figure 3 As shown, the device 10 comprises:

[0165] The first determination module 100 is used to determine the similarity between each user according to the tag associated with each user and the tag marking time;

[0166] The classification module 200 is used to classify each of the users according to the similarity.

[0167] Alternatively, if Figure 4 As shown, the classification module 200 includes:

[0168] A first classification submodule 201 is used to perform a first classification process on each of the users according to the similarity to obtain at least one first user group, wherein each of the first user groups has a corresponding class center;

[0169] A second classification submodule 202 is used to use the class center corresponding to each of the first user groups as the class center of each second user group to be generated, perform a second classification process on each of the users, and obtain the same number of second user groups as the first user groups;

[0170] A first determination submodule 203 is used to determine, for each of the second user groups, the similarity between each user in the current second user group and the class center of the current second user group according to the tags associated with each user in the current second user group and the tagging time of the tags;

[0171] A second determination submodule 204 is used to determine, for each of the second user groups, an average similarity between the users of the current second user group and the class center of the current second user group;

[0172] A third determination submodule 205 is configured to determine, for each of the second user groups, a similarity confidence interval corresponding to the current second user group according to the average similarity;

[0173] The deletion submodule 206 is configured to delete, for each of the second user groups, users in the current second user group whose similarity with the cluster center of the current second user group is outside the similarity confidence interval.

[0174] Optionally, the first determining module 100 determines the similarity between users by the following formula:

[0175]

[0176] Among them, cosin(X,Y) represents the similarity between user X and user Y;

[0177] n represents the total number of tags associated with user X and user Y after duplication;

[0178] T(x i ) represents the time factor corresponding to the normalized label of user X;

[0179] x i represents the weight of the i-th tag of user X;

[0180] T(y i ) represents the time factor corresponding to the normalized i-th label of user Y;

[0181] y i represents the weight of the i-th tag of user Y.

[0182] Optionally, the first determining module 100 determines the time factor of the tag in the following manner:

[0183]

[0184] Wherein, t(x) represents the time factor of the label x;

[0185] t from Indicates the marking time of the tag;

[0186] t end Indicates the current time;

[0187] t term Indicates a preset time interval;

[0188] t(x) min Indicates the minimum value of the time factor of each tag associated with the current user;

[0189] t(x) max Indicates the maximum value of the time factor of each tag associated with the current user;

[0190] T(x) represents the time factor corresponding to the normalized label x.

[0191] Optionally, the device 10 further includes:

[0192] A second determination module is used to determine, for each user group obtained after the classification module classifies each of the users according to the similarity, a target weight corresponding to the tag according to the document frequency, average weight and time factor corresponding to the tag contained in each user group, wherein the tags contained in the user group are tags associated with each user in the user group;

[0193] The third determination module is configured to determine the group label of the user group according to the target weight of each label by any one of the following methods:

[0194] Determine the tag whose target weight is greater than a preset threshold as the group tag of the user group;

[0195] The tags are ranked top N in descending order of target weight and are determined as group tags of the user group.

[0196] Optionally, the second determination module is used to determine the target weight corresponding to the tag according to the document frequency, average weight and time factor corresponding to the tag contained in each user group by the following formula:

[0197]

[0198] Wherein, W(x) represents the target weight of the label x;

[0199] Indicates the document frequency of tag x in the current user group;

[0200] D x Indicates the number of users associated with tag x in the current user group;

[0201] D represents the total number of users in the current user group;

[0202] Wavg Represents the average weight of label x in the current user group;

[0203] T(x) avg Represents the average value of the time factor of label x in the current user group.

[0204] 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.

[0205] Figure 5 FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. Figure 5 As shown, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.

[0206] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned user grouping method. The memory 702 is used to store various types of data to support the operation of the electronic device 700, and these data may include, for example, instructions for any application or method used to operate on the electronic device 700, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 702 or sent through the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module.

[0207] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned user grouping method.

[0208] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned user grouping method are implemented. For example, the computer-readable storage medium may be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions may be executed by the processor 701 of the electronic device 700 to complete the above-mentioned user grouping method.

[0209] Figure 6 1 is a block diagram of an electronic device 1900 according to an exemplary embodiment. For example, the electronic device 1900 may be provided as a server. Figure 6 The electronic device 1900 includes a processor 1922, which may be one or more, and a memory 1932 for storing a computer program executable by the processor 1922. The computer program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processor 1922 may be configured to execute the computer program to perform the above-mentioned user grouping method.

[0210] In addition, the electronic device 1900 may further include a power supply component 1926 and a communication component 1950, wherein the power supply component 1926 may be configured to perform power management of the electronic device 1900, and the communication component 1950 may be configured to implement communication of the electronic device 1900, for example, wired or wireless communication. In addition, the electronic device 1900 may further include an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, etc.

[0211] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned user grouping method are implemented. For example, the computer-readable storage medium may be the above-mentioned memory 1932 including program instructions, and the above-mentioned program instructions may be executed by the processor 1922 of the electronic device 1900 to complete the above-mentioned user grouping method.

[0212] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0213] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0214] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A user grouping method, characterized in that: The method comprises: Determine the similarity between users based on the tags associated with each user and the tagging time of the tags; Classifying each of the users according to the similarity; The classifying each of the users according to the similarity includes: Performing a first classification process on each of the users according to the similarity to obtain at least one first user group, wherein each of the first user groups has a corresponding class center; Using the class center corresponding to each of the first user groups as the class center of each second user group to be generated, performing a second classification process on each of the users, and obtaining the same number of the second user groups as the first user groups; For each of the second user groups, perform the following operations: Determine the similarity between each user in the current second user group and the class center of the current second user group according to the tags associated with each user in the current second user group and the tagging time of the tags; Determining an average similarity between users of the current second user group and a class center of the current second user group; Determining a similarity confidence interval corresponding to the current second user group according to the average similarity; Deleting users in the current second user group whose similarity with the class center of the current second user group is outside the similarity confidence interval; The similarity between users is determined by the following formula: in, Indicates user X With users Y The similarity between Indicates user X With users Y The total number of associated tags after deduplication; Indicates user X No. i The time factor corresponding to each label after normalization; Indicates user X No. i The weight of the label; Indicates user Y No. i The time factor corresponding to each label after normalization; Indicates user Y No. i The weight of the label; The time factor of the label is determined as follows: ; in, Indicates the label x The time factor; Indicates the marking time of the tag; Indicates the current time; Indicates a preset time interval; Indicates the minimum value of the time factor of each tag associated with the current user; Indicates the maximum value of the time factor of each tag associated with the current user; Indicates the label x The corresponding time factor after normalization.

2. The method according to claim 1, characterized in that After the step of classifying each of the users according to the similarity, the method further includes: For each user group obtained after classification, determine the target weight corresponding to the tag according to the document frequency, average weight and time factor corresponding to the tag contained in each user group, where the tags contained in the user group are the tags associated with each user in the user group, and the document frequency of the tag is used to represent the frequency of the tag appearing in the tags associated with each user in the current user group; According to the target weights of the labels, the group label of the user group is determined by any one of the following methods: Determine the tag whose target weight is greater than a preset threshold as the group tag of the user group; Determine the top N tags in descending order of target weight as the group tags of the user group; The time factor of the label is determined as follows: ; in, Indicates the label x The time factor; Indicates the marking time of the tag; Indicates the current time; Indicates a preset time interval; Indicates the minimum value of the time factor of each tag associated with the current user; Indicates the maximum value of the time factor of each tag associated with the current user; Indicates the label x The corresponding time factor after normalization.

3. The method according to claim 2, characterized in that According to the document frequency, average weight and time factor corresponding to the tags contained in each user group, the target weight corresponding to the tag is determined by the following formula: in, Indicates the label x The target weight of Indicates the current user group, tags x Document frequency; Indicates the current user group and associated tags x The number of users; Indicates the total number of users in the current user group; Indicates that in the current user group, tags x The average weight of Indicates that in the current user group, tags x The average value of the time factor.

4. A user grouping device, characterized in that: The device comprises: A first determination module, used to determine the similarity between each user according to the tag associated with each user and the tag marking time; A classification module, used for classifying each of the users according to the similarity; Wherein, the classification module includes: A first classification submodule, configured to perform a first classification process on each of the users according to the similarity to obtain at least one first user group, wherein each of the first user groups has a corresponding class center; A second classification submodule, configured to use the class center corresponding to each of the first user groups as the class center of each second user group to be generated, perform a second classification process on each of the users, and obtain the same number of second user groups as the first user groups; A first determination submodule is used to determine, for each of the second user groups, the similarity between each user in the current second user group and the class center of the current second user group according to the tags associated with each user in the current second user group and the tagging time of the tags; A second determination submodule is used to determine, for each of the second user groups, an average similarity between the users of the current second user group and the class center of the current second user group; A third determination submodule, configured to determine, for each of the second user groups, a similarity confidence interval corresponding to the current second user group according to the average similarity; a deleting submodule, configured to delete, for each of the second user groups, users in the current second user group whose similarity with the class center of the current second user group is outside the similarity confidence interval; The similarity between users is determined by the following formula: in, Indicates user X With users Y The similarity between Indicates user X With users Y The total number of associated tags after deduplication; Indicates user X No. i The time factor corresponding to each label after normalization; Indicates user X No. i The weight of the label; Indicates user Y No. i The time factor corresponding to each label after normalization; Indicates user Y No. i The weight of the label; The time factor of the label is determined as follows: ; in, Indicates the label x The time factor; Indicates the marking time of the tag; Indicates the current time; Indicates a preset time interval; Indicates the minimum value of the time factor of each tag associated with the current user; Indicates the maximum value of the time factor of each tag associated with the current user; Indicates the label x The corresponding time factor after normalization.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 3 are implemented.

6. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Commendation method of personalized resource information based on scene information

    CN101751448A

  • Personalized music recommendation method and system

    CN102654860A

  • Two-stage hybrid particle swarm optimization clustering method

    CN102663100A

  • User portrait updating method, apparatus and system

    CN105005587A

  • Education video recommendation method and device

    CN105404698A