User portrait construction device, method and computer readable medium

By calculating user relationship weights and associated user tags, the problem of insufficient user data is solved, and a richer and more accurate user portrait is constructed, which is suitable for personalized services and analysis of enterprises.

CN114840742BActive Publication Date: 2024-09-24CHINA UNICOM ONLINE INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110145530.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-02
Publication Date
2024-09-24
Estimated Expiration
2041-02-02

AI Technical Summary

Technical Problem

Existing technology is difficult to accurately construct user portraits when user data is insufficient, especially for users who have just registered or have low usage frequency. The lack of behavioral data leads to incomplete user portraits.

Method used

By calculating the relationship weight between users, based on the user's basic information and communication record data, the associated users are determined, and their tags are merged into the user's own tags to construct a user portrait.

Benefits of technology

It enriches and improves user portraits, and can construct user portraits through associated user tags when behavioral data is insufficient. This improves the comprehensiveness and accuracy of user portraits and is suitable for personalized services and analysis of enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114840742B
    Figure CN114840742B
Patent Text Reader

Abstract

The present invention provides a user portrait construction device, method and computer-readable medium, characterized in that the user portrait construction device includes: a user information storage unit, which stores basic user information and behavior data of each user; a user label generation unit, which generates a corresponding label as the first user label of the user according to the behavior data of each user; a communication data storage unit, which stores communication record data generated by communication between users; a relationship weight calculation unit, which calculates the relationship weight between each two users reflecting the degree of intimacy between the two users based on the basic user information and the communication record data; an associated user determination unit, which determines the associated users of each current user based on the relationship weight; and a user portrait construction unit, which uses the first user label of the associated user as the second user label of the current user, thereby constructing a user portrait of the current user consisting of the first user label and the second user label.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of user portrait analysis, and in particular, relates to a user portrait construction device, method and computer-readable medium. Background Art

[0002] With the development of big data, various Internet companies will use the data generated by users when using Internet services, abstract various types of data into different tags to build corresponding user portraits for each user. Through these user portraits, enterprises and organizations can understand user preferences, and make targeted decisions on product design, arrange push marketing services, and customize personalized services, thereby improving their own competitiveness.

[0003] However, the construction of user portraits needs to be based on a large amount of user data. Enterprises and organizations need to collect various data including behavioral data for each user in advance. If the user data of a certain user is insufficient, the construction of the user portrait of that user will be incomplete. But behavioral data does not come out of thin air. It needs to be collected through long-term information collection or special telephone interviews, questionnaires, etc. to obtain sufficient behavioral data. Therefore, it is difficult to collect enough behavioral data for some users who have just registered or who use the service rarely, which makes it impossible for enterprises and organizations to accurately construct user portraits for such users. Summary of the invention

[0004] In order to solve the above problems, a user profile building device, method and computer-readable medium are provided, which can analyze the intimacy between users according to the basic information and communication records of users, and build a user profile of the user according to the behavior data of related users based on the intimacy. The present invention adopts the following technical solutions:

[0005] <Structure 1>

[0006] The present invention provides a user portrait construction device, characterized in that it includes: a user information storage unit, which stores the user basic information registered by each user and the behavior data generated by the user when surfing the Internet; a user label generation unit, which generates a corresponding label as the first user label of the user according to the behavior data of each user based on multiple labels pre-set for various behavior data; a communication data storage unit, which stores communication record data generated by communication between users; a relationship weight calculation unit, which calculates the relationship weight between each two users reflecting the intimacy between the two users based on the user basic information and the communication record data, taking the user as an entity node; an associated user determination unit, which takes each user as the current user in turn, and determines a predetermined number of users with the greatest intimacy with the current user from users other than the current user based on the relationship weight as associated users; and a user portrait construction unit, which takes the first user label of the associated user as the second user label of the current user, thereby constructing a user portrait of the current user consisting of the first user label and the second user label.

[0007] <Structure 2>

[0008] The present invention also provides a method for constructing a user portrait, which is characterized in that it includes the following steps: a user information storage step, obtaining the basic user information registered by each user and the behavior data generated by the user when surfing the Internet and storing them; a user tag generation step, based on multiple tags pre-set for various behavior data, generating a corresponding tag as the first user tag of the user according to the behavior data of each user; a communication data storage step, obtaining and storing the communication record data generated by communication between users; a relationship weight calculation step, based on the user basic information and the communication record data, calculating the relationship weights between each user with the user as an entity; an associated user determination step, taking each user as the current user in turn, and determining a predetermined number of users with the greatest relationship with the current user from users other than the current user based on the relationship weight as associated users; and a user portrait construction step, taking the first user tag of the associated user as the second user tag of the current user, thereby constructing a user portrait of the current user consisting of the first user tag and the second user tag.

[0009] <Structure 3>

