User social behavior representation method and system, electronic equipment and storage medium

By obtaining user personal and social network data, using pre-trained large language models and twin neural networks to optimize user representations, the performance problems and high computing overhead of large-scale social network data processing in the prior art are solved, and low overhead is achieved. Highly scalable user social behavior representation, a vectorized representation of user including social network information is suitable for a variety of downstream tasks.

CN119046540APending Publication Date: 2024-11-29GUANGDONG POWER GRID CO LTD +1

Patent Information

Application Number
CN202411248882.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The prior art has performance problems and high computing overhead when processing large-scale social network data, and cannot be expanded to multiple downstream tasks. The user representation method lacks the combination of social network relationships and cannot effectively model and predict user behavior.

Method used

By obtaining user personal data and social network data, a vectorized representation is generated using a pre-trained large language model, and a twin neural network is used to optimize the similarity representation between users, so that the cosine similarity of the vectorized representation of interactive users is higher than that of non-interactive users. Combining the user's identity, hobbies, residence and other information, a vectorized representation of the user includes social network information is generated.

Benefits of technology

A user social behavior representation method with low computing overhead and high scalability is realized. It can perform well in a variety of downstream tasks without relying on additional social network models, and the user vectorized representation contains social network information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046540A_ABST
    Figure CN119046540A_ABST
Patent Text Reader

Abstract

The invention discloses a user social behavior representation method and system. The method comprises the following steps: acquiring personal data of a user; obtaining social network data between the users, and constructing a social network graph relationship between the users based on the social network data; processing the personal data of the users by using a pre-trained big language model, and generating corresponding vectorized representations for the users through an embedded layer of the pre-trained big language model; and based on the social network graph relationship, performing optimization representation on the similarity between the users by using a twin neural network, so that the cosine similarity of vectorized representation with interactive users is higher than the cosine similarity of vectorized representation without interactive users. According to the method, an additional social network model is not needed; the vectorized representation of the user comprises social network information; the expandability is high, and the calculation overhead is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence technology, and specifically relates to a user social behavior representation method, system, electronic device and storage medium. Background Art

[0002] In recent years, with the development and breakthroughs of computer deep learning technology, building deep learning models, predicting user behavior based on user data, and providing users with humanized predictive suggestions are the current goals of full-scenario smart life.

[0003] Chinese patent CN115470392A-A method for predicting voting results of social network users, proposes a method for predicting voting results of social network users, through a crawler program, constructs a user data set, a topic data set, a voting data set, and a Twitter data set, and cleans and preprocesses the data set; constructs a prediction model for voting results of social network users, inputs the user vector into the user relationship graph, and updates the user vector through a heterogeneous graph attention network, after a two-stage attention mechanism of a node-level attention mechanism and a semantic-level attention mechanism, and then splices it with the topic vector and inputs it into a multi-layer perceptron for prediction. The present invention improves the accuracy of predicting voting results of social network users. However, the system can only predict the voting result task of the user. The way to construct the data set is based on Twitter data from the external network, which is not suitable for the Chinese network environment. The user relationship graph is too single, and only considers the supported political parties, groups, and location information in the user profile.

[0004] Chinese Patent CN111881350A-A recommendation method and system based on hybrid graph structured modeling, provides a recommendation method based on hybrid graph structured modeling, mainly including: preprocessing user historical data; modeling the relationship between users and items; modeling the social network relationship between users; modeling the high-order collaborative signals between users and items, mining high-order relationships and refining user and item representations; user social relationship aggregation; generating the final user node representation and item hyperedge representation, calculating the link prediction score of users and items and giving the final recommendation prediction result, etc.; the method and system proposed in the present invention can effectively mine the high-order relationship between users and items, and efficiently use the user's social network structure information to assist in recommendation. However, the system is only used to recommend items to users, has low scalability, and cannot model and predict user behavior. The user's representation method does not combine social network relationships.

[0005] Chinese patent CN111159569A-A method for representing social behaviors of social network users based on personalized user characteristics, proposes a method for representing social behaviors of social network users based on personalized user characteristics, classifies and defines social network users, distinguishes the categories and behavior attributes of social network users; sorts the time series data of user behaviors belonging to each category, and represents user social behaviors through learning iterations of the user behavior data of this category. However, the prediction model used by this method cannot process long text information and is not suitable for processing large-scale social network data. Summary of the invention

[0006] In view of the above problems, the present invention provides a method, system and storage medium for representing user social behavior, aiming to provide a method for representing user social behavior with strong scalability and low computational overhead.

[0007] According to a first aspect of an embodiment of the present disclosure, a method for representing a user's social behavior is provided, the method comprising the following steps:

[0008] Obtaining personal data of users;

