A data augmentation method for user profiling
By constructing user heterogeneous network graphs and self-supervised learning to generate pseudo labels, the problem of low label rate in user portraits is solved, the generalization and label accuracy of the model are improved, the problem of reduced performance of graph neural networks is overcome, and the User portrait label prediction under low label rate.
Patent Information
- Application Number
- CN202210232693.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-09
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-03-09
AI Technical Summary
In user portrait research, due to the extremely low label rate, the amount of data for training the model is insufficient, and the performance of the graph neural network drops sharply. The number of labels in the original data is extremely low, resulting in excessive noise and affecting the accuracy of the labels.
By constructing a user heterogeneous network graph, the graph neural network is used to aggregate neighborhood node information, generate node embedding vectors, and combine self-supervised learning and graph partitioning technology to generate pseudo labels, expand the training data set, and improve the generalization of the model.
When the label rate is extremely low, it improves the accuracy of user portrait labels and the generalization ability of the model, reduces the cost of manually labeling data sets, and overcomes the performance degradation problem of graph neural networks caused by the Laplacian smoothing phenomenon. .
Smart Images

Figure CN114610967B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of user portrait label prediction, and in particular to a data augmentation method applied to the field of user portrait. Background Art
[0002] In recent years, the speed of informatization construction in my country has been at the forefront of the world. With the increasing level and popularity of informatization, according to CNNIC statistics, the number of Internet users in my country has exceeded the 1 billion mark. As of June 2021, the number of Internet users in my country has reached 1.011 billion, of which the number of online payment users has reached nearly 900 million. With the rapid development of informatization, the application of "Internet +" is becoming more and more extensive and in-depth. Only by understanding the market, customers, and competitors can we launch high-quality and low-cost products and gain more market favor. Finally, it is necessary to break through tradition and establish new rules. Traditional financial institutions want to understand users, and they choose to rely more on account managers and communication between people, which consumes a lot of manpower and financial resources, and due to the differences between users, it is difficult to achieve effective communication. The user portrait system can realize any quick understanding of customers without directly connecting with users. The ultimate goal is to bind customers and companies through various systems and products, and achieve truly high user loyalty. This user is loyal to the system, loyal to the company's products and services, and not limited by people.
[0003] The concept of user portrait was first proposed by Alan Copper, the father of interactive design. He pointed out that user portrait is a representative of virtual users and a three-dimensional user model composed of a series of data information. In simple terms, user portrait is a user analysis method that labels users through various user behavior data, concretizes each user image, and strives to objectively and accurately describe user characteristics. User portrait was first applied in the field of e-commerce. Due to its obvious practical effect and good adaptability, it has been widely used in disciplines such as computer and library information as an effective target user analysis tool. With the rise of big data technology, user portrait has gradually become a research hotspot for domestic and foreign scholars, especially domestic scholars. Although domestic and foreign scholars have different understandings of "user portrait" in different periods and different disciplines, the basic connotation is consistent. They all believe that user attributes, characteristics and labels are the three elements of user portrait. At present, most of the research on user portrait focuses on the application of user portrait, such as personalized recommendation, advertising system, event marketing, content recommendation, interest preference, etc.; the application scenarios mainly involve traditional industries represented by libraries, medical care, finance, etc. and Internet industries represented by online social platforms, online question-and-answer communities, e-commerce websites, etc.
[0004] However, there are a series of problems in user portrait research. For example, since the amount of data involved in the research is usually very large, too much useless data or too little useful data will lead to too much noise in the user portrait, which seriously affects the accuracy of its label; the labels of user portraits are obviously multi-dimensional and multi-label, and the number of users with labels in the original data is extremely low, resulting in a serious lack of data for training the model. Due to the Laplace smoothing phenomenon, the performance of graph neural networks drops sharply on graphs with extremely low label rates. Therefore, how to accurately predict labels for users in the case of extremely low label rates is a key difficulty that needs to be studied urgently. Summary of the invention
[0005] In order to solve the problems existing in the prior art, the present invention provides a data augmentation method applied to the field of user portraits, which overcomes the problem of extremely low label rate and improves the generalization of the model;
[0006] The technical solutions adopted are:
[0007] A data augmentation method applied to the field of user portraits, comprising the following steps:
[0008] S1: Based on the friendship relationships of users in the original data, a user heterogeneous network graph is constructed. Each node in the graph represents a user, and each edge in the graph represents that two connected users have a friendship relationship. The neighborhood node information of the current node is aggregated through the graph neural network to obtain the embedding vector of the current node.
[0009] S2: Based on the current node embedding vector obtained in S1, a multi-label classification probability matrix is obtained through a graph neural network classifier, and the probability of each label of each node is filtered, and node labels are generated if the probability is greater than the threshold;
[0010] The number of node labels is 1-N;
[0011] S3: Based on the user heterogeneous network graph, using the self-supervised learning idea, adopt the self-supervised learning method of graph partitioning technology to obtain several divided subgraphs, align the unlabeled nodes in each subgraph to match them with the real labels, and generate pseudo labels for the unlabeled nodes;
[0012] S4: Perform self-check on the node labels generated by S2 and the pseudo labels generated in S3. If they are consistent, add them to the real label set and iterate the training multiple times to expand the training data set.
[0013] The S1 specifically includes:
[0014] S1.1 Fill missing values, filter duplicate values, and process outliers on the original data to be processed to obtain processed user behavior data;
[0015] S1.2: Use user friend relationships to build a user adjacency matrix; use user behavior data to build a user feature matrix;
[0016] S1.3: Based on the obtained user adjacency matrix and feature matrix, the graph neural network model is used to aggregate the relevant information of the neighborhood nodes through the graph convolution operator to obtain the embedded representation of the node.
[0017] The step S2 specifically includes:
[0018] S2.1: Based on the obtained node embedding vector, a multi-label classification probability matrix of the node is obtained through a graph neural network classifier. The number of rows in the matrix represents the number of user nodes, and the number of columns represents the number of labels.
[0019] S2.2: According to the set threshold, the node label probability is filtered, and the node labels are generated if they are greater than the threshold.
[0020] The step S3 specifically includes:
[0021] S3.1: According to the node representation of the user heterogeneous network graph, the distance of the nodes in the feature space is calculated, and the similarity matrix of the nodes is calculated based on the distance. The similarity matrix is used as input, and the entire user heterogeneous graph is divided using the graph partitioning technology to obtain several subgraphs;
[0022] S3.2: In each subgraph, the nodes belonging to each type of label are classified in turn, and then the average value of each dimension is calculated in the classified labeled node embedding vector. The obtained new node embedding vector is used as the simple centroid. According to the obtained centroid, the distance from the unlabeled node embedding vector to the centroid is calculated using the Euclidean distance formula, as shown in formula (1):
[0023]
[0024] Among them, X represents the node, Y represents the centroid, and x i represents the value of the node embedding vector in the i-th dimension; y i Represents the value of the centroid embedding vector in the i-th dimension; those greater than the set threshold are assigned the label as a pseudo label.
[0025] The step S4 specifically includes:
[0026] The labels generated by S2 and the pseudo-labels generated by S3 are self-checked. If they are consistent, they are added to the real label set to improve the label accuracy. The training is iterated multiple times to expand the training data set.
[0027] Beneficial technical effects
[0028] The present invention provides a data augmentation method applied to the field of user portraits, which overcomes the problem of extremely low label rate and improves the generalization of the model, so as to predict multi-dimensional and multi-label user portrait labels based on user behavior data, and effectively combines self-supervised learning to achieve user classification when the user label rate is extremely low, thereby reducing the cost of manually annotating data sets and improving the generalization ability of the model. At the same time, it overcomes the problem that the performance of graph neural networks on graphs with extremely low label rates drops sharply due to the Laplace smoothing phenomenon, thereby improving the accuracy of model classification. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a flow chart of the user portrait label prediction method of the present invention;
[0030] Figure 2 The present invention calculates the user node embedding model graph;
[0031] Figure 3 It is a flow chart of the user heterogeneous graph partitioning algorithm of the present invention;
[0032] Figure 4 This is a diagram of the user portrait label prediction framework of the graph neural network based on self-supervised learning of the present invention. DETAILED DESCRIPTION
[0033] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments;
[0034] In this embodiment, a data augmentation method applied to the user portrait field is provided, such as Figure 1 As shown, the following steps are included:
[0035] S1: Based on the friendship relationships of users in the original data, a user heterogeneous network graph is constructed. Each node in the graph represents a user, and each edge in the graph represents that two connected users have a friendship relationship. The neighborhood node information of the current node is aggregated through the graph neural network to obtain the embedding vector of the current node.
[0036] S1.1: Fill missing values, filter duplicate values, and process outliers on the original data to be processed to obtain processed user behavior data;
[0037] Among them, among the missing value filling methods, the commonly used methods are mean filling, modeling prediction and high-dimensional mapping;
[0038] The mean filling method has different processing strategies according to whether the distance of the sample attribute is measurable: if the distance of the sample attribute is measurable, the average value of the valid value of the attribute is used to interpolate the missing value; if the distance is not measurable, the mode of the valid value of the attribute is used to interpolate the missing value;
[0039] The modeling prediction takes the missing attributes as the prediction target, divides the data set into two categories according to whether it contains missing values of specific attributes, and uses the existing machine learning algorithm to predict the missing values of the data set to be predicted;
[0040] The high-dimensional mapping method maps the attribute to a high-dimensional space using a one-hot encoding technique; the attribute value containing K discrete value ranges is expanded to K+1 attribute values, and if the attribute value is missing, the K+1th attribute value after expansion is set to 1;
[0041] S1.2: Use user friend relationships to build a user adjacency matrix; use user behavior data to build a user feature matrix;
[0042] According to the obtained user friend relationships, construct the user adjacency matrix; the currently popular adjacency matrix construction methods are classified into depth-first search method and breadth-first search method;
[0043] The depth-first search method processes nodes recursively from the root node of the tree; the specific method is as follows:
[0044] (1) Select the first vertex to be visited;
[0045] (2) Mark this vertex as visited;
[0046] (3) Start from the 1st, 2nd, 3rd, ..., adjacent vertices of the vertex that have not been visited, and perform a depth-first search on them;
[0047] (4) If there are still vertices that have not been visited, select a starting vertex and go to (2);
[0048] (5) All vertices have been visited, then the process ends;
[0049] The breadth-first search method processes vertices in layers, with the vertices closest to the starting point being visited first and the vertices farthest away being visited last, as shown below:
[0050] (1) Select the first vertex to be visited;
[0051] (2) Mark the vertices as visited;
[0052] (3) Visit the first, second, ..., unvisited adjacent vertices of the visited vertex in turn and mark them; then go to (3);
[0053] (4) If there are still vertices that have not been visited, select a starting vertex and go to (2);
[0054] (5) All vertices have been visited, then the process ends;
[0055] According to the processed user behavior data, the popular one-hot encoding is used to encode it to obtain the user's feature matrix;
[0056] One-hot encoding is also called one-bit effective encoding. The method is to use an N-bit state register to encode N states. Each state has its own independent register bit, and at any time, only one of them is valid.
[0057] S1.3: If Figure 2 As shown, based on the obtained user adjacency matrix and feature matrix, the graph neural network model is used to aggregate the relevant information of the neighborhood nodes through the graph convolution operator to obtain the embedded representation of the node;
[0058] Based on the obtained user adjacency matrix and feature matrix, the graph neural network model is used to obtain the embedded representation of the node;
[0059] Graph convolutional neural networks extend traditional convolution to convolution in the graph domain; GCN based on spectral domain theory is widely recognized to be derived from graph signal processing theory; the graph Fourier domain is covered by the graph Fourier basis, which is essentially obtained by normalizing the eigenvectors of the graph Laplace; the graph convolution operator can be defined by analogy with the traditional convolution theorem, that is, the graph convolution of the graph signal and the graph filter in the Fourier domain of the graph is equivalent to the multiplication of the transformed signal; a lot of work has been done on the parameterization of graph filters; the spatial domain GCN directly defines the graph convolution operator on the structure of the graph, extracts and aggregates the features of neighbor nodes to learn the node embedding in the graph;
[0060] S2: According to the obtained node embedding vector, a multi-label classification probability matrix is obtained, and the probability of each label of each node is filtered. The probability greater than the threshold is used as the node label, which can be one or more;
[0061] The probability matrix of each node corresponding to each label is obtained through a multi-layer graph convolutional neural network, and a threshold is set. If the probability value of a label of a node is greater than the threshold, this label is set as the node label;
[0062] S3: Figure 4 As shown in the figure, based on the user heterogeneous graph, the idea of self-supervised learning is used, and the popular self-supervised learning method of graph partitioning technology is adopted to obtain several divided subgraphs. In each subgraph, the unlabeled nodes are aligned to match the real labels, and pseudo labels are generated for the unlabeled nodes.
[0063] Self-supervised learning is a direction in which neural networks are first applied in the field of computer vision. It aims to obtain models with higher generalization, versatility and robustness through self-supervised learning. So far, self-supervised learning is mainly divided into two categories: pre-training and fine-tuning, and multi-task learning. In pre-training and fine-tuning, first pre-train with self-supervised pre-training tasks to generate pseudo labels, and then fine-tune using downstream supervised tasks, while in multi-task learning, the neural network is trained simultaneously, that is, the joint training of the target supervised task and the self-supervised task;
[0064] S3.1: According to the node representation of the user heterogeneous network graph, the distance of the nodes in the feature space is calculated, and the similarity matrix of the nodes is obtained according to the distance. The similarity matrix is used as input, and the entire user heterogeneous graph is divided using the graph partitioning technology to obtain several subgraphs;
[0065] At present, the main methods for calculating the distance between vectors include Euclidean distance, Manhattan distance, Chebyshev distance, etc. In this embodiment, Euclidean distance is used as the distance measurement method;
[0066] Since the vector dimension is very high, in this embodiment, a Gaussian kernel function is used to measure the similarity between nodes; the Gaussian kernel function (Gaussian kernel), also known as the radial basis function (RBF) function, is a commonly used kernel function; it can map finite-dimensional data to a high-dimensional space, as shown in formula (2):
[0067]
[0068] Among them, formula (2) involves the calculation of the Euclidean distance between two vectors. The Gaussian kernel function is a monotonic function of the Euclidean distance between two vectors. σ represents the bandwidth, which controls the radial range of action, and σ controls the local range of action of the Gaussian kernel function. When the Euclidean distance between x and x′ is within a certain interval, x′ is set to be fixed, and k(x, x′) changes significantly with the change of x.
[0069] The node similarity matrix is obtained based on the Gaussian kernel function. The elements in the similarity matrix represent the weights of the edges between nodes.
[0070] like Figure 3As shown in the figure, the graph partitioning algorithm divides the nodes in the graph into several partitions, and maximizes the edge weight within each partition and minimizes the edge weight between partitions. The input of the graph partitioning algorithm is the similarity matrix and the number of partitions K, and the output is a partition set in which the union of all partitions is the entire node set, and the intersection between each partition is empty; and the graph partitioning algorithm requires that the number of nodes in each partition is roughly the same. The goal of graph partitioning is to minimize the weight of the edge between partitions and finally obtain the partition index; graph partitioning is different from the clustering method in the feature space. It uses the idea of Laplace smoothing, but the difference is that in GCNS, Laplace smoothes the current node and all neighboring nodes, while graph partitioning selects nodes with large edge weights among the connected nodes to group them first, thereby considering global smoothness;
[0071] S3.2: In each subgraph, the centroid of all nodes with a certain label is calculated. Based on the obtained centroid, the distance from the unlabeled nodes in the subgraph to the centroid is calculated. If the distance is greater than the threshold, the label is assigned as a pseudo label.
[0072] The purpose of the alignment mechanism is to convert the labels after the graph is divided into labels in the actual label set according to the embedding distance; for the labeled data in each subgraph after the graph is divided, the centroid corresponding to each label is calculated; the distance from each node to the centroid is calculated based on the centroid, and those greater than the threshold are set as pseudo labels; through the alignment mechanism, we can construct pseudo labels for the unlabeled nodes in each partition according to their embedding distance, and construct one or more pseudo labels for the nodes by comparing with the centroid of each label;
[0073] S4: Perform self-check on the labels generated by S2 and the pseudo labels generated by S3. If they are consistent, add them to the real label set to improve the accuracy of the labels. Perform training iteratively multiple times to expand the training data set.
[0074] To further explain the present invention, the iterative self-training algorithm based on self-supervised learning is:
[0075] Input: feature matrix, adjacency matrix, labeled node set and unlabeled node set, graph convolutional network
[0076] Output: graph node embedding multi-label node probability matrix;
[0077] First, the graph convolutional network model is trained on the initial labeled node set and the unlabeled node set to obtain the node embedding vector; then the graph is partitioned for the embedding vectors of all nodes to obtain their partition labels; on this basis, the labels of each partition are aligned based on the embedding distance to obtain the pseudo-label of each unlabeled node; in the following self-training process, for the nodes with the highest confidence of each selected class, we perform self-checks based on the pseudo-labels to ensure that they belong to the same class in the embedding space, and then add the filtered nodes to the label set and perform a new stage of self-training;
[0078] The pseudo code of the iterative self-training algorithm based on self-supervised learning is as follows:
[0079]
[0080]
Claims
1. A data augmentation method applied to the field of user profiling, characterized in that: The following steps are involved: S1: Based on the friend relationships of users in the original data, a user heterogeneous network graph is constructed. Each node in the graph represents a user, and each edge in the graph represents that two connected users have a friend relationship. The neighborhood node information of the current node is aggregated through the graph neural network to obtain the embedding vector of the current node. S2: Based on the current node embedding vector obtained in S1, a multi-label classification probability matrix is obtained through a graph neural network classifier, and the probability of each label of each node is filtered, and node labels are generated if the probability is greater than the threshold; S3: Based on the user heterogeneous network graph, using the self-supervised learning idea and the self-supervised learning method of graph partitioning technology, several sub-graphs are obtained after partitioning. In each sub-graph, the unlabeled nodes are aligned to match the real labels and generate pseudo labels for the unlabeled nodes. The step S3 specifically includes: S3.1: According to the node representation of the user heterogeneous network graph, the distance of the nodes in the feature space is calculated, and the similarity matrix of the nodes is calculated based on the distance. The similarity matrix is used as input, and the entire user heterogeneous graph is divided using the graph partitioning technology to obtain several subgraphs; S3.2: In each subgraph, classify the nodes belonging to each type of label in turn, and then calculate the average value of each dimension in the classified labeled node embedding vector. The obtained new node embedding vector is used as the simple centroid. Based on the obtained centroid, the Euclidean distance formula is used to calculate the distance from the unlabeled node embedding vector to the centroid. S4: Perform self-check on the node labels generated by S2 and the pseudo labels generated in S3. If they are consistent, add them to the real label set and iterate the training multiple times to expand the training data set.
2. The data augmentation method applied to the user portrait field as claimed in claim 1, characterized in that: The number of node labels is 1-N.
3. The data augmentation method applied to the user portrait field as claimed in claim 1, characterized in that: The S1 specifically includes: S1.1 Fill missing values, filter duplicate values, and process outliers on the original data to be processed to obtain processed user behavior data; S1.2: Use user friend relationships to build a user adjacency matrix; use user behavior data to build a user feature matrix; S1.3: Based on the obtained user adjacency matrix and feature matrix, the graph neural network model is used to aggregate the relevant information of the neighborhood nodes through the graph convolution operator to obtain the embedded representation of the node.
4. The data augmentation method applied to the user portrait field as claimed in claim 1, characterized in that: The step S2 specifically includes: S2.1: Based on the obtained node embedding vector, a multi-label classification probability matrix of the node is obtained through a graph neural network classifier. The number of rows in the matrix represents the number of user nodes, and the number of columns represents the number of labels. S2.2: According to the set threshold, the node label probability is filtered, and the node labels are generated if they are greater than the threshold.
5. The data augmentation method applied to the user portrait field as claimed in claim 1, characterized in that: The step S4 specifically includes: The labels generated by S2 and the pseudo-labels generated by S3 are self-checked. If they are consistent, they are added to the real label set to improve the label accuracy. The training is iterated multiple times to expand the training data set.
6. The data augmentation method applied to the user portrait field as claimed in claim 1, characterized in that: The Euclidean distance formula is shown in formula (1): Among them, X represents the node, Y represents the centroid, Represents the value of the node embedding vector in the i-th dimension; Represents the value of the centroid embedding vector in the i-th dimension; those greater than the set threshold are assigned the label as a pseudo label.