[0010] The present invention also provides a computer-readable medium for recording a computer program, characterized in that the computer program is used to enable a user portrait construction device to execute the following steps: a user information storage step, obtaining and storing the basic user information registered by each user and the behavior data generated by the user when surfing the Internet; a user tag generation step, based on a plurality of tags pre-set for various behavior data, generating a corresponding tag as the first user tag of the user according to the behavior data of each user; a communication data storage step, obtaining and storing the communication record data generated by communication between users; a relationship weight calculation step, based on the user basic information and the communication record data, calculating the relationship weights between each user with the user as an entity; an associated user determination step, taking each user as the current user in turn, and determining a predetermined number of users with the greatest relationship with the current user from users other than the current user based on the relationship weight as associated users; and a user portrait construction step, taking the first user tag of the associated user as the second user tag of the current user, thereby constructing a user portrait of the current user consisting of the first user tag and the second user tag.

[0011] Function and Effect of the Invention

[0012] According to the user portrait construction device, method and computer-readable medium of the present invention, since the relationship weight between each two users is generated based on the user basic information and communication record data of the users through relationship weight calculation, and the predetermined number of associated users with the largest relationship weight of each user are determined according to the relationship weight, the associated users with the closest relationship to each current user can be determined. Next, on the basis of generating the first user tag of each user according to the behavior data of each user, the first user tag of the associated user is used as the second user tag of the current user to construct the user portrait of the current user. In this way, the user portrait can include not only the tags generated according to the user's own behavior data, but also the tags of multiple associated users with close relationships with the user, which not only makes the user portrait of each user richer and more comprehensive, but also for some users with less or even no behavior data, the user portrait of the user can be constructed through the tags of the associated users, which can further provide enterprises with user analysis or service provision. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a structural block diagram of a user portrait building device in an embodiment of the present invention;

[0014] Figure 2 It is the content stored in the user information storage unit in the embodiment of the present invention;

[0015] Figure 3 is the content of the communication record data in the embodiment of the present invention;

[0016] Figure 4 is a structural block diagram of a relationship weight calculation unit in an embodiment of the present invention;

[0017] Figure 5 is a partial schematic diagram of a knowledge graph with users as the main body in an embodiment of the present invention;

[0018] Figure 6 is a structural block diagram of an associated user determination unit in an embodiment of the present invention; and

[0019] Figure 7 It is a flow chart of the user portrait building action of the user portrait building device in an embodiment of the present invention. DETAILED DESCRIPTION

[0020] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the user portrait construction device, method and computer-readable medium of the present invention are specifically described below in combination with embodiments and drawings.

[0021] As an embodiment, the present invention provides a user portrait construction device, characterized in that it includes: a user information storage unit, which stores the basic user information registered by each user and the behavior data generated by the user when surfing the Internet; a user label generation unit, which generates a corresponding label as the first user label of the user according to the behavior data of each user based on multiple labels pre-set for various behavior data; a communication data storage unit, which stores communication record data generated by communication between users; a relationship weight calculation unit, which calculates the relationship weight between each two users reflecting the degree of intimacy between the two users based on the user basic information and the communication record data, with the user as an entity node; an associated user determination unit, which takes each user as the current user in turn, and determines a predetermined number of users with the greatest degree of intimacy with the current user from users other than the current user based on the relationship weight as associated users; and a user portrait construction unit, which takes the first user label of the associated user as the second user label of the current user, thereby constructing a user portrait of the current user consisting of the first user label and the second user label.

[0022] In the first embodiment, it can also have such technical features, wherein the associated user determination unit has a correlation value initialization unit, a correlation value iteration unit, a correlation value weighting unit and an associated user determination unit, and for each current user, the correlation value initialization unit initializes the correlation value of the entity node corresponding to each user to 1 / n according to the number n of all users, and takes the entity nodes of users other than the current user as related nodes; the correlation value iteration unit repeatedly calculates the correlation value of each related node with the entity node of the current user until the correlation values ​​of all related nodes converge, and the correlation value PR of the i-th related node is i The calculation method is:

[0023]

[0024] In the formula, B i is the set of all entity nodes associated with the relevant node i, L i is the number of entity nodes associated with the relevant node i, PR v , is the correlation value of the entity node v associated with the related node i, d is the damping coefficient, the correlation value weighting unit multiplies the converged correlation value of each related node and the relationship weight between the related node and the entity node of the current user, thereby obtaining the weighted correlation value of each related node, and the associated user determination unit sorts the related nodes according to the weighted correlation values, and obtains the users corresponding to a predetermined number of related nodes with the largest weighted correlation values ​​as the associated users corresponding to the current user.