[0009] Acquire social network data between users, and construct a social network graph relationship between users based on the social network data;

[0010] Process the user personal data using a pre-trained large language model, and generate a corresponding vectorized representation for each user through an embedding layer of the pre-trained large language model;

[0011] Based on the social network graph relationship, the similarity between users is optimized and represented using a twin neural network, so that the cosine similarity of the vectorized representation of interactive users is higher than the cosine similarity of the vectorized representation of non-interactive users.

[0012] A further technical solution of the present invention is: when using a twin neural network to optimize the representation of the similarity between users, a similarity weight matrix is ​​determined by the different relationship differences between two interacting users.

[0013] A further technical solution of the present invention is: the user personal data includes identity, hobbies, and place of residence.

[0014] According to a second aspect of an embodiment of the present disclosure, a user social behavior representation system is provided, the system comprising:

[0015] User personal data acquisition module, used to acquire user personal data;

[0016] A user social network data acquisition module, used to acquire social network data between users and construct a social network graph relationship between users based on the social network data;

[0017] The user vectorization layer training module is used to process the user personal data using a pre-trained large language model, and generate a corresponding vectorization representation for each user through the pre-trained large language model embedding layer, and is used to optimize the similarity between users based on the social network graph relationship using a twin neural network, so that the cosine similarity of the vectorization representation of interactive users is higher than the cosine similarity of the vectorization representation of non-interactive users.

[0018] A further technical solution of the present invention is: when the user vectorization layer training module uses a twin neural network to optimize the representation of the similarity between users, the similarity weight matrix is ​​determined by the different relationship differences between the two interacting users.

[0019] A further technical solution of the present invention is: in the user personal data acquisition module, the user personal data includes identity, hobbies, and place of residence.

[0020] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for representing user social behavior when executing the program.

[0021] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the above-mentioned user social behavior representation method are implemented.

[0022] The disclosed embodiments provide a method, system and storage medium for representing user social behavior, which is a user vectorization representation method that combines user content features and social network features: the method combines the processing capabilities of large models for text features and the homogeneity of social networks to design a novel user vectorization method. The user representation method already contains social network information related to the user, and does not rely on additional social network graphs. It is concise, efficient and highly extensible, and can be used in a variety of downstream tasks. Its beneficial effects include:

[0023] Current related work mostly uses graphs to model and represent social network relationships. However, for large-scale social network data, graph models have serious performance issues and computational overhead. In addition, existing work has a strong dependency on downstream tasks and cannot be extended to multiple downstream tasks. The method of the present invention combines the user's social network data into the user's vectorized representation, so that the vectorized representation of the associated users has a higher cosine similarity. This method does not rely on specific tasks, has low computational overhead, and can perform well on a variety of downstream tasks. In summary, this method has strong scalability and low computational overhead; does not require additional social network models; and contains social network information in the user's vectorized representation.

[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present invention and, together with the description, serve to explain the principles of the present invention.

[0026] Figure 1 is a schematic diagram of a method for representing user social behavior in an embodiment of the present invention;

[0027] Figure 2 The present invention pre-trains a large language model and a twin neural network to realize user vectorization representation and similarity optimization representation process.

[0028] Figure 3 is a schematic diagram of the structure of a user social behavior representation system in an embodiment of the present invention;

[0029] Figure 4 It is a schematic diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0031] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0032] The rapid growth of social network data has provided unprecedented research opportunities for user modeling and data analysis, especially in studying social influence and predicting user behavior. However, processing large-scale social network data is computationally challenging. Although large language models simplify the modeling process of text data, advanced network representation techniques are still limited in scalability and applicability to new users. Therefore, a more efficient and scalable modeling method is needed.

[0033] The embodiments of the present invention are directed to a method, system and storage medium for representing user social behavior, specifically for user data modeling and analysis on social platforms, and utilize the homogeneity of social networks and the capabilities of large language models. The embodiments are as follows:

[0034] Example 1 is used to illustrate a method for representing user social behavior. Figure 1 , which is a flowchart of the user social behavior representation method, and the specific steps include:

[0035] S1. Obtain user personal data;

[0036] Among them, user personal data includes information such as identity, hobbies, and place of residence. In the specific implementation process, the main source of user personal data is the user's personal profile, which usually contains short but informative phrases and paragraphs, such as "writer", "food lover", "living in Beijing", etc. Compared with using the complete user's historical speech records, profile information can significantly reduce the amount of calculation and the difficulty of data collection, and is more efficient.

[0037] S2. Acquire social network data between users, and construct a social network graph relationship between users based on the social network data;

[0038] In the specific implementation process, the social network relationships between users include: "Follow", "Fans", "Repost", "Comment", and "Mention (@)". Through these interactions, a social network graph relationship between users is constructed.

