Data processing system that converts shared data into user portraits
Deep learning technology is used to perform feature extraction and correlation analysis on user online behavior and basic text data to generate user preference portraits, which solves the problem that traditional user portraits cannot accurately reflect user needs and improves user satisfaction and stickiness.
Patent Information
- Application Number
- CN202410766786.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Traditional user portrait generation methods cannot fully reflect users' real needs and preferences. Especially in different time periods and application scenarios, user portraits have many dimensions and change rapidly, making it difficult to accurately understand user needs.
By obtaining user online behavior data collected by crawlers and user basic text data retrieved from the database, deep learning technology is used to perform feature extraction and correlation analysis to generate user preference portraits, combined with online behavior embedded coding, semantic coding, basic text data preprocessing and Feature aggregation, feature fusion based on category balance, and finally generating user preference portraits through the generator.
Achieve a more comprehensive and accurate understanding of user needs and preferences, provide products and services that better meet user expectations, and improve user satisfaction and stickiness.
Smart Images

Figure CN118332175B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and more specifically, to a data processing system for converting shared data into user portraits. Background Art
[0002] User portraits are an in-depth analysis and description of the target user group. By collecting and analyzing data such as user behavior, demographics, and psychological characteristics, a virtual representative user image is created. User portraits help companies gain a deeper understanding of user needs, motivations, and behavior patterns, thereby developing more effective marketing strategies, product designs, and service experiences, and improving user satisfaction and business growth.
[0003] Traditional user portraits usually have multiple dimensions and will show certain differences in different time periods and different application scenarios. Therefore, traditional user portrait generation methods cannot fully reflect the real needs and preferences of users.
[0004] Therefore, a data processing system for converting shared data into user profiles is desired. Summary of the invention
[0005] In order to solve the above technical problems, the present application is proposed. The embodiment of the present application provides a data processing system for converting shared data into user portraits, which first obtains user online behavior data collected by a crawler and user basic text data retrieved from a database, then uses deep learning technology to perform feature extraction and correlation analysis on the two, and finally generates a user preference portrait through a generator, thereby more comprehensively and accurately understanding user needs and preferences, so as to provide products and services that better meet user expectations, thereby improving user satisfaction and increasing user stickiness and loyalty.
[0006] According to one aspect of the present application, a data processing system for converting shared data into user portraits is provided, which includes:
[0007] A user portrait shared data acquisition module, used to acquire user online behavior data collected by the crawler and user basic text data retrieved from the database, wherein the user online behavior data collected by the crawler includes social media data, browsing comment records and purchase history records, and the user basic text data retrieved from the database includes personal information data and interest and hobby data;
[0008] An online behavior data feature extraction module, used to extract features from the user online behavior data collected by the crawler to obtain a semantic understanding feature vector associated with the user online behavior;
[0009] A basic text data feature extraction module, used for performing feature extraction on the user basic text data retrieved from the database to obtain the user basic text feature vector;
[0010] A user portrait feature association module, used for performing feature fusion based on category balance on the user online behavior associated semantic understanding feature vector and the user basic text feature vector to obtain a user portrait associated feature vector;
[0011] The user preference portrait generation module is used to generate a user preference portrait based on the user portrait association feature vector.
[0012] In the data processing system for converting the shared data into the user portrait, the online behavior data feature extraction module includes: an online behavior embedding coding unit, which is used to perform user online behavior embedding coding on the user online behavior data collected by the crawler to obtain multiple user online behavior embedding vectors; an online behavior embedding semantic coding unit, which is used to perform semantic coding on the multiple user online behavior embedding vectors to obtain the user online behavior associated semantic understanding feature vector.
[0013] In the data processing system for converting the shared data into the user portrait, the online behavior embedding semantic encoding unit includes: passing the multiple user online behavior embedding vectors through a user online behavior feature extractor based on a deep neural network to obtain multiple user online behavior feature vectors; cascading the multiple user online behavior feature vectors to obtain a user online behavior association feature vector; passing the user online behavior association feature vector through a user online behavior association semantic understanding model to obtain the user online behavior association semantic understanding feature vector.
[0014] In the data processing system for converting the above-mentioned shared data into user portraits, the basic text data feature extraction module includes: a basic text data preprocessing unit, which is used to perform data preprocessing on the user basic text data retrieved from the database to obtain a user basic text input tensor; a basic text tensor convolutional encoding unit, which is used to pass the user basic text input tensor through a user basic text feature encoder based on multiple convolutional layers to obtain the user basic text feature vector.
[0015] In the data processing system for converting the above-mentioned shared data into user portraits, the basic text data preprocessing unit includes: a user basic text data word vector conversion subunit, which is used to convert the user basic text data retrieved from the database into word vectors to obtain multiple user basic text feature vectors; a basic text feature vector feature aggregation subunit, which is used to perform feature aggregation on the multiple user basic text feature vectors to obtain the user basic text input tensor.
[0016] In the data processing system for converting the above-mentioned shared data into user portraits, the basic text feature vector feature aggregation subunit includes: calculating the correlation feature matrix between every two user basic text feature vectors in the multiple user basic text feature vectors to obtain multiple user basic text correlation matrices; arranging the multiple user basic text correlation matrices to obtain the user basic text input tensor.
[0017] In the data processing system for converting the above-mentioned shared data into a user portrait, the user portrait feature association module includes: applying the user online behavior associated semantic understanding feature vector and the user basic text feature vector to an activation function to obtain a user online behavior associated semantic understanding category probability feature vector and a user basic text category probability feature vector; determining a first interference coefficient vector and a second interference coefficient vector based on the user online behavior associated semantic understanding category probability feature vector and the user basic text category probability feature vector; correcting the user online behavior associated semantic understanding feature vector and the user basic text feature vector based on the first interference coefficient vector and the second interference coefficient vector to obtain a corrected user online behavior associated semantic understanding feature vector and a corrected user basic text feature vector; and fusing the corrected user online behavior associated semantic understanding feature vector and the corrected user basic text feature vector to obtain the user portrait association feature vector.
[0018] In the data processing system for converting the above-mentioned shared data into user portraits, the user preference portrait generation module includes: performing deep feature aggregation on the user portrait associated feature vector based on position structure information to obtain an optimized user portrait associated feature vector; passing the optimized user portrait associated feature vector through a user portrait generator to generate a user preference portrait.
[0019] In the data processing system for converting the above-mentioned shared data into user portraits, deep feature aggregation based on position structure information is performed on the user portrait-related feature vector to obtain an optimized user portrait-related feature vector, including: calculating the variance of a feature set composed of eigenvalues at all positions of the user portrait-related feature vector to obtain the eigenvalue variance of the user portrait-related feature vector; calculating the square of the absolute value of the eigenvalue at each position of the user portrait-related feature vector and then performing a logarithmic operation with base two to obtain a logarithmic transformation of the user portrait-related feature vector; accumulating and summing all eigenvalues of the logarithmic transformation of the user portrait-related feature vector to obtain the sum of the logarithmic transformation of the user portrait-related feature vector; dividing the sum of the logarithmic transformation of the user portrait-related feature vector by twice the eigenvalue variance of the user portrait-related feature vector and then multiplying it by the eigenvalue at each position of the user portrait-related feature vector to obtain the optimized user portrait-related feature vector.
[0020] Compared with the prior art, the data processing system for converting shared data into user portraits provided in the present application first obtains the user's online behavior data collected by the crawler and the user's basic text data retrieved from the database, and then uses deep learning technology to perform feature extraction and correlation analysis on the two. Finally, a generator is used to generate a user preference portrait, thereby understanding user needs and preferences more comprehensively and accurately, so as to provide products and services that better meet user expectations, thereby improving user satisfaction and increasing user stickiness and loyalty. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0022] Figure 1 A block diagram of a data processing system for converting shared data into user portraits according to an embodiment of the present application.
[0023] Figure 2 It is a block diagram of an online behavior data feature extraction module in a data processing system for converting shared data into user portraits according to an embodiment of the present application.
[0024] Figure 3 A block diagram of a basic text data feature extraction module in a data processing system for converting shared data into user portraits according to an embodiment of the present application.
[0025] Figure 4 A block diagram of a basic text data preprocessing unit in a data processing system for converting shared data into user portraits according to an embodiment of the present application.
[0026] Figure 5 is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0028] Figure 1 FIG. 1 is a block diagram of a data processing system for converting shared data into user portraits according to an embodiment of the present application. Figure 1As shown, the data processing system 100 for converting shared data into user portraits according to an embodiment of the present application includes: a user portrait shared data acquisition module 110, which is used to acquire user online behavior data collected by a crawler and user basic text data retrieved from a database, wherein the user online behavior data collected by the crawler includes social media data, browsing comment records and purchase history records, and the user basic text data retrieved from the database includes personal information data and interest and hobby data; an online behavior data feature extraction module 120, which is used to perform feature extraction on the user online behavior data collected by the crawler to obtain the user online behavior associated semantic understanding feature vector; a basic text data feature extraction module 130, which is used to perform feature extraction on the user basic text data retrieved from the database to obtain the user basic text feature vector; a user portrait feature association module 140, which is used to perform feature fusion based on category balance on the user online behavior associated semantic understanding feature vector and the user basic text feature vector to obtain a user portrait associated feature vector; a user preference portrait generation module 150, which is used to generate a user preference portrait based on the user portrait associated feature vector.
[0029] In the data processing system 100 for converting shared data into user portraits, the user portrait shared data acquisition module 110 is used to obtain the user online behavior data collected by the crawler and the user basic text data retrieved from the database, wherein the user online behavior data collected by the crawler includes social media data, browsing comment records and purchase history records, and the user basic text data retrieved from the database includes personal information data and interest and hobby data. It should be understood that traditional user portraits usually contain multiple dimensions, and user portraits will present different characteristics as time and application scenarios change. This situation causes the traditional user portrait generation method to be unable to fully and accurately reflect the user's real needs and preferences. Therefore, in the technical solution of the present application, a more accurate user preference portrait is constructed by converting shared data into user portraits. Specifically, the user online behavior data collected by the crawler includes social media data, browsing comment records and purchase history records. Social media data reflects the user's interactive behavior, preferences and social relationships on the social platform, and can reveal the user's social circle, interests and hobbies and attitude tendencies. Browsing comment records show the user's interest and views on specific content, which helps to understand the user's preferences and opinions. Purchase history records reveal the user's consumption habits, purchase preferences and tastes, and provide important marketing clues. The basic text data of users retrieved from the database includes personal information data and interest and hobby data. Among them, personal information data includes the user's basic identity information, contact information, geographic location, etc., which helps to build the user's basic profile and background information. Interest and hobby data reflects the user's interests, hobbies, preferred areas and activity preferences, providing a basis for personalized recommendations and customized services. The combination of these two data sources can provide the data processing system with rich and diverse user information, helping the system to better understand user behavior, needs and preferences. By analyzing, mining and correlating these data, the system can generate user portraits, thereby achieving precision marketing, personalized recommendations and user experience optimization.
[0030] In the data processing system 100 for converting shared data into user portraits, the online behavior data feature extraction module 120 is used to extract features from the user online behavior data collected by the crawler to obtain the user online behavior associated semantic understanding feature vector. It should be understood that the amount of original data is huge and complex, containing rich information and user behavior patterns. It is difficult to directly use the original data for analysis and understanding, so feature extraction is required to simplify the data and extract key information therein. Among them, the feature extraction process involves converting the original data into a representative feature vector to extract important features related to user behavior from the user online behavior data, such as user preferences, hobbies, social interactions, etc. The obtained user online behavior associated semantic understanding feature vector not only contains the surface features of user behavior, but also integrates semantic information, which is closer to the actual needs and intentions of users. By performing feature extraction and semantic understanding on user online behavior data, deep mining and understanding of user behavior can be achieved, helping enterprises and platforms to better understand user needs, accurately recommend products and services, and improve user experience and satisfaction.
[0031] Figure 2 FIG. 1 is a block diagram of an online behavior data feature extraction module in a data processing system for converting shared data into user portraits according to an embodiment of the present application. Figure 2As shown, in a specific embodiment of the present application, the online behavior data feature extraction module 120 includes: an online behavior embedding coding unit 121, which is used to perform user online behavior embedding coding on the user online behavior data collected by the crawler to obtain multiple user online behavior embedding vectors; an online behavior embedding semantic coding unit 122, which is used to perform semantic coding on the multiple user online behavior embedding vectors to obtain the user online behavior associated semantic understanding feature vector. It should be understood that user online behavior data usually contains a large amount of information, such as user interactions on social media, browsing history, and purchase behavior. These data reflect the user's interests, preferences, and behavioral habits, but the dimensions of the original data are high and sparse, which is not conducive to direct analysis and mining. Therefore, through user online behavior embedding coding, these complex behavior data can be converted into low-dimensional dense vectors to better capture the essential characteristics of user behavior. Among them, the process of user online behavior embedding coding involves mapping the user's behavior data into a low-dimensional embedding space for easy calculation and analysis. This encoding technology can use various deep learning models, such as neural networks, autoencoders, etc., to convert the original high-dimensional data into a compact representation, in which each dimension represents a specific behavior feature or semantic information. Through user online behavior embedding coding, we can abstract and represent user behavior and convert complex behavior patterns into vector forms that are easy to understand and process. These embedding vectors can better capture the associations and semantic information between user behaviors, and help reveal user behavior patterns, interests, and potential needs. The multiple user online behavior embedding vectors finally obtained provide a compact representation of user behavior and contain rich semantic information, laying the foundation for in-depth understanding of user behavior and providing personalized services.
[0032] Furthermore, semantic encoding is performed on multiple online behavior embedding vectors to obtain a user online behavior associated semantic understanding feature vector in order to more comprehensively and deeply understand the user's behavior pattern and behavior semantics, so as to better capture the association and meaning between user behaviors. Among them, by semantic encoding multiple online behavior embedding vectors, each user's behavior embedding vector can be represented as a richer and more abstract feature vector. This feature vector not only contains the user's behavior characteristics, but also integrates semantic information, which can better reflect the meaning and purpose of user behavior. The process of semantic encoding involves associating the user behavior embedding vector with semantic information, such as using natural language processing technology, knowledge graph or deep learning model to mine the potential semantics of user behavior. In this way, the user's behavior embedding vector can be converted into a feature vector with more explanatory and semantic understanding capabilities, which helps to understand the intention and needs behind the user's behavior. The obtained user online behavior associated semantic understanding feature vector can not only reflect the behavior characteristics of a single user, but also capture the association and semantic connection between user behaviors. This feature vector can more comprehensively describe the user's behavior pattern and behavior preference, and provide a more accurate and in-depth information basis for applications such as personalized recommendation and user portrait generation.
[0033] In a specific embodiment of the present application, the online behavior embedding semantic coding unit 122 includes: passing the multiple user online behavior embedding vectors through a user online behavior feature extractor based on a deep neural network to obtain multiple user online behavior feature vectors; cascading the multiple user online behavior feature vectors to obtain a user online behavior association feature vector; passing the user online behavior association feature vector through a user online behavior association semantic understanding model to obtain the user online behavior association semantic understanding feature vector. It should be understood that processing multiple user online behavior embedding vectors through a user online behavior feature extractor based on a deep neural network is intended to extract more advanced and more representative feature vectors from user behavior embedding. This process utilizes the powerful representation learning ability of deep neural networks to automatically learn and extract abstract features in user behavior data, thereby better understanding user behavior patterns and behavior semantics. The user online behavior feature extractor based on a deep neural network can map the original user online behavior embedding vector to a higher dimensional and more representative feature space through a multi-level neural network structure. This feature extractor can include a convolutional neural network, a recurrent neural network, an attention mechanism, etc., which can effectively capture complex patterns and association information in user behavior data. Through the learning ability of deep neural networks, the user online behavior feature extractor can automatically discover and learn abstract features in user behavior data, such as user preferences, behavioral sequence rules, etc. These learned features can better characterize user behavior patterns and help distinguish behavioral differences and similarities between different users. Specifically, each layer of the user online behavior feature extractor based on a deep neural network performs convolution processing, pooling processing, and nonlinear activation processing on the input data in the forward pass of the layer to output the multiple user online behavior feature vectors by the last layer of the user online behavior feature extractor based on a deep neural network, wherein the input of the user online behavior feature extractor based on a deep neural network is the multiple user online behavior embedding vectors.
[0034] Furthermore, the purpose of cascading multiple user online behavior feature vectors to obtain a user online behavior association feature vector is to comprehensively consider the behavior characteristics of multiple users, so as to more comprehensively capture the association and interaction information between users. Cascading multiple user online behavior feature vectors can organically combine the behavior characteristics of different users to form a more comprehensive and rich feature representation. This cascading operation can be achieved by simply connecting multiple feature vectors, or by comprehensively considering the behavior information of different users through a certain weighting and fusion method, so as to obtain a more representative user online behavior association feature vector. By cascading multiple user online behavior feature vectors, the behavior feature information of different users can be integrated together to form a more comprehensive and integrated user behavior description. This helps to discover the behavioral association and mutual influence between user groups, reveal the commonalities and differences of user groups, and provide more clues for group behavior analysis and group feature mining.
[0035] Furthermore, the purpose of processing the user online behavior association feature vector through the user online behavior association semantic understanding model is to deeply explore the behavioral association and semantic information between users, so as to better understand the behavioral patterns and interactive relationships of user groups. The user online behavior association semantic understanding model can model and understand the semantic information in the user online behavior association feature vector through deep learning technology and natural language processing methods. This model may include technologies such as neural networks, attention mechanisms, and semantic representation learning, which can help the system better understand the semantic information contained in the behavioral associations between users. Through the user online behavior association semantic understanding model, the system can more accurately capture the behavioral associations and interactive semantics between users. This helps to discover deeper relationships between user groups and understand the intentions and purposes behind user behaviors, thereby providing more accurate support for tasks such as personalized recommendations and group behavior analysis. Specifically, the user online behavior association semantic understanding model is a long short-term memory model.
[0036] In the data processing system 100 for converting the shared data into the user portrait, the basic text data feature extraction module 130 is used to extract features from the user basic text data retrieved from the database to obtain the user basic text feature vector. It should be understood that feature extraction of the user basic text data can convert text information into a numerical feature vector, which is convenient for the computer to process and analyze. This includes word frequency statistics, TF-IDF (word frequency-inverse document frequency) weight calculation, word embedding and other technologies, which can convert text data into a high-dimensional feature vector representation to capture the semantics and information in the text data. Through feature extraction, key information and features such as keywords, topics, emotional tendencies, etc. can be extracted from the user basic text data, thereby revealing the hidden information and patterns in the text data. This helps to analyze and understand the user's text behavior, discover the similarities and differences between users, and provide more clues for tasks such as personalized recommendations and user portrait construction.
[0037] Figure 3 FIG. 1 is a block diagram of a basic text data feature extraction module in a data processing system for converting shared data into user portraits according to an embodiment of the present application. Figure 3 As shown, in a specific embodiment of the present application, the basic text data feature extraction module 130 includes: a basic text data preprocessing unit 131, which is used to perform data preprocessing on the user basic text data retrieved from the database to obtain a user basic text input tensor; a basic text tensor convolutional encoding unit 132, which is used to pass the user basic text input tensor through a user basic text feature encoder based on multiple convolutional layers to obtain the user basic text feature vector. It should be understood that data preprocessing includes text segmentation, which divides the text data into a sequence of words or subwords so that the neural network model can understand and process it. Segmentation can be performed by space separation, part-of-speech tagging, stem extraction, etc., to convert the text data into an input form acceptable to the neural network. In addition, data preprocessing also includes text encoding, which converts the text data after segmentation into a numerical tensor representation. This can be done by mapping words into dense vectors through word embedding technology, or using one-hot encoding to convert words into sparse vector representations, so that the neural network model can effectively learn and reason about text data. The basic user text input tensor obtained through data preprocessing can be used as the input of the deep learning model for training tasks such as text classification, sentiment analysis, and machine translation. These tensorized text data can better utilize the powerful representation learning ability of the neural network model to achieve a deeper understanding and analysis of text data.
[0038] Furthermore, the purpose of passing the user basic text input tensor through a user basic text feature encoder based on multiple convolutional layers to obtain a user basic text feature vector is to use a convolutional neural network to extract local features and semantic information in text data, thereby converting text data into a more abstract and advanced representational feature vector form. The text feature encoder based on multiple convolutional layers can extract local features of text data at different scales through convolution operations. The convolutional layer can identify different semantic features in text data, thereby capturing the local structure and information of text data, which helps to improve the model's understanding and expression capabilities of text data. Specifically, using each layer of the user basic text feature encoder based on multiple convolutional layers, in the forward transfer of the layer, the following operations are respectively performed on the input data: using the convolution units of each layer of the user basic text feature encoder based on multiple convolutional layers, convolution processing based on a three-dimensional convolution kernel is performed on the input data to obtain a convolution feature map; using the pooling units of each layer of the user basic text feature encoder based on multiple convolutional layers, pooling processing is performed on the convolution feature map along the channel dimension to obtain a pooling feature map; and, using the activation units of each layer of the user basic text feature encoder based on multiple convolutional layers, non-linear activation is performed on the feature values of each position in the pooling feature map to obtain an activation feature map; wherein the output of the last layer of the user basic text feature encoder based on multiple convolutional layers is the user basic text feature vector.
[0039] Figure 4 FIG. 1 is a block diagram of a basic text data preprocessing unit in a data processing system for converting shared data into user portraits according to an embodiment of the present application. Figure 4As shown, in a specific embodiment of the present application, the basic text data preprocessing unit 131 includes: a user basic text data word vector conversion subunit 1311, which is used to convert the user basic text data retrieved from the database into a word vector to obtain a plurality of user basic text feature vectors; a basic text feature vector feature aggregation subunit 1312, which is used to perform feature aggregation on the plurality of user basic text feature vectors to obtain the user basic text input tensor. It should be understood that the word vector conversion can map the words in the text data into continuous, low-dimensional real vector representations through word embedding technology. This dense vector form can capture the semantic similarity and contextual information between words, so that the model can better understand the meaning and association of words in the text data. The multiple user basic text feature vectors obtained by word vector conversion can be used to represent the semantic features of different words or phrases in the text data, thereby using the word vector representation method to convert the words in the text data into a dense vector form, so that the neural network model can better understand and process the text data and extract the semantic information and features therein. Specifically, keywords in the user basic text data retrieved from the database are identified and low-frequency words, irrelevant words, conjunctions and modal particles in the user basic text data retrieved from the database are deleted to obtain a keyword text sequence; the keyword text sequence is passed through a word embedding model to obtain the multiple user basic text feature vectors.
[0040] Furthermore, feature aggregation can fuse information from different feature vectors to form a more comprehensive and integrated feature representation. By aggregating multiple user basic text feature vectors, feature information at different levels and angles can be integrated, allowing the model to more comprehensively understand the semantics and features in the text data and improve the model's ability to abstractly express text data. In addition, feature aggregation can help the model learn the global information and contextual relationships in the text data. By integrating multiple feature vectors, the model can better capture the associations and dependencies between different parts of the text data, which helps improve the model's ability to understand the overall structure and semantic information of the text data.
[0041] In a specific embodiment of the present application, the basic text feature vector feature aggregation subunit 1312 includes: calculating the intercorrelation feature matrix between every two user basic text feature vectors in the multiple user basic text feature vectors to obtain multiple user basic text intercorrelation matrices; arranging the multiple user basic text intercorrelation matrices to obtain the user basic text input tensor. It should be understood that calculating the intercorrelation feature matrix between user basic text feature vectors can help discover the similarity and correlation between users. By calculating the similarity measure between user feature vectors, such as cosine similarity, Euclidean distance, etc., a correlation matrix can be obtained, which reflects the mutual relationship between users in the feature space, thereby revealing the potential connection and similarity between users. In this way, by analyzing the intercorrelation matrix, similar users can be aggregated together to form different user groups or communities. This clustering method can help the model better understand the behavior patterns and characteristics of user groups, and provide more accurate support for personalized recommendations and customized services. Specifically, for example, if the feature vectors are the first feature vector, the second feature vector, and the third feature vector, the correlation matrix of the first feature vector itself, the correlation matrix of the first feature vector and the second feature vector, the correlation matrix of the first feature vector and the third feature vector, the correlation matrix of the second feature vector itself, the correlation matrix of the second feature vector and the third feature vector, and the correlation matrix of the third feature vector itself are calculated. More specifically, one of the user basic text feature vectors of every two user basic text feature vectors is transposed and matrix-multiplied with the other user basic text feature vector to obtain the plurality of user basic text mutual correlation matrices.
[0042] Furthermore, the purpose of arranging multiple user basic text interrelationship matrices to obtain the user basic text input tensor is to integrate the correlation information between users so that the neural network model can better understand and process the entire user relationship network. This arrangement method helps to convert the interactive relationship between users into a tensor representation suitable for neural network processing, thereby improving the model's modeling ability and prediction accuracy for the relationship between users.
[0043] In the data processing system 100 for converting the shared data into the user portrait, the user portrait feature association module 140 is used to perform feature fusion based on category balance on the user online behavior associated semantic understanding feature vector and the user basic text feature vector to obtain a user portrait associated feature vector.
[0044] In particular, in the technical solution of the present application, it is considered that the user online behavior associated semantic understanding feature vector and the user basic text feature vector come from the user online behavior data and the user basic text data respectively, and the user online behavior data and the user basic text data often have different data distribution characteristics. For example, social media data may contain a large amount of browsing records and comment data, while personal information data may be relatively small. This uneven data distribution will lead to differences in the number of feature vectors extracted from different data sources. Since the user online behavior associated semantic understanding feature vector and the user basic text feature vector come from different data samples, they are likely to have different feature dimensions. When fusing these two feature vectors, it is necessary to consider how to deal with different dimensions, which may cause category imbalance in the feature fusion process. At the same time, there may be a large difference in the sample size of user online behavior data and user basic text data. For example, social media data usually contains a large amount of user behavior data, while personal information data may only contain a small amount of user basic text data. This difference in sample size will also lead to too many or too few features in some categories during the feature fusion process, thus causing the problem of category imbalance, that is, the model tends to favor categories with a larger number and ignores categories with a smaller number, which will lead to a decrease in the generalization ability of the model on unseen data, thereby affecting the accuracy of the generated results obtained by the user portrait generator. In order to solve this technical problem, in the technical solution of the present application, the user online behavior associated semantic understanding feature vector and the user basic text feature vector are subjected to feature fusion based on category balance to obtain a user portrait associated feature vector.
[0045] Specifically, the user online behavior associated semantic understanding feature vector and the user basic text feature vector are subjected to feature fusion based on category balance to obtain a user portrait associated feature vector, including: passing the user online behavior associated semantic understanding feature vector and the user basic text feature vector through an activation function to obtain a user online behavior associated semantic understanding category probability feature vector and a user basic text category probability feature vector; determining a first interference coefficient vector and a second interference coefficient vector based on the user online behavior associated semantic understanding category probability feature vector and the user basic text category probability feature vector; correcting the user online behavior associated semantic understanding feature vector and the user basic text feature vector based on the first interference coefficient vector and the second interference coefficient vector to obtain a corrected user online behavior associated semantic understanding feature vector and a corrected user basic text feature vector; and fusing the corrected user online behavior associated semantic understanding feature vector and the corrected user basic text feature vector to obtain the user portrait associated feature vector.
[0046] Among them, based on the first interference coefficient vector and the second interference coefficient vector, the user online behavior associated semantic understanding feature vector and the user basic text feature vector are corrected to obtain the corrected user online behavior associated semantic understanding feature vector and the corrected user basic text feature vector, including: creating a first DAO interface, the first DAO interface is used to define the method required for correcting the feature vector; creating a first class to implement the first DAO, the first class is used to implement the specific logic of the corrected feature vector; configuring the database in the Spring configuration file; configuring the first class as a Spring Bean so that the first class can be managed by the Spring container; injecting the first DAO interface, and calling the method required for correcting the feature vector in the first DAO interface; and passing the first interference coefficient vector, the second interference coefficient vector, the user online behavior associated semantic understanding feature vector and the user basic text feature vector into the first DAO interface to perform a feature vector correction operation to obtain the corrected user online behavior associated semantic understanding feature vector and the corrected user basic text feature vector.
[0047] It should be understood that the use of the Spring DAO mechanism can improve the modularity, maintainability and testability of the code. Part of the steps of correcting the user online behavior associated semantic understanding feature vector and the user basic text feature vector based on the first interference coefficient vector and the second interference coefficient vector to obtain the corrected user online behavior associated semantic understanding feature vector and the corrected user basic text feature vector are as follows:
[0048] / / Create DAO interface
[0049] public interface FeaturevectordAo {
[0050] void correctFeaturevector (vector featurevector1, vectorfeaturevector2, vector interferencevector);
[0051] }
[0052] / / Create DAO implementation class
[0053] public class FeaturevectorDAOImpl implements FeaturevectorDAo {
[0054] / / Method to implement correction feature vector
[0055] @Override
[0056] public void correctFeaturevector(vector featurevector1, vectorfeaturevector2, vector interferencevector){
[0057] / / According to the interference coefficient feature vector, perform correction operation on the feature vector
[0058] / / The specific logic of correction can be implemented here
[0059] / / For example, traverse the feature vector and interference coefficient vector, and adjust the feature vector accordingly
[0060] }
[0061] }
[0062] / / Inject DAO and call the method where the feature vector needs to be corrected
[0063] public class FeaturevectorProcessor {
[0064] @Autowired
[0065] private FeaturevectordAO featurevectorDAO;
[0066] public void processFeaturevectors (vector featurevector1, vectorfeaturevector2, vector interferencevector);{
[0067] featurevectorDAO.correctfeaturevector(featureVector1,featureVector2,interferencevevtor);
[0068] }
[0069] }
[0070] Here, the user online behavior associated semantic understanding feature vector and the user basic text feature vector are subjected to feature fusion based on category balance to balance the influence of the user online behavior associated semantic understanding feature vector and the user basic text feature vector of different categories, that is, for categories with a smaller number, their probability value is lower, so the interference coefficient is larger. When the interference coefficient is multiplied by the feature vector, the feature value of the category is amplified. This helps the model pay more attention to categories with a smaller number during the generation process. For categories with a larger number, their probability value is higher, so the interference coefficient is smaller. When the interference coefficient is multiplied by the feature vector, the feature value of the category is reduced. This helps the model reduce its dependence on categories with a larger number during the generation process. In this way, feature fusion based on category balance can balance the influence of different categories, improve the separability of the feature space, and enhance the robustness of the user portrait associated feature vector, thereby improving the performance of the generation model.
[0071] In the data processing system 100 for converting shared data into user portraits, the user preference portrait generation module 150 is used to generate a user preference portrait based on the user portrait associated feature vector. It should be understood that through the user portrait generator, the abstract user portrait associated feature vector can be converted into a specific user preference portrait, making the user's personality characteristics more intuitive and explainable. This conversion process helps to convert the user's multi-dimensional feature information into a visual form, helping the recommendation system to better understand the user's needs and preferences, and improve the system's personalized recommendation effect on the user.
[0072] Among them, the user preference portrait generation module 150 includes: performing deep feature aggregation based on position structure information on the user portrait associated feature vector to obtain an optimized user portrait associated feature vector; passing the optimized user portrait associated feature vector through a generator to obtain a user portrait generator to generate a user preference portrait.
[0073] Specifically, deep feature aggregation based on position structure information is performed on the user portrait associated feature vector to obtain an optimized user portrait associated feature vector, including: calculating the variance of a feature set composed of eigenvalues at all positions of the user portrait associated feature vector to obtain the eigenvalue variance of the user portrait associated feature vector; calculating the square of the absolute value of the eigenvalue at each position of the user portrait associated feature vector and then performing a logarithmic operation with base two to obtain a logarithmic transformed user portrait associated feature vector; accumulating and summing all eigenvalues of the logarithmic transformed user portrait associated feature vector to obtain a sum of the logarithmic transformed user portrait associated feature vector; dividing the sum of the logarithmic transformed user portrait associated feature vector by twice the eigenvalue variance of the user portrait associated feature vector and then multiplying it by the eigenvalue at each position of the user portrait associated feature vector to obtain the optimized user portrait associated feature vector.
[0074] In particular, in the technical solution of the present application, it is considered that the user's online behavior data and basic text data contain rich information, which comes from different data sources and dimensions. Improving the degree of information aggregation can further help integrate these multi-source data to ensure that the user portrait can fully reflect the user's behavior and preferences. Through deep learning and neural network technology, more refined and accurate feature representations can be extracted. Improving the degree of information aggregation helps to screen and integrate the most representative information from a large number of features, thereby improving the accuracy of the user portrait. In the process of data collection and feature extraction, noise and redundant information may be introduced. Improving the degree of information aggregation can reduce these unnecessary information through algorithm optimization, making the user portrait more accurate. A high-quality user portrait should have good generalization ability, that is, it can be applied to different scenarios and tasks. Improving the degree of information aggregation helps to extract more general and stable features and enhance the generalization of the model. User portraits are usually used to support decision-making, such as personalized recommendations, advertising, etc. Improving the degree of information aggregation can make the user portrait more accurate, thereby improving the effectiveness of decision support. Based on this, the user portrait associated feature vector is subjected to deep feature aggregation based on position structure information.
[0075] In particular, performing deep feature aggregation based on position structure information on the user portrait associated feature vector to obtain an optimized user portrait associated feature vector includes: performing deep feature aggregation based on position structure information on the user portrait associated feature vector using the following optimization formula to obtain an optimized user portrait associated feature vector, wherein the optimization formula is:
[0076]
[0077] in, represents the user portrait associated feature vector, is the first feature vector associated with the user portrait The eigenvalues of the positions, Represents a set of eigenvalues The variance of is the length of the user portrait associated feature vector, represents the logarithm with base 2, is the first The eigenvalue of the location.
[0078] Here, in order to improve the information aggregation degree of the user portrait associated feature vector, in the technical solution of the present application, the user portrait associated feature vector is subjected to deep feature aggregation based on position structure information, and the structural information of the user portrait associated feature vector at the position is represented by the logarithmic value of the absolute phase stack of the eigenvalues at each position in the user portrait associated feature vector, and then a wavelet-like function is used to aggregate the structural information of the eigenvalues at all positions in the user portrait associated feature vector, and the user portrait associated feature vector is stacked based on the feature distribution space using the structural information and the set variance of the feature distribution of the user portrait associated feature vector. In this way, it helps to maintain the spatial relationship between the features in the user portrait associated feature vector, thereby restricting the spatial sparsity of the user portrait associated feature vector to improve the information aggregation degree of the user portrait associated feature vector.
[0079] In summary, the embodiment of the present application first obtains the user's online behavior data collected by the crawler and the user's basic text data retrieved from the database, and then uses deep learning technology to perform feature extraction and correlation analysis on the two, and finally generates a user preference portrait through a generator, thereby understanding user needs and preferences more comprehensively and accurately, so as to provide products and services that better meet user expectations, thereby improving user satisfaction and increasing user stickiness and loyalty.
[0080] As described above, the data processing system 100 for converting shared data into user portraits according to the embodiment of the present application can be implemented in various terminal devices, such as a server deployed with a data processing algorithm for converting shared data into user portraits. In one example, the data processing system 100 for converting shared data into user portraits can be integrated into a terminal device as a software module and / or a hardware module. For example, the data processing system 100 for converting shared data into user portraits can be a software module in the operating system of the terminal device, or can be an application developed for the terminal device; of course, the data processing system 100 for converting shared data into user portraits can also be one of the many hardware modules of the terminal device.
[0081] Alternatively, in another example, the data processing system 100 that converts shared data into a user portrait and the terminal device may be separate devices, and the data processing system 100 that converts shared data into a user portrait may be connected to the terminal device via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.
[0082] Below, reference Figure 5 To describe an electronic device according to an embodiment of the present application.
[0083] Figure 5 It is a structural block diagram of an electronic device according to an embodiment of the present invention.
[0084] like Figure 5 As shown, the electronic device 10 includes: a processor 11 and a memory 13. The processor 11 and the memory 13 are connected, such as through a bus 12. Optionally, the electronic device 10 may also include a transceiver 14. It should be noted that in actual applications, the transceiver 14 is not limited to one, and the structure of the electronic device 10 does not constitute a limitation on the embodiments of the present invention.
[0085] The processor 11 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present invention. The processor 11 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0086] The bus 12 may include a path to transmit information between the above components. The bus 12 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 12 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0087] The memory 13 is used to store a computer program corresponding to the data processing system for converting shared data into user portraits in the above embodiment of the present invention, and the computer program is controlled and executed by the processor 11. The processor 11 is used to execute the computer program stored in the memory 13 to implement the content shown in the above method embodiment.
[0088] Among them, the electronic device 10 includes but is not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device 10 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0089] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0090] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0091] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0092] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0093] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0094] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0095] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0096] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A data processing system for converting shared data into user portraits, characterized in that: include: A user portrait shared data acquisition module, used to acquire user online behavior data collected by the crawler and user basic text data retrieved from the database, wherein the user online behavior data collected by the crawler includes social media data, browsing comment records and purchase history records, and the user basic text data retrieved from the database includes personal information data and interest and hobby data; An online behavior data feature extraction module, used to extract features from the user online behavior data collected by the crawler to obtain a user online behavior associated semantic understanding feature vector; A basic text data feature extraction module, used for performing feature extraction on the user basic text data retrieved from the database to obtain a user basic text feature vector; A user portrait feature association module, used for performing feature fusion based on category balance on the user online behavior associated semantic understanding feature vector and the user basic text feature vector to obtain a user portrait associated feature vector; A user preference portrait generation module, used to generate a user preference portrait based on the user portrait and associated feature vector; Wherein, the user preference portrait generation module includes: Performing deep feature aggregation based on position structure information on the user portrait associated feature vector to obtain an optimized user portrait associated feature vector; Passing the optimized user portrait associated feature vector through a user portrait generator to generate a user preference portrait; The user portrait associated feature vector is subjected to deep feature aggregation based on position structure information to obtain an optimized user portrait associated feature vector, including: Calculating the variance of a feature set consisting of eigenvalues at all positions of the user portrait associated feature vector to obtain the eigenvalue variance of the user portrait associated feature vector; Calculating the square of the absolute value of the feature value at each position of the user portrait associated feature vector and then performing a logarithmic operation with base 2 to obtain a logarithmic transformation of the user portrait associated feature vector; Accumulating and summing all eigenvalues of the logarithmic transformation user portrait associated eigenvector to obtain a sum value of the logarithmic transformation user portrait associated eigenvector; The sum of the logarithmically transformed user portrait associated feature vectors is divided by twice the eigenvalue variance of the user portrait associated feature vectors and then multiplied by the eigenvalues of each position of the user portrait associated feature vectors to obtain the optimized user portrait associated feature vectors.
2. The data processing system for converting shared data into user portraits according to claim 1, characterized in that: The online behavior data feature extraction module includes: An online behavior embedding coding unit, used for performing user online behavior embedding coding on the user online behavior data collected by the crawler to obtain a plurality of user online behavior embedding vectors; The online behavior embedding semantic coding unit is used to perform semantic coding on the multiple user online behavior embedding vectors to obtain the user online behavior associated semantic understanding feature vector.
3. The data processing system for converting shared data into user portraits according to claim 2, characterized in that: The online behavior embedding semantic encoding unit comprises: Passing the multiple user online behavior embedding vectors through a user online behavior feature extractor based on a deep neural network to obtain multiple user online behavior feature vectors; Cascading the multiple user online behavior feature vectors to obtain a user online behavior correlation feature vector; The user online behavior associated feature vector is passed through a user online behavior associated semantic understanding model to obtain the user online behavior associated semantic understanding feature vector.
4. The data processing system for converting shared data into user portraits according to claim 3, characterized in that: The basic text data feature extraction module includes: A basic text data preprocessing unit, used for performing data preprocessing on the user basic text data retrieved from the database to obtain a user basic text input tensor; The basic text tensor convolutional encoding unit is used to pass the user basic text input tensor through a user basic text feature encoder based on multiple convolutional layers to obtain the user basic text feature vector.
5. The data processing system for converting shared data into user portraits according to claim 4, characterized in that: The basic text data preprocessing unit comprises: A user basic text data word vector conversion subunit, used for converting the user basic text data retrieved from the database into a word vector to obtain a plurality of user basic text feature vectors; The basic text feature vector feature aggregation subunit is used to perform feature aggregation on the multiple user basic text feature vectors to obtain the user basic text input tensor.
6. The data processing system for converting shared data into user portraits according to claim 5, characterized in that: The basic text feature vector feature aggregation subunit includes: Calculating a mutual correlation feature matrix between every two user basic text feature vectors in the plurality of user basic text feature vectors to obtain a plurality of user basic text mutual correlation matrices; The multiple user basic text interrelationship matrices are arranged to obtain the user basic text input tensor.
7. The data processing system for converting shared data into user portraits according to claim 6, characterized in that: The user portrait feature association module includes: The user online behavior associated semantic understanding feature vector and the user basic text feature vector are subjected to an activation function to obtain a user online behavior associated semantic understanding category probability feature vector and a user basic text category probability feature vector; Determining a first interference coefficient vector and a second interference coefficient vector based on the user online behavior associated semantic understanding category probability feature vector and the user basic text category probability feature vector; Based on the first interference coefficient vector and the second interference coefficient vector, correcting the user online behavior associated semantic understanding feature vector and the user basic text feature vector to obtain a corrected user online behavior associated semantic understanding feature vector and a corrected user basic text feature vector; and The corrected user online behavior-associated semantic understanding feature vector and the corrected user basic text feature vector are fused to obtain the user portrait-associated feature vector.
