WO2020156389A1 - Information pushing method and device - Google Patents

Information pushing method and device Download PDF

Info

Publication number
WO2020156389A1
WO2020156389A1 PCT/CN2020/073593 CN2020073593W WO2020156389A1 WO 2020156389 A1 WO2020156389 A1 WO 2020156389A1 CN 2020073593 W CN2020073593 W CN 2020073593W WO 2020156389 A1 WO2020156389 A1 WO 2020156389A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
behavior information
users
information
association relationship
Prior art date
Application number
PCT/CN2020/073593
Other languages
French (fr)
Chinese (zh)
Inventor
何强
杨欣豫
杜思良
项亮
王灿
Original Assignee
北京字节跳动网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2020156389A1 publication Critical patent/WO2020156389A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism

Definitions

  • the embodiments of the present disclosure relate to the field of computer technology, in particular to an information push method and device.
  • client applications can usually include social applications. Through social applications, users can interact with other users.
  • the embodiments of the present disclosure propose information pushing methods and devices.
  • the embodiments of the present disclosure provide an information push method.
  • the method includes: obtaining a social network including a target user.
  • the social network includes behavior information of users located in the social network and is used to indicate whether or not between users Instruction information for establishing an association relationship; based on the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user in the social network, determine the probability of establishing an association relationship between the target user and users who have not established an association relationship; The user ID of the user corresponding to the probability exceeding the preset threshold is pushed to the target user.
  • the probability of establishing an association relationship between the target user and a user who has not established an association relationship is determined, including :
  • the behavior information of the target user and the behavior information of the user who has not established an association relationship with the target user are respectively input into the pre-trained feature value determination model to obtain the target user behavior information feature value corresponding to the target user's behavior information, and the target user Other user behavior information feature values corresponding to the behavior information of users that have not established an association relationship; based on the target user behavior information feature value and other user behavior information feature values, determine the target user and the user who has not established an association relationship to establish an association relationship Probability.
  • the feature value determination model is obtained by training in the following steps: Obtain a training sample set, wherein each training sample in the training sample set includes behavior information of a specified user, behavior information of other users, and instructions for other users Information indicating whether to establish an association relationship with a specified user; perform the following training steps: For the training samples in the training sample set, input the behavior information of the specified user and the behavior information of other users in the training sample into the neural network to be trained, and obtain Behavior information feature values corresponding to the specified user, behavior information feature values corresponding to other users; based on the behavior information feature values corresponding to the specified user and the behavior information feature values corresponding to other users, determine the probability of the specified user establishing an association relationship with other users Value; based on the probability value corresponding to the training sample in the determined training sample set, determine whether the preset loss function converges; in response to determining that the preset loss function converges, determine the feature value to determine that the model training is completed.
  • the method further includes: in response to determining that the preset loss function does not converge, using a back propagation algorithm to update the parameters of the neural network to be trained, and continue to perform the training step.
  • the behavior information of other users in the training sample set includes one of the following: behavior information of a positive sample user that has an association relationship with a specified user, and behavior information of a negative sample user that has not established an association relationship with the specified user.
  • Negative sample users are users who are randomly selected from the preset user set, have not established an association relationship with the specified user, and have established an association relationship with other users.
  • the training samples in the training sample set also include time stamps corresponding to the behavior information of other users; wherein the time stamps corresponding to the behavior information of the positive sample user are based on the association between the specified user and the positive sample user The time is determined; the time stamp corresponding to the behavior information of the negative sample user is randomly selected from the time stamp corresponding to the positive sample user.
  • the neural network includes an n-layer cascaded single-layer feedforward neural network and a fully connected layer.
  • the output parameters of the feedforward neural network of the previous layer are used as the feedforward of the next layer
  • the input parameters of the neural network n is a positive integer greater than 1, and i is a positive integer greater than 2 and less than n; and each layer of feedforward neural network performs feature extraction through the following steps: based on the first preset activation function, specify the user The behavior information characteristics of other users, the behavior information characteristics of other users, and the timestamps corresponding to the behavior information of other users, determine the correlation index between the behavior information of the specified user and the behavior information of other users; based on the determined correlation index and the second The preset activation function determines the parameters used to indicate the behavior information characteristics of the specified user; the obtained parameters used to indicate the behavior information characteristics of the specified user are used as the output of the feedforward neural network of the current layer.
  • the behavior information includes at least one of the following: browsing information and publishing information.
  • the browsing information is generated based on browsing information published by other users who have established an association relationship with the user.
  • an embodiment of the present disclosure provides an information push device, the device includes: an acquiring unit configured to acquire a social network including a target user, the social network including behavior information of users located in the social network and Indication information indicating whether an association relationship is established between users; the determining unit is configured to determine the target user and the non-association relationship based on the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user in the social network The probability of establishing an association relationship between users; the pushing unit is configured to push the user identification of the user corresponding to the probability exceeding the preset threshold to the target user.
  • the determining unit includes: an input sub-unit configured to input the behavior information of the target user and the behavior information of users that have not established an association relationship with the target user into the pre-trained feature value determination model to obtain The target user behavior information feature value corresponding to the user's behavior information, and other user behavior information feature values corresponding to the behavior information of users who have not established an association relationship with the target user; the determining sub-unit is configured to be based on the target user behavior information feature value, other The characteristic value of user behavior information determines the probability of establishing an association relationship between the target user and the user who has not established an association relationship.
  • the feature value determination model is obtained by training in the following steps: Obtain a training sample set, wherein each training sample in the training sample set includes behavior information of a specified user, behavior information of other users, and instructions for other users Information indicating whether to establish an association relationship with a specified user; perform the following training steps: For the training samples in the training sample set, input the behavior information of the specified user and the behavior information of other users in the training sample into the neural network to be trained, and obtain Behavior information feature values corresponding to the specified user, behavior information feature values corresponding to other users; based on the behavior information feature values corresponding to the specified user and the behavior information feature values corresponding to other users, determine the probability of the specified user establishing an association relationship with other users Value; based on the probability value corresponding to the training sample in the determined training sample set, determine whether the preset loss function converges; in response to determining that the preset loss function converges, determine the feature value to determine that the model training is completed.
  • the step of training to obtain the feature value determination model further includes: in response to determining that the preset loss function does not converge, using a back propagation algorithm to update the parameters of the neural network to be trained, and continuing to perform the training step.
  • the behavior information of other users in the training sample set includes one of the following: behavior information of a positive sample user that has an association relationship with a specified user, and behavior information of a negative sample user that has not established an association relationship with the specified user.
  • Negative sample users are users who are randomly selected from the preset user set, have not established an association relationship with the specified user, and have established an association relationship with other users.
  • the training samples in the training sample set also include time stamps corresponding to the behavior information of other users; wherein the time stamps corresponding to the behavior information of the positive sample user are based on the association between the specified user and the positive sample user The time is determined; the time stamp corresponding to the behavior information of the negative sample user is randomly selected from the time stamp corresponding to the positive sample user.
  • the neural network includes an n-layer cascaded single-layer feedforward neural network and a fully connected layer.
  • the output parameters of the feedforward neural network of the previous layer are used as the feedforward of the next layer
  • the input parameters of the neural network n is a positive integer greater than 1, and i is a positive integer greater than 2 and less than n; and each layer of feedforward neural network performs feature extraction through the following steps: based on the first preset activation function, specify the user The behavior information characteristics of other users, the behavior information characteristics of other users, and the timestamps corresponding to the behavior information of other users, determine the correlation index between the behavior information of the specified user and the behavior information of other users; based on the determined correlation index and the second The preset activation function determines the parameters used to indicate the behavior information characteristics of the specified user; the obtained parameters used to indicate the behavior information characteristics of the specified user are used as the output of the feedforward neural network of the current layer.
  • the behavior information includes at least one of the following: browsing information and publishing information.
  • the browsing information is generated based on browsing information published by other users who have established an association relationship with the user.
  • embodiments of the present disclosure provide a terminal device, the terminal device includes: one or more processors; a storage device for storing one or more programs; when one or more programs are used by one or more Execution by two processors, so that one or more processors implement the method described in any implementation manner of the first aspect.
  • embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, and the computer program, when executed by a processor, implements the method described in any implementation manner in the first aspect.
  • the information pushing method and device determine the target user and the unassociated relationship based on the degree of association between the target user's behavior information and the behavior information of other users who have not established an association relationship with the target user Establish the probability of the association relationship between the users, and then push the user ID of the user corresponding to the probability exceeding the preset threshold to the target user, so as to more accurately predict the target user’s interest in other users, thereby improving the information Push efficiency.
  • Fig. 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure can be applied;
  • Fig. 2 is a flowchart of an embodiment of an information push method according to the present disclosure
  • FIG. 3 is a flowchart of another embodiment of the information pushing method according to the present disclosure.
  • Fig. 4 is a flow of an optional implementation method of the training method for determining a model according to the feature value of the present disclosure
  • Fig. 5 is a flow chart of an alternative implementation of the method for feature extraction according to each layer of feedforward neural network of the present disclosure
  • Fig. 6 is a schematic diagram of an application scenario of an information push method according to an embodiment of the present disclosure
  • Fig. 7 is a schematic structural diagram of an embodiment of an information pushing device according to the present disclosure.
  • Fig. 8 is a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure.
  • FIG. 1 shows an exemplary architecture 100 to which an embodiment of the information pushing method or information pushing device of the present disclosure can be applied.
  • the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105.
  • the network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105.
  • the network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables.
  • Various client applications may be installed on the terminal devices 101, 102, 103.
  • client applications For example, web browser applications, video applications, content sharing applications, social applications, etc.
  • the terminal devices 101, 102, and 103 can interact with the server 105 through the network 104 to receive or send messages and so on.
  • the terminal devices 101, 102, and 103 may be hardware or software.
  • the terminal devices 101, 102, 103 When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices that can receive user operations, including but not limited to smart phones, tablet computers, e-book readers, laptop computers, desktop computers, and so on.
  • the terminal devices 101, 102, 103 When the terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or as a single software or software module. No specific restrictions are made here.
  • the server 105 may be a background server that supports client applications installed on the terminal devices 101, 102, 103.
  • the server 105 can analyze the acquired browsing information and published information of the target user, and determine the characteristic value of the user's browsing information and the characteristic value of the published information, and then based on the comparison between the characteristic value of the browsing information and the characteristic value of the published information among users Similarity, the user ID of one user is pushed to another user.
  • the server 105 may be hardware or software.
  • the server When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server.
  • the server When the server is software, it can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or as a single software or software module. No specific restrictions are made here.
  • the information pushing method provided by the embodiments of the present disclosure is generally executed by the terminal devices 101, 102, 103, and correspondingly, the information pushing device is generally set in the terminal devices 101, 102, 103.
  • terminal devices, networks, and servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, networks and servers.
  • FIG. 2 shows a process 200 of an embodiment of the information pushing method according to the present disclosure.
  • the information push method includes the following steps:
  • Step 201 Obtain the social network of the target user.
  • the social network is usually a network structure composed of users and an association relationship between users.
  • the association relationship between users may be, for example, blood relationship, friend relationship, colleague relationship, relationship with common interests and hobbies.
  • a user located in a social network can serve as a node of the social network.
  • a social network can be formed by many user nodes.
  • the social network may include users who have established an association relationship with the user, and may also include other users who have not established an association relationship with the user.
  • user A, user B, and user C all belong to network nodes in the same social network.
  • An association relationship is established between user A and user B, an association relationship is established between user B and user C, and an association relationship is not established between user A and user C.
  • a communication application can be used as a social network.
  • users When users use the terminal application, they usually need to register their account in the terminal application. That is to say, if the user joins the social network, the account registration has been performed.
  • users can be seen as nodes of social networks.
  • a certain communication application can also form multiple social networks according to different categories. For example, a social network based on geographic information, a social network based on interest information, etc.
  • the aforementioned communication applications may include, but are not limited to, social applications, blog applications, and the like.
  • users can communicate with other users, such as voice communication, video communication, short message communication, etc.
  • users can also post information such as articles, micro-messages, and comments, and browse information such as articles, micro-messages, and comments published by other users.
  • the above information such as communication information, publishing information, and browsing information is the user's behavior information.
  • the execution subject of the information push method can obtain the social network to which the target user belongs.
  • the social network to which the user belongs may include one social network or multiple social networks.
  • the above-mentioned execution subject may first determine a social network associated with the user tag based on a preset user tag of the target user, and determine the social network as a social network including the target user.
  • the preset user tag may be determined based on user attribute information of the user, or may be selected by the user based on multiple user tags provided by the foregoing execution subject.
  • the acquired social network includes indication information for indicating whether an association relationship is established between users and behavior information of each user.
  • the behavior information includes information posted by other users that are browsed, that is, browsing information, and the posted information, that is, posted information.
  • Step 202 Determine the probability of establishing an association relationship between the target user and the user who has not established an association relationship based on the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user in the social network.
  • the above-mentioned association relationship may be a mutual friend relationship, and may be a following relationship and a followed relationship.
  • the probability of establishing an association relationship between the target user may be determined based on the browsing information of the target user and the posted information of users who have not established an association relationship with the target user in the social network.
  • the feature value of the browsing information corresponding to the browsing information of the target user and the feature value of the posted information corresponding to the posted information of the user who has not established an association relationship with the target user can be determined.
  • users can browse multiple pieces of information or post multiple pieces of information.
  • Each piece of information browsed or published may include a preset tag word, and the preset tag word may be a keyword extracted from the information content, or a tag word set by the information publisher when publishing the information.
  • the preset tag word can represent the category to which the piece of information belongs.
  • the above-mentioned execution subject may determine the multiple categories to which the browsing information of the target user belongs based on the preset tag words corresponding to the browsing information of the target user. Then, each category is regarded as a one-dimensional feature, so as to finally form a feature value of browsing information including multi-dimensional features.
  • the above-mentioned executive body may determine the category to which the posted information belongs based on the preset tag words corresponding to the posted information of the users who have not established an association relationship with the target user. Then, each category is regarded as a one-dimensional feature, thereby finally forming a feature value of the posted information including a multi-dimensional feature vector.
  • the above-mentioned execution subject may determine the probability of establishing an association relationship between two users based on the degree of association between the browsing information feature value corresponding to the target user and the published information feature value corresponding to the user who has not established an association relationship.
  • the sigmoid function can be used to calculate the correlation between the two. Take the probability that the target user pays attention to other users who are not followed as an example to elaborate. See Formula 1 and Formula 2 for details.
  • p ij is the probability of target user i following user j.
  • ⁇ (x) is the sigmoid function
  • x is a random variable.
  • the random variable is The matrix of eigenvalues, Is the eigenvalue matrix of the browsing information of the target user, Is the matrix of the eigenvalues of other users' published information, and b is a random constant.
  • the random variable x is Eigenvalue matrix for browsing information Column vector and eigenvalue matrix of published information The column vectors of are merged into a new column vector.
  • the greater the value of the probability p ij the greater the probability that the target user pays attention to other users, that is, the greater the probability of establishing an association relationship between two users.
  • Step 203 Push the user identifier of the user corresponding to the probability exceeding the preset threshold to the target user.
  • the aforementioned executive subject after each user joins the aforementioned social network, the aforementioned executive subject usually records a user identifier for uniquely identifying the user's identity.
  • the user identification may be a terminal device number, a registration number used for account registration, or a screen name, avatar, etc. used by the user for account registration.
  • the aforementioned user identification may also be a public reading platform such as an official account.
  • the articles and other information published by each official account can be regarded as a user's release based on platforms such as social applications. Therefore, public reading platforms such as official accounts are used to uniquely instruct the public to read
  • the identity of the platform can also be regarded as a user identity.
  • the above-mentioned execution subject may determine the probability of establishing an association relationship between the target user determined in step 202 and the user who has not established an association relationship, and then calculate the probability of the probability value exceeding the preset threshold of the user corresponding to the relationship.
  • the user ID is pushed to the target user. Therefore, the target user can select the operation of adding the user corresponding to the user ID as a friend, follow the user operation corresponding to the user ID, and so on based on the user ID pushed by the received server.
  • This embodiment uses the feature values of the browsing information of the target user and the feature values of the published information of other users to determine whether the target user is interested in the content published by other users to establish an association relationship between the two, which can make the push more targeted . To avoid pushing many other users who are not strongly related or users are not interested to the target user, which improves the probability of establishing an association relationship between the target user and the pushed user, thereby improving the push efficiency.
  • FIG. 3 shows a flow 300 of another embodiment of the information pushing method.
  • the process 300 of the information push method includes the following steps:
  • Step 301 Obtain a social network including the target user.
  • the execution subject of the information push method can obtain the social network to which the target user belongs.
  • the social network to which the user belongs may include one social network or multiple social networks.
  • the above-mentioned execution subject may first determine a social network associated with the user tag based on a preset user tag of the target user, and determine the social network as a social network including the target user.
  • the acquired social network includes indication information for indicating whether an association relationship is established between users, and behavior information of each user.
  • the behavior information includes information posted by other users that are browsed, that is, browsing information, and the posted information, that is, posted information.
  • Step 302 Input the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user into the pre-trained feature value determination model to obtain the target user behavior information feature value corresponding to the target user's behavior information, and Other user behavior information feature values corresponding to the behavior information of users whose target users have not established an association relationship.
  • the aforementioned behavior information may be browsing information or publishing information.
  • the behavior information of the target user is browsing information
  • the behavior information of users who have not established an associated relationship with the target user is publishing information.
  • the browsing information may be the title of the browsed content, may be a keyword extracted from the browsed content, or may be a tag word preset when the user publishes the content.
  • the published information may be the title of the published content, may be a keyword extracted from the published content, or may be a tag word preset when the user publishes the content.
  • the feature value determination model is used to predict the user's point of interest based on the user's behavior information, so as to obtain the behavior information feature value based on the behavior information.
  • the above-mentioned feature value determination model is obtained based on neural network training.
  • the neural network may be a deep neural network, and the deep neural network may include multiple feature extraction layers and one fully connected layer.
  • the feature extraction layer can be used to extract features of behavior information.
  • the features extracted from each layer are fully connected in the fully connected layer to obtain the final behavior information feature value.
  • the target user behavior information feature value may be a browsing information feature value obtained based on feature extraction of the browsing information of the target user.
  • the browsing information of the target user may be input to the aforementioned pre-trained feature value determination model, so as to obtain the browsing information feature value indicating the browsing interest of the target user.
  • other user information feature values corresponding to users who have not established an association relationship with the target user may be posted information feature values obtained based on feature extraction of other users' posted information.
  • the posted information of other users may be input to the aforementioned pre-trained feature value determination model, so as to obtain the feature values of other user posted information used to indicate the posting interests of other users.
  • Step 303 Based on the target user behavior information characteristic value and other user behavior information characteristic values, determine the probability of establishing an association relationship between the target user and a user who has not established an association relationship.
  • step 302 according to the feature value of the browsing information of the target user determined in step 302 and the feature value of the posted information of the user who has not established an association relationship with the target user, it can be determined that the relationship between the target user and the user who has not established an association relationship is established.
  • the probability of association For the specific implementation of this step, reference may be made to the related description in step 202 of the embodiment shown in FIG. 2, which will not be repeated here.
  • Step 304 Push the user identifier of the user corresponding to the probability exceeding the preset threshold to the target user.
  • step 301 and step 304 shown in this embodiment reference may be made to the relevant description of step 201 and step 203 shown in FIG. 2, and details are not repeated here.
  • this embodiment discloses a step of using a pre-trained neural network to determine the characteristic value of behavior information. Since the neural network can process a large amount of data and learn the characteristics of various behavior information of users, it can make the determined characteristic values of behavior information more accurate.
  • the foregoing feature value determination model may be obtained by training based on a sample set.
  • FIG. 4 shows a flow 400 of an alternative implementation of the training method of the feature value determination model provided by the present disclosure.
  • the process 400 includes the following steps:
  • Step 401 Obtain a training sample set.
  • each training sample in the training sample set includes user information of a designated user, behavior information of other users, and indication information for indicating whether other users have established an association relationship with the designated user.
  • the behavior information can include browsing information and publishing information.
  • the browsing information is generated based on browsing information published by other users who have established an association relationship with the user.
  • the behavior information of other users in the training sample set includes one of the following: behavior information of a positive sample user that has established an association relationship with the specified user, and behavior information of a negative sample user that has not established an association relationship with the specified user information.
  • the negative sample user is a user who is randomly selected from the preset user set, has not established an association relationship with the specified user, and has established an association relationship with other users.
  • the user identifier corresponding to the user may be added to the above-mentioned preset user set. Add it every time it is detected. That is to say, after the association relationship between the user A and the user B is established, the user identification corresponding to the user A and the user identification corresponding to the user B can be added to the aforementioned preset user set. When it is detected that the association relationship between the user A and the user C is established, the user identification corresponding to the user A and the user identification corresponding to the user C are added to the aforementioned preset user set. In other words, the preset user set contains two user IDs corresponding to user A.
  • the above-mentioned executive body selects a negative sample user, it is selected from the above-mentioned preset user information set. Therefore, the more user identities of a certain user included in the aforementioned preset user set, the greater the probability of being selected as a negative sample user.
  • the negative samples in the training sample set in the above manner the negative samples can be made more universal, so that the trained model has better generalization ability.
  • the behavior information includes at least one of the following: browsing information and publishing information.
  • the browsing information is generated based on browsing information published by other users who have established an association relationship with the user.
  • the training samples in the training sample set also include a time stamp corresponding to the behavior information; the time stamp corresponding to the behavior information of the positive sample user is determined based on the time when the specified user establishes an association relationship with the positive sample user The time stamp corresponding to the behavior information of the negative sample user is randomly selected from the time stamp corresponding to the positive sample user.
  • the above-mentioned executive body may select the positive sample users who have established an association relationship with the designated user before the designated time t, and then set a time stamp for each positive sample user.
  • the timestamp may be a multi-dimensional time feature vector, where the one-dimensional time feature vector is used to indicate the time feature of the specified user and the positive sample user, and the one-dimensional time feature vector is used to instruct the specified user to browse the positive sample user The time characteristics of the published information. The closer the time for establishing the association relationship is to the specified time t, the greater the influence of the information released by the positive sample users on the interest of the specified user in the current time period. Then, the above-mentioned set timestamp can be randomly assigned to the negative sample users. In other words, the behavior information corresponding to each positive sample user or the behavior information corresponding to the negative sample user in the sample training set is set with a time stamp.
  • the browsing information and publication information of the specified user are obtained based on the time stamp of the positive sample user corresponding to the specified user, that is, the positive sample user who browses before the timestamp and corresponds to the time stamp is published information.
  • the above-mentioned browsing information and published information of other users are based on the timestamp corresponding to the negative sample user, and the information browsed and published by the other users before the selected timestamp.
  • the training samples can be time-sensitive.
  • the weight of the browsing information can be determined according to the length of the browsing time corresponding to the browsing information from the current time
  • the weight of the published information can be determined according to the length of the publishing time corresponding to the published information from the current time, so that the trained
  • the feature value determination model has better timeliness, that is, it can better reflect the user's current interest features, so that the determined feature values of browsing information and published information are more accurate.
  • the execution subject may preprocess the acquired behavior information of the specified user and the behavior information of other users.
  • the pre-processing can be standardized processing of behavior information.
  • the normalization processing may be, for example, norm normalization processing, maximum and minimum value normalization processing, or the like.
  • Step 402 based on the training sample set obtained in step 401, the following training steps may be performed:
  • Step 4021 For the training samples in the training sample set, input the behavior information of the specified user and the behavior information of other users in the training sample into the neural network to be trained to obtain the characteristic values of the behavior information corresponding to the specified user and correspond to other users The characteristic value of behavior information.
  • the behavior information characteristic value may include the browsing information characteristic value and the publishing information characteristic value.
  • Step 4022 Based on the behavior information feature value corresponding to the specified user and the behavior information feature value corresponding to other users, determine the probability value of the specified user establishing an association relationship with other users.
  • the association relationship may be a following relationship and a followed relationship.
  • the probability value of the designated user's attention to other users can be determined based on the characteristic value of the browsing information of the designated user and the characteristic value of the published information corresponding to other users. Or, based on the feature value of the posted information of the specified user and the feature value of the browsing information of other users, the probability value of the specified user being followed by other users is determined.
  • the specific realization of the above probability value can refer to the specific realization of determining the probability of establishing an association relationship between the target user and the user who has not established an association relationship shown in step 203 of the embodiment in FIG. 2, which will not be repeated here.
  • Step 4023 Determine whether the preset loss function converges based on the probability value corresponding to the training sample in the determined training sample set.
  • the aforementioned preset loss function may be a logarithmic loss function, for example.
  • determining whether the preset loss function converges is to determine whether the loss value of the loss function reaches the preset threshold, or whether the change in the loss value is absolutely less than the preset threshold.
  • the preset loss function converges. It is worth noting here that the absolute value of the aforementioned loss value change is based on the absolute value of the difference between the loss value calculated using the loss function in the current training and the loss value obtained in the previous training.
  • step 403 in response to determining that the preset loss function converges, it is determined that the eigenvalues determine that the model training is completed.
  • step 4023 according to whether the preset loss function determined in step 4023 converges, when the preset loss function converges, it can be determined that the above-mentioned feature value determination model training is completed.
  • Step 404 in response to determining that the preset loss function does not converge, use the back propagation algorithm to update the parameters of the neural network to be trained, and continue to perform the training step shown in step 402.
  • the above-mentioned updating the parameters of the neural network to be trained can be, for example, updating the value of the filter of each layer of the neural network in the neural network to be trained, the size of the filter, the step size, etc., and the neural network can also be updated. The number of layers.
  • the above-mentioned execution subject may use the direction propagation algorithm to update the parameters of the neural network to be trained, and then continue to perform the training steps shown in step 4021-step 4023.
  • the feature value determination model trained by the above training method can make the determined behavior information feature value more accurate, and can also improve the robustness of the trained feature value determination model.
  • the aforementioned neural network for training the feature value determination model may include n-layer cascaded single-layer feedforward neural network and a fully connected layer.
  • n is a positive integer greater than 1.
  • the output parameter of the previous layer of feedforward neural network is used as the input parameter of the next layer of feedforward neural network
  • i is a positive integer greater than 2 and less than n.
  • each layer of feedforward neural network is used for feature extraction.
  • the output of the last layer of feedforward neural network includes the feature extraction results of the previous layers of feedforward neural network.
  • FIG. 5 shows a process 500 of an optional implementation manner of the method for feature extraction of each layer of the feedforward neural network provided by the present disclosure.
  • the process 500 includes the following steps:
  • Step 501 Determine the specified user based on the first preset activation function, the behavior information feature of the specified user, the behavior information feature of other users, the time stamp corresponding to the behavior information of other users, and the time stamp corresponding to the behavior information of other users.
  • the behavior information feature of the specified user may be the browsing information feature of the specified user, and the behavior information feature of other users may be the published information feature of other users.
  • the timestamp corresponding to the behavior information of other users, the browsing information characteristics of the specified user, and the published information characteristics of other users concerned by the specified user can be determined.
  • the correlation index between the posted information corresponding to other users concerned is taken as the first correlation index.
  • the first relevance index is used to indicate the degree of influence of the published information of other users followed by the specified user on the interest characteristics of the specified user.
  • the first preset activation function may be, for example, a ReLU activation function. Because the information browsed by the user in the preset time period may include multiple pieces of information. Therefore, the browsing information can be converted into a feature vector with multi-dimensional features, and each dimensional feature component is used to represent a piece of browsing information.
  • This layer of feedforward neural network can perform feature extraction on each dimensional feature component of the feature vector used to characterize browsing information to obtain a feature matrix corresponding to the browsing information.
  • published information can also be converted into a feature vector with multi-dimensional features, and each dimensional feature component is used to represent a piece of published information.
  • This layer of feedforward neural network can perform feature extraction on each dimensional feature component of the feature vector used to characterize the posted information, and obtain the feature matrix corresponding to the posted information.
  • each piece of browsing information is set with a timestamp. Therefore, based on the time stamps corresponding to each browsing information, a time stamp matrix can be formed.
  • the time influence features are divided into a preset number of levels according to the order of distance from the current time. That is to say, the closer the time stamp is to the current time, the higher the corresponding level, that is, the greater the time impact.
  • this layer of feedforward neural network can substitute the feature matrix corresponding to the browsing information of the specified user, the feature matrix and the time feature matrix corresponding to the posted information of other users that the specified user is concerned with, into the ReLU activation function, and finally get the specified user
  • the correlation index between the corresponding browsing information and the posted information corresponding to other users that the user is concerned about is designated as the first correlation index.
  • the behavior information feature of the specified user may also be the published information feature of the specified user, and the behavior information feature of other users may also be the browsing information feature of other users browsing the information published by the specified user.
  • the correlation index between the browsing information corresponding to other users concerned is used as the second correlation index.
  • the second correlation index is used to indicate the degree of influence of the information posted by the specified user on the interest characteristics of other users who follow the specified user.
  • This layer of feedforward neural network can generate a feature matrix corresponding to the posted information of a specified user, a feature matrix and a time feature matrix corresponding to the browsing information of other users who pay attention to the specified user.
  • this layer of feedforward neural network can substitute the generated feature matrix corresponding to the posted information of the specified user, feature matrix and time feature matrix corresponding to the browsing information of other users who follow the specified user into the ReLU activation function, and finally get The correlation index between the posted information corresponding to the designated user and the browsing information corresponding to other users that the designated user pays attention to is used as the second correlation index, and the correlation index is used as the second correlation index.
  • the behavior information characteristics of the first-layer feedforward neural network are the acquired behavior information of the specified user and the behavior information of other users.
  • the behavior information characteristics of the second layer to the nth layer of the feedforward neural network are the parameters output by the previous layer of the feedforward neural network to indicate the behavior information characteristics of the specified user.
  • the behavior information features include browsing information features and publishing information features.
  • Step 502 based on the determined correlation index and the second preset activation function, determine a parameter for indicating the behavior information feature of the specified user.
  • a parameter used to indicate the characteristics of the browsing information of the specified user may be determined.
  • the parameters used to indicate the characteristics of the published information of the specified user may be determined.
  • the second preset activation function may be a Sigmoid function.
  • the obtained first correlation index can be normalized. Then, the normalized first association index is used as the coefficient of the feature matrix corresponding to the browsing information of the specified user and the coefficient of the feature matrix corresponding to the posted information of other users, respectively, to obtain the transformed feature corresponding to the browsing information of the specified user
  • the matrix and the transformed feature matrix corresponding to the posted information of other users The sum of the obtained feature matrix corresponding to the browsing information of the specified user after the transformation and the feature matrix corresponding to the post information of other users after the transformation is used as the variable of the second preset activation function, so as to obtain the browsing information used to indicate the specified user Information feature parameters.
  • the obtained second correlation index can be normalized. Then, the normalized second association index is used as the coefficients of the feature matrix corresponding to the posted information of the specified user and the coefficients of the feature matrix corresponding to the browsing information of other users to obtain the transformed features corresponding to the posted information of the specified user.
  • the sum of the obtained feature matrix corresponding to the post information of the specified user after the transformation and the feature matrix corresponding to the browsing information of other users after the transformation is used as the variable of the second preset activation function, thereby obtaining the post for indicating the specified user Information feature parameters.
  • Step 503 Use the obtained parameter indicating the behavior information feature of the specified user as the output of the feedforward neural network of the current layer.
  • the obtained parameter indicating the characteristics of the posted information of the specified user and the parameter indicating the characteristics of the browsing information of the specified user may be used as the output of the current layer feedforward neural network.
  • the obtained parameters used to indicate the characteristics of the published information of the specified user and the obtained parameters used to indicate the characteristics of the browsing information of the specified user may be used as the output of the current layer feedforward neural network.
  • the parameters obtained in the current layer are used as the input of the feedforward neural network of the next layer connected to this layer.
  • the feedforward neural network of each layer uses the parameters extracted by the above-mentioned feature extraction method to determine the user’s final browsing information feature parameters and published information feature parameters based on the degree of influence of other users’ published information or browsing information on the specified user, so that each The features extracted by a layer of feedforward neural network are more accurate, thereby improving the accuracy of the feature values extracted by the trained feature value determination model.
  • FIG. 6 is a schematic diagram of an application scenario of the information pushing method according to this embodiment.
  • the social network 601 is a social network including user A, where user A is a target user.
  • the social network 601 also includes user B, user C, and user D. Among them, user A and user B follow each other, and user B follows user C and user D. There is no association relationship between user A, user C, and user D.
  • User A has viewed “How the Wormhole is Formed” and “Football World Cup” published by User B.
  • the information released by user C includes "European Cup Highlights” and "Einstein's Theory of Relativity", and the information released by user D includes "travel diary” and so on.
  • the electronic device 602 on which the information push method runs can determine the target user A and user C, based on the information published by user B viewed by user A, based on the information published by user C, and based on the information published by user D.
  • the probability of user D establishing an association relationship. Among them, the probability that the user A and the user C establish an association relationship is 0.8, and the probability that the user A and the user D establish an association relationship is 0.2.
  • the electronic device 602 can push the user identification of the user C to the user A.
  • the present disclosure provides an embodiment of an information push device.
  • the device embodiment corresponds to the method embodiment shown in FIG. 2, and the device can be specifically applied to Various electronic devices.
  • the information pushing device 700 includes an acquiring unit 701, a determining unit 702, and a pushing unit 703.
  • the obtaining unit 701 is configured to obtain a social network including the target user, the social network including behavior information of users located in the social network and indication information for indicating whether an association relationship is established between the users;
  • the determining unit 702 is configured to Based on the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user in the social network, the probability of establishing an association relationship between the target user and the user who has not established an association relationship is determined 703.
  • the push unit is configured to exceed The user ID of the user corresponding to the probability of the preset threshold is pushed to the target user.
  • step 201 the specific processing of the acquiring unit 701, the determining unit 702, and the pushing unit 703 and the technical effects brought by them can be referred to step 201, step 202, and step 202 in the corresponding embodiment in FIG. 2 respectively.
  • step 203 the description of step 203 will not be repeated here.
  • the determining unit 702 includes: an input subunit (not shown in the figure) configured to combine the behavior information of the target user and the behavior of users that have not established an association relationship with the target user.
  • the information is respectively input to the pre-trained feature value determination model to obtain the target user behavior information feature value corresponding to the target user's behavior information, and other user behavior information feature values corresponding to the behavior information of users who have not established an association relationship with the target user; determine;
  • the subunit (not shown in the figure) is configured to determine the probability of establishing an association relationship between the target user and a user who has not established an association relationship based on the target user behavior information characteristic value and other user behavior information characteristic values.
  • the feature value determination model is obtained by training in the following steps: obtaining a training sample set, where each training sample in the training sample set includes behavior information of a specified user and behaviors of other users Information, instruction information used to indicate whether other users have established an association relationship with a specified user; perform the following training steps: for the training samples in the training sample set, input the behavior information of the specified user and the behavior information of other users in the training sample into The neural network to be trained obtains the behavior information feature value corresponding to the specified user and the behavior information feature value corresponding to other users; based on the behavior information feature value corresponding to the specified user and the behavior information feature value corresponding to other users, it is determined that the specified user and The probability value of the association relationship established by other users; based on the determined probability value corresponding to the training sample in the training sample set, determine whether the preset loss function converges; in response to determining that the preset loss function converges, the feature value is determined to determine that the model training is completed.
  • the step of training to obtain the feature value determination model further includes: in response to determining that the preset loss function does not converge, using a backpropagation algorithm to update the parameters of the neural network to be trained, and continue execution Training steps.
  • the behavior information of other users in the training sample set includes one of the following: the behavior information of the positive sample user that has an association relationship with the specified user, and the negative behavior information that has not established an association relationship with the specified user.
  • the training samples in the training sample set also include time stamps corresponding to the behavior information of other users; wherein, the time stamps corresponding to the behavior information of the positive sample user are based on the specified user and The time when the positive sample user establishes the association relationship is determined; the time stamp corresponding to the behavior information of the negative sample user is randomly selected from the time stamp corresponding to the positive sample user.
  • the neural network includes n-layer cascaded single-layer feedforward neural network and a fully connected layer.
  • the output of the previous layer of feedforward neural network The parameters are used as the input parameters of the feedforward neural network of the next layer, n is a positive integer greater than 1, and i is a positive integer greater than 2 and less than n; and each layer of feedforward neural network performs feature extraction through the following steps: Preset the activation function, the behavior information characteristics of the specified user, the behavior information characteristics of other users, and the time stamp corresponding to the behavior information of other users to determine the correlation index between the behavior information of the specified user and the behavior information of other users; The determined correlation index and the second preset activation function determine the parameters used to indicate the behavior information characteristics of the specified user; the obtained parameters used to indicate the behavior information characteristics of the specified user are used as the output of the current layer feedforward neural network.
  • the behavior information includes at least one of the following: browsing information and publishing information.
  • the browsing information is generated based on browsing information published by other users who have an association relationship with the user.
  • the information push device determines the target user and the user who has not established an association relationship based on the association degree between the target user's behavior information and the behavior information of other users who have not established an association relationship with the target user.
  • the probability of an association relationship is established, and then the user ID of the user corresponding to the probability exceeding the preset threshold is pushed to the target user, so that the degree of interest of the target user to other users can be predicted more accurately, thereby improving the efficiency of information push .
  • Terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals ( For example, mobile terminals such as car navigation terminals and fixed terminals such as digital TVs and desktop computers.
  • the terminal device shown in FIG. 8 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 800 may include a processing device (such as a central processing unit, a graphics processor, etc.) 801, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 802 or loaded from a storage device 808
  • the program in the memory (RAM) 803 executes various appropriate actions and processes.
  • various programs and data required for the operation of the electronic device 800 are also stored.
  • the processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804.
  • An input/output (I/O) interface 805 is also connected to the bus 804.
  • the following devices can be connected to the I/O interface 805: including input devices 806 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, liquid crystal display (LCD), speakers, vibration An output device 807 such as a device; a storage device 808 such as a magnetic tape and a hard disk; and a communication device 809.
  • the communication device 809 may allow the electronic device 800 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 8 shows an electronic device 800 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices. Each block shown in FIG. 8 may represent one device, or may represent multiple devices as needed.
  • the process described above with reference to the flowchart can be implemented as a computer software program.
  • the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802.
  • the processing device 801 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may 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 may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned terminal device; or it may exist alone without being assembled into the terminal device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device obtains the social network including the target user, and the social network includes the user's information in the social network. Behavior information and indication information used to indicate whether an association relationship between users is established; based on the behavior information of the target user, and the behavior information of users who have not established an association relationship with the target user in the social network, determine the target user and those who have not established an association relationship.
  • the probability of establishing an association relationship between users; the user ID of the user corresponding to the probability exceeding the preset threshold is pushed to the target user.
  • the computer program code for performing the operations of the embodiments of the present disclosure can be written in one or more programming languages or a combination thereof.
  • the programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and Conventional procedural programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to Connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logic function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner.
  • the described unit may also be provided in the processor, for example, it may be described as: a processor includes a processor, including an acquiring unit, a determining unit, and a pushing unit. Wherein, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
  • the obtaining unit can also be described as "a unit for obtaining a social network including a target user".

Abstract

An information pushing method and device, wherein the method comprises: acquiring a social network of a target user (201), wherein the social network comprises behavior information of users in the social network and indication information indicating whether an association relationship is established among the users; on the basis of the behavior information of the target user and the behavior information of the user in the social network who has not established the association relationship with the target users, determining the probability of establishing an association relationship between the target user and the user who has not established an association relationship (202); pushing user identifiers of the users corresponding to the probability exceeding a preset threshold to the target user (203). The method can more accurately predict the degree of interest of the target user to other users, and therefore improve the information pushing efficiency.

Description

信息推送方法和装置Information pushing method and device
相关申请的交叉引用Cross references to related applications
本申请基于申请号为201910092332.X、申请日为2019年01月30日、名称为“信息推送方法和装置”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is filed based on the Chinese patent application with the application number 201910092332.X, the filing date of January 30, 2019, and the name "Information Push Method and Device", and claims the priority of the Chinese patent application. The entire content is hereby incorporated into this application as a reference.
技术领域Technical field
本公开的实施例涉及计算机技术领域,具体涉及信息推送方法和装置。The embodiments of the present disclosure relate to the field of computer technology, in particular to an information push method and device.
背景技术Background technique
随着终端设备的普及和移动端的开发技术的快速发展,涌现出了各种各样的客户端应用。这些客户端应用中通常可以包括社交类应用。通过社交类应用,用户可以与其他用户进行交互。With the popularization of terminal equipment and the rapid development of mobile terminal development technology, various client applications have emerged. These client applications can usually include social applications. Through social applications, users can interact with other users.
相关技术中,通常会基于用户自身的属性特征(例如年龄、性别、兴趣爱好、常住地址)等信息,通过上述社交类应用将与用户未建立关联关系的其他用户推送给该用户。In related technologies, other users who have not established an associated relationship with the user are usually pushed to the user through the above-mentioned social applications based on the user's own attribute characteristics (such as age, gender, hobbies, and habitual residence address).
发明内容Summary of the invention
本公开的实施例提出了信息推送方法和装置。The embodiments of the present disclosure propose information pushing methods and devices.
第一方面,本公开的实施例提供了一种信息推送方法,该方法包括:获取包括目标用户的社交网络,社交网络包括位于社交网络中的用户的行为信息和用于指示各用户之间是否建立关联关系的指示信息;基于目标用户的行为信息、社交网络中与目标用户未建立关联关系的用户的行为信息,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率;将超过预设阈值的概率对应的用户的用户标识 推送给目标用户。In the first aspect, the embodiments of the present disclosure provide an information push method. The method includes: obtaining a social network including a target user. The social network includes behavior information of users located in the social network and is used to indicate whether or not between users Instruction information for establishing an association relationship; based on the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user in the social network, determine the probability of establishing an association relationship between the target user and users who have not established an association relationship; The user ID of the user corresponding to the probability exceeding the preset threshold is pushed to the target user.
在一些实施例中,基于目标用户的行为信息、社交网络中与目标用户未建立关联关系的其他用户的行为信息,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率,包括:将目标用户的行为信息、与目标用户未建立关联关系的用户的行为信息分别输入至预先训练的特征值确定模型,得到与目标用户的行为信息对应的目标用户行为信息特征值、与目标用户未建立关联关系的用户的行为信息对应的其他用户行为信息特征值;基于目标用户行为信息特征值、其他用户行为信息特征值,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率。In some embodiments, based on the behavior information of the target user and the behavior information of other users who have not established an association relationship with the target user in the social network, the probability of establishing an association relationship between the target user and a user who has not established an association relationship is determined, including : The behavior information of the target user and the behavior information of the user who has not established an association relationship with the target user are respectively input into the pre-trained feature value determination model to obtain the target user behavior information feature value corresponding to the target user's behavior information, and the target user Other user behavior information feature values corresponding to the behavior information of users that have not established an association relationship; based on the target user behavior information feature value and other user behavior information feature values, determine the target user and the user who has not established an association relationship to establish an association relationship Probability.
在一些实施例中,特征值确定模型是通过如下步骤训练得到:获取训练样本集,其中,训练样本集中的每一个训练样本包括指定用户的行为信息、其他用户的行为信息、用于指示其他用户与指定用户是否建立关联关系的指示信息;执行如下训练步骤:对于训练样本集中的训练样本,将该训练样本中指定用户的行为信息、其他用户的行为信息分别输入至待训练的神经网络,得到与指定用户对应的行为信息特征值、与其他用户对应的行为信息特征值;基于指定用户对应的行为信息特征值与其他用户对应的行为信息特征值,确定指定用户与其他用户建立关联关系的概率值;基于所确定的训练样本集中的训练样本对应的概率值,确定预设损失函数是否收敛;响应于确定预设损失函数收敛,确定特征值确定模型训练完成。In some embodiments, the feature value determination model is obtained by training in the following steps: Obtain a training sample set, wherein each training sample in the training sample set includes behavior information of a specified user, behavior information of other users, and instructions for other users Information indicating whether to establish an association relationship with a specified user; perform the following training steps: For the training samples in the training sample set, input the behavior information of the specified user and the behavior information of other users in the training sample into the neural network to be trained, and obtain Behavior information feature values corresponding to the specified user, behavior information feature values corresponding to other users; based on the behavior information feature values corresponding to the specified user and the behavior information feature values corresponding to other users, determine the probability of the specified user establishing an association relationship with other users Value; based on the probability value corresponding to the training sample in the determined training sample set, determine whether the preset loss function converges; in response to determining that the preset loss function converges, determine the feature value to determine that the model training is completed.
在一些实施例中,方法还包括:响应于确定预设损失函数未收敛,利用反向传播算法更新待训练的神经网络的参数,继续执行训练步骤。In some embodiments, the method further includes: in response to determining that the preset loss function does not converge, using a back propagation algorithm to update the parameters of the neural network to be trained, and continue to perform the training step.
在一些实施例中,训练样本集中的其他用户的行为信息包括以下之一:与指定用户建立关联关系的正样本用户的行为信息、与指定用户未建立关联关系的负样本用户的行为信息,其中,负样本用户是从预设用户集合中随机选取出的、与指定用户未建立关联关系且与其他用户建立关联关系的用户。In some embodiments, the behavior information of other users in the training sample set includes one of the following: behavior information of a positive sample user that has an association relationship with a specified user, and behavior information of a negative sample user that has not established an association relationship with the specified user. , Negative sample users are users who are randomly selected from the preset user set, have not established an association relationship with the specified user, and have established an association relationship with other users.
在一些实施例中,训练样本集中的训练样本还包括与其他用户的行为信息对应的时间戳;其中,与正样本用户的行为信息对应的时间 戳是基于指定用户与正样本用户建立关联关系的时间确定的;与负样本用户的行为信息对应的时间戳是从与正样本用户对应的时间戳中随机选取出的。In some embodiments, the training samples in the training sample set also include time stamps corresponding to the behavior information of other users; wherein the time stamps corresponding to the behavior information of the positive sample user are based on the association between the specified user and the positive sample user The time is determined; the time stamp corresponding to the behavior information of the negative sample user is randomly selected from the time stamp corresponding to the positive sample user.
在一些实施例中,神经网络包括n层级联的单层前馈神经网络和全连接层,对于第i层前馈神经网络,前一层的前馈神经网络的输出参数作为后一层前馈神经网络的输入参数,n为大于1的正整数,i为大于2且小于n的正整数;以及每一层前馈神经网络通过如下步骤进行特征提取:基于第一预设激活函数、指定用户的行为信息特征、其他用户的行为信息特征、与其他用户的行为信息对应的时间戳,确定指定用户的行为信息和其他用户的行为信息之间的关联指数;基于所确定的关联指数和第二预设激活函数,确定用于指示指定用户的行为信息特征的参数;将所得到的用于指示指定用户的行为信息特征的参数作为当前层前馈神经网络的输出。In some embodiments, the neural network includes an n-layer cascaded single-layer feedforward neural network and a fully connected layer. For the i-th layer feedforward neural network, the output parameters of the feedforward neural network of the previous layer are used as the feedforward of the next layer The input parameters of the neural network, n is a positive integer greater than 1, and i is a positive integer greater than 2 and less than n; and each layer of feedforward neural network performs feature extraction through the following steps: based on the first preset activation function, specify the user The behavior information characteristics of other users, the behavior information characteristics of other users, and the timestamps corresponding to the behavior information of other users, determine the correlation index between the behavior information of the specified user and the behavior information of other users; based on the determined correlation index and the second The preset activation function determines the parameters used to indicate the behavior information characteristics of the specified user; the obtained parameters used to indicate the behavior information characteristics of the specified user are used as the output of the feedforward neural network of the current layer.
在一些实施例中,行为信息包括以下至少一项:浏览信息、发布信息,浏览信息是基于浏览与用户建立关联关系的其他用户所发布的信息而生成的。In some embodiments, the behavior information includes at least one of the following: browsing information and publishing information. The browsing information is generated based on browsing information published by other users who have established an association relationship with the user.
第二方面,本公开的实施例提供了一种信息推送装置,该装置包括:获取单元,被配置成获取包括目标用户的社交网络,社交网络包括位于社交网络中的用户的行为信息和用于指示各用户之间是否建立关联关系的指示信息;确定单元,被配置成基于目标用户的行为信息、社交网络中与目标用户未建立关联关系的用户的行为信息,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率;推送单元,被配置成将超过预设阈值的概率对应的用户的用户标识推送给目标用户。In a second aspect, an embodiment of the present disclosure provides an information push device, the device includes: an acquiring unit configured to acquire a social network including a target user, the social network including behavior information of users located in the social network and Indication information indicating whether an association relationship is established between users; the determining unit is configured to determine the target user and the non-association relationship based on the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user in the social network The probability of establishing an association relationship between users; the pushing unit is configured to push the user identification of the user corresponding to the probability exceeding the preset threshold to the target user.
在一些实施例中,确定单元包括:输入子单元,被配置成将目标用户的行为信息、与目标用户未建立关联关系的用户的行为信息分别输入至预先训练的特征值确定模型,得到与目标用户的行为信息对应的目标用户行为信息特征值、与目标用户未建立关联关系的用户的行为信息对应的其他用户行为信息特征值;确定子单元,被配置成基于目标用户行为信息特征值、其他用户行为信息特征值,确定目标用户 与未建立关联关系的用户之间,建立关联关系的概率。In some embodiments, the determining unit includes: an input sub-unit configured to input the behavior information of the target user and the behavior information of users that have not established an association relationship with the target user into the pre-trained feature value determination model to obtain The target user behavior information feature value corresponding to the user's behavior information, and other user behavior information feature values corresponding to the behavior information of users who have not established an association relationship with the target user; the determining sub-unit is configured to be based on the target user behavior information feature value, other The characteristic value of user behavior information determines the probability of establishing an association relationship between the target user and the user who has not established an association relationship.
在一些实施例中,特征值确定模型是通过如下步骤训练得到:获取训练样本集,其中,训练样本集中的每一个训练样本包括指定用户的行为信息、其他用户的行为信息、用于指示其他用户与指定用户是否建立关联关系的指示信息;执行如下训练步骤:对于训练样本集中的训练样本,将该训练样本中指定用户的行为信息、其他用户的行为信息分别输入至待训练的神经网络,得到与指定用户对应的行为信息特征值、与其他用户对应的行为信息特征值;基于指定用户对应的行为信息特征值与其他用户对应的行为信息特征值,确定指定用户与其他用户建立关联关系的概率值;基于所确定的训练样本集中的训练样本对应的概率值,确定预设损失函数是否收敛;响应于确定预设损失函数收敛,确定特征值确定模型训练完成。In some embodiments, the feature value determination model is obtained by training in the following steps: Obtain a training sample set, wherein each training sample in the training sample set includes behavior information of a specified user, behavior information of other users, and instructions for other users Information indicating whether to establish an association relationship with a specified user; perform the following training steps: For the training samples in the training sample set, input the behavior information of the specified user and the behavior information of other users in the training sample into the neural network to be trained, and obtain Behavior information feature values corresponding to the specified user, behavior information feature values corresponding to other users; based on the behavior information feature values corresponding to the specified user and the behavior information feature values corresponding to other users, determine the probability of the specified user establishing an association relationship with other users Value; based on the probability value corresponding to the training sample in the determined training sample set, determine whether the preset loss function converges; in response to determining that the preset loss function converges, determine the feature value to determine that the model training is completed.
在一些实施例中,训练得到特征值确定模型的步骤还包括:响应于确定预设损失函数未收敛,利用反向传播算法更新待训练的神经网络的参数,继续执行训练步骤。In some embodiments, the step of training to obtain the feature value determination model further includes: in response to determining that the preset loss function does not converge, using a back propagation algorithm to update the parameters of the neural network to be trained, and continuing to perform the training step.
在一些实施例中,训练样本集中的其他用户的行为信息包括以下之一:与指定用户建立关联关系的正样本用户的行为信息、与指定用户未建立关联关系的负样本用户的行为信息,其中,负样本用户是从预设用户集合中随机选取出的、与指定用户未建立关联关系且与其他用户建立关联关系的用户。In some embodiments, the behavior information of other users in the training sample set includes one of the following: behavior information of a positive sample user that has an association relationship with a specified user, and behavior information of a negative sample user that has not established an association relationship with the specified user. , Negative sample users are users who are randomly selected from the preset user set, have not established an association relationship with the specified user, and have established an association relationship with other users.
在一些实施例中,训练样本集中的训练样本还包括与其他用户的行为信息对应的时间戳;其中,与正样本用户的行为信息对应的时间戳是基于指定用户与正样本用户建立关联关系的时间确定的;与负样本用户的行为信息对应的时间戳是从与正样本用户对应的时间戳中随机选取出的。In some embodiments, the training samples in the training sample set also include time stamps corresponding to the behavior information of other users; wherein the time stamps corresponding to the behavior information of the positive sample user are based on the association between the specified user and the positive sample user The time is determined; the time stamp corresponding to the behavior information of the negative sample user is randomly selected from the time stamp corresponding to the positive sample user.
在一些实施例中,神经网络包括n层级联的单层前馈神经网络和全连接层,对于第i层前馈神经网络,前一层的前馈神经网络的输出参数作为后一层前馈神经网络的输入参数,n为大于1的正整数,i为大于2且小于n的正整数;以及每一层前馈神经网络通过如下步骤进行特征提取:基于第一预设激活函数、指定用户的行为信息特征、其 他用户的行为信息特征、与其他用户的行为信息对应的时间戳,确定指定用户的行为信息和其他用户的行为信息之间的关联指数;基于所确定的关联指数和第二预设激活函数,确定用于指示指定用户的行为信息特征的参数;将所得到的用于指示指定用户的行为信息特征的参数作为当前层前馈神经网络的输出。In some embodiments, the neural network includes an n-layer cascaded single-layer feedforward neural network and a fully connected layer. For the i-th layer feedforward neural network, the output parameters of the feedforward neural network of the previous layer are used as the feedforward of the next layer The input parameters of the neural network, n is a positive integer greater than 1, and i is a positive integer greater than 2 and less than n; and each layer of feedforward neural network performs feature extraction through the following steps: based on the first preset activation function, specify the user The behavior information characteristics of other users, the behavior information characteristics of other users, and the timestamps corresponding to the behavior information of other users, determine the correlation index between the behavior information of the specified user and the behavior information of other users; based on the determined correlation index and the second The preset activation function determines the parameters used to indicate the behavior information characteristics of the specified user; the obtained parameters used to indicate the behavior information characteristics of the specified user are used as the output of the feedforward neural network of the current layer.
在一些实施例中,行为信息包括以下至少一项:浏览信息、发布信息,浏览信息是基于浏览与用户建立关联关系的其他用户所发布的信息而生成的。In some embodiments, the behavior information includes at least one of the following: browsing information and publishing information. The browsing information is generated based on browsing information published by other users who have established an association relationship with the user.
第三方面,本公开的实施例提供了一种终端设备,该终端设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面中任一实现方式描述的方法。In a third aspect, embodiments of the present disclosure provide a terminal device, the terminal device includes: one or more processors; a storage device for storing one or more programs; when one or more programs are used by one or more Execution by two processors, so that one or more processors implement the method described in any implementation manner of the first aspect.
第四方面,本公开的实施例提供了一种计算机可读介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如第一方面中任一实现方式描述的方法。In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, and the computer program, when executed by a processor, implements the method described in any implementation manner in the first aspect.
本公开的实施例提供的信息推送方法和装置,通过基于目标用户的行为信息、与目标用户之间未建立关联关系的其他用户的行为信息之间的关联度,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率,然后将超过预设阈值的概率对应的用户的用户标识推送给上述目标用户,从而可以更加准确的预测目标用户对其他用户的感兴趣程度,从而提高信息推送效率。The information pushing method and device provided by the embodiments of the present disclosure determine the target user and the unassociated relationship based on the degree of association between the target user's behavior information and the behavior information of other users who have not established an association relationship with the target user Establish the probability of the association relationship between the users, and then push the user ID of the user corresponding to the probability exceeding the preset threshold to the target user, so as to more accurately predict the target user’s interest in other users, thereby improving the information Push efficiency.
附图说明Description of the drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本公开的其它特征、目的和优点将会变得更明显:By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present disclosure will become more apparent:
图1是本公开的一个实施例可以应用于其中的示例性系统架构图;Fig. 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure can be applied;
图2是根据本公开的信息推送方法的一个实施例的流程图;Fig. 2 is a flowchart of an embodiment of an information push method according to the present disclosure;
图3是根据本公开的信息推送方法的又一个实施例的流程图;FIG. 3 is a flowchart of another embodiment of the information pushing method according to the present disclosure;
图4是根据本公开的特征值确定模型的训练方法的一种可选的实 现方式的流程;Fig. 4 is a flow of an optional implementation method of the training method for determining a model according to the feature value of the present disclosure;
图5是根据本公开的每一层前馈神经网络进行特征提取的方法的一种可选的实现方式的流程;Fig. 5 is a flow chart of an alternative implementation of the method for feature extraction according to each layer of feedforward neural network of the present disclosure;
图6是根据本公开的实施例的信息推送方法的一个应用场景的示意图;Fig. 6 is a schematic diagram of an application scenario of an information push method according to an embodiment of the present disclosure;
图7是根据本公开的信息推送装置的一个实施例的结构示意图;Fig. 7 is a schematic structural diagram of an embodiment of an information pushing device according to the present disclosure;
图8是适于用来实现本公开的实施例的电子设备的结构示意图。Fig. 8 is a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure.
具体实施方式detailed description
下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present disclosure will be further described in detail below in conjunction with the drawings and embodiments. It can be understood that the specific embodiments described here are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for ease of description, only the parts related to the relevant invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本公开。It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other if there is no conflict. Hereinafter, the present disclosure will be described in detail with reference to the drawings and in conjunction with embodiments.
图1示出了可以应用本公开的信息推送方法或信息推送装置的实施例的示例性架构100。FIG. 1 shows an exemplary architecture 100 to which an embodiment of the information pushing method or information pushing device of the present disclosure can be applied.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables.
终端设备101、102、103上可以安装有各种客户端应用。例如网页浏览器类应用、视频类应用、内容分享类应用、社交类应用等。终端设备101、102、103可以通过网络104与服务器105交互,以接收或发送消息等。Various client applications may be installed on the terminal devices 101, 102, 103. For example, web browser applications, video applications, content sharing applications, social applications, etc. The terminal devices 101, 102, and 103 can interact with the server 105 through the network 104 to receive or send messages and so on.
终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是可以接收用户操作的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可 以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的多个软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。The terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices that can receive user operations, including but not limited to smart phones, tablet computers, e-book readers, laptop computers, desktop computers, and so on. When the terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or as a single software or software module. No specific restrictions are made here.
服务器105可以是支持终端设备101、102、103上安装的客户端应用的后台服务器。服务器105可以对获取到的目标用户的浏览信息、发布信息进行分析后,确定用户的浏览信息特征值、发布信息特征值,然后基于用户之间的浏览信息特征值、发布信息特征值之间的相似度,将其中一个用户的用户标识推送给另外一个用户。The server 105 may be a background server that supports client applications installed on the terminal devices 101, 102, 103. The server 105 can analyze the acquired browsing information and published information of the target user, and determine the characteristic value of the user's browsing information and the characteristic value of the published information, and then based on the comparison between the characteristic value of the browsing information and the characteristic value of the published information among users Similarity, the user ID of one user is pushed to another user.
需要说明的是,服务器105可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务的多个软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。It should be noted that the server 105 may be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or as a single software or software module. No specific restrictions are made here.
需要说明的是,本公开的实施例所提供的信息推送方法一般由终端设备101、102、103执行,相应地,信息推送装置一般设置于终端设备101、102、103中。It should be noted that the information pushing method provided by the embodiments of the present disclosure is generally executed by the terminal devices 101, 102, 103, and correspondingly, the information pushing device is generally set in the terminal devices 101, 102, 103.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks, and servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, networks and servers.
继续参考图2,其示出了根据本公开的信息推送方法的一个实施例的流程200。该信息推送方法包括以下步骤:Continuing to refer to FIG. 2, it shows a process 200 of an embodiment of the information pushing method according to the present disclosure. The information push method includes the following steps:
步骤201,获取目标用户的社交网络。Step 201: Obtain the social network of the target user.
在本实施例中,社交网络通常是由用户和用户之间的关联关系构成的网络结构。该用户之间的关联关系例如可以为血缘关系、好友关系、同事关系、具有共同兴趣爱好的关系等。位于社交网络中的用户可以作为社交网络的一个节点,换而言之,社交网络可以由许多用户节点形成。在该社交网络中,既可以包括与用户建立关联关系的用户,还可以包括与用户未建立关联关系的其他用户。举例来说,用户A、用户B、用户C均属于同一个社交网络中的网络节点。用户A与用户B之间建立关联关系,用户B与用户C之间建立关联关系,用户A与 用户C之间未建立关联关系。作为一种示例,某一通讯应用可以作为一个社交网络,用户使用该终端应用时,通常需要在该终端应用中进行账户注册,也即是说,用户加入了该社交网络,该已进行账号注册的用户可以看作是社交网络的节点。作为另一种示例,某一通讯应用中还可以按照不同的类别形成多个社交网络。例如,基于地域信息形成的社交网络,基于兴趣信息形成的社交网络等。In this embodiment, the social network is usually a network structure composed of users and an association relationship between users. The association relationship between users may be, for example, blood relationship, friend relationship, colleague relationship, relationship with common interests and hobbies. A user located in a social network can serve as a node of the social network. In other words, a social network can be formed by many user nodes. The social network may include users who have established an association relationship with the user, and may also include other users who have not established an association relationship with the user. For example, user A, user B, and user C all belong to network nodes in the same social network. An association relationship is established between user A and user B, an association relationship is established between user B and user C, and an association relationship is not established between user A and user C. As an example, a communication application can be used as a social network. When users use the terminal application, they usually need to register their account in the terminal application. That is to say, if the user joins the social network, the account registration has been performed. Of users can be seen as nodes of social networks. As another example, a certain communication application can also form multiple social networks according to different categories. For example, a social network based on geographic information, a social network based on interest information, etc.
在本实施例中,上述通讯应用可以包括但不限于社交类应用、博客类应用等。通过该通讯应用,用户可以与其他用户之间进行通信,该通信诸如可以为语音通信、视频通信、简讯通信等。通过该通讯应用,用户还可以发布诸如文章、微消息、评论等信息,浏览其他用户发布的诸如文章、微消息、评论等信息。上述诸如通信信息、发布信息、浏览信息等即为用户的行为信息。In this embodiment, the aforementioned communication applications may include, but are not limited to, social applications, blog applications, and the like. Through this communication application, users can communicate with other users, such as voice communication, video communication, short message communication, etc. Through this communication application, users can also post information such as articles, micro-messages, and comments, and browse information such as articles, micro-messages, and comments published by other users. The above information such as communication information, publishing information, and browsing information is the user's behavior information.
在本实施例中,信息推送方法的执行主体(如图1所示的服务器105)可以获取目标用户所属的社交网络。在这里,用户所属的社交网络可以包括一个社交网络,也可以包括多个社交网络。具体的,上述执行主体可以首先基于预先设置的目标用户的用户标签确定与用户标签关联的社交网络,将该社交网络确定为包括目标用户的社交网络。该预先设置的用户标签例如可以为基于用户的用户属性信息确定的,也可以为用户基于上述执行主体提供的多个用户标签所选择出的。在这里,所获取到的社交网络包括用于指示各个用户之间是否建立关联关系的指示信息和每一个用户的行为信息。在这里,该行为信息包括所浏览的其他用户发布的信息,也即浏览信息,所发布的信息,也即发布信息。In this embodiment, the execution subject of the information push method (the server 105 shown in FIG. 1) can obtain the social network to which the target user belongs. Here, the social network to which the user belongs may include one social network or multiple social networks. Specifically, the above-mentioned execution subject may first determine a social network associated with the user tag based on a preset user tag of the target user, and determine the social network as a social network including the target user. The preset user tag may be determined based on user attribute information of the user, or may be selected by the user based on multiple user tags provided by the foregoing execution subject. Here, the acquired social network includes indication information for indicating whether an association relationship is established between users and behavior information of each user. Here, the behavior information includes information posted by other users that are browsed, that is, browsing information, and the posted information, that is, posted information.
步骤202,基于目标用户的行为信息、社交网络中与目标用户未建立关联关系的用户的行为信息,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率。Step 202: Determine the probability of establishing an association relationship between the target user and the user who has not established an association relationship based on the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user in the social network.
在本实施例中,上述关联关系可以为互为好友关系,可以为关注与被关注关系等。通过利用目标用户的行为信息、社交网络中与目标用户未建立关联关系的用户的行为信息,可以确定目标用户与未建立关联关系的用户之间建立关联关系的概率。In this embodiment, the above-mentioned association relationship may be a mutual friend relationship, and may be a following relationship and a followed relationship. By using the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user in the social network, the probability of establishing an association relationship between the target user and the user who has not established an association relationship can be determined.
具体的,可以基于目标用户的浏览信息、社交网络中与目标用户未建立关联关系的用户的发布信息,来确定二者之间建立关联关系的概率。在这里,可以确定与目标用户的浏览信息对应的浏览信息特征值、与目标用户未建立关联关系的用户的发布信息对应的发布信息特征值。Specifically, the probability of establishing an association relationship between the target user may be determined based on the browsing information of the target user and the posted information of users who have not established an association relationship with the target user in the social network. Here, the feature value of the browsing information corresponding to the browsing information of the target user and the feature value of the posted information corresponding to the posted information of the user who has not established an association relationship with the target user can be determined.
通常,用户可以浏览多条信息,也可以发布多条信息。其所浏览的或发布的每一条信息可以包括预设标签词,该预设标签词可以是从信息内容中提取的关键词,或者是信息发布者在发布信息时设置的标签词。该预设标签词可以表征该条信息所属的类别。上述执行主体可以基于与目标用户的浏览信息对应的预设标签词,确定目标用户的浏览信息所属的多个类别。然后将每一个类别作为一维特征,从而最终形成包括多维特征的浏览信息特征值。同理,上述执行主体可以基于与目标用户未机建立关联关系的用户的发布信息对应的预设标签词,确定发布信息所属的类别。然后将每一个类别作为一维特征,从而最终形成包括多维特征向量的发布信息特征值。Generally, users can browse multiple pieces of information or post multiple pieces of information. Each piece of information browsed or published may include a preset tag word, and the preset tag word may be a keyword extracted from the information content, or a tag word set by the information publisher when publishing the information. The preset tag word can represent the category to which the piece of information belongs. The above-mentioned execution subject may determine the multiple categories to which the browsing information of the target user belongs based on the preset tag words corresponding to the browsing information of the target user. Then, each category is regarded as a one-dimensional feature, so as to finally form a feature value of browsing information including multi-dimensional features. In the same way, the above-mentioned executive body may determine the category to which the posted information belongs based on the preset tag words corresponding to the posted information of the users who have not established an association relationship with the target user. Then, each category is regarded as a one-dimensional feature, thereby finally forming a feature value of the posted information including a multi-dimensional feature vector.
然后,上述执行主体可以基于目标用户对应的浏览信息特征值和未建立关联关系的用户对应的发布信息特征值之间的关联度,来确定两用户之间建立关联关系的概率。具体的,可以采用sigmoid函数来计算二者之间的关联度。以目标用户关注其他未关注用户的概率为例,进行具体阐述。具体参看公式1、公式2。Then, the above-mentioned execution subject may determine the probability of establishing an association relationship between two users based on the degree of association between the browsing information feature value corresponding to the target user and the published information feature value corresponding to the user who has not established an association relationship. Specifically, the sigmoid function can be used to calculate the correlation between the two. Take the probability that the target user pays attention to other users who are not followed as an example to elaborate. See Formula 1 and Formula 2 for details.
Figure PCTCN2020073593-appb-000001
Figure PCTCN2020073593-appb-000001
Figure PCTCN2020073593-appb-000002
Figure PCTCN2020073593-appb-000002
其中,p ij为目标用户i关注用户j的概率。σ(x)为sigmoid函数,x为随机变量。在这里,随机变量即为
Figure PCTCN2020073593-appb-000003
组成的特征值矩阵,
Figure PCTCN2020073593-appb-000004
为目标用户的浏览信息特征值矩阵,
Figure PCTCN2020073593-appb-000005
为其他用户的发布信息特征值矩阵,b为随机常数。随机变量x为
Figure PCTCN2020073593-appb-000006
Figure PCTCN2020073593-appb-000007
为浏览信息特征值矩阵
Figure PCTCN2020073593-appb-000008
的列向量与发布信息特征值矩阵
Figure PCTCN2020073593-appb-000009
的列向量合并成的新的列向量。
Among them, p ij is the probability of target user i following user j. σ(x) is the sigmoid function, and x is a random variable. Here, the random variable is
Figure PCTCN2020073593-appb-000003
The matrix of eigenvalues,
Figure PCTCN2020073593-appb-000004
Is the eigenvalue matrix of the browsing information of the target user,
Figure PCTCN2020073593-appb-000005
Is the matrix of the eigenvalues of other users' published information, and b is a random constant. The random variable x is
Figure PCTCN2020073593-appb-000006
Figure PCTCN2020073593-appb-000007
Eigenvalue matrix for browsing information
Figure PCTCN2020073593-appb-000008
Column vector and eigenvalue matrix of published information
Figure PCTCN2020073593-appb-000009
The column vectors of are merged into a new column vector.
在本实施例中,概率p ij的值越大,说明目标用户关注其他用户的概率越大,也即两用户之间建立关联关系的概率越大。 In this embodiment, the greater the value of the probability p ij , the greater the probability that the target user pays attention to other users, that is, the greater the probability of establishing an association relationship between two users.
步骤203,将超过预设阈值的概率对应的用户的用户标识推送给目标用户。Step 203: Push the user identifier of the user corresponding to the probability exceeding the preset threshold to the target user.
在本实施例中,每一个用户加入上述社交网络后,上述执行主体通常会记录有用于唯一识别用户身份的用户标识。该用户标识可以为终端设备号,可以为进行账号注册时的注册号,可以为用户进行账号注册时所用的网名、头像等。在这里值得注意的是,上述用户标识还可以为诸如公众号之类的公众阅读平台。通常,每一个公众号所发布的文章等信息均可以看作是某个用户基于社交应用等平台来发布的,因此,诸如公众号之类的公众阅读平台所对应的用于唯一指示该公众阅读平台的标识也可以看作是用户标识。In this embodiment, after each user joins the aforementioned social network, the aforementioned executive subject usually records a user identifier for uniquely identifying the user's identity. The user identification may be a terminal device number, a registration number used for account registration, or a screen name, avatar, etc. used by the user for account registration. It is worth noting here that the aforementioned user identification may also be a public reading platform such as an official account. Generally, the articles and other information published by each official account can be regarded as a user's release based on platforms such as social applications. Therefore, public reading platforms such as official accounts are used to uniquely instruct the public to read The identity of the platform can also be regarded as a user identity.
在本实施例中,上述执行主体可以根据步骤202所确定出的标用户与未建立关联关系的用户之间,建立关联关系的概率,然后将概率值超过预设阈值的概率所对应的用户的用户标识推送给目标用户。从而,目标用户可以基于所接收到的服务端推送的用户标识,以选择添加该用户标识对应的用户为好友的操作、关注该用户标识对应的用户操作等。In this embodiment, the above-mentioned execution subject may determine the probability of establishing an association relationship between the target user determined in step 202 and the user who has not established an association relationship, and then calculate the probability of the probability value exceeding the preset threshold of the user corresponding to the relationship. The user ID is pushed to the target user. Therefore, the target user can select the operation of adding the user corresponding to the user ID as a friend, follow the user operation corresponding to the user ID, and so on based on the user ID pushed by the received server.
本实施例通过利用目标用户的浏览信息特征值和其他用户的发布信息特征值来确定目标用户是否对其他用户发布的内容感兴趣以建立二者之间的关联关系,可以使得推送更加具有针对性,避免将许多关联性不强或者用户不感性兴趣的其他用户推送给目标用户,提高了目标用户与所推送的用户之间建立关联关系的概率,从而提高了推送效率。This embodiment uses the feature values of the browsing information of the target user and the feature values of the published information of other users to determine whether the target user is interested in the content published by other users to establish an association relationship between the two, which can make the push more targeted , To avoid pushing many other users who are not strongly related or users are not interested to the target user, which improves the probability of establishing an association relationship between the target user and the pushed user, thereby improving the push efficiency.
进一步参考图3,其示出了信息推送方法的又一个实施例的流程300。该信息推送方法的流程300,包括以下步骤:With further reference to FIG. 3, it shows a flow 300 of another embodiment of the information pushing method. The process 300 of the information push method includes the following steps:
步骤301,获取包括目标用户的社交网络。Step 301: Obtain a social network including the target user.
在本实施例中,信息推送方法的执行主体(如图1所示的服务器105)可以获取目标用户所属的社交网络。在这里,用户所属的社交网络可以包括一个社交网络,也可以包括多个社交网络。具体的,上述执行主体可以首先基于预先设置的目标用户的用户标签确定与用户标签关联的社交网络,将该社交网络确定为包括目标用户的社交网络。In this embodiment, the execution subject of the information push method (the server 105 shown in FIG. 1) can obtain the social network to which the target user belongs. Here, the social network to which the user belongs may include one social network or multiple social networks. Specifically, the above-mentioned execution subject may first determine a social network associated with the user tag based on a preset user tag of the target user, and determine the social network as a social network including the target user.
在这里,所获取到的社交网络包括用于指示各个用户之间是否建立关联关系的指示信息,每一个用户的行为信息。在这里,该行为信息包括所浏览的其他用户发布的信息,也即浏览信息,所发布的信息,也即发布信息。Here, the acquired social network includes indication information for indicating whether an association relationship is established between users, and behavior information of each user. Here, the behavior information includes information posted by other users that are browsed, that is, browsing information, and the posted information, that is, posted information.
步骤302,将目标用户的行为信息、与目标用户未建立关联关系的用户的行为信息分别输入至预先训练的特征值确定模型,得到与目标用户的行为信息对应的目标用户行为信息特征值、与目标用户未建立关联关系的用户的行为信息对应的其他用户行为信息特征值。Step 302: Input the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user into the pre-trained feature value determination model to obtain the target user behavior information feature value corresponding to the target user's behavior information, and Other user behavior information feature values corresponding to the behavior information of users whose target users have not established an association relationship.
在本实施例中,上述行为信息可以为浏览信息、发布信息。其中,目标用户的行为信息为浏览信息,与目标用户未建立关联关系的用户的行为信息为发布信息。浏览信息可以为所浏览的内容的标题,可以为从所浏览的内容中提取出的关键词,可以为用户进行内容发布时预先设置的标签词。发布信息可以为所发布的内容的标题,可以为从所发布的内容中提取出的关键词,可以为用户进行内容发布时预先设置的标签词。In this embodiment, the aforementioned behavior information may be browsing information or publishing information. Among them, the behavior information of the target user is browsing information, and the behavior information of users who have not established an associated relationship with the target user is publishing information. The browsing information may be the title of the browsed content, may be a keyword extracted from the browsed content, or may be a tag word preset when the user publishes the content. The published information may be the title of the published content, may be a keyword extracted from the published content, or may be a tag word preset when the user publishes the content.
在本实施例中,特征值确定模型用于基于用户的行为信息,对用户的兴趣点进行预测,从而得到基于行为信息的行为信息特征值。上述特征值确定模型是基于神经网络训练得到的。该神经网络可以为深度神经网络,该深度神经网络可以包括多个特征提取层和一个全连接层。特征提取层可以用于提取行为信息的特征。最后,将每一层提取到的特征在全连接层进行全连接,得到最终的行为信息特征值。In this embodiment, the feature value determination model is used to predict the user's point of interest based on the user's behavior information, so as to obtain the behavior information feature value based on the behavior information. The above-mentioned feature value determination model is obtained based on neural network training. The neural network may be a deep neural network, and the deep neural network may include multiple feature extraction layers and one fully connected layer. The feature extraction layer can be used to extract features of behavior information. Finally, the features extracted from each layer are fully connected in the fully connected layer to obtain the final behavior information feature value.
在本实施例中,目标用户行为信息特征值可以是基于对目标用户的浏览信息进行特征提取得到的浏览信息特征值。具体的,可以将目标用户的浏览信息输入至上述预先训练的特征值确定模型,从而得到用于指示目标用户的浏览兴趣的浏览信息特征值。In this embodiment, the target user behavior information feature value may be a browsing information feature value obtained based on feature extraction of the browsing information of the target user. Specifically, the browsing information of the target user may be input to the aforementioned pre-trained feature value determination model, so as to obtain the browsing information feature value indicating the browsing interest of the target user.
在本实施例中,与目标用户未建立关联关系的用户对应的其他用户信息特征值可以是基于对其他用户的发布信息进行特征提取得到的发布信息特征值。具体的,可以将其他用户的发布信息输入至上述预先训练的特征值确定模型,从而得到用于指示其他各个用户的发布兴趣的其他用户发布信息特征值。In this embodiment, other user information feature values corresponding to users who have not established an association relationship with the target user may be posted information feature values obtained based on feature extraction of other users' posted information. Specifically, the posted information of other users may be input to the aforementioned pre-trained feature value determination model, so as to obtain the feature values of other user posted information used to indicate the posting interests of other users.
步骤303,基于目标用户行为信息特征值、其他用户行为信息特征值,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率。Step 303: Based on the target user behavior information characteristic value and other user behavior information characteristic values, determine the probability of establishing an association relationship between the target user and a user who has not established an association relationship.
在本实施例中,根据步骤302所确定的目标用户的浏览信息特征值、与目标用户未建立关联关系的用户的发布信息特征值,可以确定目标用户与未建立关联关系的用户之间,建立关联关系的概率。该步骤的具体实现可参考图2所示的实施例的步骤202中的相关描述,在此不再赘述。In this embodiment, according to the feature value of the browsing information of the target user determined in step 302 and the feature value of the posted information of the user who has not established an association relationship with the target user, it can be determined that the relationship between the target user and the user who has not established an association relationship is established. The probability of association. For the specific implementation of this step, reference may be made to the related description in step 202 of the embodiment shown in FIG. 2, which will not be repeated here.
步骤304,将超过预设阈值的概率对应的用户的用户标识推送给目标用户。Step 304: Push the user identifier of the user corresponding to the probability exceeding the preset threshold to the target user.
本实施所示的步骤301和步骤304的具体实现以及所带来的有益效果可以参考图2所示的步骤201和步骤203的有关阐述,在此不再赘述。For the specific implementation and beneficial effects of step 301 and step 304 shown in this embodiment, reference may be made to the relevant description of step 201 and step 203 shown in FIG. 2, and details are not repeated here.
从图3所示的实施例中可以看出,与图2所示的实施例不同的是,本实施例公开了利用预先训练的神经网络来确定行为信息特征值的步骤。由于神经网络可以对大量数据进行处理,学习用户的各种行为信息的特征,从而可以使得所确定出的行为信息特征值更加准确。It can be seen from the embodiment shown in FIG. 3 that, unlike the embodiment shown in FIG. 2, this embodiment discloses a step of using a pre-trained neural network to determine the characteristic value of behavior information. Since the neural network can process a large amount of data and learn the characteristics of various behavior information of users, it can make the determined characteristic values of behavior information more accurate.
在上述实施例的一些可选的实现方式中,上述特征值确定模型可以是基于样本集合训练得出的。继续参考图4,其示出了本公开提供的特征值确定模型的训练方法的一种可选的实现方式的流程400。该流程400包括以下步骤:In some optional implementation manners of the foregoing embodiment, the foregoing feature value determination model may be obtained by training based on a sample set. Continuing to refer to FIG. 4, it shows a flow 400 of an alternative implementation of the training method of the feature value determination model provided by the present disclosure. The process 400 includes the following steps:
步骤401,获取训练样本集。Step 401: Obtain a training sample set.
在这里,该训练样本集中的每一个训练样本包括指定用户的用户信息、其他用户的行为信息、用于指示其他用户与指定用户是否建立关联关系的指示信息。Here, each training sample in the training sample set includes user information of a designated user, behavior information of other users, and indication information for indicating whether other users have established an association relationship with the designated user.
在这里,行为信息可以包括浏览信息、发布信息。其中,浏览信息是基于浏览与用户建立关联关系的其他用户发布的信息而生成的。Here, the behavior information can include browsing information and publishing information. Wherein, the browsing information is generated based on browsing information published by other users who have established an association relationship with the user.
在一些可选的实现方式中,训练样本集中的其他用户的行为信息包括以下之一:与指定用户建立关联关系的正样本用户的行为信息、与指定用户未建立关联关系的负样本用户的行为信息。其中,负样本 用户是从预设用户集合中随机选取出的、与指定用户未建立关联关系且与其他用户建立关联关系的用户。In some optional implementations, the behavior information of other users in the training sample set includes one of the following: behavior information of a positive sample user that has established an association relationship with the specified user, and behavior information of a negative sample user that has not established an association relationship with the specified user information. Among them, the negative sample user is a user who is randomly selected from the preset user set, has not established an association relationship with the specified user, and has established an association relationship with other users.
具体的,当上述执行主体检测到某用户与其他用户建立关联关系后,可以将该用户对应的用户标识添加至上述预设用户集合中。每检测到一次添加一次。也即是说,当用户A与用户B之间建立关联关系后,可以将用户A对应的用户标识、用户B对应的用户标识添加至上述预设用户集合中。当检测到用户A与用户C之间建立关联关系后,将用户A对应的用户标识、用户C对应的用户标识添加至上述预设用户集合中。也即是说,预设用户集合中包含有两个与用户A对应的用户标识。当上述执行主体在选择负样本用户时,从上述预设用户信息集合中选取出来。从而,上述预设用户集合中所包括的某一用户的用户标识越多,被选取出作为负样本用户的概率越大。通过上述方式确定训练样本集中的负样本,可以使得负样本更加具有普遍性,从而使得训练出的模型具有更好的泛化能力。Specifically, after the above-mentioned executive body detects that a certain user has established an association relationship with other users, the user identifier corresponding to the user may be added to the above-mentioned preset user set. Add it every time it is detected. That is to say, after the association relationship between the user A and the user B is established, the user identification corresponding to the user A and the user identification corresponding to the user B can be added to the aforementioned preset user set. When it is detected that the association relationship between the user A and the user C is established, the user identification corresponding to the user A and the user identification corresponding to the user C are added to the aforementioned preset user set. In other words, the preset user set contains two user IDs corresponding to user A. When the above-mentioned executive body selects a negative sample user, it is selected from the above-mentioned preset user information set. Therefore, the more user identities of a certain user included in the aforementioned preset user set, the greater the probability of being selected as a negative sample user. By determining the negative samples in the training sample set in the above manner, the negative samples can be made more universal, so that the trained model has better generalization ability.
在一些可选的实现方式中,行为信息包括以下至少一项:浏览信息、发布信息,浏览信息是基于浏览与用户建立关联关系的其他用户发布的信息而生成的。In some optional implementation manners, the behavior information includes at least one of the following: browsing information and publishing information. The browsing information is generated based on browsing information published by other users who have established an association relationship with the user.
在一些可选的实现方式中,训练样本集中的训练样本还包括与行为信息对应的时间戳;与正样本用户的行为信息对应的时间戳是基于指定用户与正样本用户建立关联关系的时间确定的;与负样本用户的行为信息对应的时间戳是从与正样本用户对应的时间戳中随机选取出的。In some optional implementations, the training samples in the training sample set also include a time stamp corresponding to the behavior information; the time stamp corresponding to the behavior information of the positive sample user is determined based on the time when the specified user establishes an association relationship with the positive sample user The time stamp corresponding to the behavior information of the negative sample user is randomly selected from the time stamp corresponding to the positive sample user.
具体的,上述执行主体可以选取出指定时间t之前与指定用户建立关联关系的正样本用户,然后对每一个正样本用户设置时间戳。具体的,该时间戳可以是多维时间特征向量,其中一维时间特征向量用于指示指定用户与正样本用户建立关联关系的时间特征,其中一维时间特征向量用于指示指定用户浏览正样本用户所发布的信息的时间特征。建立关联关系的时间距离指定时间t越近,说明正样本用户所发布的信息对指定用户当前时间段的兴趣影响越大。然后,可以将上述已经设置的时间戳随机分配给负样本用户。也即是说,样本训练集中 每一个正样本用户对应的行为信息或负样本用户对应的行为信息均设置有一个时间戳。Specifically, the above-mentioned executive body may select the positive sample users who have established an association relationship with the designated user before the designated time t, and then set a time stamp for each positive sample user. Specifically, the timestamp may be a multi-dimensional time feature vector, where the one-dimensional time feature vector is used to indicate the time feature of the specified user and the positive sample user, and the one-dimensional time feature vector is used to instruct the specified user to browse the positive sample user The time characteristics of the published information. The closer the time for establishing the association relationship is to the specified time t, the greater the influence of the information released by the positive sample users on the interest of the specified user in the current time period. Then, the above-mentioned set timestamp can be randomly assigned to the negative sample users. In other words, the behavior information corresponding to each positive sample user or the behavior information corresponding to the negative sample user in the sample training set is set with a time stamp.
在这里,上述指定用户的浏览信息、发布信息,是基于指定用户对应的正样本用户的时间戳得到的,也即是说在时间戳之前浏览的与该时间戳对应的正样本用户所发布的信息。上述其他用户的浏览信息、发布信息,是基于该负样本用户对应的时间戳,所选取的时间戳之前该其他用户所浏览的信息、发布的信息。通过添加时间戳信息,可以使得训练样本具有时效性。这样一来,可以根据浏览信息对应的浏览时间距离当前时间的长短,来确定浏览信息的权重,根据发布信息对应的发布时间距离当前时间的长短,来确定发布信息的权重,从而使得所训练出的特征值确定模型具有更好的时效性,也即是说更能体现用户当前的兴趣特征,从而使得所确定出的浏览信息特征值、发布信息特征值更加准确。Here, the browsing information and publication information of the specified user are obtained based on the time stamp of the positive sample user corresponding to the specified user, that is, the positive sample user who browses before the timestamp and corresponds to the time stamp is published information. The above-mentioned browsing information and published information of other users are based on the timestamp corresponding to the negative sample user, and the information browsed and published by the other users before the selected timestamp. By adding time stamp information, the training samples can be time-sensitive. In this way, the weight of the browsing information can be determined according to the length of the browsing time corresponding to the browsing information from the current time, and the weight of the published information can be determined according to the length of the publishing time corresponding to the published information from the current time, so that the trained The feature value determination model has better timeliness, that is, it can better reflect the user's current interest features, so that the determined feature values of browsing information and published information are more accurate.
在一些可选的实现方式中,上述执行主体可以对所获取到的指定用户的行为信息、其他用户的行为信息进行预处理。在这里,该预处理可以为对行为信息进行标准化处理。该标准化处理例如可以为范数标准化处理、最大值最小值标准化处理等。通过对行为信息进行标准化处理,可以快速推进机器学习的学习速度,提高机器学习的学习效率。In some optional implementation manners, the execution subject may preprocess the acquired behavior information of the specified user and the behavior information of other users. Here, the pre-processing can be standardized processing of behavior information. The normalization processing may be, for example, norm normalization processing, maximum and minimum value normalization processing, or the like. Through standardized processing of behavior information, the learning speed of machine learning can be quickly promoted and the learning efficiency of machine learning can be improved.
步骤402,基于步骤401获取到的训练样本集,可以执行如下训练步骤: Step 402, based on the training sample set obtained in step 401, the following training steps may be performed:
步骤4021,对于训练样本集中的训练样本,将该训练样本中指定用户的行为信息、其他用户的行为信息输入至待训练的神经网络,得到与指定用户对应的行为信息特征值、与其他用户对应的行为信息特征值。Step 4021: For the training samples in the training sample set, input the behavior information of the specified user and the behavior information of other users in the training sample into the neural network to be trained to obtain the characteristic values of the behavior information corresponding to the specified user and correspond to other users The characteristic value of behavior information.
在这里,该行为信息特征值可以包括浏览信息特征值和发布信息特征值。Here, the behavior information characteristic value may include the browsing information characteristic value and the publishing information characteristic value.
步骤4022,基于指定用户对应的行为信息特征值与其他用户对应的行为信息特征值,确定指定用户与其他用户建立关联关系的概率值。Step 4022: Based on the behavior information feature value corresponding to the specified user and the behavior information feature value corresponding to other users, determine the probability value of the specified user establishing an association relationship with other users.
具体的,该关联关系可以为关注关系和被关注关系。在这里,可 以基于指定用户的浏览信息特征值和其他用户对应的发布信息特征值,确定指定用户关注其他用户的概率值。或者,基于指定用户的发布信息特征值和其他用户的浏览信息特征值,确定指定用户被其他用户关注的概率值。Specifically, the association relationship may be a following relationship and a followed relationship. Here, the probability value of the designated user's attention to other users can be determined based on the characteristic value of the browsing information of the designated user and the characteristic value of the published information corresponding to other users. Or, based on the feature value of the posted information of the specified user and the feature value of the browsing information of other users, the probability value of the specified user being followed by other users is determined.
在这里,上述概率值的具体实现可以参考图2实施例的步骤203所示的确定目标用户与未建立关联关系的用户之间,建立关联关系的概率的具体实现,在此不再赘述。Here, the specific realization of the above probability value can refer to the specific realization of determining the probability of establishing an association relationship between the target user and the user who has not established an association relationship shown in step 203 of the embodiment in FIG. 2, which will not be repeated here.
步骤4023,基于所确定的训练样本集中的训练样本对应的概率值,确定预设损失函数是否收敛。Step 4023: Determine whether the preset loss function converges based on the probability value corresponding to the training sample in the determined training sample set.
在本实施例中,上述预设损失函数例如可以为对数损失函数。在这里,确定该预设损失函数是否收敛也即是确定损失函数的损失值是否达到预设阈值,或者损失值变化的绝对是是否小于预设阈值。在响应于损失值达到预设阈值,或者损失值变化的绝对值小于预设阈值时,可以确定预设损失函数收敛。在这里值得注意的是,上述损失值变化的绝对值是基于当前次训练利用损失函数计算得到的损失值与上一次训练得到的损失值之间的差值的绝对值。In this embodiment, the aforementioned preset loss function may be a logarithmic loss function, for example. Here, determining whether the preset loss function converges is to determine whether the loss value of the loss function reaches the preset threshold, or whether the change in the loss value is absolutely less than the preset threshold. In response to the loss value reaching the preset threshold, or the absolute value of the change of the loss value is less than the preset threshold, it may be determined that the preset loss function converges. It is worth noting here that the absolute value of the aforementioned loss value change is based on the absolute value of the difference between the loss value calculated using the loss function in the current training and the loss value obtained in the previous training.
步骤403,响应于确定预设损失函数收敛,确定特征值确定模型训练完成。In step 403, in response to determining that the preset loss function converges, it is determined that the eigenvalues determine that the model training is completed.
在本实施例中,根据步骤4023中所确定的预设损失函数是否收敛,在预设损失函数收敛时,可以确定上述特征值确定模型训练完成。In this embodiment, according to whether the preset loss function determined in step 4023 converges, when the preset loss function converges, it can be determined that the above-mentioned feature value determination model training is completed.
步骤404,响应于确定预设损失函数未收敛,利用反向传播算法更新待训练的神经网络的参数,继续执行步骤402所示的训练步骤。 Step 404, in response to determining that the preset loss function does not converge, use the back propagation algorithm to update the parameters of the neural network to be trained, and continue to perform the training step shown in step 402.
在本实施例中,上述更新待训练的神经网络的参数例如可以为更新待训练的神经网络中每一层神经网络的滤波器的数值、滤波器的大小、步长等,还可以更新神经网络的层数。上述执行主体响应于确定预设损失函数未收敛,可以利用方向传播算法来更新待训练的神经网络的参数,然后继续执行步骤4021-步骤4023所示的训练步骤。In this embodiment, the above-mentioned updating the parameters of the neural network to be trained can be, for example, updating the value of the filter of each layer of the neural network in the neural network to be trained, the size of the filter, the step size, etc., and the neural network can also be updated. The number of layers. In response to determining that the preset loss function has not converged, the above-mentioned execution subject may use the direction propagation algorithm to update the parameters of the neural network to be trained, and then continue to perform the training steps shown in step 4021-step 4023.
利用上述训练方法所训练出的特征值确定模型,可以使得所确定的行为信息特征值更加准确,还可以提高所训练出的特征值确定模型的鲁棒性。The feature value determination model trained by the above training method can make the determined behavior information feature value more accurate, and can also improve the robustness of the trained feature value determination model.
在一些实施例中,上述用于训练特征值确定模型的神经网络可以包括n层级连的单层前馈神经网络和全连接层。n为大于1的正整数。其中,对于第i层前馈神经网络,前一层的前馈神经网络的输出参数作为后一层前馈神经网络的输入参数,i为大于2且小于n的正整数。在这里每一层前馈神经网络均用于进行特征提取。也即是说,最后一层前馈神经网络的输出是包括前面各层前馈神经网络的特征提取结果。具体的,如图5所示,其示出了本公开提供的每一层前馈神经网络进行特征提取的方法的一种可选的实现方式的流程500。该流程500包括以下步骤:In some embodiments, the aforementioned neural network for training the feature value determination model may include n-layer cascaded single-layer feedforward neural network and a fully connected layer. n is a positive integer greater than 1. Among them, for the i-th layer of feedforward neural network, the output parameter of the previous layer of feedforward neural network is used as the input parameter of the next layer of feedforward neural network, and i is a positive integer greater than 2 and less than n. Here, each layer of feedforward neural network is used for feature extraction. In other words, the output of the last layer of feedforward neural network includes the feature extraction results of the previous layers of feedforward neural network. Specifically, as shown in FIG. 5, it shows a process 500 of an optional implementation manner of the method for feature extraction of each layer of the feedforward neural network provided by the present disclosure. The process 500 includes the following steps:
步骤501,基于第一预设激活函数、指定用户的行为信息特征、其他用户的行为信息特征、与其他用户的行为信息对应的时间戳、与其他用户的行为信息对应的时间戳,确定指定用户的行为信息和其他用户的行为信息之间的关联指数。Step 501: Determine the specified user based on the first preset activation function, the behavior information feature of the specified user, the behavior information feature of other users, the time stamp corresponding to the behavior information of other users, and the time stamp corresponding to the behavior information of other users. The correlation index between the behavior information of other users and the behavior information of other users.
具体的,上述关联关系为关注与被关注的关系。指定用户的行为信息特征可以为指定用户的浏览信息特征,其他用户的行为信息特征可以为其他用户的发布信息特征。Specifically, the above-mentioned association relationship is the relationship between following and being followed. The behavior information feature of the specified user may be the browsing information feature of the specified user, and the behavior information feature of other users may be the published information feature of other users.
可以基于第一预设激活函数、与其他用户的行为信息对应的时间戳、指定用户的浏览信息特征、指定用户所关注的其他用户的发布信息特征,确定指定用户对应的浏览信息和指定用户所关注的其他用户对应的发布信息之间的关联指数作为第一关联指数。Based on the first preset activation function, the timestamp corresponding to the behavior information of other users, the browsing information characteristics of the specified user, and the published information characteristics of other users concerned by the specified user, the browsing information corresponding to the specified user and the specified user's information can be determined. The correlation index between the posted information corresponding to other users concerned is taken as the first correlation index.
该第一关联指数用于指示指定用户所关注的其他用户的发布信息对指定用户的兴趣特征的影响程度。该第一预设激活函数例如可以为ReLU激活函数。由于用户在预设时间段内所浏览的信息可以包括多条。因此,浏览信息可以转换成具有多维特征的特征向量,每一维特征分量均用于表征一条浏览信息。该层前馈神经网络可以对用于表征浏览信息的特征向量的每一维特征分量进行特征提取,得到与浏览信息对应的特征矩阵。同理,发布信息同样可以转换成具有多维特征的特征向量,每一维特征分量均用于表征一条发布信息。该层前馈神经网络可以对用于表征发布信息的特征向量的每一维特征分量进行特征提取,得到与发布信息对应的特征矩阵。在这里,每一条浏览信息均 设置有一个时间戳。因此,基于与各浏览信息对应的时间戳,可以形成时间戳矩阵。该时间戳的设置具体可以参考步骤4201所示的设置时间戳的相关描述。然后,按照距离当前时间的远近顺序将时间影响特征划分为预设数目个等级。也即是所,距离当前时间越近的时间戳对应的等级越高,也即时间影响越大。从而形成用于指示每一条浏览信息的时间影响程度的时间特征矩阵。最后,该层前馈神经网络可以将与指定用户的浏览信息对应的特征矩阵、与指定用户所关注的其他用户的发布信息对应的特征矩阵和时间特征矩阵,代入ReLU激活函数,最终得到指定用户对应的浏览信息和指定用户所关注的其他用户对应的发布信息之间的关联指数,将该关联指数作为第一关联指数。The first relevance index is used to indicate the degree of influence of the published information of other users followed by the specified user on the interest characteristics of the specified user. The first preset activation function may be, for example, a ReLU activation function. Because the information browsed by the user in the preset time period may include multiple pieces of information. Therefore, the browsing information can be converted into a feature vector with multi-dimensional features, and each dimensional feature component is used to represent a piece of browsing information. This layer of feedforward neural network can perform feature extraction on each dimensional feature component of the feature vector used to characterize browsing information to obtain a feature matrix corresponding to the browsing information. In the same way, published information can also be converted into a feature vector with multi-dimensional features, and each dimensional feature component is used to represent a piece of published information. This layer of feedforward neural network can perform feature extraction on each dimensional feature component of the feature vector used to characterize the posted information, and obtain the feature matrix corresponding to the posted information. Here, each piece of browsing information is set with a timestamp. Therefore, based on the time stamps corresponding to each browsing information, a time stamp matrix can be formed. For the setting of the time stamp, reference may be made to the related description of setting the time stamp shown in step 4201. Then, the time influence features are divided into a preset number of levels according to the order of distance from the current time. That is to say, the closer the time stamp is to the current time, the higher the corresponding level, that is, the greater the time impact. In this way, a time characteristic matrix for indicating the degree of time influence of each piece of browsing information is formed. Finally, this layer of feedforward neural network can substitute the feature matrix corresponding to the browsing information of the specified user, the feature matrix and the time feature matrix corresponding to the posted information of other users that the specified user is concerned with, into the ReLU activation function, and finally get the specified user The correlation index between the corresponding browsing information and the posted information corresponding to other users that the user is concerned about is designated as the first correlation index.
在这里,指定用户的行为信息特征还可以为指定用户的发布信息特征,其他用户的行为信息特征还可以为其他用户浏览指定用户所发布的信息的浏览信息特征。Here, the behavior information feature of the specified user may also be the published information feature of the specified user, and the behavior information feature of other users may also be the browsing information feature of other users browsing the information published by the specified user.
还可以基于第一预设激活函数、与其他用户的行为信息对应的时间戳、指定用户的发布信息特征、关注指定用户的其他用户的浏览信息特征,确定指定用户对应的发布信息和指定用户所关注的其他用户对应的浏览信息之间的关联指数作为第二关联指数。It can also be based on the first preset activation function, the time stamp corresponding to the behavior information of other users, the characteristics of the published information of the specified user, and the characteristics of the browsing information of other users who follow the specified user. The correlation index between the browsing information corresponding to other users concerned is used as the second correlation index.
在这里,该第二关联指数用于指示指定用户的发布信息对关注指定用户的其他用户的兴趣特征的影响程度。该层前馈神经网络可以生成与指定用户的发布信息对应的特征矩阵、与关注指定用户的其他用户的浏览信息对应的特征矩阵和时间特征矩阵。然后,该层前馈神经网络可以将所生成的与指定用户的发布信息对应的特征矩阵、与关注指定用户的其他用户的浏览信息对应的特征矩阵和时间特征矩阵,代入ReLU激活函数,最终得到指定用户对应的发布信息和指定用户所关注的其他用户对应的浏览信息之间的关联指数作为第二关联指数,将该关联指数作为第二关联指数。Here, the second correlation index is used to indicate the degree of influence of the information posted by the specified user on the interest characteristics of other users who follow the specified user. This layer of feedforward neural network can generate a feature matrix corresponding to the posted information of a specified user, a feature matrix and a time feature matrix corresponding to the browsing information of other users who pay attention to the specified user. Then, this layer of feedforward neural network can substitute the generated feature matrix corresponding to the posted information of the specified user, feature matrix and time feature matrix corresponding to the browsing information of other users who follow the specified user into the ReLU activation function, and finally get The correlation index between the posted information corresponding to the designated user and the browsing information corresponding to other users that the designated user pays attention to is used as the second correlation index, and the correlation index is used as the second correlation index.
在这里值得注意的是,第一层前馈神经网络的行为信息特征即为所获取到的指定用户的行为信息、其他用户的行为信息。第2层至第n层前馈神经网络的行为信息特征即为前一层前馈神经网络输出的用于指示指定用户的行为信息特征的参数。当行为信息为浏览信息和发 布信息时,行为信息特征包括浏览信息特征和发布信息特征。It is worth noting here that the behavior information characteristics of the first-layer feedforward neural network are the acquired behavior information of the specified user and the behavior information of other users. The behavior information characteristics of the second layer to the nth layer of the feedforward neural network are the parameters output by the previous layer of the feedforward neural network to indicate the behavior information characteristics of the specified user. When the behavior information is browsing information and publishing information, the behavior information features include browsing information features and publishing information features.
步骤502,基于所确定的关联指数和第二预设激活函数,确定用于指示指定用户的行为信息特征的参数。 Step 502, based on the determined correlation index and the second preset activation function, determine a parameter for indicating the behavior information feature of the specified user.
具体的,可以基于所得到的第一关联指数和第二预设激活函数,确定用于指示指定用户的浏览信息特征的参数。可以基于所得到的第二关联指数和第二预设激活函数,确定用于指示指定用户的发布信息特征的参数。Specifically, based on the obtained first association index and the second preset activation function, a parameter used to indicate the characteristics of the browsing information of the specified user may be determined. Based on the obtained second correlation index and the second preset activation function, the parameters used to indicate the characteristics of the published information of the specified user may be determined.
具体的,该第二预设激活函数可以为Sigmoid函数。Specifically, the second preset activation function may be a Sigmoid function.
在这里,可以对所得到的第一关联指数归一化。然后,将归一化后的第一关联指数分别作为指定用户的浏览信息对应的特征矩阵的系数和其他用户的发布信息对应的特征矩阵的系数,得到变换后的指定用户的浏览信息对应的特征矩阵、变换后的其他用户的发布信息对应的特征矩阵。将所得到的变换后的指定用户的浏览信息对应的特征矩阵与变换后的其他用户的发布信息对应的特征矩阵之和作为第二预设激活函数的变量,从而得到用于指示指定用户的浏览信息特征的参数。Here, the obtained first correlation index can be normalized. Then, the normalized first association index is used as the coefficient of the feature matrix corresponding to the browsing information of the specified user and the coefficient of the feature matrix corresponding to the posted information of other users, respectively, to obtain the transformed feature corresponding to the browsing information of the specified user The matrix and the transformed feature matrix corresponding to the posted information of other users. The sum of the obtained feature matrix corresponding to the browsing information of the specified user after the transformation and the feature matrix corresponding to the post information of other users after the transformation is used as the variable of the second preset activation function, so as to obtain the browsing information used to indicate the specified user Information feature parameters.
在这里,可以对所得到的第二关联指数归一化。然后,将归一化后的第二关联指数分别作为指定用户的发布信息对应的特征矩阵的系数和其他用户的浏览信息对应的特征矩阵的系数,得到变换后的指定用户的发布信息对应的特征矩阵、变换后的其他用户的浏览信息对应的特征矩阵。将所得到的变换后的指定用户的发布信息对应的特征矩阵与变换后的其他用户的浏览信息对应的特征矩阵之和作为第二预设激活函数的变量,从而得到用于指示指定用户的发布信息特征的参数。Here, the obtained second correlation index can be normalized. Then, the normalized second association index is used as the coefficients of the feature matrix corresponding to the posted information of the specified user and the coefficients of the feature matrix corresponding to the browsing information of other users to obtain the transformed features corresponding to the posted information of the specified user. The matrix, the feature matrix corresponding to the transformed browsing information of other users. The sum of the obtained feature matrix corresponding to the post information of the specified user after the transformation and the feature matrix corresponding to the browsing information of other users after the transformation is used as the variable of the second preset activation function, thereby obtaining the post for indicating the specified user Information feature parameters.
步骤503,将所得到的用于指示指定用户的行为信息特征的参数作为当前层前馈神经网络的输出。Step 503: Use the obtained parameter indicating the behavior information feature of the specified user as the output of the feedforward neural network of the current layer.
具体的,可以将所得到的用于指示指定用户的发布信息特征的参数、用于指示指定用户的浏览信息特征的参数作为当前层前馈神经网络的输出。Specifically, the obtained parameter indicating the characteristics of the posted information of the specified user and the parameter indicating the characteristics of the browsing information of the specified user may be used as the output of the current layer feedforward neural network.
在这里,可以将所得到的用于指示指定用户的发布信息特征的参数、所得到的用于指示指定用户的浏览信息特征的参数作为当前层前馈神经网络的输出。也即是说,将当前层所得到的参数作为与该层连 接的下一层前馈神经网络的输入。Here, the obtained parameters used to indicate the characteristics of the published information of the specified user and the obtained parameters used to indicate the characteristics of the browsing information of the specified user may be used as the output of the current layer feedforward neural network. In other words, the parameters obtained in the current layer are used as the input of the feedforward neural network of the next layer connected to this layer.
每一层的前馈神经网络通过上述特征提取方法所提取的参数,基于其他用户的发布信息或浏览信息对指定用户的影响程度来确定用户最终的浏览信息特征参数和发布信息特征参数,使得每一层前馈神经网络所提取的特征更加准确,从而提高所训练出的特征值确定模型所提取的特征值的准确性。The feedforward neural network of each layer uses the parameters extracted by the above-mentioned feature extraction method to determine the user’s final browsing information feature parameters and published information feature parameters based on the degree of influence of other users’ published information or browsing information on the specified user, so that each The features extracted by a layer of feedforward neural network are more accurate, thereby improving the accuracy of the feature values extracted by the trained feature value determination model.
进一步参考图6,图6是根据本实施例的信息推送方法的应用场景的一个示意图。Further refer to FIG. 6, which is a schematic diagram of an application scenario of the information pushing method according to this embodiment.
在图6的应用场景中,社交网络601为包括用户A的社交网络,其中用户A为目标用户。在该社交网络601中,还包括用户B、用户C、用户D。其中,用户A与用户B互相关注,用户B关注用户C和用户D。用户A与用户C、用户D之间未建立关联关系。用户A浏览过用户B发布的“虫洞如何形成的”、“世界杯足球赛”等信息。用户C发布的信息包括“欧洲杯看点”、“爱因斯坦相对论”等,用户D发布的信息包括“旅行日记”等。然后,信息推送方法运行于其上的电子设备602可以基于用户A所浏览的用户B的发布信息、基于用户C所发布的信息、基于用D所发布的信息,确定目标用户A与用户C、用户D分别建立关联关系的概率。其中,用户A与用户C建立关联关系的概率为0.8,用户A与用户D建立关联关系的概率为0.2。当预设概率阈值为0.5时,电子设备602可以将用户C的用户标识推送给用户A。In the application scenario of FIG. 6, the social network 601 is a social network including user A, where user A is a target user. The social network 601 also includes user B, user C, and user D. Among them, user A and user B follow each other, and user B follows user C and user D. There is no association relationship between user A, user C, and user D. User A has viewed “How the Wormhole is Formed” and “Football World Cup” published by User B. The information released by user C includes "European Cup Highlights" and "Einstein's Theory of Relativity", and the information released by user D includes "travel diary" and so on. Then, the electronic device 602 on which the information push method runs can determine the target user A and user C, based on the information published by user B viewed by user A, based on the information published by user C, and based on the information published by user D. The probability of user D establishing an association relationship. Among them, the probability that the user A and the user C establish an association relationship is 0.8, and the probability that the user A and the user D establish an association relationship is 0.2. When the preset probability threshold is 0.5, the electronic device 602 can push the user identification of the user C to the user A.
进一步参考图7,作为对上述各图所示方法的实现,本公开提供了信息推送装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to FIG. 7, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an information push device. The device embodiment corresponds to the method embodiment shown in FIG. 2, and the device can be specifically applied to Various electronic devices.
如图7所示,本实施例提供的信息推送装置700包括获取单元701、确定单元702和推送单元703。其中,获取单元701被配置成获取包括目标用户的社交网络,社交网络包括位于社交网络中的用户的行为信息和用于指示各用户之间是否建立关联关系的指示信息;确定单元702被配置成基于目标用户的行为信息、社交网络中与目标用户 未建立关联关系的用户的行为信息,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率703推送单元,被配置成将超过预设阈值的概率对应的用户的用户标识推送给目标用户。As shown in FIG. 7, the information pushing device 700 provided in this embodiment includes an acquiring unit 701, a determining unit 702, and a pushing unit 703. Wherein, the obtaining unit 701 is configured to obtain a social network including the target user, the social network including behavior information of users located in the social network and indication information for indicating whether an association relationship is established between the users; the determining unit 702 is configured to Based on the behavior information of the target user and the behavior information of users who have not established an association relationship with the target user in the social network, the probability of establishing an association relationship between the target user and the user who has not established an association relationship is determined 703. The push unit is configured to exceed The user ID of the user corresponding to the probability of the preset threshold is pushed to the target user.
在本实施例中,信息推送装置700中:获取单元701、确定单元702和推送单元703的具体处理及其所带来的技术效果可分别参考图2对应实施例中的步骤201、步骤202和步骤203的相关说明,在此不再赘述。In this embodiment, in the information pushing device 700: the specific processing of the acquiring unit 701, the determining unit 702, and the pushing unit 703 and the technical effects brought by them can be referred to step 201, step 202, and step 202 in the corresponding embodiment in FIG. 2 respectively. The description of step 203 will not be repeated here.
在本实施例的一些可选的实现方式中,确定单元702包括:输入子单元(图中未示出),被配置成将目标用户的行为信息、与目标用户未建立关联关系的用户的行为信息分别输入至预先训练的特征值确定模型,得到与目标用户的行为信息对应的目标用户行为信息特征值、与目标用户未建立关联关系的用户的行为信息对应的其他用户行为信息特征值;确定子单元(图中未示出),被配置成基于目标用户行为信息特征值、其他用户行为信息特征值,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率。In some optional implementations of this embodiment, the determining unit 702 includes: an input subunit (not shown in the figure) configured to combine the behavior information of the target user and the behavior of users that have not established an association relationship with the target user. The information is respectively input to the pre-trained feature value determination model to obtain the target user behavior information feature value corresponding to the target user's behavior information, and other user behavior information feature values corresponding to the behavior information of users who have not established an association relationship with the target user; determine; The subunit (not shown in the figure) is configured to determine the probability of establishing an association relationship between the target user and a user who has not established an association relationship based on the target user behavior information characteristic value and other user behavior information characteristic values.
在本实施例的一些可选的实现方式中,特征值确定模型是通过如下步骤训练得到:获取训练样本集,其中,训练样本集中的每一个训练样本包括指定用户的行为信息、其他用户的行为信息、用于指示其他用户与指定用户是否建立关联关系的指示信息;执行如下训练步骤:对于训练样本集中的训练样本,将该训练样本中指定用户的行为信息、其他用户的行为信息分别输入至待训练的神经网络,得到与指定用户对应的行为信息特征值、与其他用户对应的行为信息特征值;基于指定用户对应的行为信息特征值与其他用户对应的行为信息特征值,确定指定用户与其他用户建立关联关系的概率值;基于所确定的训练样本集中的训练样本对应的概率值,确定预设损失函数是否收敛;响应于确定预设损失函数收敛,确定特征值确定模型训练完成。In some optional implementations of this embodiment, the feature value determination model is obtained by training in the following steps: obtaining a training sample set, where each training sample in the training sample set includes behavior information of a specified user and behaviors of other users Information, instruction information used to indicate whether other users have established an association relationship with a specified user; perform the following training steps: for the training samples in the training sample set, input the behavior information of the specified user and the behavior information of other users in the training sample into The neural network to be trained obtains the behavior information feature value corresponding to the specified user and the behavior information feature value corresponding to other users; based on the behavior information feature value corresponding to the specified user and the behavior information feature value corresponding to other users, it is determined that the specified user and The probability value of the association relationship established by other users; based on the determined probability value corresponding to the training sample in the training sample set, determine whether the preset loss function converges; in response to determining that the preset loss function converges, the feature value is determined to determine that the model training is completed.
在本实施例的一些可选的实现方式中,训练得到特征值确定模型的步骤还包括:响应于确定预设损失函数未收敛,利用反向传播算法更新待训练的神经网络的参数,继续执行训练步骤。In some optional implementations of this embodiment, the step of training to obtain the feature value determination model further includes: in response to determining that the preset loss function does not converge, using a backpropagation algorithm to update the parameters of the neural network to be trained, and continue execution Training steps.
在本实施例的一些可选的实现方式中,训练样本集中的其他用户 的行为信息包括以下之一:与指定用户建立关联关系的正样本用户的行为信息、与指定用户未建立关联关系的负样本用户的行为信息,其中,负样本用户是从预设用户集合中随机选取出的、与指定用户未建立关联关系且与其他用户建立关联关系的用户。In some optional implementations of this embodiment, the behavior information of other users in the training sample set includes one of the following: the behavior information of the positive sample user that has an association relationship with the specified user, and the negative behavior information that has not established an association relationship with the specified user. The behavior information of the sample user, where the negative sample user is a user who is randomly selected from the preset user set and has not established an association relationship with the specified user and has established an association relationship with other users.
在本实施例的一些可选的实现方式中,训练样本集中的训练样本还包括与其他用户的行为信息对应的时间戳;其中,与正样本用户的行为信息对应的时间戳是基于指定用户与正样本用户建立关联关系的时间确定的;与负样本用户的行为信息对应的时间戳是从与正样本用户对应的时间戳中随机选取出的。In some optional implementations of this embodiment, the training samples in the training sample set also include time stamps corresponding to the behavior information of other users; wherein, the time stamps corresponding to the behavior information of the positive sample user are based on the specified user and The time when the positive sample user establishes the association relationship is determined; the time stamp corresponding to the behavior information of the negative sample user is randomly selected from the time stamp corresponding to the positive sample user.
在本实施例的一些可选的实现方式中,神经网络包括n层级联的单层前馈神经网络和全连接层,对于第i层前馈神经网络,前一层的前馈神经网络的输出参数作为后一层前馈神经网络的输入参数,n为大于1的正整数,i为大于2且小于n的正整数;以及每一层前馈神经网络通过如下步骤进行特征提取:基于第一预设激活函数、指定用户的行为信息特征、其他用户的行为信息特征、与其他用户的行为信息对应的时间戳,确定指定用户的行为信息和其他用户的行为信息之间的关联指数;基于所确定的关联指数和第二预设激活函数,确定用于指示指定用户的行为信息特征的参数;将所得到的用于指示指定用户的行为信息特征的参数作为当前层前馈神经网络的输出。In some optional implementations of this embodiment, the neural network includes n-layer cascaded single-layer feedforward neural network and a fully connected layer. For the i-th layer of feedforward neural network, the output of the previous layer of feedforward neural network The parameters are used as the input parameters of the feedforward neural network of the next layer, n is a positive integer greater than 1, and i is a positive integer greater than 2 and less than n; and each layer of feedforward neural network performs feature extraction through the following steps: Preset the activation function, the behavior information characteristics of the specified user, the behavior information characteristics of other users, and the time stamp corresponding to the behavior information of other users to determine the correlation index between the behavior information of the specified user and the behavior information of other users; The determined correlation index and the second preset activation function determine the parameters used to indicate the behavior information characteristics of the specified user; the obtained parameters used to indicate the behavior information characteristics of the specified user are used as the output of the current layer feedforward neural network.
在本实施例的一些可选的实现方式中,行为信息包括以下至少一项:浏览信息、发布信息,浏览信息是基于浏览与用户建立关联关系的其他用户所发布的信息而生成的。In some optional implementations of this embodiment, the behavior information includes at least one of the following: browsing information and publishing information. The browsing information is generated based on browsing information published by other users who have an association relationship with the user.
本公开的实施例提供的信息推送装置,通过基于目标用户的行为信息、与目标用户之间未建立关联关系的其他用户的行为信息之间的关联度,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率,然后将超过预设阈值的概率对应的用户的用户标识推送给上述目标用户,从而可以更加准确的预测目标用户对其他用户的感兴趣程度,从而提高信息推送效率。The information push device provided by the embodiment of the present disclosure determines the target user and the user who has not established an association relationship based on the association degree between the target user's behavior information and the behavior information of other users who have not established an association relationship with the target user. The probability of an association relationship is established, and then the user ID of the user corresponding to the probability exceeding the preset threshold is pushed to the target user, so that the degree of interest of the target user to other users can be predicted more accurately, thereby improving the efficiency of information push .
下面参考图8,其示出了适于用来实现本公开的实施例的电子设 备(例如图1中的终端设备)800的结构示意图。本公开的实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图8示出的终端设备仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring now to Fig. 8, which shows a schematic structural diagram of an electronic device (for example, the terminal device in Fig. 1) 800 suitable for implementing the embodiments of the present disclosure. Terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals ( For example, mobile terminals such as car navigation terminals and fixed terminals such as digital TVs and desktop computers. The terminal device shown in FIG. 8 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
如图8所示,电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储装置808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM 803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG. 8, the electronic device 800 may include a processing device (such as a central processing unit, a graphics processor, etc.) 801, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 802 or loaded from a storage device 808 The program in the memory (RAM) 803 executes various appropriate actions and processes. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图8示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图8中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。Generally, the following devices can be connected to the I/O interface 805: including input devices 806 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, liquid crystal display (LCD), speakers, vibration An output device 807 such as a device; a storage device 808 such as a magnetic tape and a hard disk; and a communication device 809. The communication device 809 may allow the electronic device 800 to perform wireless or wired communication with other devices to exchange data. Although FIG. 8 shows an electronic device 800 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices. Each block shown in FIG. 8 may represent one device, or may represent multiple devices as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本公开的实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
需要说明的是,本公开的实施例描述的计算机可读介质可以是计 算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may 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 may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. In the embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium. The computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device . The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
上述计算机可读介质可以是上述终端设备中所包含的;也可以是单独存在,而未装配入该终端设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取包括目标用户的社交网络,社交网络包括位于社交网络中的用户的行为信息和用于指示各用户之间是否建立关联关系的指示信息;基于目标用户的行为信息、社交网络中与目标用户未建立关联关系的用户的行为信息,确定目标用户与未建立关联关系的用户之间,建立关联关系的概率;将超过预设阈值的概率对应的用户的用户标识推送给目标用户。The above-mentioned computer-readable medium may be included in the above-mentioned terminal device; or it may exist alone without being assembled into the terminal device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the social network including the target user, and the social network includes the user's information in the social network. Behavior information and indication information used to indicate whether an association relationship between users is established; based on the behavior information of the target user, and the behavior information of users who have not established an association relationship with the target user in the social network, determine the target user and those who have not established an association relationship. The probability of establishing an association relationship between users; the user ID of the user corresponding to the probability exceeding the preset threshold is pushed to the target user.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的实施例的操作的计算机程序代码,程序设计语言包括面向对象的程 序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。The computer program code for performing the operations of the embodiments of the present disclosure can be written in one or more programming languages or a combination thereof. The programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and Conventional procedural programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to Connect via the Internet).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions, and operations of the system, method, and computer program product according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logic function Executable instructions. It should also be noted that, in some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
描述于本公开的实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括一种处理器,包括获取单元、确定单元和推送单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元还可以被描述为“获取包括目标用户的社交网络的单元”。The units involved in the embodiments described in the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit may also be provided in the processor, for example, it may be described as: a processor includes a processor, including an acquiring unit, a determining unit, and a pushing unit. Wherein, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the obtaining unit can also be described as "a unit for obtaining a social network including a target user".
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开的实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开的实施例中公 开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover the above-mentioned inventive concept without departing from the above-mentioned inventive concept. Other technical solutions formed by any combination of technical features or equivalent features. For example, the above-mentioned features and the technical features disclosed in the embodiments of the present disclosure (but not limited to) having similar functions are replaced with each other to form a technical solution.

Claims (11)

  1. 一种信息推送方法,包括:An information push method, including:
    获取包括目标用户的社交网络,所述社交网络包括位于所述社交网络中的用户的行为信息和用于指示各用户之间是否建立关联关系的指示信息;Acquiring a social network including target users, the social network including behavior information of users located in the social network and indication information used to indicate whether an association relationship is established between users;
    基于所述目标用户的行为信息、所述社交网络中与所述目标用户未建立关联关系的用户的行为信息,确定所述目标用户与未建立关联关系的用户之间,建立关联关系的概率;Determine the probability of establishing an association relationship between the target user and a user who has not established an association relationship based on the behavior information of the target user and the behavior information of users in the social network who have not established an association relationship with the target user;
    将超过预设阈值的概率对应的用户的用户标识推送给所述目标用户。Push the user identification of the user corresponding to the probability exceeding the preset threshold to the target user.
  2. 根据权利要求1所述的方法,其中,所述基于所述目标用户的行为信息、所述社交网络中与所述目标用户未建立关联关系的其他用户的行为信息,确定所述目标用户与未建立关联关系的用户之间,建立关联关系的概率,包括:The method according to claim 1, wherein the determining whether the target user is different from the target user based on the behavior information of the target user and the behavior information of other users in the social network that has not established an association relationship with the target user The probability of establishing an association relationship between users who have established an association relationship includes:
    将所述目标用户的行为信息、与所述目标用户未建立关联关系的用户的行为信息分别输入至预先训练的特征值确定模型,得到与所述目标用户的行为信息对应的目标用户行为信息特征值、与所述目标用户未建立关联关系的用户的行为信息对应的其他用户行为信息特征值;The behavior information of the target user and the behavior information of users who have not established an association relationship with the target user are respectively input into a pre-trained feature value determination model to obtain the target user behavior information characteristics corresponding to the target user's behavior information Value, and other user behavior information characteristic values corresponding to the behavior information of users who have not established an association relationship with the target user;
    基于所述目标用户行为信息特征值、其他用户行为信息特征值,确定所述目标用户与未建立关联关系的用户之间,建立关联关系的概率。Based on the target user behavior information characteristic value and other user behavior information characteristic values, the probability of establishing an association relationship between the target user and a user who has not established an association relationship is determined.
  3. 根据权利要求2所述的方法,其中,所述特征值确定模型是通过如下步骤训练得到:The method according to claim 2, wherein the characteristic value determination model is obtained through training in the following steps:
    获取训练样本集,其中,所述训练样本集中的每一个训练样本包括指定用户的行为信息、其他用户的行为信息、用于指示其他用户与指定用户是否建立关联关系的指示信息;Acquiring a training sample set, where each training sample in the training sample set includes behavior information of a specified user, behavior information of other users, and indication information for indicating whether other users have established an association relationship with the specified user;
    执行如下训练步骤:对于所述训练样本集中的训练样本,将该训练样本中指定用户的行为信息、其他用户的行为信息分别输入至待训练的神经网络,得到与指定用户对应的行为信息特征值、与其他用户对应的行为信息特征值;基于指定用户对应的行为信息特征值与其他用户对应的行为信息特征值,确定指定用户与其他用户建立关联关系的概率值;基于所确定的训练样本集中的训练样本对应的概率值,确定预设损失函数是否收敛;Perform the following training steps: for the training samples in the training sample set, input the behavior information of the specified user and the behavior information of other users in the training sample into the neural network to be trained, and obtain the behavior information characteristic value corresponding to the specified user , Behavior information feature values corresponding to other users; based on the behavior information feature values corresponding to the specified user and the behavior information feature values corresponding to other users, determine the probability value of the specified user establishing an association relationship with other users; based on the determined training sample set The probability value corresponding to the training sample to determine whether the preset loss function converges;
    响应于确定预设损失函数收敛,确定所述特征值确定模型训练完成。In response to determining that the preset loss function converges, it is determined that the eigenvalue determines that the model training is completed.
  4. 根据权利要求3所述的方法,其中,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    响应于确定预设损失函数未收敛,利用反向传播算法更新待训练的神经网络的参数,继续执行所述训练步骤。In response to determining that the preset loss function has not converged, the parameters of the neural network to be trained are updated using the back propagation algorithm, and the training step is continued.
  5. 根据权利要求3所述的方法,其中,所述训练样本集中的其他用户的行为信息包括以下之一:与指定用户建立关联关系的正样本用户的行为信息、与指定用户未建立关联关系的负样本用户的行为信息,其中,负样本用户是从预设用户集合中随机选取出的、与指定用户未建立关联关系且与其他用户建立关联关系的用户。The method according to claim 3, wherein the behavior information of other users in the training sample set includes one of the following: behavior information of a positive sample user that has established an association relationship with a specified user, and negative behavior information that has not established an association relationship with a specified user. The behavior information of the sample user, where the negative sample user is a user who is randomly selected from the preset user set and has not established an association relationship with the specified user and has established an association relationship with other users.
  6. 根据权利要求5所述的方法,其中,所述训练样本集中的训练样本还包括与其他用户的行为信息对应的时间戳;其中,The method according to claim 5, wherein the training samples in the training sample set further include time stamps corresponding to the behavior information of other users; wherein,
    与正样本用户的行为信息对应的时间戳是基于指定用户与正样本用户建立关联关系的时间确定的;The timestamp corresponding to the behavior information of the positive sample user is determined based on the time when the designated user establishes an association relationship with the positive sample user;
    与负样本用户的行为信息对应的时间戳是从与正样本用户对应的时间戳中随机选取出的。The time stamp corresponding to the behavior information of the negative sample user is randomly selected from the time stamp corresponding to the positive sample user.
  7. 根据权利要求6所述的方法,其中,所述神经网络包括n层级联的单层前馈神经网络和全连接层,对于第i层前馈神经网络,前一层的前馈神经网络的输出参数作为后一层前馈神经网络的输入参数,n 为大于1的正整数,i为大于2且小于n的正整数;以及The method according to claim 6, wherein the neural network comprises n-layer cascaded single-layer feedforward neural network and a fully connected layer, for the i-th layer of feedforward neural network, the output of the previous layer of feedforward neural network The parameters are used as the input parameters of the feedforward neural network of the latter layer, where n is a positive integer greater than 1, and i is a positive integer greater than 2 and less than n; and
    每一层前馈神经网络通过如下步骤进行特征提取:Each layer of feedforward neural network performs feature extraction through the following steps:
    基于第一预设激活函数、指定用户的行为信息特征、其他用户的行为信息特征、与其他用户的行为信息对应的时间戳,确定指定用户的行为信息和其他用户的行为信息之间的关联指数;Based on the first preset activation function, the behavior information feature of the specified user, the behavior information feature of other users, and the time stamp corresponding to the behavior information of other users, determine the correlation index between the behavior information of the specified user and the behavior information of other users ;
    基于所确定的关联指数和第二预设激活函数,确定用于指示指定用户的行为信息特征的参数;Based on the determined correlation index and the second preset activation function, determine the parameters used to indicate the behavior information characteristics of the specified user;
    将所得到的用于指示指定用户的行为信息特征的参数作为当前层前馈神经网络的输出。The obtained parameters used to indicate the characteristics of the behavior information of the specified user are used as the output of the feedforward neural network of the current layer.
  8. 根据权利要求1-7之一所述的方法,其中,行为信息包括以下至少一项:浏览信息、发布信息,浏览信息是基于浏览与用户建立关联关系的其他用户所发布的信息而生成的。The method according to any one of claims 1-7, wherein the behavior information includes at least one of the following: browsing information and publishing information, and the browsing information is generated based on browsing information published by other users who have established an association relationship with the user.
  9. 一种信息推送装置,包括:An information push device includes:
    获取单元,被配置成获取包括目标用户的社交网络,所述社交网络包括位于所述社交网络中的用户的行为信息和用于指示各用户之间是否建立关联关系的指示信息;An obtaining unit configured to obtain a social network including a target user, the social network including behavior information of users located in the social network and indication information for indicating whether an association relationship is established between the users;
    确定单元,被配置成基于所述目标用户的行为信息、所述社交网络中与所述目标用户未建立关联关系的用户的行为信息,确定所述目标用户与未建立关联关系的用户之间,建立关联关系的概率;The determining unit is configured to determine the relationship between the target user and the user who has not established an association relationship based on the behavior information of the target user and the behavior information of users in the social network that has not established an association relationship with the target user, The probability of establishing an association relationship;
    推送单元,被配置成将超过预设阈值的概率对应的用户的用户标识推送给所述目标用户。The pushing unit is configured to push the user identification of the user corresponding to the probability exceeding the preset threshold to the target user.
  10. 一种终端设备,包括:A terminal device, including:
    一个或多个处理器;One or more processors;
    存储装置,其上存储有一个或多个程序;A storage device on which one or more programs are stored;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-8中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-8.
  11. 一种计算机可读介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-8中任一所述的方法。A computer-readable medium with a computer program stored thereon, wherein the program is executed by a processor to implement the method according to any one of claims 1-8.
PCT/CN2020/073593 2019-01-30 2020-01-21 Information pushing method and device WO2020156389A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910092332.XA CN109872242B (en) 2019-01-30 2019-01-30 Information pushing method and device
CN201910092332.X 2019-01-30

Publications (1)

Publication Number Publication Date
WO2020156389A1 true WO2020156389A1 (en) 2020-08-06

Family

ID=66918294

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/073593 WO2020156389A1 (en) 2019-01-30 2020-01-21 Information pushing method and device

Country Status (2)

Country Link
CN (1) CN109872242B (en)
WO (1) WO2020156389A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765373A (en) * 2021-01-29 2021-05-07 北京达佳互联信息技术有限公司 Resource recommendation method and device, electronic equipment and storage medium
CN113111268A (en) * 2021-04-30 2021-07-13 百度在线网络技术(北京)有限公司 Training method of user feature extraction model, content recommendation method and device
CN113781150A (en) * 2021-01-28 2021-12-10 北京沃东天骏信息技术有限公司 Article recommendation method and device
CN116257791A (en) * 2023-05-10 2023-06-13 北京云真信科技有限公司 Device set determination method, electronic device, and computer-readable storage medium
CN116432035A (en) * 2023-04-19 2023-07-14 人民网股份有限公司 Negative sample construction method, device, computing equipment and storage medium
CN116579024A (en) * 2022-04-18 2023-08-11 江苏控智电子科技有限公司 Personal information management system combining big data with artificial intelligence
CN116887001A (en) * 2023-09-06 2023-10-13 四川中电启明星信息技术有限公司 Short video pushing method and device integrating social attribute information and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109872242B (en) * 2019-01-30 2020-10-13 北京字节跳动网络技术有限公司 Information pushing method and device
CN111127179B (en) * 2019-12-12 2023-08-29 恩亿科(北京)数据科技有限公司 Information pushing method, device, computer equipment and storage medium
CN113365115B (en) * 2020-03-03 2022-11-04 北京达佳互联信息技术有限公司 Characteristic code determining method, device, server and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984775A (en) * 2014-06-05 2014-08-13 网易(杭州)网络有限公司 Friend recommending method and equipment
CN104601438A (en) * 2014-04-28 2015-05-06 腾讯科技(深圳)有限公司 Friend recommendation method and device
CN106649774A (en) * 2016-12-27 2017-05-10 北京百度网讯科技有限公司 Artificial intelligence-based object pushing method and apparatus
CN108173746A (en) * 2017-12-26 2018-06-15 东软集团股份有限公司 Friend recommendation method, apparatus and computer equipment
US20180341652A1 (en) * 2016-03-10 2018-11-29 Fujifilm Corporation Information presentation method, information presentation program, and information presentation apparatus
CN109872242A (en) * 2019-01-30 2019-06-11 北京字节跳动网络技术有限公司 Information-pushing method and device

Family Cites Families (47)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080104225A1 (en) * 2006-11-01 2008-05-01 Microsoft Corporation Visualization application for mining of social networks
US9235848B1 (en) * 2007-07-09 2016-01-12 Groupon, Inc. Implicitly associating metadata using user behavior
WO2011114620A1 (en) * 2010-03-16 2011-09-22 日本電気株式会社 Interest level measurement system
US20110270774A1 (en) * 2010-04-30 2011-11-03 Microsoft Corporation Group Recommendations in Social Networks
WO2013005189A2 (en) * 2011-07-07 2013-01-10 Serena F David Social network graph inference and aggregation with portability, protected shared content, and application programs spanning multiple social networks
CN102317941A (en) * 2011-07-30 2012-01-11 华为技术有限公司 Information recommending method, recommending engine and network system
US20130185325A1 (en) * 2012-01-18 2013-07-18 Apple Inc. Methods and apparatus for providing content based on social networks
US20130218687A1 (en) * 2012-02-17 2013-08-22 Graphdive, Inc. Methods, systems and devices for determining a user interest and/or characteristic by employing a personalization engine
CN103379158B (en) * 2012-04-24 2016-05-25 中国移动通信集团公司 The method and system of commending friends information in a kind of social networks
US20150012471A1 (en) * 2013-07-02 2015-01-08 SenseGon Technologies Ltd. System for user psychosocial profiling
US20150012355A1 (en) * 2013-07-02 2015-01-08 SenseGon Technologies Ltd. Method of advertising by user psychosocial profiling
CN103345513B (en) * 2013-07-09 2017-07-18 清华大学 A kind of propagated based on friends friend recommendation method in social networks
CN104346372B (en) * 2013-07-31 2018-03-27 国际商业机器公司 Method and apparatus for assessment prediction model
US20150120583A1 (en) * 2013-10-25 2015-04-30 The Mitre Corporation Process and mechanism for identifying large scale misuse of social media networks
US9680702B1 (en) * 2014-06-02 2017-06-13 Hrl Laboratories, Llc Network of networks diffusion control
CN105446973B (en) * 2014-06-20 2019-02-26 华为技术有限公司 The foundation of user's recommended models and application method and device in social networks
CN104199904B (en) * 2014-08-27 2016-08-24 腾讯科技(深圳)有限公司 A kind of social information method for pushing, server, user terminal and system
CN104462308A (en) * 2014-11-27 2015-03-25 广东小天才科技有限公司 Social network friend recommending method and system
CN104598543B (en) * 2014-11-28 2018-12-14 广东工业大学 A kind of Social Match data digging system
CN104598987B (en) * 2014-12-16 2018-08-21 南京华苏科技有限公司 A method of using the study in social networks mobile subscriber's off-network tendency and probability are predicted with network effects
CN104731962B (en) * 2015-04-03 2018-10-12 重庆邮电大学 Friend recommendation method and system based on similar corporations in a kind of social networks
CN104899267B (en) * 2015-05-22 2017-12-19 中国电子科技集团公司第二十八研究所 A kind of integrated data method for digging of social network sites account similarity
CN105306495B (en) * 2015-11-30 2018-06-19 百度在线网络技术(北京)有限公司 user identification method and device
CN105719191B (en) * 2016-01-20 2019-10-11 东北大学 The social groups that behavior semanteme is not known under multiscale space find method
CN205405506U (en) * 2016-02-26 2016-07-27 云南六个人网络科技有限公司 Social network user credibility authenticate device based on neural network
CN106157151A (en) * 2016-06-29 2016-11-23 厦门趣处网络科技有限公司 A kind of information aggregation method based on user interest, system
CN106326345B (en) * 2016-08-08 2019-11-01 浙江工业大学 Friends method for digging in a kind of social networks based on user behavior
US11188950B2 (en) * 2016-08-31 2021-11-30 Microsoft Technology Licensing, Llc Audience expansion for online social network content
US9947037B2 (en) * 2016-09-14 2018-04-17 International Business Machines Corporation Software recommendation services for targeted user groups
CN106447505A (en) * 2016-09-26 2017-02-22 浙江工业大学 Implementation method for effective friend relationship discovery in social network
CN107889111A (en) * 2016-09-30 2018-04-06 北京金山安全软件有限公司 Crank call identification method and device based on deep neural network
US10255549B2 (en) * 2017-01-27 2019-04-09 International Business Machines Corporation Context-based photography and captions
CN106777382A (en) * 2017-02-13 2017-05-31 北京奇虎科技有限公司 Social friends recommend method, device and server
CN107016569A (en) * 2017-03-21 2017-08-04 聚好看科技股份有限公司 The targeted customer's account acquisition methods and device of a kind of networking products
CN108805598B (en) * 2017-05-05 2020-09-08 腾讯科技(深圳)有限公司 Similarity information determination method, server and computer-readable storage medium
CN107247786A (en) * 2017-06-15 2017-10-13 北京小度信息科技有限公司 Method, device and server for determining similar users
CN107451199B (en) * 2017-07-05 2020-06-26 阿里巴巴集团控股有限公司 Question recommendation method, device and equipment
CN107993085B (en) * 2017-10-19 2021-05-18 创新先进技术有限公司 Model training method, and user behavior prediction method and device based on model
CN107832581B (en) * 2017-12-15 2022-02-18 百度在线网络技术(北京)有限公司 State prediction method and device
CN108198072A (en) * 2017-12-29 2018-06-22 郑州云海信息技术有限公司 A kind of system of artificial intelligence assessment financial product feature
CN108399189A (en) * 2018-01-23 2018-08-14 重庆邮电大学 Friend recommendation system based on community discovery and its method
CN108334494B (en) * 2018-01-23 2022-01-25 创新先进技术有限公司 Method and device for constructing user relationship network
CN108334848B (en) * 2018-02-06 2020-12-25 哈尔滨工业大学 Tiny face recognition method based on generation countermeasure network
CN108509803B (en) * 2018-03-15 2019-06-07 平安科技(深圳)有限公司 A kind of display methods and terminal device of application icon
CN108573054A (en) * 2018-04-24 2018-09-25 百度在线网络技术(北京)有限公司 Method and apparatus for pushed information
CN108647729B (en) * 2018-05-11 2022-03-04 广东省科技基础条件平台中心 User portrait acquisition method
CN108848152B (en) * 2018-06-05 2021-09-21 腾讯科技(深圳)有限公司 Object recommendation method and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601438A (en) * 2014-04-28 2015-05-06 腾讯科技(深圳)有限公司 Friend recommendation method and device
CN103984775A (en) * 2014-06-05 2014-08-13 网易(杭州)网络有限公司 Friend recommending method and equipment
US20180341652A1 (en) * 2016-03-10 2018-11-29 Fujifilm Corporation Information presentation method, information presentation program, and information presentation apparatus
CN106649774A (en) * 2016-12-27 2017-05-10 北京百度网讯科技有限公司 Artificial intelligence-based object pushing method and apparatus
CN108173746A (en) * 2017-12-26 2018-06-15 东软集团股份有限公司 Friend recommendation method, apparatus and computer equipment
CN109872242A (en) * 2019-01-30 2019-06-11 北京字节跳动网络技术有限公司 Information-pushing method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113781150A (en) * 2021-01-28 2021-12-10 北京沃东天骏信息技术有限公司 Article recommendation method and device
CN112765373A (en) * 2021-01-29 2021-05-07 北京达佳互联信息技术有限公司 Resource recommendation method and device, electronic equipment and storage medium
CN112765373B (en) * 2021-01-29 2023-03-21 北京达佳互联信息技术有限公司 Resource recommendation method and device, electronic equipment and storage medium
CN113111268A (en) * 2021-04-30 2021-07-13 百度在线网络技术(北京)有限公司 Training method of user feature extraction model, content recommendation method and device
CN116579024A (en) * 2022-04-18 2023-08-11 江苏控智电子科技有限公司 Personal information management system combining big data with artificial intelligence
CN116579024B (en) * 2022-04-18 2024-01-09 安徽灵珠人才服务有限公司 Personal information management system combining big data with artificial intelligence
CN116432035A (en) * 2023-04-19 2023-07-14 人民网股份有限公司 Negative sample construction method, device, computing equipment and storage medium
CN116257791A (en) * 2023-05-10 2023-06-13 北京云真信科技有限公司 Device set determination method, electronic device, and computer-readable storage medium
CN116257791B (en) * 2023-05-10 2023-08-11 北京云真信科技有限公司 Device set determination method, electronic device, and computer-readable storage medium
CN116887001A (en) * 2023-09-06 2023-10-13 四川中电启明星信息技术有限公司 Short video pushing method and device integrating social attribute information and electronic equipment
CN116887001B (en) * 2023-09-06 2023-12-15 四川中电启明星信息技术有限公司 Short video pushing method and device integrating social attribute information and electronic equipment

Also Published As

Publication number Publication date
CN109872242B (en) 2020-10-13
CN109872242A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
WO2020156389A1 (en) Information pushing method and device
CN111602147A (en) Machine learning model based on non-local neural network
WO2020007138A1 (en) Method for event identification, method for model training, device, and storage medium
CN112313740A (en) Aggregating semantic information to improve understanding of users
WO2018192496A1 (en) Trend information generation method and device, storage medium and electronic device
CN112671886B (en) Information pushing method based on edge calculation and artificial intelligence and big data server
WO2018213485A1 (en) Determining agents for performing actions based at least in part on image data
US20150302088A1 (en) Method and System for Providing Personalized Content
CN111324700A (en) Resource recall method and device, electronic equipment and computer-readable storage medium
CN113688310A (en) Content recommendation method, device, equipment and storage medium
CN111078849B (en) Method and device for outputting information
CN110059172B (en) Method and device for recommending answers based on natural language understanding
WO2022017082A1 (en) Method and apparatus for detecting false transaction orders
CN112182255A (en) Method and apparatus for storing media files and for retrieving media files
CN112148962B (en) Method and device for pushing information
CN110750994A (en) Entity relationship extraction method and device, electronic equipment and storage medium
CN111382365B (en) Method and device for outputting information
CN111597441B (en) Information processing method and device and electronic equipment
CN113780318B (en) Method, device, server and medium for generating prompt information
CN111339770B (en) Method and device for outputting information
US11494393B2 (en) Method and system for data mining
CN111897951A (en) Method and apparatus for generating information
CN113343069A (en) User information processing method, device, medium and electronic equipment
CN112348614A (en) Method and device for pushing information
US11711581B2 (en) Multimodal sequential recommendation with window co-attention

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20747678

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29/11/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 20747678

Country of ref document: EP

Kind code of ref document: A1