[0039] S3, using a pre-trained large language model to process the user's personal data, and generating a corresponding vectorized representation for each user through the pre-trained large language model embedding layer;

[0040] like Figure 2 As shown in Figure 1, in the user embedding representation generation stage: a pre-trained large language model is used to process the user's personal profile data, and a vectorized representation is generated for each user through the embedding layer.

[0041] S4. Based on the social network graph relationship, the similarity between users is optimized and represented using a twin neural network, so that the cosine similarity of the vectorized representation of the interacting users is higher than the cosine similarity of the vectorized representation of the non-interacting users.

[0042] Among them, when using the twin neural network to optimize the similarity between users, the similarity weight matrix is ​​determined by the different relationship differences between the two interacting users. In the specific implementation process, in the stage of optimizing the similarity between users: the overall architecture is as follows Figure 2 As shown in the figure, the Siamese network architecture is used for unsupervised training, which makes the cosine similarity of the vectorized representations of two users who interact in the social network higher, and the cosine similarity of the vectorized representations of unrelated users lower. When optimizing the weight matrix, it is necessary to reflect the differences between different relationships, such as the weight difference between "follow" and "forward"; the directionality of the relationship, such as the weight difference between users forwarding and being forwarded.

[0043] Downstream task prediction: When performing a variety of downstream tasks, the trained user vectorization layer module can be reused to generate user representations with social network information for further training of downstream task models.

[0044] Another embodiment is used to illustrate the user social behavior representation system, see Figure 3 , the system 300 comprises:

[0045] User personal data acquisition module 310, used to acquire user personal data;

[0046] A user social network data acquisition module 320, used to acquire the user social network data and construct a social network graph relationship between users based on the social network data;

[0047] The user vectorization layer training module 330 is used to process the user personal data using a pre-trained large language model, and generate a corresponding vectorization representation for each user through the pre-trained large language model embedding layer, and is used to optimize the similarity between users based on the social network graph relationship using a twin neural network, so that the cosine similarity of the vectorization representation of interactive users is higher than the cosine similarity of the vectorization representation of non-interactive users.

[0048] When the user vectorization layer training module 330 uses the twin neural network to optimize the representation of the similarity between users, the similarity weight matrix is ​​determined by the different relationship differences between the two interacting users.

[0049] In the user personal data acquisition module 310, the user personal data includes identity, hobbies, and place of residence.

[0050] In addition to the upper module, the system 300 may also include other components. However, since these components are irrelevant to the content of the embodiment of the present disclosure, their illustration and description are omitted here.

[0051] For other specific working processes of the user social behavior representation system 300, refer to the description of the above-mentioned basic user social behavior representation method embodiment, which will not be repeated here.

[0052] Another embodiment is used to illustrate that the system of the present invention can also be used with the help of Figure 4 The architecture of the computing device shown is implemented. Figure 4 The architecture of the computing device is shown. Figure 4 As shown, a computer system 410, a system bus 430, one or more CPUs 440, an input / output 420, a memory 450, etc. The memory 450 can store various data or files used for computer processing and / or communication and program instructions including the user social behavior representation method of the embodiment executed by the CPU. Figure 4 The architecture shown is only exemplary and can be adjusted according to actual needs when implementing different devices. Figure 4 One or more components in. The memory 450, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the user social behavior representation method in the embodiment of the present invention (for example, the user personal data acquisition module 310, the user social network data acquisition module 320 and the user vectorization layer training module 330 in the user social behavior representation system 300). One or more CPUs 440 execute various functional applications and data processing of the system of the present invention by running the software programs, instructions and modules stored in the memory 450, that is, to implement the above-mentioned user social behavior representation method, which includes the following steps:

[0053] Obtaining personal data of users;

[0054] Acquire social network data between users, and construct a social network graph relationship between users based on the social network data;

[0055] Process the user personal data using a pre-trained large language model, and generate a corresponding vectorized representation for each user through an embedding layer of the pre-trained large language model;

[0056] Based on the social network graph relationship, the similarity between users is optimized and represented using a twin neural network, so that the cosine similarity of the vectorized representation of interactive users is higher than the cosine similarity of the vectorized representation of non-interactive users.

[0057] Of course, the processor of the server provided in the embodiment of the present invention is not limited to executing the method operations described above, but can also execute related operations in the user social behavior representation method provided in any embodiment of the present invention.

[0058] The memory 450 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 450 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 450 may further include a memory remotely arranged relative to one or more CPUs 440, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0059] The input / output 420 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The input / output 420 may also include a display device such as a display screen.

[0060] The embodiment of the present invention also provides a non-temporary computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor, the user social behavior representation method described in the above embodiment is implemented. The computer-readable storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0061] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0062] The program code contained on the storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0063] In addition, other specific working processes of a non-temporary computer-readable storage medium refer to the description of the above-mentioned user social behavior representation method embodiment and will not be repeated here.