[0025] In the first embodiment, it can also have such technical features, wherein the user information storage unit also stores the user identification number of each user, the communication record data at least includes the user identification number of the user as the communication initiator, the user identification number of the user as the communication recipient, multiple communication records between the communication initiator and the communication recipient, and the communication duration and communication initiation time corresponding to each communication record, and the relationship weight generation unit includes: a communication frequency statistics unit, which is used to count the communication frequency between the communication initiator and the communication recipient according to the number of communication records and the communication initiation time; an intimacy value calculation unit, which calculates the intimacy value between each pair of communication initiators and communication recipients based on a predetermined intimacy value calculation method at least according to the communication duration and communication frequency; a normalization processing unit, which normalizes all intimacy values ​​to form a relationship weight.

[0026] In the first embodiment, it may also have such a technical feature, wherein the basic user information includes at least the gender, age and address of the users, and the intimacy value calculation method is: pre-setting multiple interpersonal relationships and the intimacy value corresponding to each interpersonal relationship, based on the communication duration and communication frequency between the communication initiator and the communication recipient, and based on the address, gender and age of the communication initiator and the communication recipient, analyzing the interpersonal relationship between the two, so as to obtain the intimacy value between the communication initiator and the communication recipient according to the interpersonal relationship.

[0027] In the first embodiment, it may also have such technical features, including: a data acquisition unit, wherein the behavior data and user communication records are divided into historical data and real-time data, the user information storage unit and the communication data storage unit use the Hadoop cluster to store the historical data, and use the Kafka cluster to store the real-time data, the data acquisition unit obtains historical data through the batch processing framework Hadoop, and obtains real-time data through the streaming processing framework Spark by streaming processing and pre-processes the real-time data to form pre-processed real-time data, thereby respectively obtaining the historical data and pre-processed real-time data as each user's behavior data and communication record data.

[0028] As a second embodiment, the present invention also provides a user portrait construction method, characterized in that it includes the following steps: a user information storage step, obtaining the basic user information registered by each user and the behavior data generated by the user when surfing the Internet and storing them; a user tag generation step, based on multiple tags pre-set for various behavior data, generating a corresponding tag as the first user tag of the user according to the behavior data of each user; a communication data storage step, obtaining and storing the communication record data generated by the communication between users; a relationship weight calculation step, based on the user basic information and the communication record data, calculating the relationship weights between each user with the user as an entity; an associated user determination step, taking each user as the current user in turn, and determining a predetermined number of users with the greatest relationship with the current user from users other than the current user based on the relationship weight as associated users; and a user portrait construction step, taking the first user tag of the associated user as the second user tag of the current user, thereby constructing a user portrait of the current user consisting of the first user tag and the second user tag.

[0029] As a third embodiment, the present invention also provides a computer-readable medium for recording a computer program, characterized in that the computer program is used to enable a user portrait construction device to execute the following steps: a user information storage step, obtaining and storing the basic user information registered by each user and the behavioral data generated by the user when surfing the Internet; a user tag generation step, based on a plurality of tags pre-set for various behavioral data, generating a corresponding tag as the first user tag of the user according to the behavioral data of each user; a communication data storage step, obtaining and storing the communication record data generated by the communication between users; a relationship weight calculation step, based on the user basic information and the communication record data, calculating the relationship weights between each user with the user as an entity; an associated user determination step, taking each user as the current user in turn, and determining a predetermined number of users with the greatest relationship with the current user from users other than the current user based on the relationship weight as associated users; and a user portrait construction step, taking the first user tag of the associated user as the second user tag of the current user, thereby constructing a user portrait of the current user consisting of the first user tag and the second user tag.

[0030] <Example>

[0031] The user portrait construction device of this embodiment is held by the operator that provides the operator network. The operator's server stores the basic user information registered by the user when registering, as well as the behavioral data generated by the user when surfing the Internet through the operator network and the communication record data generated by communications between users (such as making calls, sending text messages, etc.).

[0032] Figure 1 It is a structural block diagram of a user portrait building device in an embodiment of the present invention.

[0033] like Figure 1 As shown, the user portrait construction device 100 is a computer installed with a computer program for executing the user portrait construction method, which is used to construct a user portrait of the user based on the user's basic information, behavior data and communication record data. It includes a user information storage unit 11, a communication data storage unit 12, a data acquisition unit 13, a user label generation unit 14, a relationship weight calculation unit 15, an associated user determination unit 16, a user portrait construction unit 17 and a control unit 18 for controlling the above-mentioned units.

[0034] The user information storage unit 11 is used to store various user information related to the user.

[0035] Figure 2 It is the content stored in the user information storage unit in the embodiment of the present invention.

[0036] like Figure 2As shown, the user information storage unit 11 stores the user identification number 21 (ID), user basic information 22 and behavior data 23 of each user, specifically:

[0037] The user basic information 22 is the user's name, gender, age, zodiac sign, address, phone number and other basic information, which is input by the user when registering.

[0038] The behavior data 23 includes the websites browsed by the user, access behaviors (such as inputting search keywords), access time, etc. In this embodiment, for ease of description, the behavior data 23 only takes the URL information of the website visited by the user as an example, and the behavior data 23 includes the URL information of all websites visited by the user.

