Content sending method, device, electronic device and storage medium
By performing feature encoding and multi-attribute dimension content mapping on object data, the problem of low accuracy in filtering target content in massive content is solved and more efficient content recommendation and delivery is achieved.
Patent Information
- Application Number
- CN202210254338.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-03-15
AI Technical Summary
In the existing technology, the accuracy of selecting the content that the target is interested in from the massive content is low, and it is difficult to effectively filter out the target content to be sent.
By obtaining the object data of the object in at least two data types, performing feature encoding processing, generating attribute features, and performing multi-attribute dimension content mapping processing, thereby filtering out the target content to be sent.
It improves the accuracy of filtering out the target content to be sent from massive content and sending it to the target, and enhances the accuracy of content recommendation.
Smart Images

Figure CN116796056B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a content sending method, device, electronic device and storage medium. Background Art
[0002] With the development of computer technology, applications based on electronic devices have also developed rapidly, bringing a huge amount of content. How to accurately select content that an object is interested in from a huge amount of content and send it to the object has become the focus of many applications. The inventor found through practice of the prior art that the prior art has the problem of low accuracy in selecting content that an object is interested in from a huge amount of content. Summary of the invention
[0003] The embodiments of the present application provide a content sending method, device, electronic device and storage medium, which can improve the accuracy of screening out target content to be sent from massive content and sending it to the target.
[0004] The present application provides a content sending method, including:
[0005] Get object data of an object on at least two data types;
[0006] Performing feature coding processing on the object data of the at least two data types to obtain object features corresponding to the object data of each data type;
[0007] Based on the object features corresponding to each data type, generate attribute features corresponding to the object;
[0008] Performing content mapping processing on the attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions;
[0009] Based on the content attribute information in the at least two attribute dimensions, at least two target contents to be sent are screened out from the contents to be sent, and the target contents to be sent are sent to the object.
[0010] Accordingly, an embodiment of the present application provides a content sending device, including:
[0011] An acquisition unit, used for acquiring object data of an object on at least two data types;
[0012] A feature encoding unit, used to perform feature encoding processing on the object data of the at least two data types to obtain object features corresponding to the object data of each data type;
[0013] A generating unit, configured to generate attribute features corresponding to the object based on the object features corresponding to each data type;
[0014] A content mapping unit, configured to perform content mapping processing on the attribute feature in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions;
[0015] The screening unit is used to screen out at least two target contents to be sent from the contents to be sent based on the content attribute information in the at least two attribute dimensions, and send the target contents to be sent to the object.
[0016] In one embodiment, the content mapping unit may include:
[0017] A first acquisition subunit is used to acquire a global attribute embedding dictionary, wherein the global attribute embedding dictionary includes a plurality of reference content attribute information, wherein different reference content attribute information corresponds to different attribute dimensions;
[0018] A first calculation subunit, configured to calculate similarity information between the plurality of reference content attribute information and the attribute feature;
[0019] The first screening subunit is configured to screen out content attribute information in at least two attribute dimensions from the plurality of reference content attribute information according to the similarity information.
[0020] In one embodiment, the content mapping unit may further include:
[0021] A second acquisition subunit is used to acquire an initial attribute embedding dictionary and object sample data, wherein the initial attribute embedding dictionary includes a plurality of initial content attribute information;
[0022] A second screening subunit is used to screen out at least two target sample contents to be sent from the sample contents to be sent based on the object sample data;
[0023] A second calculation subunit, used to calculate the loss information between the target sample content to be sent and the preset sample label;
[0024] The first updating subunit is used to update the initial content attribute information in the initial attribute embedding dictionary based on the loss information to obtain a global attribute embedding dictionary.
[0025] In one embodiment, the content mapping unit may include:
[0026] An information extraction subunit, configured to extract information on at least two attribute dimensions of the attribute feature based on a self-attention mechanism, and obtain multi-dimensional self-attention information corresponding to the attribute feature;
[0027] A conversion subunit is used to convert the attribute features into content attribute information of the object in at least two attribute dimensions by using the multi-dimensional self-attention information.
[0028] In one embodiment, the information extraction subunit may include:
[0029] A feature positioning module, used to perform feature positioning on the attribute feature based on the self-attention mechanism to obtain positioning information;
[0030] A first mapping module, configured to map the positioning information to a multi-dimensional content attribute feature space based on the self-attention mechanism to obtain a mapping result;
[0031] A logistic regression module is used to perform logistic regression processing on the mapping result based on the self-attention mechanism to obtain the multi-dimensional self-attention information.
[0032] In one embodiment, the content mapping unit may further include:
[0033] The third acquisition subunit is used to obtain the initial self-attention mechanism and object sample data;
[0034] A third screening subunit is used to screen out at least two target sample contents to be sent from the sample contents to be sent based on the object sample data;
[0035] A third calculation subunit, used for calculating the compatibility information between the target sample content to be sent and the object sample data;
[0036] An adjustment subunit is used to adjust the initial self-attention mechanism based on the fit information to obtain a self-attention mechanism.
[0037] In one embodiment, the feature encoding unit may include:
[0038] An identification subunit, used to identify the object data of the at least two data types, and obtain a feature encoding method corresponding to the object data of each data type;
[0039] The feature coding subunit is used to perform feature coding processing on the object data using the feature coding method corresponding to the object data on each data type to obtain the object features corresponding to the object data on each data type.
[0040] In one embodiment, the feature encoding subunit may include:
[0041] A vector conversion module, used to perform vector conversion processing on the data in the multiple different data dimensions to obtain a representation vector corresponding to the data in each data dimension;
[0042] The first fusion module is used to fuse the representation vectors corresponding to the data in each data dimension to obtain a target representation vector;
[0043] A fully connected module, used for performing a fully connected process on the target representation vector to obtain a fully connected feature;
[0044] The activation module is used to activate the fully connected features to obtain the object features.
[0045] In one embodiment, the feature encoding subunit may include:
[0046] An identification module, used for identifying the object data on the data type to obtain the effective data ratio of the object data;
[0047] A data encoding module, used to perform data encoding on the object data according to the effective data ratio, to obtain data features corresponding to the object data;
[0048] A position encoding module, used to perform position encoding on the object data to obtain position features corresponding to the object data;
[0049] The second fusion module is used to fuse the data feature and the position feature to obtain the object feature.
[0050] In one embodiment, the data encoding module may include:
[0051] An interception submodule, used for intercepting the object data according to the effective ratio of the data to obtain at least one intercepted object data;
[0052] A vector mapping submodule, used for performing vector mapping processing on the intercepted object data to obtain a representation vector corresponding to each intercepted object data;
[0053] The vector fusion submodule is used to perform vector fusion processing on the representation vector corresponding to each intercepted object data to obtain the data feature.
[0054] In one embodiment, the generating unit may include:
[0055] The attention fusion subunit is used to perform attention fusion on the object features corresponding to each data type to obtain fused features;
[0056] A distribution fitting subunit, used for performing probability distribution fitting processing on the fused features to obtain a probability distribution corresponding to the fused features;
[0057] The feature mapping subunit is used to map the probability distribution to the attribute features corresponding to the object.
[0058] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the method provided in various optional modes of the above-mentioned aspect.
[0059] Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, which stores instructions, and when the instructions are executed by a processor, implements any search content sharing method provided in the embodiments of the present application.
[0060] The embodiments of the present application provide a content sending method, device, electronic device and storage medium, which can obtain object data of an object on at least two data types; perform feature encoding processing on the object data on at least two data types to obtain object features corresponding to the object data on each data type; generate attribute features corresponding to the object based on the object features corresponding to each data type; perform content mapping processing on the attribute features in multiple attribute dimensions to obtain content attribute information of the object on at least two attribute dimensions; based on the content attribute information on at least two attribute dimensions, filter out at least two target content to be sent from the content to be sent, and send the target content to be sent to the object, which can improve the accuracy of filtering out the target content to be sent from massive content and sending it to the object. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0062] Figure 1a It is a scenario diagram of the content sending method provided in an embodiment of the present application;
[0063] Figure 1b is a flow chart of a content sending method provided by an embodiment of the present application;
[0064] Figure 2a is another flow chart of the content sending method provided by an embodiment of the present application;
[0065] Figure 2b is another flow chart of the content sending method provided by an embodiment of the present application;
[0066] Figure 2c is another flow chart of the content sending method provided by an embodiment of the present application;
[0067] Figure 3 is a structural diagram of a content sending device provided in an embodiment of the present application;
[0068] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0070] The embodiments of the present application provide a content sending method, device, electronic device and storage medium. The content sending device can be integrated in an electronic device, which can be a terminal or a server.
[0071] It is understandable that the content sending method of this embodiment can be executed on a terminal, can be executed on a server, or can be executed by both a terminal and a server. The above examples should not be construed as limiting the present application.
[0072] like Figure 1a As shown, a terminal and a server jointly execute a content sending method as an example. The content sending system provided in the embodiment of the present application includes a terminal 10 and a server 11, etc. The terminal 10 and the server 11 are connected via a network, such as a wired or wireless network connection, etc., wherein the content sending device can be integrated in the server.
[0073] Among them, the server 11 can be used to: obtain object data of the object on at least two data types; perform feature encoding processing on the object data on at least two data types to obtain object features corresponding to the object data on each data type; generate attribute features corresponding to the object based on the object features corresponding to each data type; perform multi-attribute dimensional content mapping processing on the attribute features to obtain content attribute information of the object on at least two attribute dimensions; based on the content attribute information on at least two attribute dimensions, filter out at least two target contents to be sent from the contents to be sent, and send the target contents to be sent to the object.
[0074] Among them, the server 11 can be a single server, or a server cluster or cloud server composed of multiple servers. For example, the server can be an intercommunication server or background server between multiple heterogeneous systems, or an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and basic cloud computing services such as big data and artificial intelligence platforms, etc. As disclosed in the feature extraction method or device of the present application, multiple servers can be composed of a blockchain, and the server is a node on the blockchain.
[0075] The terminal 10 may receive the target content to be sent sent by the server 11, and display the target content to be sent to the target, and specifically display the target content to be sent on a corresponding page. The terminal 10 may include a mobile phone, a smart TV, a tablet computer, a laptop computer, or a personal computer (PC). The terminal 10 may also be provided with a client, which may be an application client or a browser client, etc.
[0076] The step in which the server 11 determines the target content to be sent may also be executed by the terminal 10 .
[0077] The content sending method provided in the embodiment of the present application relates to machine learning in the field of artificial intelligence. The embodiment of the present application can improve the accuracy of content sending.
[0078] Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science. It attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level technology and software-level technology. Among them, artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0079] Among them, machine learning (ML) is a multi-disciplinary interdisciplinary subject, involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.
[0080] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0081] This embodiment will be described from the perspective of a content sending device. The content sending device may be integrated into an electronic device, which may be a server or a terminal.
[0082] The content sending method of the embodiment of the present application can be applied to various recommendation scenarios. For example, if a network platform needs to recommend a data packet containing multiple types of objects to a user, the content sending method provided by the embodiment can quickly determine the target data packet to be recommended, and the content sending method provided by the embodiment has a high accuracy rate in content sending.
[0083] like Figure 1b As shown, the specific process of the content sending method can be as follows:
[0084] 101. Obtain object data of an object on at least two data types.
[0085] The object data may include data that can describe the characteristics or features of the object. For example, the object data may be data generated by the object on the application, through which the application can perceive the characteristics and hobbies of the object, so that the target content to be sent can be filtered out from the content to be sent based on the object data.
[0086] Among them, the application includes a computer program that performs one or more specific functions. It runs in an interactive mode, can interact with the objects used by the application, and has a visual display interface.
[0087] For example, applications may include application software on various terminals. For example, application programs may include various mobile phone software (Application, APP), tablet computer application software, application software on laptop computers, application software on personal computers (PC, Personal Computer), etc.
[0088] For example, applications may include social software, browsers, video playback software, game software, and so on.
[0089] For another example, an application may also include a mini program. Among them, a mini program is an application that can be used without downloading and installing. In order to provide more diversified business services to the object, the developer can develop a corresponding mini program for the terminal application (such as instant messaging application, shopping application, email application, etc.), and the mini program can be embedded in the terminal application as a sub-application, and the corresponding business services can be provided to the object by running the sub-application (i.e. the corresponding mini program) in the application.
[0090] For example, when the application is a social software, the object data may be the operation data when the object operates the social software. For another example, the object data may be data describing the object. For example, the object may include the object ID (identity document, ID) of the object in the application, the time and gender of using the application, etc.
[0091] In one embodiment, since the object may generate various object data on the application, the target content to be sent may be screened out from the content to be sent for the object according to the various data generated by the object on the application. Therefore, the object data of the object in at least two data types may be obtained.
[0092] For example, the object data of the object on at least two data types may include object operation data and object description data, and so on.
[0093] The object operation data may include data generated when the object operates the application. For example, when the object triggers a function on the application, object operation data may be generated. For another example, when the object browses some information on the application, object operation data may also be generated, and so on.
[0094] The object description data may include data describing the object, for example, the object identification document (ID) of the object in the application, the time of using the application, gender, long-term characteristics of the object or long-term characteristics of the object, etc.
[0095] The long-term characteristics of an object may include the content that the object has paid attention to for a long time. For example, the long-term characteristics of an object may include the content that the object has paid attention to within 1 month. For example, the long-term characteristics may include long-term primary categories, long-term secondary categories, and long-term tags, etc.
[0096] The short-term characteristics of an object may include the content that the object pays attention to in a short period of time. For example, the short-term characteristics of an object may include the content that the object pays attention to within 1 day. For example, the short-term characteristics may include short-term primary categories, short-term secondary categories, short-term tags, and the like.
[0097] The categories may include classification of the content in the application. For example, when the application is a shopping application, the categories may include men's clothing, women's clothing, shoes, skin care, and so on.
[0098] Among them, the first-level category can include a general term for a range. The second-level category can be a subdivision of the first-level category. For example, when the first-level category is food, the second-level category can include fruits, beverages, snacks, etc.
[0099] In one embodiment, there are multiple methods for obtaining object data of an object in at least two data types.
[0100] For example, you can use tracking to obtain historical data generated by an object in an application and use the historical data as sample data. For example, during the development of an application, you can set tracking points in multiple functions of the application, and whenever an object uses the function in the application, the data generated by the object will be collected.
[0101] For another example, the historical data generated by the object in the application can be obtained in a non-embedded method, and the historical data can be used as sample data.
[0102] By acquiring the object data of the object in at least two data types, the target content to be sent can be screened out from the content to be sent based on more data, thereby improving the accuracy of screening out the target content to be sent.
[0103] The object data may have multiple representations. For example, the object data may be a multidimensional vector. For example, the object data may be represented by a matrix, and the matrix value of the matrix may represent the object operation data generated by the object at a certain moment. If the object does not generate data at the corresponding moment in the matrix, the corresponding matrix value may be 0. If the object generates data at the corresponding moment, the corresponding matrix value may be the generated data.
[0104] In one embodiment, in order to improve processing efficiency, object data of multiple objects in at least two data types may be obtained. For example, object data of Xiao Ming, Xiao Hong and Xiao Lu in at least two data types may be obtained.
[0105] In one embodiment, the embodiment of the present application can filter out at least two target contents to be sent from the contents to be sent based on the object data of the object in at least two data types.
[0106] The content to be sent may include content that can be pushed to an object in the application. For example, the content to be sent may be determined by the nature of the application. For example, when the application is a video playback application, the content to be sent may be a video. For another example, when the application is an information application, the content to be sent may be an article. For another example, when the application is a music application, the content to be sent may be music.
[0107] The target content to be sent may be content recommended to the object. For example, when the target content to be sent is a video, the video may be shown to the object.
[0108] It should be noted that: in the specific implementation of this application, relevant sensitive data is involved. When the above embodiments of this application are applied to specific products or technologies, it is necessary to obtain the permission or consent of the object, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0109] 102. Perform feature encoding processing on object data of at least two data types to obtain object features corresponding to the object data of each data type.
[0110] In one embodiment, since the object data can have multiple forms of expression. For example, the object data may be text, a string, or a picture, etc. Therefore, in order to improve the efficiency of screening the target content to be sent based on the object data, the object data may be feature-encoded to obtain the object features corresponding to the object data. By feature-encoding the object data, the object data may be mapped to a digital space, thereby improving the efficiency of subsequent processing.
[0111] Therefore, feature encoding of an object may refer to mapping object data into a digital space, and object features may be a digital representation of object data. For example, the object data of the current data type may be [[maternal and child products], ["milk powder", "diapers"]], and its corresponding object features may be [
[001] , [101011]].
[0112] In one embodiment, after the object data is acquired, feature encoding processing may be performed on the object data to obtain object features corresponding to the object data on each data type.
[0113] Among them, since there are object data of at least two data types, the feature encoding methods corresponding to the object data of each data type may be different. Therefore, when feature encoding the object data, the feature encoding method corresponding to the object data of each data type can be determined. Then, the object data is encoded using the corresponding feature encoding method. Specifically, the step of "feature encoding the object data of at least two data types to obtain the object features corresponding to the object data of each data type" may include:
[0114] Identify object data of at least two data types to obtain a feature encoding method corresponding to the object data of each data type;
[0115] The object data is subjected to feature encoding processing using the feature encoding method corresponding to the object data on each data type, so as to obtain the object features corresponding to the object data on each data type.
[0116] For example, the object data of at least two data types may include object operation data and object description data, wherein the object operation data corresponds to a first feature encoding method, and the object description data corresponds to a second feature encoding method, wherein the first feature encoding method and the second feature encoding method may be the same feature encoding method or different feature encoding methods.
[0117] There are multiple ways to identify object data of at least two data types to obtain feature encoding methods corresponding to the object data of each data type.
[0118] For example, developers can set the feature encoding method corresponding to the object data of each data type in advance, and associate the object data of the data type with the feature encoding method. For example, the object data of the data type and its corresponding feature encoding method can be added with the same identifier. Therefore, the content sending device can obtain the identifier corresponding to the object data, and determine the feature encoding method corresponding to the object data of the current data type through the identifier.
[0119] For another example, the content sending device may traverse the object data of each data type to obtain the data characteristics corresponding to the object data of each data type, and then determine the feature encoding method corresponding to the object data of each data type according to the data characteristics.
[0120] In one embodiment, after obtaining the feature encoding method corresponding to the object data on each data type, the feature encoding method corresponding to the object data on each data type can be used to perform feature encoding processing on the object data to obtain the object features corresponding to the object data on each data type.
[0121] In one embodiment, when the object data of the current data type is object operation data, the diversity of the object operation data may be relatively high. For example, the object operation data of different objects may be quite different. For example, some objects always use a certain application, then the object will have more object operation data on the application. And some objects may have less object operation data on the application. Therefore, when feature encoding the object operation data, the object operation data may be data encoded and position encoded, so that the object operation data may be feature encoded from different angles, thereby improving the accuracy of feature encoding processing of the object operation data.
[0122] Specifically, the step of “performing feature encoding processing on the object data using the feature encoding method corresponding to the object data on each data type to obtain the object features corresponding to the object data on each data type” may include:
[0123] Identify the object data on the data type and obtain the effective data ratio of the object data;
[0124] According to the effective data ratio, the object data is encoded to obtain the data features corresponding to the object data;
[0125] Position encoding is performed on the object data to obtain position features corresponding to the object data;
[0126] The data features and location features are fused to obtain object features.
[0127] In one embodiment, for object operation data, when the interaction between the object and the application is relatively small, the interval between the generation time of each object operation data may be relatively large, and the object operation data in the most recent period will be more important. When the interaction between the object and the application is relatively large, the object operation data in the most recent period may be relatively less important, because the object may browse a large number of different types of content in a very short time. Therefore, the object data in terms of data type can be identified to obtain the effective data ratio of the object data.
[0128] The effective data ratio can indicate the interaction frequency between the object and the application. When the effective data ratio is high, it indicates that the interaction frequency between the object and the application is high. When the effective data ratio is low, it indicates that the interaction frequency between the object and the application is low.
[0129] There are multiple ways to identify the object data on the data type and obtain the effective data ratio of the object data.
[0130] For example, the object operation data may be traversed to obtain the data length of the object operation data and the data length of the valid data. Then, the data length of the valid data is divided by the data length of the object operation data to obtain the data valid ratio. The valid data may refer to a non-zero value in the object operation data.
[0131] For another example, the average time difference generated by each piece of data in the object operation data may be calculated, and then the time difference may be converted into a data effective ratio. For example, the inverse of the average time difference may be calculated to obtain the data effective ratio, and so on.
[0132] In one embodiment, after obtaining the effective data ratio, the object data may be data-encoded according to the effective data ratio to obtain data features corresponding to the object data. Specifically, the step of "data-encoding the object data according to the effective data ratio to obtain data features corresponding to the object data" may include:
[0133] According to the effective data ratio, the object data is intercepted and processed to obtain at least one intercepted object data;
[0134] Performing vector mapping processing on the intercepted object data to obtain a representation vector corresponding to each intercepted object data;
[0135] The representation vectors corresponding to each intercepted object data are subjected to vector fusion processing to obtain data features.
[0136] In one embodiment, the object data may be intercepted according to the effective data ratio to obtain at least one intercepted object data.
[0137] For example, when the effective data ratio is relatively high, the latest object data can be intercepted as the intercepted object data. For example, if the object generates multiple pieces of object data in one day, it means that the effective data ratio is relatively high. Then, the object can intercept the object data of the most recent hour as the intercepted object data.
[0138] For another example, when the data validity ratio is relatively low, the valid part of the object data may be intercepted as the object data.
[0139] In one embodiment, the intercepted object data may be subjected to vector mapping processing to obtain a representation vector corresponding to each intercepted object data. For example, each intercepted object data may be matched with a preset vector mapping table, and a representation vector corresponding to each intercepted object data may be determined according to the matching result. The preset vector mapping table includes a mapping relationship between each intercepted object data and its representation vector.
[0140] Then, the representation vectors corresponding to each intercepted object data may be subjected to vector fusion processing to obtain data features. For example, each representation vector may be concatenated to obtain data features, and so on.
[0141] In one embodiment, the object data may also be positionally encoded (positional embedding) to obtain positional features corresponding to the object data. There are multiple ways to positionally encode the object data to obtain positional features corresponding to the object data. For example, the object data may be directly positionally encoded to obtain positional features corresponding to the object data. For another example, the object data may be positionally encoded based on the effective ratio of the data to obtain positional features corresponding to the object data.
[0142] When the position encoding of the object data is performed directly, the position encoding of the object data can be performed using trigonometric functions. For example, the position encoding of the object data can be performed according to the following formula:
[0143]
[0144]
[0145] Wherein, t may represent the position of a data unit in the object data. t It can represent the encoding corresponding to the data. i can be the index of the object data, and k is introduced to distinguish parity. d can be the dimension of the object data. Among them, a piece of data in the object data can be called a data unit.
[0146] In addition, the position of the object data can be encoded using artificial intelligence algorithms to obtain position features. For example, any artificial intelligence algorithm such as the Bidirectional Encoder Representations from Transformers (BERT) model, Convolutional Neural Networks (CNN) and De-Convolutional Neural Networks (DN) can be used to encode the position of the object data to obtain position features.
[0147] In one embodiment, the data features and the position features may be fused to obtain the object features. For example, the data features and the position features may be added or concatenated to obtain the object features.
[0148] For example, the data features and location features can be fused according to the following formula to obtain the object features. Specifically:
[0149]
[0150] in, There can be features representing data, P n can represent a position feature, and n can represent the nth data in the object data.
[0151] In one embodiment, by encoding the object data based on the effective data ratio, the effective data in the object data can be better utilized when encoding the object data. For example, when the interaction between the object and the application is relatively small, the interval between the generation time of each object operation data may be relatively large, and the object operation data in the recent period of time will be more important. When the interaction between the object and the application is relatively large, the object operation data in the recent period of time may be relatively less important because the object may browse a large number of different types of content in a very short time. By encoding the object data based on the effective data ratio, the accuracy of the object features can be improved.
[0152] In one embodiment, when the object data of the current data type is object description data, since the object description data is relatively fixed and may change slightly, feature encoding may be performed directly on the object description data to obtain object features.
[0153] For example, any artificial intelligence algorithm such as BERT, CNN, and DN can be used to encode the features of the object data to obtain the object features.
[0154] In one embodiment, when the object data of the current data type is object description data, the object description data may include data on multiple different dimensions. For example, the object description data may include basic data, long-term category data, and short-term category data, etc. Among them, the basic data may correspond to one dimension, the long-term category data may correspond to another dimension, and the short-term category data may correspond to another dimension.
[0155] The basic data may include an object identifier (ID), application usage time, and gender.
[0156] Among them, long-term category data may include long-term primary categories, long-term secondary categories, long-term labels, and the like.
[0157] Among them, short-term category data may include short-term primary categories, short-term secondary categories, short-term labels, and so on.
[0158] Therefore, when feature encoding is performed on the object description data, vector conversion processing can be performed on the data in different dimensions to obtain the representation vector corresponding to each data dimension. Then, the representation vectors corresponding to each data dimension are fused to obtain the target representation vector. Specifically, the step of "using the feature encoding method corresponding to the object data on each data type to perform feature encoding processing on the object data to obtain the object features corresponding to the object data on each data type" may include:
[0159] Perform vector conversion processing on data in multiple different data dimensions to obtain the representation vector corresponding to the data in each data dimension;
[0160] The representation vectors corresponding to the data in each data dimension are fused to obtain the target representation vector;
[0161] Perform full connection processing on the target representation vector to obtain a fully connected feature;
[0162] The fully connected features are activated to obtain object features.
[0163] In one embodiment, data on multiple different data dimensions may be subjected to vector conversion processing to obtain a characterization vector corresponding to the data on each data dimension. For example, the data on each data dimension may be matched with a preset vector mapping table, and the characterization vector corresponding to the data on each data dimension may be determined based on the matching result. The preset vector mapping table includes a mapping relationship between the data on each data dimension and its characterization vector.
[0164] Then, the representation vectors corresponding to the data in each data dimension may be fused to obtain a target representation vector. For example, each representation vector may be added or concatenated to obtain a target representation vector, and so on.
[0165] In one embodiment, the target representation vector may be fully connected to obtain a fully connected feature. For example, the target representation vector may be passed through two fully connected layers to obtain a fully connected feature. Then, the fully connected feature may be activated to obtain an object feature. For example, an activation function may be used to activate the fully connected feature to obtain an object feature. The activation function may include a Tanh function, a ReLU function, a Sigmoid function, and the like.
[0166] For example, data from multiple different data dimensions can be embedded and mapped into one embedding through masked average pooling. In addition, in order to make full use of information from different data dimensions, the representation vectors can be fused using concatenation to obtain the target representation vector. Then, the target representation vector can be processed through two fully connected layers plus the Tanh activation function to obtain the object features.
[0167] 103. Based on the object features corresponding to each data type, generate attribute features corresponding to the object.
[0168] In one embodiment, in order to filter out target content to be sent through object data, after obtaining the object features, attribute features corresponding to the object may be generated based on the object features corresponding to each data type.
[0169] Among them, object features focus on representing the object data of the object through digital space, while attribute features focus on representing the interests and hobbies of the object. By converting the object features of the object into attribute features, the target content to be sent to the object can be recommended based on the interests and hobbies of the object, thereby improving the accuracy of recommending the target content to be sent to the object.
[0170] In one embodiment, there are multiple ways to generate attribute features corresponding to the object based on the object features corresponding to each data type.
[0171] For example, artificial intelligence algorithms such as long short-term memory neural network (LSTM), sequence to sequence network (seq2seq), self-attention mechanism, or multi-head attention mechanism can be used to generate attribute features corresponding to the object based on the object features corresponding to each data type.
[0172] In one embodiment, in order to improve the accuracy of converting object features into attribute features, the object features corresponding to each data type may be fused to obtain fused features. Then, data features may be generated based on the fused features. Specifically, the step of "generating attribute features corresponding to the object based on the object features corresponding to each data type" may include:
[0173] Perform attention fusion on the object features corresponding to each data type to obtain fused features;
[0174] Perform probability distribution fitting on the fused features to obtain the probability distribution corresponding to the fused features;
[0175] Map probability distribution to attribute features corresponding to the object.
[0176] Among them, attention fusion may include fusing object features corresponding to each data type using attention.
[0177] Among them, the attention mechanism originates from the study of human vision. In cognitive science, due to the bottleneck of information processing, humans selectively focus on part of all information while ignoring other visible information. The above mechanism is usually called the attention mechanism. Different parts of the human retina have different degrees of information processing capabilities, that is, acuity, and only the fovea of the retina has the strongest acuity. In order to make rational use of limited visual information processing resources, humans need to select a specific part of the visual area and then focus on it. For example, when people read, usually only a small number of words to be read will be paid attention to and processed.
[0178] For example, the object features corresponding to the object operation data and the object description data may be fused using a self-attention mechanism to obtain fused features. For another example, the object features corresponding to the object operation data and the object description data may be fused using a multi-head self-attention mechanism to obtain fused features.
[0179] In one embodiment, the fused features may be subjected to probability distribution fitting processing to obtain the probability distribution corresponding to the fused features. For example, the probability distribution corresponding to the fused features may be calculated by probability calculation. For another example, the fused features may be mapped to a preset probability space, and the probability distribution corresponding to the fused features may be determined in the preset probability space.
[0180] In one embodiment, after the probability distribution corresponding to the fused features is obtained, the probability distribution may be mapped to the attribute features corresponding to the object.
[0181] For example, each attribute feature will also have a corresponding probability distribution. Therefore, the probability distribution corresponding to the fused feature and the probability distribution corresponding to the attribute feature can be matched to obtain the attribute feature corresponding to the probability distribution.
[0182] Since object data of different data types have different characteristics, by performing attention fusion on the object features corresponding to each data type, fused features can be generated according to different levels of attention, thereby improving the accuracy of attribute features.
[0183] 104. Perform content mapping processing on the attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions.
[0184] The content attribute information may be a representation of the content to be sent in a digital space. Through the content attribute information, it is possible to know which type of content the object is interested in.
[0185] In one embodiment, since the interests of an object are often diverse rather than singular, the attribute features may be mapped to content in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions. By mapping the attribute features to content in multiple attribute dimensions, the target content to be sent may be filtered for the object based on the multiple interests of the object, thereby improving the accuracy of filtering the target content to be sent.
[0186] There are multiple ways to perform content mapping processing on attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions.
[0187] In one embodiment, the self-attention mechanism can be used to perform content mapping processing on the attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions. Specifically, the step of "performing content mapping processing on the attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions" may include:
[0188] Based on the self-attention mechanism, information on at least two attribute dimensions is extracted from the attribute features to obtain multi-dimensional self-attention information corresponding to the attribute features;
[0189] Multi-dimensional self-attention information is used to transform attribute features into content attribute information of the object in at least two attribute dimensions.
[0190] Among them, by extracting information on at least two attribute dimensions, the attribute features of the object can be expanded to obtain multi-dimensional self-attention information of the object. By focusing on the attention information, the attribute features of the object can be represented in the latent space of interest. Specifically, the step of "using the self-attention mechanism to extract information on at least two attribute dimensions of the attribute features to obtain multi-dimensional self-attention information corresponding to the attribute features" may include:
[0191] Based on the self-attention mechanism, the attribute features are located to obtain the location information;
[0192] Based on the self-attention mechanism, the positioning information is mapped to the multi-dimensional content attribute feature space to obtain the mapping result;
[0193] Based on the self-attention mechanism, the mapping results are processed by logistic regression to obtain multi-dimensional self-attention information.
[0194] Among them, feature locating of attribute features based on the self-attention mechanism may refer to focusing on key information in the attribute features based on the self-attention mechanism.
[0195] Among them, the self-attention mechanism can have multiple adjustable parameters, so the parameters in the self-attention mechanism can be used to locate the attribute features and obtain positioning information. For example, the parameters in the self-attention mechanism and the attribute features can be multiplied and then trigonometric functions can be used to locate and obtain positioning information.
[0196] Then, the positioning information can be mapped to the multidimensional content attribute feature space based on the self-attention mechanism to obtain a mapping result. For example, the positioning information and the preset multidimensional space attribute parameter in the self-attention mechanism can be multiplied to map the positioning information to the multidimensional content attribute feature space. The preset multidimensional space attribute parameter can be a trained matrix that can accurately map the positioning information to the multidimensional content attribute feature space.
[0197] Then, based on the self-attention mechanism, the mapping result can be subjected to logistic regression processing to obtain multi-dimensional self-attention information. Among them, the mapping result can be subjected to logistic regression processing using the logistic regression function carried in the self-attention mechanism to obtain multi-dimensional self-attention information. For example, the mapping result can be subjected to logistic regression processing using a softmax function to obtain multi-dimensional self-attention information.
[0198] In one embodiment, information extraction on at least two attribute dimensions may be performed on the attribute feature according to the following formula to obtain multi-dimensional self-attention information corresponding to the attribute feature, specifically:
[0199]
[0200] Among them, H d×n It can represent attribute features, n is the length of the attribute feature, and d is the dimension of the attribute feature. and is a trainable parameter, K is the number of attribute dimensions, and A is the multi-dimensional self-attention information.
[0201] In one embodiment, after obtaining the multi-dimensional self-attention information, the attribute features can be converted into content attribute information of the object in at least two attribute dimensions using the multi-dimensional self-attention information.
[0202] For example, the attribute feature and the multi-dimensional self-attention information can be multiplied to obtain content attribute information in at least two attribute dimensions. For example, as shown in the following formula:
[0203] V u =HA
[0204] in, It can represent content attribute information on multiple attribute dimensions.
[0205] For another example, the attribute feature and the multi-dimensional self-attention information can be dot-multiplied to obtain content attribute information on at least two attribute dimensions, and so on.
[0206] In one embodiment, before extracting information on at least two attribute dimensions of attribute features based on the self-attention mechanism to obtain multi-dimensional self-attention information corresponding to the attribute features, the initial self-attention mechanism may be trained to obtain the self-attention mechanism. Specifically, the method proposed in the embodiment of the present application may also include:
[0207] Get the initial self-attention mechanism and object sample data;
[0208] Based on the object sample data, at least two target sample contents to be sent are screened out from the sample contents to be sent;
[0209] Calculate the compatibility information between the target sample content to be sent and the object sample data;
[0210] The initial self-attention mechanism is adjusted based on the fit information to obtain a self-attention mechanism.
[0211] Among them, the initial self-attention mechanism may include a mechanism that has not been trained and whose performance does not meet the requirements.
[0212] The object sample data may include data used when training the initial self-attention mechanism. For example, the object sample data may be data of the object on at least two data types, wherein the object sample data may be historical data of the object. In step 101, object data of the object on at least two data types is obtained, and the object data may be real-time data of the object.
[0213] The sample content to be sent may include the data used to train the initial self-attention mechanism.
[0214] In one embodiment, at least two target sample contents to be sent can be screened out from the sample contents to be sent based on the object sample data, that is, the initial self-attention mechanism can be trained using the object sample data. For example, feature encoding processing can be performed on the object sample data to obtain object sample features. Then, the object sample features can be used to obtain sample attribute features. Then, content mapping processing is performed on the sample attribute features to obtain sample content attribute information. Then, based on the sample content attribute information, at least two target sample contents to be sent are screened out from the sample contents to be sent. Among them, when content mapping processing is performed on the sample attribute features, the initial attention mechanism can be used to perform content mapping processing on the sample attribute features to obtain sample attribute features.
[0215] In one embodiment, the compatibility information between the target sample content to be sent and the object corresponding to the object sample data can be calculated. For example, the object sample data can be converted into object sample features. Then, the compatibility information between the target sample content to be sent and the object sample features is calculated. For example, the compatibility information between the target sample content to be sent and the object sample data can be calculated according to the following formula. Specifically:
[0216]
[0217] Among them, v u It can represent the sample characteristics of the object, e i It can represent the target sample content to be sent, P θ (i|u) can represent the fit information, i can represent the i-th content, and u can represent the u-th object.
[0218] In one embodiment, the initial self-attention mechanism may be adjusted based on the fit information to obtain the self-attention mechanism. For example, the fit information may be converted into loss information, and then the initial self-attention mechanism may be adjusted based on the loss function to obtain the self-attention mechanism.
[0219] Among them, the fit information can be converted into loss information according to the following formula:
[0220]
[0221] Then, the loss information loss can be used to adjust the parameters in the initial self-attention mechanism to obtain the self-attention mechanism. For example, the initial self-attention mechanism can be shown as follows:
[0222]
[0223] When adjusting the parameters in the initial self-attention mechanism, the parameters W2 and W1 can be adjusted.
[0224] In one embodiment, by performing content mapping processing on attribute features in multiple attribute dimensions through a self-attention mechanism, the attribute features of the object can be expanded while focusing on the key points, thereby improving the accuracy of the obtained content attribute information.
[0225] In one embodiment, the present application embodiment proposes a global attribute embedding dictionary, which can be used to perform content mapping processing on attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions. Specifically, the step of "performing content mapping processing on attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions" may include:
[0226] Obtaining a global attribute embedding dictionary, the global attribute embedding dictionary including a plurality of reference content attribute information, wherein different reference content attribute information corresponds to different attribute dimensions;
[0227] Calculating similarity information between multiple reference content attribute information and attribute features;
[0228] According to the similarity information, content attribute information in at least two attribute dimensions is screened out from the plurality of reference content attribute information.
[0229] Among them, the global attribute embedding dictionary can represent all the considered interest sets. The interest attribute embedding dictionary can be learned, and the total number of interests in the interest attribute embedding dictionary can be a hyperparameter, which can be set according to the characteristics of the task. For example, in a certain application, the total number of interests of the object can be divided into 50, and the global attribute embedding dictionary includes 50 reference content attribute information, that is, it can be considered that in the total interest space, the implicit interests of the object can be distinguished by the 50 reference content attribute information, and the implicit interests can be clustered into 50 categories by the interests of all users. These interests can also be considered to reflect the important interest distribution of most objects. Among them, the reference content attribute information can be the representation of the content to be sent in the digital space.
[0230] In one embodiment, similarity information between multiple reference content attribute information and attribute features may be calculated. There are multiple ways to calculate the similarity information between multiple reference content attribute information and attribute features. For example, the similarity information between multiple reference content attribute information and attribute features may be calculated by cosine similarity, Euclidean distance, or Pearson correlation coefficient.
[0231] For example, the cosine similarity between the attribute feature and each reference content attribute information may be calculated to obtain similarity information.
[0232] In one embodiment, content attribute information on at least two attribute dimensions may be screened out from multiple reference content attribute information based on similarity information. For example, the similarity information may be sorted, and then topK most similar reference content attribute information may be selected as content attribute information.
[0233] In one embodiment, since the global attribute embedding dictionary can be learned, the method proposed in the embodiment of the present application may further include:
[0234] Acquire an initial attribute embedding dictionary and object sample data, wherein the initial attribute embedding dictionary includes a plurality of initial content attribute information;
[0235] Based on the object sample data, at least two target sample contents to be sent are screened out from the sample contents to be sent;
[0236] Calculate the loss information between the target sample content to be sent and the preset sample label;
[0237] The initial content attribute information in the initial attribute embedding dictionary is updated based on the loss information to obtain a global attribute embedding dictionary.
[0238] In one embodiment, at least two target sample contents to be sent can be screened out from the sample contents to be sent based on the object sample data, that is, the initial attribute embedding dictionary can be trained using the object sample data. For example, feature encoding processing can be performed on the object sample data to obtain object sample features. Then, the object sample features can be used to obtain sample attribute features. Then, based on the sample content attribute information, at least two target sample contents to be sent can be screened out from the sample contents to be sent. Among them, when content mapping processing is performed on the sample attribute features, the sample attribute features can be content mapped using the initial attribute embedding dictionary to obtain the sample attribute features.
[0239] In one embodiment, the loss information between the target sample content to be sent and the preset sample label can be calculated; then, the initial content attribute information in the initial attribute embedding dictionary is updated based on the loss information to obtain a global attribute embedding dictionary.
[0240] In one embodiment, the content attribute information of the object in at least two attribute dimensions is obtained by using a global attribute embedding dictionary to perform content mapping processing on attribute features in multiple attribute dimensions. Since the scope of the content attribute information is limited in the global attribute embedding dictionary, it is easier to learn the global attribute embedding dictionary, that is, learning is performed within the limited scope, so that the accuracy of the learned global attribute embedding dictionary will be higher. In addition, when the object sample data is relatively sparse, since the scope of the content attribute information is limited in the global attribute embedding dictionary, the initial attribute embedding dictionary will not be disturbed by indifferent interests during the learning process, so that the accuracy of the global attribute embedding dictionary will be higher. Since the accuracy of the global attribute embedding dictionary will be relatively high, the accuracy of the content attribute information obtained based on the global attribute embedding dictionary will also be higher, thereby improving the accuracy of screening out the target content to be sent.
[0241] 105. Based on the content attribute information in at least two attribute dimensions, at least two target contents to be sent are screened out from the contents to be sent, and the target contents to be sent are sent to the object.
[0242] In one embodiment, at least two target contents to be sent may be screened out from the contents to be sent based on the content attribute information in at least two attribute dimensions, and the target contents to be sent may be sent to the object.
[0243] When at least two target contents to be sent are screened, a large number of results can be firstly recalled from the contents to be sent based on the content attribute information in at least two attribute dimensions. Then, a large number of recalled results can be screened again according to specific rules (e.g., timeliness, region, diversity, etc.) to obtain the target contents to be sent.
[0244] Among them, after the target content to be sent is screened out, the target content to be sent can be sorted, and the sorted results can be displayed to the object. For example, the target content to be sent that the object is more interested in can be sorted in front, and the target content to be sent that the object is less interested in can be sorted in the back. For another example, when sorting the target content to be sent, the target content to be sent can be sorted using a click-through rate prediction model. For example, the target content to be sent that the object is more likely to click can be sorted in front, and the target content to be sent that the object is less likely to click can be sorted in the back.
[0245] In addition, since the recall results are screened again, when the target contents to be sent are sorted, the calculation scale for sorting the target contents to be sent can be reduced, thereby improving the sorting efficiency.
[0246] In one embodiment, since the online context of the object is dynamic when using the application, that is, the content browsed by the object in the application changes dynamically, the embodiment of the present application can obtain the object data of the object in at least two data types online and generate the object features of the object online, so as to capture the interest preferences of the object at this moment in real time.
[0247] As can be seen from the above, this embodiment can obtain the object data of the object on at least two data types; perform feature encoding processing on the object data on at least two data types to obtain the object features corresponding to the object data on each data type; generate the attribute features corresponding to the object based on the object features corresponding to each data type; perform content mapping processing on the attribute features in multiple attribute dimensions to obtain the content attribute information of the object in at least two attribute dimensions; based on the content attribute information in at least two attribute dimensions, filter out at least two target contents to be sent from the contents to be sent, and send the target contents to be sent to the object. In the embodiment of the present application, firstly, at least two target contents to be sent will be filtered out based on the object data on at least two data types, and the target contents to be sent will be sent to the object. Since it is based on the object data on at least two data types, the filtered out at least two target contents to be sent will be more reliable, so the accuracy of filtering out the target contents to be sent is improved. Secondly, in the embodiment of the present application, the attribute features will be processed with content mapping in multiple attribute dimensions, that is, the contents that the object will be interested in will be considered from multiple attribute dimensions, so the accuracy of filtering out the target contents to be sent can be further improved.
[0248] According to the method described in the above embodiment, the following will be further described in detail by taking the example that the content sending device is specifically integrated in the server.
[0249] The present application embodiment provides a content sending method, such as Figure 2a As shown, the specific process of the content sending method can be as follows:
[0250] 201. The server obtains object data of an object in at least two data types.
[0251] For example, Figure 2b and 2c As shown, the server can obtain object data of at least two data types of an object in an application. The application can be a social software.
[0252] The object data of at least two data types may include object operation data and object description data.
[0253] The object description data may include data in multiple data dimensions. For example, the object description data may include basic data, long-term category data, and short-term category items.
[0254] 202. The server performs feature encoding processing on object data of at least two data types to obtain object features corresponding to the object data of each data type.
[0255] For example, Figure 2b and 2c As shown in the figure, for object description data, the basic data, long-term category data and short-term category data can be respectively transformed into vectors (Embedding), and they can be mapped into an embedding by masked average pooling. In order to make full use of the three levels of information, they can be fused by splicing, and the representation ability of object features can be further improved by two fully connected layers plus Tanh activation function.
[0256] For example, Figure 2b and 2cAs shown in the figure, for object operation data, it is considered that the interactions between different objects and the content in social software may be more or less. For example, when there are fewer interactions, the time intervals between object operation data may be very different, so the historical object operation data of similar time is more important; when there are more interactions, the similar object operation data is not very important, because the object will browse a large number of different types of content in a short time. Therefore, the self-attention mechanism can be used to encode the object operation data, so that the self-attention mechanism can be used to focus on different patterns and key points. In addition, positional encoding (Positionnal Embedding) can be added to characterize the object operation data. Then, the data features and position features can be added to obtain the object features.
[0257] 203. The server generates attribute features corresponding to the object based on the object features corresponding to each data type.
[0258] For example, for example, Figure 2b and 2c As shown, the server can convert object features into attribute features based on the self-attention mechanism.
[0259] 204. The server performs content mapping processing on the attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions.
[0260] For example, Figure 2b As shown, the server can generate content attribute information corresponding to the object based on the object features corresponding to each data type according to the following formula:
[0261]
[0262] For example, Figure 2c As shown, the server can convert object features into content attribute information based on the global interest embedding dictionary.
[0263] 205. The server selects at least two target contents to be sent from the contents to be sent based on the content attribute information in at least two attribute dimensions, and sends the target contents to be sent to the object.
[0264] As can be seen from the above, the server of this embodiment can obtain the object data of the object on at least two data types; the server performs feature encoding processing on the object data on at least two data types to obtain the object features corresponding to the object data on each data type; the server generates the attribute features corresponding to the object based on the object features corresponding to each data type; the server performs content mapping processing on the attribute features in multiple attribute dimensions to obtain the content attribute information of the object in at least two attribute dimensions; the server screens out at least two target contents to be sent from the contents to be sent based on the content attribute information in at least two attribute dimensions, and sends the target contents to be sent to the object. In the embodiment of the present application, firstly, at least two target contents to be sent will be screened out based on the object data on at least two data types, and the target contents to be sent will be sent to the object. Since it is based on the object data on at least two data types, the at least two target contents to be sent that are screened out will be more reliable, so the accuracy of the target contents to be sent that are screened out will be improved. Secondly, in the embodiment of the present application, the attribute features will be processed with content mapping in multiple attribute dimensions, that is, the contents that the object will be interested in will be considered from multiple attribute dimensions, so the accuracy of the target contents to be sent that are screened out can be further improved.
[0265] In order to better implement the above method, the embodiment of the present application also provides a content sending device, such as Figure 3 As shown, the content sending device may include an acquisition unit 301, a feature encoding unit 302, a generation unit 303, a content mapping unit 304 and a screening unit 305, as follows:
[0266] An acquisition unit 301 is used to acquire object data of an object in at least two data types;
[0267] A feature encoding unit 302 is used to perform feature encoding processing on the object data of the at least two data types to obtain object features corresponding to the object data of each data type;
[0268] A generating unit 303, configured to generate attribute features corresponding to the object based on the object features corresponding to each data type;
[0269] A content mapping unit 304 is used to perform content mapping processing on the attribute feature in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions;
[0270] The screening unit 305 is configured to screen out at least two target contents to be sent from the contents to be sent based on the content attribute information in the at least two attribute dimensions, and send the target contents to be sent to the object.
[0271] In one embodiment, the content mapping unit 304 may include:
[0272] A first acquisition subunit is used to acquire a global attribute embedding dictionary, wherein the global attribute embedding dictionary includes a plurality of reference content attribute information, wherein different reference content attribute information corresponds to different attribute dimensions;
[0273] A first calculation subunit, configured to calculate similarity information between the plurality of reference content attribute information and the attribute feature;
[0274] The first screening subunit is configured to screen out content attribute information in at least two attribute dimensions from the plurality of reference content attribute information according to the similarity information.
[0275] In one embodiment, the content mapping unit 304 may further include:
[0276] A second acquisition subunit is used to acquire an initial attribute embedding dictionary and object sample data, wherein the initial attribute embedding dictionary includes a plurality of initial content attribute information;
[0277] A second screening subunit is used to screen out at least two target sample contents to be sent from the sample contents to be sent based on the object sample data;
[0278] A second calculation subunit, used to calculate the loss information between the target sample content to be sent and the preset sample label;
[0279] The first updating subunit is used to update the initial content attribute information in the initial attribute embedding dictionary based on the loss information to obtain a global attribute embedding dictionary.
[0280] In one embodiment, the content mapping unit 304 may include:
[0281] An information extraction subunit, configured to extract information on at least two attribute dimensions of the attribute feature based on a self-attention mechanism, and obtain multi-dimensional self-attention information corresponding to the attribute feature;
[0282] A conversion subunit is used to convert the attribute features into content attribute information of the object in at least two attribute dimensions by using the multi-dimensional self-attention information.
[0283] In one embodiment, the information extraction subunit may include:
[0284] A feature positioning module, used to perform feature positioning on the attribute feature based on the self-attention mechanism to obtain positioning information;
[0285] A first mapping module, configured to map the positioning information to a multi-dimensional content attribute feature space based on the self-attention mechanism to obtain a mapping result;
[0286] A logistic regression module is used to perform logistic regression processing on the mapping result based on the self-attention mechanism to obtain the multi-dimensional self-attention information.
[0287] In one embodiment, the content mapping unit 304 may further include:
[0288] The third acquisition subunit is used to obtain the initial self-attention mechanism and object sample data;
[0289] A third screening subunit is used to screen out at least two target sample contents to be sent from the sample contents to be sent based on the object sample data;
[0290] A third calculation subunit, used for calculating the compatibility information between the target sample content to be sent and the object sample data;
[0291] An adjustment subunit is used to adjust the initial self-attention mechanism based on the fit information to obtain a self-attention mechanism.
[0292] In one embodiment, the feature encoding unit 302 may include:
[0293] An identification subunit, used to identify the object data of the at least two data types, and obtain a feature encoding method corresponding to the object data of each data type;
[0294] The feature coding subunit is used to perform feature coding processing on the object data using the feature coding method corresponding to the object data on each data type to obtain the object features corresponding to the object data on each data type.
[0295] In one embodiment, the feature encoding subunit may include:
[0296] A vector conversion module, used to perform vector conversion processing on the data in the multiple different data dimensions to obtain a representation vector corresponding to the data in each data dimension;
[0297] The first fusion module is used to fuse the representation vectors corresponding to the data in each data dimension to obtain a target representation vector;
[0298] A fully connected module, used for performing a fully connected process on the target representation vector to obtain a fully connected feature;
[0299] The activation module is used to activate the fully connected features to obtain the object features.
[0300] In one embodiment, the feature encoding subunit may include:
[0301] An identification module, used for identifying the object data on the data type to obtain the effective data ratio of the object data;
[0302] A data encoding module, used to perform data encoding on the object data according to the effective data ratio, to obtain data features corresponding to the object data;
[0303] A position encoding module, used to perform position encoding on the object data to obtain position features corresponding to the object data;
[0304] The second fusion module is used to fuse the data feature and the position feature to obtain the object feature.
[0305] In one embodiment, the data encoding module may include:
[0306] An interception submodule, used for intercepting the object data according to the effective ratio of the data to obtain at least one intercepted object data;
[0307] A vector mapping submodule, used for performing vector mapping processing on the intercepted object data to obtain a representation vector corresponding to each intercepted object data;
[0308] The vector fusion submodule is used to perform vector fusion processing on the representation vector corresponding to each intercepted object data to obtain the data feature.
[0309] In one embodiment, the generating unit 303 may include:
[0310] The attention fusion subunit is used to perform attention fusion on the object features corresponding to each data type to obtain fused features;
[0311] A distribution fitting subunit, used for performing probability distribution fitting processing on the fused features to obtain a probability distribution corresponding to the fused features;
[0312] The feature mapping subunit is used to map the probability distribution to the attribute features corresponding to the object.
[0313] As can be seen from the above, in this embodiment, the acquisition unit 301 acquires the object data of the object on at least two data types; the feature encoding unit 302 performs feature encoding processing on the object data on at least two data types to obtain the object features corresponding to the object data on each data type; the generation unit 303 generates the attribute features corresponding to the object based on the object features corresponding to each data type; the content mapping unit 304 performs content mapping processing on the attribute features in multiple attribute dimensions to obtain the content attribute information of the object on at least two attribute dimensions; the screening unit 305 screens out at least two target contents to be sent from the contents to be sent based on the content attribute information on at least two attribute dimensions, and sends the target contents to be sent to the object. In the embodiment of the present application, at least two target contents to be sent are first screened out based on the object data on at least two data types, and the target contents to be sent are sent to the object. Since it is based on the object data on at least two data types, the screened out at least two target contents to be sent are more reliable, thereby improving the accuracy of the screened out target contents to be sent. Secondly, in the embodiment of the present application, the attribute features are subjected to content mapping processing in multiple attribute dimensions, that is, the content that the object may be interested in is considered from multiple attribute dimensions, thereby further improving the accuracy of screening out the target content to be sent.
[0314] The present application also provides an electronic device, such as Figure 4 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, and the electronic device may be a terminal or a server, etc. Specifically:
[0315] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0316] The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the electronic device and processes data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0317] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0318] The electronic device also includes a power supply 403 for supplying power to each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 403 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0319] The electronic device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0320] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, as follows:
[0321] Get object data of an object on at least two data types;
[0322] Performing feature coding processing on the object data of the at least two data types to obtain object features corresponding to the object data of each data type;
[0323] Based on the object features corresponding to each data type, generate attribute features corresponding to the object;
[0324] Performing content mapping processing on the attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions;
[0325] Based on the content attribute information in the at least two attribute dimensions, at least two target contents to be sent are screened out from the contents to be sent, and the target contents to be sent are sent to the object.
[0326] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0327] As can be seen from the above, this embodiment obtains object data of an object on at least two data types; performs feature encoding processing on the object data on at least two data types to obtain object features corresponding to the object data on each data type; generates attribute features corresponding to the object based on the object features corresponding to each data type; performs multi-attribute dimensional content mapping processing on the attribute features to obtain content attribute information of the object on at least two attribute dimensions; based on the content attribute information on at least two attribute dimensions, at least two target content to be sent are screened out from the content to be sent, and the target content to be sent is sent to the object, which can improve the accuracy of screening out the target content to be sent from massive content and sending it to the object.
[0328] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0329] To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the content sending methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:
[0330] Get object data of an object on at least two data types;
[0331] Performing feature coding processing on the object data of the at least two data types to obtain object features corresponding to the object data of each data type;
[0332] Based on the object features corresponding to each data type, generate attribute features corresponding to the object;
[0333] Performing content mapping processing on the attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions;
[0334] Based on the content attribute information in the at least two attribute dimensions, at least two target contents to be sent are screened out from the contents to be sent, and the target contents to be sent are sent to the object.
[0335] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0336] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0337] Since the instructions stored in the storage medium can execute the steps in any content sending method provided in the embodiments of the present application, the beneficial effects that can be achieved by any content sending method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0338] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in various optional implementations of the above-mentioned content sending aspect.
[0339] The above is a detailed introduction to a content sending method, device, electronic device and storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A content sending method, characterized in that: include: Acquire object data of an object on at least two data types, wherein the object data includes text, a character string or a picture; Performing feature coding processing on the object data of the at least two data types to obtain object features corresponding to the object data of each data type; Based on the object features corresponding to each data type, generate attribute features corresponding to the object; Performing content mapping processing on the attribute features in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions; Based on the content attribute information in the at least two attribute dimensions, at least two target contents to be sent are screened out from the contents to be sent, and the target contents to be sent are sent to the object; The performing multi-attribute-dimensional content mapping processing on the attribute feature to obtain content attribute information of the object in at least two attribute dimensions includes: Acquire a global attribute embedding dictionary, wherein the global attribute embedding dictionary includes a plurality of reference content attribute information, wherein different reference content attribute information corresponds to different attribute dimensions; Calculating similarity information between the plurality of reference content attribute information and the attribute features; According to the similarity information, content attribute information in at least two attribute dimensions is screened out from the plurality of reference content attribute information.
2. The method according to claim 1, characterized in that The method further comprises: Acquire an initial attribute embedding dictionary and object sample data, wherein the initial attribute embedding dictionary includes a plurality of initial content attribute information; Based on the object sample data, at least two target sample contents to be sent are screened out from the sample contents to be sent; Calculating loss information between the target sample content to be sent and the preset sample label; The initial content attribute information in the initial attribute embedding dictionary is updated based on the loss information to obtain a global attribute embedding dictionary.
3. The method according to claim 1, characterized in that The performing multi-attribute-dimensional content mapping processing on the attribute feature to obtain content attribute information of the object in at least two attribute dimensions includes: Extract information on at least two attribute dimensions of the attribute feature based on a self-attention mechanism to obtain multi-dimensional self-attention information corresponding to the attribute feature; The attribute features are converted into content attribute information of the object in at least two attribute dimensions using the multi-dimensional self-attention information.
4. The method according to claim 3, characterized in that The extracting information on at least two attribute dimensions of the attribute feature based on the self-attention mechanism to obtain multi-dimensional self-attention information corresponding to the attribute feature includes: Based on the self-attention mechanism, feature positioning is performed on the attribute feature to obtain positioning information; Based on the self-attention mechanism, mapping the positioning information into a multi-dimensional content attribute feature space to obtain a mapping result; Based on the self-attention mechanism, logistic regression processing is performed on the mapping result to obtain the multi-dimensional self-attention information.
5. The method according to claim 3, characterized in that: The method further comprises: Get the initial self-attention mechanism and object sample data; Based on the object sample data, at least two target sample contents to be sent are screened out from the sample contents to be sent; Calculating the compatibility information between the target sample content to be sent and the object sample data; The initial self-attention mechanism is adjusted based on the fit information to obtain a self-attention mechanism.
6. The method according to claim 1, characterized in that The performing feature encoding processing on the object data of the at least two data types to obtain object features corresponding to the object data of each data type includes: Identify the object data of the at least two data types to obtain a feature encoding method corresponding to the object data of each data type; The object data is subjected to feature encoding processing using a feature encoding method corresponding to the object data on each data type, so as to obtain object features corresponding to the object data on each data type.
7. The method according to claim 6, characterized in that The object data on the data type includes data on multiple different data dimensions; The method of performing feature encoding processing on the object data using the feature encoding method corresponding to the object data on each data type to obtain the object features corresponding to the object data on each data type includes: Performing vector conversion processing on the data in the multiple different data dimensions to obtain a representation vector corresponding to the data in each data dimension; The representation vectors corresponding to the data in each data dimension are fused to obtain the target representation vector; Performing full connection processing on the target representation vector to obtain a fully connected feature; The fully connected features are activated to obtain the object features.
8. The method according to claim 6, characterized in that The method of performing feature encoding processing on the object data using the feature encoding method corresponding to the object data on each data type to obtain the object features corresponding to the object data on each data type includes: Identifying the object data on the data type to obtain a valid data ratio of the object data; According to the effective ratio of the data, the object data is encoded to obtain data features corresponding to the object data; Performing position encoding on the object data to obtain position features corresponding to the object data; The data feature and the position feature are fused to obtain the object feature.
9. The method according to claim 8, characterized in that The step of encoding the object data according to the effective data ratio to obtain data features corresponding to the object data includes: According to the effective ratio of the data, the object data is intercepted to obtain at least one intercepted object data; Performing vector mapping processing on the intercepted object data to obtain a representation vector corresponding to each intercepted object data; The representation vector corresponding to each intercepted object data is subjected to vector fusion processing to obtain the data feature.
10. The method according to claim 1, characterized in that The generating the attribute features corresponding to the object based on the object features corresponding to each data type includes: Perform attention fusion on the object features corresponding to each data type to obtain fused features; Performing probability distribution fitting processing on the fused features to obtain probability distribution corresponding to the fused features; The probability distribution is mapped to the attribute features corresponding to the object.
11. A content sending device, characterized in that: include: An acquisition unit, used to acquire object data of an object in at least two data types, wherein the object data includes text, a character string or a picture; A feature encoding unit, used to perform feature encoding processing on the object data of the at least two data types to obtain object features corresponding to the object data of each data type; A generating unit, configured to generate attribute features corresponding to the object based on the object features corresponding to each data type; A content mapping unit, configured to perform content mapping processing on the attribute feature in multiple attribute dimensions to obtain content attribute information of the object in at least two attribute dimensions; A screening unit, configured to screen out at least two target contents to be sent from the contents to be sent based on the content attribute information in the at least two attribute dimensions, and send the target contents to be sent to the object; The content mapping unit is used to: Acquire a global attribute embedding dictionary, wherein the global attribute embedding dictionary includes a plurality of reference content attribute information, wherein different reference content attribute information corresponds to different attribute dimensions; Calculating similarity information between the plurality of reference content attribute information and the attribute features; According to the similarity information, content attribute information in at least two attribute dimensions is screened out from the plurality of reference content attribute information.
12. A computer device, characterized in that: It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the operations in the content sending method according to any one of claims 1 to 11.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the content sending method according to any one of claims 1 to 10.
14. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps in the content sending method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Creative content generation method, device and equipment of delivery information and medium
CN112699296A