[0064] Example

[0065] Take the analysis of user speech prediction on a certain topic on Weibo as an example: First, obtain the user's account information, personal information and profile on Weibo through Weibo-related APIs. Further obtain social network data between users, such as the user's followers, fans, forwarding behavior and other data.

[0066] After data collection and preparation, the user vectorization layer training is carried out. At the same time, the personal information of user A and user B, as well as the social relationship between A and B, are input, and the vectorized representation of user A and user B is generated respectively, and the cosine similarity between vector A and vector B is calculated. During the training process, the optimization parameters are continuously adjusted to make the vector cosine similarity between the associated accounts in the social network higher, and vice versa. For example, if user A follows user B, and user C has no connection with user B, then the representation vector of user A should have a higher cosine similarity with user B.

[0067] After the user vectorization layer is trained, it can be used for any downstream task. Take the training of a topic user speech prediction task as an example. During the training process, relevant user information is input, and the trained user vectorization layer is used to generate a specific user representation vector. For example, users who follow the same military blogger will have relatively close vectors, because the user vectorization layer already contains social network information, and according to the homogeneity of social networks, close users on social networks usually have similar views. Therefore, the subsequent training of user speech prediction will be more efficient and enhance the overall performance.

[0068] In summary, the technical solutions provided by the above embodiments provide a method, system and storage medium for representing user social behavior, which is a user vectorization representation method that combines user content features and social network features: the method combines the processing capabilities of large models for text features and the homogeneity of social networks, and designs a novel user vectorization method. The user representation method already includes social network information related to the user, and does not rely on additional social network graphs. It is concise, efficient and highly scalable, and can be used in a variety of downstream tasks. Its beneficial effects include:

[0069] Current related work mostly uses graphs to model and represent social network relationships. However, for large-scale social network data, graph models have serious performance issues and computational overhead. In addition, existing work has a strong dependency on downstream tasks and cannot be extended to multiple downstream tasks. The method of the present invention combines the user's social network data into the user's vectorized representation, so that the vectorized representation of the associated users has a higher cosine similarity. This method does not rely on specific tasks, has low computational overhead, and can perform well on a variety of downstream tasks. In summary, this method has strong scalability and low computational overhead; does not require additional social network models; and contains social network information in the user's vectorized representation.

[0070] In this document, the terms "comprises," "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, such that a step or method that includes a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such step or method.

[0071] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the scope of protection of the present invention.

Claims

1. A method for representing user social behavior, characterized in that: The method comprises the following steps: Obtaining personal data of users; Acquire social network data between users, and construct a social network graph relationship between users based on the social network data; Process the user personal data using a pre-trained large language model, and generate a corresponding vectorized representation for each user through an embedding layer of the pre-trained large language model; Based on the social network graph relationship, the similarity between users is optimized and represented using a twin neural network, so that the cosine similarity of the vectorized representation of interactive users is higher than the cosine similarity of the vectorized representation of non-interactive users.

2. The method for representing user social behavior according to claim 1, characterized in that: When using the twin neural network to optimize the representation of the similarity between users, the similarity weight matrix is ​​determined by the different relationship differences between the two interacting users.

3. The user social behavior representation method according to claim 1, characterized in that: The user's personal data includes identity, hobbies, and place of residence.

4. A user social behavior representation system, characterized in that: The system comprises: User personal data acquisition module, used to acquire user personal data; A user social network data acquisition module, used to acquire social network data between users and construct a social network graph relationship between users based on the social network data; The user vectorization layer training module is used to process the user personal data using a pre-trained large language model, and generate a corresponding vectorization representation for each user through the pre-trained large language model embedding layer, and is used to optimize the similarity between users based on the social network graph relationship using a twin neural network, so that the cosine similarity of the vectorization representation of interactive users is higher than the cosine similarity of the vectorization representation of non-interactive users.

5. The user social behavior representation system according to claim 4, characterized in that: When the user vectorization layer training module uses the twin neural network to optimize the representation of the similarity between users, the similarity weight matrix is ​​determined by the different relationship differences between the two interacting users.

6. The user social behavior representation system according to claim 4, characterized in that: In the user personal data acquisition module, the user personal data includes identity, hobbies, and place of residence.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the user social behavior representation method according to any one of claims 1 to 3 are implemented.

8. A non-transitory computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the user social behavior representation method as described in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • People and post matching intelligent recommendation method, system and device

    CN118152553A

  • Text recommendation method and apparatus based on deep learning, and related medium

    WO2023070732A1

Cited By

  • AI Agent implementation method for social contact and related device

    CN120256876A