[0039] The communication data storage unit 12 is used to store communication record data generated by communication between two users. In this embodiment, the communication record data is the communication record data generated by telephone communication between users.

[0040] Figure 3 It is the content of the communication record data in the embodiment of the present invention.

[0041] like Figure 3 As shown, the communication record data 31 includes multiple communication records, each of which has a record identification number 33 (ID), a user identification number 34 of the communication initiator, a user identification number 35 of the communication recipient, a communication initiation time 36 of the communication record 32, and a communication duration 37.

[0042] Through this communication relationship, it is possible to determine whether there is a connection between two users. By further combining the communication duration and the basic user information registered by the users, the degree of intimacy between the users can be analyzed.

[0043] The above-mentioned behavior data and user communication records are collected from the operator network, and the amount of data collected in real time is very large. When constructing a user portrait, there is often a large amount of real-time data that has not been processed. Taking the user communication record as an example, the original communication record contains the telephone number of the communication initiator and the communication recipient, which needs to be associated with the user's basic information and data preprocessing (such as filtering out useless data, etc.) to form a structured communication record data 31 containing a user identification number. Therefore, the behavior data and user communication records are divided into historical data and real-time data, and the real-time data needs to be preprocessed before it can be used. In this embodiment, the user information storage unit 11 and the communication data storage unit 12 store the historical data based on the Hadoop cluster, and temporarily store the temporarily collected behavior data and user communication records by adopting the structure of the Kafka cluster.

[0044] Next, when it is necessary to obtain and process the data stored in the user information storage unit 11 and the communication data storage unit 12, the data acquisition unit 13 directly obtains the preprocessed data (i.e., historical data) based on the batch processing framework Hadoop; for the data that has not been preprocessed (i.e., real-time data), it is subscribed through Kafka, and then sent to the streaming processing framework Spark, and preprocessed by streaming processing using Spark streaming to obtain preprocessed real-time data. The above-mentioned historical data and preprocessed real-time data sets obtained in this embodiment are the user basic information, behavior data, and communication record data corresponding to each user for subsequent user portrait construction.

[0045] The user label generating unit 14 is used to calculate the user label of each user according to the user's behavior data.

[0046] In this embodiment, different labels are pre-set for URL information (behavior data) of different websites, and the user label generation unit 14 generates a first user label corresponding to each user based on these labels. For example, website A corresponds to label B, and website C corresponds to label D. If the user's behavior data contains the URL information of website A, the first user label generated by the user label generation unit 14 for the user contains label B.

[0047] The relationship weight calculation unit 15 is used to calculate the relationship weights between each user according to the user basic information and the communication record data, and the relationship weights represent the intimacy between the users.

[0048] Figure 4 It is a structural block diagram of a relationship weight calculation unit in an embodiment of the present invention.

[0049] like Figure 4 As shown, the relationship weight calculation unit 15 specifically includes a communication frequency statistics unit 51 , an intimacy value calculation unit 52 and a normalization processing unit 53 .

[0050] The communication frequency counting unit 51 is used for counting the communication frequency between the communication initiator and the communication recipient according to the communication occurrence time corresponding to the communication record.

[0051] In this embodiment, the communication frequency is the number of times a communication initiator and a communication recipient communicate with each other within a predetermined time. The predetermined time can be set according to actual conditions.

[0052] The intimacy value calculation unit 52 calculates the intimacy value between each pair of communication initiators and communication recipients based on a predetermined intimacy value calculation method, according to the communication duration, communication frequency and user basic information.

[0053] In this embodiment, the user identification numbers of the communication initiator and the communication recipient in the communication record data can be used to determine which two users among all users have an association relationship. Next, the intimacy value calculation unit 52 calculates the intimacy value between the two users through an intimacy value calculation method to obtain an association weight. The intimacy value calculation method is specifically as follows:

[0054] First, multiple interpersonal relationships and the intimacy values ​​corresponding to each interpersonal relationship are pre-set. Among them, interpersonal relationships can be strangers, friends, relatives (such as husband and wife relationships, father and son relationships, etc.), etc. The closer the relationship between these interpersonal relationships, the greater the corresponding intimacy value.

[0055] Next, the interpersonal relationship between the two users is analyzed based on the communication duration and frequency between the communication initiator and the communication recipient, and based on the address, gender, and age of the communication initiator and the communication recipient. Specifically, in this embodiment, the intimacy value calculation unit 52 first determines whether any of the communication duration and the communication frequency is higher than a predetermined threshold. When it is determined that both are not higher than the predetermined threshold, the two users are determined to be strangers; when either is higher than the predetermined threshold, the intimacy between the two users is determined based on the interval of the communication duration and the communication frequency, as well as the address, age, and gender of the two users. Figure 2 and Figure 3 Taking the data shown as an example, user "name2" (user identification number is 10002) and user "name3" (user identification number is 10003) have multiple phone calls every day, and the two have the same address. User "name2" is 27 years old and male, and user "name3" is 26 years old and female. It can be determined that user "name2" and user "name3" are in a husband-and-wife relationship and have a high degree of intimacy.

[0056] Finally, after analyzing the interpersonal relationship between two users, the intimacy value calculation unit 52 can obtain the intimacy value between the two users accordingly.

[0057] The normalization processing unit 53 is used to normalize all the intimacy values ​​to obtain the relationship weight after the intimacy value calculation unit 52 calculates the intimacy values ​​between all users.

[0058] In this embodiment, the relationship weights calculated by the above-mentioned association weight calculation unit 15 can form a knowledge graph with users as the main body (ie, entity nodes) and association weights as edges.

[0059] Figure 5 is a partial schematic diagram of a knowledge graph with users as the main body in an embodiment of the present invention. Figure 5The local knowledge graph containing users k, i, j, and m is shown in FIG.

[0060] like Figure 5 As shown in the figure, there are interpersonal relationships between user k and users i, j, and m, and the corresponding relationship weights are r ik 、r jk 、r mk , while users i, j, and m have no interpersonal relationship with each other, that is, there is no communication record data between them. There is an interpersonal relationship between users m and n, and the corresponding relationship weight is r nm .

[0061] The related user identification unit 16 sequentially identifies each user as a current user, and for each current user, identifies a predetermined number of users who have the highest degree of intimacy with the current user from users other than the current user as related users based on the relationship weight.

[0062] Figure 6 4 is a structural block diagram of an associated user determination unit in an embodiment of the present invention.

[0063] like Figure 6 As shown, the related user determination unit 16 includes a control unit 61 , a correlation value initialization unit 62 , a correlation value iteration unit 63 , a correlation value weighting unit 64 , and a related user determination unit 65 .

[0064] The control unit 61 is used to control the correlation value initialization unit 62, the correlation value iteration unit 63, the correlation value weighting unit 64 and the associated user determination unit 65 to determine the associated user for each current user in turn. For each current user, the determination process of the associated user corresponding to the current user is specifically as follows:

[0065] The correlation value initialization unit 62 initializes the correlation value of the entity node corresponding to each user to 1 / n according to the number n of all users, and takes the entity nodes of users other than the current user as correlation nodes.

[0066] The relevance value iteration unit 63 repeatedly calculates the relevance value between each relevant node and the entity node of the current user until the relevance values ​​of all relevant nodes converge. In this embodiment, the relevance value iteration unit 63 adopts the pagerank algorithm, the relevance value is the PR value, and the relevance value PR of the i-th relevant node is i The calculation method is:

[0067]

[0068] In the formula, B i is the set of all entity nodes associated with the relevant node i, L iis the number of entity nodes associated with the relevant node i, PR v , is the correlation value of the entity node v associated with the related node i, and d is the damping coefficient (in this embodiment, the value of the damping coefficient d is 0.85).

[0069] The correlation value weighting unit 64 respectively multiplies the converged correlation value of each correlation node and the relationship weight between the correlation node and the entity node of the current user, thereby obtaining a weighted correlation value of each correlation node.

[0070] The associated user determination unit 65 sorts the related nodes according to the weighted correlation values, and obtains the users corresponding to the predetermined number of related nodes with the largest weighted correlation values ​​as the associated users corresponding to the current user. The number of associated users can be set according to actual conditions, and the number of associated users in this embodiment is set to 3.

[0071] by Figure 5 Taking user k as the current user as an example, after the relevance value iteration unit 63 calculates the PR values ​​of users i, j, m, and n, the PR values ​​of users i, j, m, and n are multiplied by the relationship weights between the associated users and the current user k, thereby obtaining the weighted relevance values ​​of users i, j, m, and n. Among them, the PR values ​​of users i, j, and m only need to be multiplied by r ik 、r jk 、r mk However, user n is indirectly related to user k, so the PR value of user n needs to be multiplied by r at the same time. mk and r nm .

[0072] Assuming that the weighted relevance values ​​of users i, j, m, and n are 0.8, 0.95, 0.5, and 0.83 respectively, the associated users determined by the final user k are users i, j, and n.

[0073] The user portrait constructing unit 17 is used to use the first user tag of the associated user as the second user tag of the current user, thereby constructing a user portrait of the current user consisting of the first user tag and the second user tag.

[0074] In this embodiment, after the user portrait construction unit 17 propagates the first user tag of the associated user to the current user to form the second user tag, the current user has all the tags of himself and all the associated users, and these tags constitute the user portrait of the current user.

[0075] Figure 7 It is a flow chart of the user portrait building action of the user portrait building device in an embodiment of the present invention.

[0076] like Figure 7As shown, once the data acquisition unit 13 acquires the user's basic information, behavior data, and communication record data, the user profile construction process of the user profile construction device 10 begins, and the process specifically includes the following steps:

[0077] Step S1, the user tag generation unit 14 calculates the user tag of each user according to the user's behavior data, and then proceeds to step S2;

[0078] Step S2, the communication frequency counting unit 51 of the relationship weight calculation unit 15 counts the communication frequency between each pair of communication initiators and communication receivers according to the communication occurrence time corresponding to the communication record, and then proceeds to step S3;

[0079] Step S3, the intimacy value calculation unit 52 calculates the intimacy value between each pair of communication initiators and communication recipients based on a predetermined intimacy value calculation method, according to the communication duration, communication frequency and user basic information, and then proceeds to step S4;

[0080] Step S4, after the intimacy value calculation unit 52 calculates the intimacy values ​​between all users, the normalization processing unit 53 normalizes all the intimacy values ​​to obtain the relationship weights between the two users, and then proceeds to step S5;

[0081] Step S5, the control unit 61 of the associated user determination unit 16 determines whether all users are taken as current users and the determination of associated users is completed. If it is judged to be negative, the next user (the first user at the beginning) is taken as the current user in turn and the process proceeds to step S6. If it is judged to be positive, the process proceeds to step S10;

[0082] Step S6, the correlation value initialization unit 62 initializes the correlation value of the entity node corresponding to each user to 1 / n according to the number n of all users, and takes the entity nodes of users other than the current user as the correlation nodes, and then proceeds to step S7;

[0083] Step S7, the correlation value iteration unit 63 repeatedly calculates the correlation value between each correlation node and the entity node of the current user until the correlation values ​​of all the correlation nodes converge, and then proceeds to step S8;

[0084] Step S8, the correlation value weighting unit 64 multiplies the converged correlation value of each correlation node and the relationship weight between the correlation node and the entity node of the current user, thereby obtaining a weighted correlation value of each correlation node, and then proceeds to step S9;

[0085] Step S9, the associated user determination unit 65 sorts the related nodes according to the weighted correlation values, and obtains the users corresponding to a predetermined number of related nodes with the largest weighted correlation values ​​as the associated users corresponding to the current user, and then proceeds to step S5;

[0086] Step S10, for each current user, the user portrait construction unit 17 uses the first user tag of the associated user as the second user tag of the current user, thereby constructing a user portrait of the current user consisting of the first user tag and the second user tag, and then enters the end state.

[0087] Through the above process, the construction of user portraits for all users is completed. Enterprises can use this user portrait to judge user preferences and provide personalized services, perform preference analysis, and other processing.

[0088] Example Function and Effect

[0089] According to the user portrait construction device, method and computer-readable medium provided in this embodiment, since the relationship weight between each two users is generated based on the user basic information and communication record data of the users through relationship weight calculation, and the predetermined number of associated users with the largest relationship weight of each user are determined according to the relationship weight, the associated users with the closest relationship to each current user can be determined. Next, on the basis of generating the first user tag of each user according to the behavior data of each user, the first user tag of the associated user is used as the second user tag of the current user to construct the user portrait of the current user. In this way, the user portrait can include not only the tags generated according to the user's own behavior data, but also the tags of multiple associated users with close relationships with the user, which not only makes the user portrait of each user richer and more comprehensive, but also for some users with less or even no behavior data, the user portrait of the user can be constructed through the tags of the associated users, which can further provide enterprises with user analysis or service provision.

[0090] In the embodiment, when generating relationship weights, not only the communication frequency and duration between users are obtained based on the users' communication record data to analyze the closeness of communication between users, but also the interpersonal relationships between users are comprehensively analyzed based on the users' addresses, genders, and ages. Therefore, the intimacy between users is calculated based on the users' communication record data and the users' basic information, which helps to subsequently propagate user tags based on the intimacy.

[0091] Furthermore, when determining the associated users, the correlation values ​​between the users are first iteratively calculated, and then the weighted correlation values ​​are obtained by multiplying the correlation values ​​with the relationship weights. Therefore, the correlation degree of each user relative to the current user can be determined. The larger the weighted correlation value, the closer the relationship between the user and the current user. On this basis, a predetermined number of associated users with the closest relationship to the current user can be determined, and the labels of these associated users can be propagated to the current user.

[0092] In the embodiment, since the behavior data and user communication records are divided into historical data and real-time data, and the user information storage unit and the communication data storage unit use the Hadoop cluster to store historical data and the Kafka cluster to store real-time data, it solves the problem that the early data collection and later data storage cannot well meet the characteristics of rich data volume and real-time nature of the operator, and ensures that the large amount of data received by the operator in real time can be processed in real time and orderly and used in the user portrait generation process.

[0093] The above embodiments are only used to illustrate specific implementation modes of the present invention, and the present invention is not limited to the description scope of the above embodiments.

[0094] For example, in the above embodiment, whether the communication sender and the communication receiver are strangers is determined by judging whether the communication duration and the communication frequency are not higher than a predetermined threshold. In other embodiments of the present invention, whether the communication sender and the communication receiver are strangers can also be determined by using a predetermined algorithm to obtain a parameter value and comparing the parameter value with a predetermined threshold.

[0095] In addition, when calculating the intimacy value, as another alternative, it is also possible not to pre-divide interpersonal relationships and set corresponding intimacy values, but to directly use a predetermined algorithm to directly calculate a parameter value as the intimacy value between users using information such as communication duration, communication frequency, address, age, gender, etc.

[0096] For example, in the above embodiment, the communication record data is the communication record data generated by telephone communication between users. In other schemes of the present invention, the communication record data can also be the communication record data generated by SMS communication, message communication or email communication between users. In this case, each communication record only has the time when the communication is initiated. When calculating the intimacy value, it is not necessary to judge based on the communication duration but only based on the communication frequency. Therefore, when the communication frequency is not higher than the predetermined threshold, it is determined whether the communication sender and the communication receiver are strangers. This method can also realize the calculation of the intimacy between users.

[0097] For example, in the above embodiment, the associated user determination unit determines only three associated users for each current user. In other embodiments of the present invention, the predetermined number of associated users may also be a number that varies with the number of users associated with the current user, that is, the more users associated with the current user, the greater the predetermined number. For example, the predetermined number may be obtained according to a certain ratio. If the number of users associated with the current user is n, the predetermined number is the number obtained by multiplying n by a certain ratio. In this way, the more relationships the current user has, that is, the more users associated with the current user, the richer the information about the current user.

Claims

1. A user portrait construction device, It is characterized in that include: The user information storage unit stores the basic user information of each user and the behavior data generated by the user when surfing the Internet; A user tag generating unit, based on a plurality of tags preset for various behavior data, generates a corresponding tag as a first user tag of the user according to the behavior data of each user; A communication data storage unit, storing communication record data generated by the communication between the users; A relationship weight calculation unit, based on the user basic information and communication record data, takes the user as an entity node to calculate the relationship weight between each two of the users reflecting the intimacy between the two users; an associated user determination unit, which sequentially takes each of the users as a current user, and determines a predetermined number of users who have the greatest intimacy with the current user from among the users other than the current user based on the relationship weight as associated users; as well as A user portrait constructing unit uses the first user tag of the associated user as the second user tag of the current user, thereby constructing a user portrait of the current user consisting of the first user tag and the second user tag, The associated user determination unit includes an associated degree value initialization unit, an associated degree value iteration unit, an associated degree value weighting unit, and an associated user determination unit. For each of the current users, the relevance value initialization unit initializes the relevance value of the entity node corresponding to each of the users to 1 / n according to the number n of all the users, and takes the entity nodes of the users other than the current user as relevant nodes; The correlation value iteration unit repeatedly calculates the correlation value between each of the correlation nodes and the entity node of the current user until the correlation values ​​of all the correlation nodes converge. The correlation value PR of the i-th correlation node i The calculation method is: In the formula, B i is the set of all entity nodes associated with the relevant node i, L i is the number of entity nodes associated with the relevant node i, PR v , is the correlation value of the entity node v associated with the related node i, d is the damping coefficient, The correlation value weighting unit multiplies the converged correlation value of each of the correlation nodes and the relationship weight between the correlation node and the entity node of the current user, thereby obtaining a weighted correlation value of each of the correlation nodes. The associated user determination unit sorts the related nodes according to the weighted correlation values, and obtains the users corresponding to a predetermined number of related nodes with the largest weighted correlation values ​​as the associated users corresponding to the current user.

2. The user portrait construction device according to claim 1 , Features: The user information storage unit also stores a user identification number of each user. The communication record data at least includes the user identification number of the user who is the communication initiator, the user identification number of the user who is the communication recipient, multiple communication records between the communication initiator and the communication recipient, and the communication duration and communication initiation time corresponding to each communication record, The relationship weight calculation unit includes: A communication frequency counting unit, used for counting the communication frequency between the communication initiator and the communication recipient according to the number of the communication records and the communication initiation time; an intimacy value calculation unit, which calculates the intimacy value between each pair of the communication initiator and the communication recipient respectively according to at least the communication duration and the communication frequency based on a predetermined intimacy value calculation method; The normalization processing unit normalizes all the intimacy values ​​to form the relationship weight.

3. The user portrait construction device according to claim 2, characterized in that: in, The user basic information includes at least the gender, age and address of the user. The intimacy value calculation method is: A plurality of interpersonal relationships and the intimacy value corresponding to each interpersonal relationship are pre-set, and the interpersonal relationship between the communication initiator and the communication recipient is analyzed based on the communication duration and the communication frequency between the communication initiator and the communication recipient, and based on the address, gender and age of the communication initiator and the communication recipient, so as to obtain the intimacy value between the communication initiator and the communication recipient according to the interpersonal relationship.

4. The user portrait construction device according to claim 1, It is characterized in that Also includes: Data Acquisition Department, The behavior data and the user communication records are divided into historical data and real-time data. The user information storage unit and the communication data storage unit use the Hadoop cluster to store the historical data, and use the Kafka cluster to store the real-time data. The data acquisition unit acquires the historical data through the batch processing framework Hadoop, and acquires the real-time data through the streaming processing framework Spark by streaming processing and preprocesses the real-time data to form preprocessed real-time data, thereby respectively acquiring the historical data and the preprocessed real-time data as the behavior data and communication record data of each user.

5. A method for constructing a user portrait. It is characterized in that The steps include: User information storage step, storing basic user information of each user registered and behavior data generated by the user when surfing the Internet; A user tag generating step, based on a plurality of tags preset for various behavior data, generating a corresponding tag as a first user tag of the user according to the behavior data of each user; Communication data storage step, storing communication record data generated by communication between the users; A relationship weight calculation step, based on the user basic information and communication record data, taking the user as an entity node, calculates the relationship weight between each two of the users reflecting the intimacy between the two users; an associated user determination step, taking each of the users as the current user in turn, and determining a predetermined number of users with the greatest intimacy with the current user from the users other than the current user based on the relationship weight as associated users; as well as a user portrait construction step, using the first user tag of the associated user as the second user tag of the current user, thereby constructing a user portrait of the current user consisting of the first user tag and the second user tag, The associated user determination unit includes an associated degree value initialization unit, an associated degree value iteration unit, an associated degree value weighting unit, and an associated user determination unit. For each of the current users, the relevance value initialization unit initializes the relevance value of the entity node corresponding to each of the users to 1 / n according to the number n of all the users, and takes the entity nodes of the users other than the current user as relevant nodes; The correlation value iteration unit repeatedly calculates the correlation value between each of the correlation nodes and the entity node of the current user until the correlation values ​​of all the correlation nodes converge. The correlation value PR of the i-th correlation node i The calculation method is: In the formula, B i is the set of all entity nodes associated with the relevant node i, L i is the number of entity nodes associated with the relevant node i, PR v , is the correlation value of the entity node v associated with the related node i, d is the damping coefficient, The correlation value weighting unit multiplies the converged correlation value of each of the correlation nodes and the relationship weight between the correlation node and the entity node of the current user, thereby obtaining a weighted correlation value of each of the correlation nodes. The associated user determination unit sorts the related nodes according to the weighted correlation values, and obtains the users corresponding to a predetermined number of related nodes with the largest weighted correlation values ​​as the associated users corresponding to the current user.

6. A computer readable medium for recording a computer program, It is characterized in that The computer program is used to enable the user profile building device to perform the following steps: User information storage step, storing basic user information of each user registered and behavior data generated by the user when surfing the Internet; A user tag generating step, based on a plurality of tags preset for various behavior data, generating a corresponding tag as a first user tag of the user according to the behavior data of each user; Communication data storage step, storing communication record data generated by communication between the users; A relationship weight calculation step, based on the user basic information and communication record data, taking the user as an entity node, calculates the relationship weight between each two of the users reflecting the intimacy between the two users; an associated user determination step, taking each of the users as the current user in turn, and determining a predetermined number of users with the greatest intimacy with the current user from the users other than the current user based on the relationship weight as associated users; as well as a user portrait construction step, using the first user tag of the associated user as the second user tag of the current user, thereby constructing a user portrait of the current user consisting of the first user tag and the second user tag, The associated user determination unit includes an associated degree value initialization unit, an associated degree value iteration unit, an associated degree value weighting unit, and an associated user determination unit. For each of the current users, the relevance value initialization unit initializes the relevance value of the entity node corresponding to each of the users to 1 / n according to the number n of all the users, and takes the entity nodes of the users other than the current user as relevant nodes; The correlation value iteration unit repeatedly calculates the correlation value between each of the correlation nodes and the entity node of the current user until the correlation values ​​of all the correlation nodes converge. The correlation value PR of the i-th correlation node i The calculation method is: In the formula, B i is the set of all entity nodes associated with the relevant node i, L i is the number of entity nodes associated with the relevant node i, PR v , is the correlation value of the entity node v associated with the related node i, d is the damping coefficient, The correlation value weighting unit multiplies the converged correlation value of each of the correlation nodes and the relationship weight between the correlation node and the entity node of the current user, thereby obtaining a weighted correlation value of each of the correlation nodes. The associated user determination unit sorts the related nodes according to the weighted correlation values, and obtains the users corresponding to a predetermined number of related nodes with the largest weighted correlation values ​​as the associated users corresponding to the current user.