Product recommendation method and device
By obtaining user interaction data and attribute data, and using feature extraction and fusion modules to build a recommendation model, it solves the problem of inaccurate product recommendations caused by single data in the existing technology, and achieves precise marketing and marketing conversion for target users.
Patent Information
- Application Number
- CN202410908006.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technologies usually only consider a single piece of data in product recommendations, resulting in reduced model learning capabilities or loss of data information, making it impossible to accurately determine whether to recommend products to users, and thus preventing precise marketing.
By obtaining user interaction data and user attribute data, the feature extraction module and feature fusion module are used to extract and fuse feature data, and a preset recommendation model is built to determine the product recommendation value and decide whether to recommend products to target users.
It achieves precise marketing to target users, improves the accuracy and efficiency of product recommendations, and enhances user stickiness.
Smart Images

Figure CN118735647A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology and can also be used in the financial field, and in particular to a product recommendation method and device. Background Art
[0002] Before recommending a banking product (such as an electronic card) to a user, accurately determining whether a product recommendation is necessary for the user is of great significance for achieving precision marketing and promoting marketing conversion.
[0003] Existing technologies have applied machine learning models to product recommendations. However, existing modeling methods either consider only single data (such as user attribute data) for modeling, which reduces the model's learning ability and makes the model less effective, or manually extract features based on subjective experience and then aggregate the data. This method may cause data to aggregate prematurely, resulting in information loss. At the same time, subjective experience feature extraction may cause inaccurate feature extraction, time-consuming and labor-intensive. The above problems ultimately lead to the inability of existing technologies to accurately determine whether to recommend products to users, thereby failing to achieve precision marketing for users.
[0004] To address the above problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of this specification provide a product recommendation method and device to solve the problem that the existing technology cannot achieve accurate marketing to target users.
[0006] In a first aspect, an embodiment of this specification provides a product recommendation method, the method comprising:
[0007] Acquire user data of a target user, wherein the user data includes user interaction data and user attribute data;
[0008] The user data is input into a preset recommendation model to determine the product recommendation value for the target user; the preset recommendation model includes a feature extraction module and a feature fusion module, the feature extraction module is used to extract target feature data from the user interaction data, the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined based on the fused feature data;
[0009] A product recommendation result for the target user is determined based on the product recommendation value, and the product recommendation result is used to determine whether to recommend a product to the target user.
[0010] In some embodiments, the feature extraction module includes: a feature extraction unit and a splicing unit; accordingly, the feature extraction module is used to extract target feature data from the user interaction data, including:
[0011] Extracting feature data from the user interaction data using the feature extraction unit;
[0012] The feature data are spliced using the splicing unit to obtain target feature data.
[0013] In some embodiments, the user interaction data includes transaction sequence data, a transaction code corresponding to the transaction sequence data, and other sequence data except the transaction sequence data; accordingly, the extracting feature data from the user interaction data using the feature extraction unit includes:
[0014] Extracting first feature data from the transaction sequence data and second feature data from other sequence data using the feature extraction unit;
[0015] Correspondingly, the step of using the splicing unit to splice the feature data to obtain target feature data includes:
[0016] Converting the transaction code into a transaction vector;
[0017] Concatenating the first feature data with the corresponding transaction vector to obtain transaction feature data;
[0018] The transaction feature data and the second feature data are concatenated to obtain target feature data.
[0019] In some embodiments, the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, including:
[0020] Performing attention calculation on the target feature data and the user attribute data respectively;
[0021] The attention calculation result of the target feature data and the attention calculation result of the user attribute data are spliced to obtain fused feature data.
[0022] In some embodiments, the preset recommendation model further includes: a mapping module and an output module; accordingly, the product recommendation value is determined according to the fusion feature data, including:
[0023] Inputting the fused feature data into the mapping module, performing nonlinear transformation on the fused feature data, and mapping the fused feature data after the nonlinear transformation;
[0024] The mapped fusion feature data is input into the output module to obtain the product recommendation value.
[0025] In some embodiments, the step of inputting the mapped fusion feature data into an output module to obtain a product recommendation value includes:
[0026] Performing dimensionality reduction processing on the mapped fusion feature data to obtain dimensionality reduction target feature data;
[0027] The reduced-dimensional feature data is mapped to an output terminal based on an activation function in an output module to obtain a product recommendation value.
[0028] In some embodiments, determining the product recommendation result for the target user according to the product recommendation value includes:
[0029] Compare the product recommendation value with a preset product recommendation threshold;
[0030] When the product recommendation value is greater than or equal to a preset product recommendation threshold, recommending the product to the target user;
[0031] When the product recommendation value is less than a preset product recommendation threshold, no product recommendation is made to the target user.
[0032] In a second aspect, the embodiments of this specification also provide a product recommendation device, the device comprising:
[0033] An acquisition module, used to acquire user data of a target user, wherein the user data includes user interaction data and user attribute data;
[0034] A determination module, used to input the user data into a preset recommendation model to determine the product recommendation value for the target user; the preset recommendation model includes a feature extraction module and a feature fusion module, the feature extraction module is used to extract target feature data from the user interaction data, the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined based on the fused feature data;
[0035] The recommendation module is used to determine the product recommendation result for the target user according to the product recommendation value, and the product recommendation result is used to determine whether to recommend the product to the target user.
[0036] In a third aspect, an embodiment of the present specification also provides a computer device, including a memory, a processor, and a computer program / instructions stored in the memory, wherein the processor executes the computer program / instructions to implement the steps of the above-mentioned product recommendation method.
[0037] In a fourth aspect, the embodiments of this specification also provide a computer-readable storage medium having a computer program / instruction stored thereon, which implements the steps of the above-mentioned product recommendation method when the computer program / instruction is executed by a processor.
[0038] In a fifth aspect, the embodiments of this specification also provide a computer program product, and when the computer program / instructions are executed by a processor, the steps of the above-mentioned product recommendation method are implemented.
[0039] The embodiment of this specification provides a product recommendation method and device. First, the user data of the target user is obtained, and the user data includes user interaction data and user attribute data. Then, the user data is input into a preset recommendation model to determine the product recommendation value of the target user; the preset recommendation model includes a feature extraction module and a feature fusion module, the feature extraction module is used to extract the target feature data in the user interaction data, and the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined according to the fused feature data. Finally, according to the product recommendation value, the product recommendation result of the target user is determined, and the product recommendation result is used to determine whether to recommend a product to the target user. In the embodiment of this specification, by obtaining user interaction data and user attribute data, these two types of data can be integrated in the subsequent process to fully and accurately mine the characteristics of the user, laying the foundation for realizing precision marketing for the target user. By extracting the target feature data in the user interaction data, a data basis can be provided for the subsequent comprehensive target feature data to accurately determine the product recommendation value of the target user. By using the feature fusion module to fuse the target feature data and the user attribute data to obtain the fused feature data, the product recommendation value of the target user can be accurately determined, solving the problem that the prior art only considers a single data (such as: only considers the user attribute data) and cannot accurately determine whether it is necessary to recommend products to the target user, thereby failing to achieve precision marketing for the target user. The preset recommendation model in the embodiment of this specification can accurately and quickly obtain the product recommendation value of the target user, so that it can accurately determine whether it is necessary to recommend products to the target user based on the product recommendation value of the target user, thereby achieving precision marketing for the target user, which helps to promote marketing conversion and increase user stickiness. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0041] Figure 1 It is a flowchart of a product recommendation method provided in an embodiment of this specification;
[0042] Figure 2 is a schematic diagram of the structure of a feature extraction module provided in an embodiment of this specification;
[0043] Figure 3 It is a schematic diagram of the overall structure of the feature fusion module and the mapping module provided in the embodiments of this specification;
[0044] Figure 4 is a schematic diagram of a specific structure of a mapping module provided in an embodiment of this specification;
[0045] Figure 5 It is a schematic diagram of the structure of a product recommendation device provided in an embodiment of this specification;
[0046] Figure 6 It is a schematic diagram of the structural composition of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0047] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0048] Before recommending banking products (such as electronic cards, which may include virtual cards or physical cards, such as credit cards, etc.) to users, accurately determining whether it is necessary to recommend products to the user is of great significance for achieving precision marketing and promoting marketing conversion.
[0049] Existing technologies have applied machine learning models to product recommendations. However, existing modeling methods either consider only single data (such as user attribute data) for modeling, which reduces the model's learning ability and makes the model less effective, or manually extract features based on subjective experience and then aggregate the data. This method may cause data to aggregate prematurely, resulting in information loss. At the same time, extracting features based on subjective experience may cause inaccurate feature extraction, time-consuming and labor-intensive. The above problems ultimately lead to the inability of existing technologies to accurately determine whether to recommend products to users, thereby failing to achieve precision marketing for users.
[0050] In view of the above-mentioned problems existing in the existing methods and the specific reasons for the above-mentioned problems, the present application considers introducing a product recommendation method and device, which can accurately determine whether to recommend a product to a target user, thereby realizing precision marketing to the target user.
[0051] Based on the above ideas, this specification proposes a product recommendation method. First, the user data of the target user is obtained, and the user data includes user interaction data and user attribute data. Then, the user data is input into a preset recommendation model to determine the product recommendation value of the target user; the preset recommendation model includes a feature extraction module and a feature fusion module, the feature extraction module is used to extract the target feature data from the user interaction data, and the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined according to the fused feature data. Finally, according to the product recommendation value, the product recommendation result of the target user is determined, and the product recommendation result is used to determine whether to recommend a product to the target user.
[0052] It should be noted that the user information (including but not limited to user identity information, user credit information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0053] It should be noted that the terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so as to describe the embodiments of the present application described herein.
[0054] It should also be noted that in the embodiments of this specification, certain software, components, models and other existing solutions in the industry may be mentioned. They should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.
[0055] Figure 1It is a flowchart of a product recommendation method provided by an embodiment of this specification. Although this specification provides method operation steps or device structures as shown in the following embodiments or drawings, the method or device may include more or fewer operation steps or module units after partial merger based on routine or no creative labor. In the steps or structures that do not logically have a necessary causal relationship, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure shown in the embodiments or drawings of this specification. When the method or module structure is applied to an actual device, server or terminal product, it can be executed sequentially or in parallel according to the method or module structure shown in the embodiments or drawings (for example, in an environment of parallel processors or multi-threaded processing, or even including distributed processing, server cluster implementation environment). For specific implementation, refer to Figure 1 As shown, the method may include the following contents.
[0056] S101: Acquire user data of a target user, where the user data includes user interaction data and user attribute data.
[0057] In some embodiments, the target user may be a bank user to be recommended a product, and the bank user may represent a user who has registered with the bank or a user who has handled business at the bank, etc. This specification does not specifically limit this. The user data of the target user may include user interaction data and user attribute data, and the user interaction data may include user identification data and user interaction sequence data. Among them, the user identification data may include but is not limited to: user identifier, which is generally a customer number, and the user interaction sequence data may include but is not limited to: user transaction or consumption data, user access data, user business data, and these interaction sequence data all change with time. The user transaction or consumption data may include all transaction records or consumption records of the target user within a period of time, and the transaction record or consumption record may include a transaction code (mcc code) and transaction sequence data. Each transaction record or consumption record has a transaction sequence data, and the transaction sequence data corresponds to a transaction code, which can be stored in the form of a key-value pair, that is, the transaction code can be stored in the key, and the sequence data corresponding to the transaction code can be stored in the value. Among them, the transaction sequence data may include the transaction amount, payment method, transaction location, transaction time, etc. of the target user, and this specification does not limit this. Storage methods include: {"Transaction Code 1": "Amount 1", "Payment Method 1", "Location 1"}, {"Transaction Code 2": "Amount 2", "Payment Method 2", "Location 2"}, {"Transaction Code 3": "Amount 3", "Payment Method 3", "Location 3"}, etc. User access data includes: access data when users access Apps and mini-programs, etc. User business data may include user bill installments, loans, user credit status (such as the number of overdue accounts and overdue amounts within a period of time), etc. The above-mentioned user attribute data can be used to describe the characteristics of the target users, and may include user identity information (such as occupation, education level, etc., which is not specifically limited in this manual). User attribute data belongs to low-dimensional data and does not need to enter the feature extraction module, but can directly enter the feature fusion module for feature fusion. By obtaining user interaction data and user attribute data, these two types of data can be combined in the future to fully and accurately explore the characteristics of users, laying the foundation for achieving precision marketing to target users.
[0058] S102: Input the user data into a preset recommendation model to determine the product recommendation value for the target user; the preset recommendation model includes a feature extraction module and a feature fusion module, the feature extraction module is used to extract target feature data from the user interaction data, the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined based on the fused feature data.
[0059] In some embodiments, the feature extraction module may include: a feature extraction unit and a splicing unit; accordingly, the feature extraction module is used to extract target feature data from the user interaction data, and in specific implementation, may include:
[0060] Extracting feature data from the user interaction data using the feature extraction unit;
[0061] The feature data are spliced using the splicing unit to obtain target feature data.
[0062] In some embodiments, the user interaction data may include transaction sequence data, a transaction code corresponding to the transaction sequence data, and other sequence data except the transaction sequence data; accordingly, the feature extraction unit may extract feature data from the user interaction data, which may include:
[0063] Extracting first feature data from the transaction sequence data and second feature data from other sequence data using the feature extraction unit;
[0064] Accordingly, the above-mentioned splicing process of the feature data by using the splicing unit to obtain the target feature data may include:
[0065] Converting the transaction code into a transaction vector;
[0066] Concatenating the first feature data with the corresponding transaction vector to obtain transaction feature data;
[0067] The transaction feature data and the second feature data are concatenated to obtain target feature data.
[0068] In some embodiments, the above-mentioned preset recommendation model can be obtained by training a model combining a neural network and a transformer in advance according to user interaction data samples and user attribute data samples (such as: the neural network model is a convolutional neural network model (CNN), and the combined model can be: CNN-transformer, which is not specifically limited in this specification). Among them, the present application can train the CNN-transformer model to obtain the above-mentioned preset recommendation model, specifically utilizing the embedding layer (embedding), convolution layer (Convolution), pooling layer (Polling), full connection layer (Full Connection and softmax) in CNN, the self-attention mechanism in transformer, feedforward neural network (Feedforward Neural Network, FFN), etc. Among them, the transformer model is a deep learning model based on the self-attention mechanism. Compared with the traditional recurrent neural network (RNN) or convolutional neural network (CNN), the transformer model shows higher efficiency and better performance when processing long sequences. By using the CNN-transformer model to train the preset recommendation model, the advantages of convolution and self-attention mechanisms can be combined to improve the prediction accuracy of the model with lower computational overhead.
[0069] The above-mentioned preset recommendation model may include a feature extraction module and a feature fusion module. Among them, the feature extraction module may include a feature extraction unit and a splicing unit. The feature extraction unit may include a convolution layer. There may be multiple convolution kernels in the convolution layer. The multiple convolution kernels may be used to extract feature data from the interaction data (the feature data finally obtained may be one-dimensional feature data). For example, three one-dimensional convolution kernels may be set. The one-dimensional convolution kernel is represented as 1d conv, which can be used to process the one-dimensional sequence data input by the input layer. Specifically, the input interaction data may be mapped by three 1×1 convolution kernels to obtain rich feature data. The number of convolution layers, the number of convolution kernels in each convolution layer, and the dimension of the convolution kernel may also be set according to actual needs. This specification does not specifically limit this. For example, multiple convolution kernels of different sizes may also be set in the convolution layer. When the sizes of the multiple convolution kernels are different, the corresponding feature data may be extracted using convolution kernels of different sizes first, and then the feature data corresponding to the convolution kernels of different sizes may be fused to obtain the fused feature data, and the fused feature data may be used as the feature data extracted from the user interaction data. The interaction data may include transaction sequence data, transaction codes corresponding to the transaction sequence data, and other sequence data except the transaction sequence data. The feature extraction unit may be used to extract the first feature data in the transaction sequence data and the second feature data of other sequence data, such as user access data, user business data, etc. By setting multiple convolution kernels of different sizes in the convolution layer, features of different sizes may be obtained (e.g., large-size convolution kernels may capture global features, while small-size convolution kernels may capture local detail features), so that the feature data in the interaction data may be fully and accurately extracted, which may effectively enhance the expression ability of the model.
[0070] The above-mentioned splicing unit may include an embedding layer, through which the transaction code can be converted into a transaction vector, that is, the transaction code is represented in the form of a vector, and then the first feature data (one-dimensional feature data) extracted from the transaction sequence data can be spliced with the transaction vector to obtain transaction feature data. Since the above-mentioned target user may have multiple user transaction data (i.e., multiple transaction records or multiple consumption records), the above-mentioned feature extraction module (feature extraction unit, splicing unit) can be used to sequentially extract features from each transaction sequence data in multiple user transaction data (multiple transaction records or multiple consumption records) to obtain transaction feature data in each transaction sequence data, that is, a series of transaction feature data (multiple transaction feature data) can be obtained. The splicing unit can also be used to splice a series of transaction feature data and the second feature data extracted from other sequence data to obtain target feature data. By extracting the first feature data from the transaction sequence data and splicing the first feature data with the corresponding transaction vector, the transaction feature data can be accurately determined, and then the transaction feature data can be spliced with the second feature data of the other sequence data to obtain accurate and comprehensive target feature data, providing a data basis for subsequently accurately determining the product recommendation value of the target user.
[0071] See also Figure 2 As shown, Figure 2 A schematic diagram of the structure of the feature extraction module provided in the embodiments of this specification. Figure 2 In the example, the feature extraction unit may include three 1D convolution kernels, which are represented as 1d conv. These three 1D convolution kernels can be used to extract feature data 1 of transaction sequence data 1 (e.g., amount 1, payment method 1, location 1), feature data 2 of transaction sequence data 2 (e.g., amount 2, payment method 2, location 2), and feature data 3 of transaction sequence data 3 (e.g., amount 3, payment method 3, location 3). Then, the embedding layer in the concatenation unit is used to embed the transaction code (i.e., Figure 2 The transaction code corresponding to the transaction sequence data 2 is converted into transaction vector 2, and the transaction sequence data 2 is concatenated with the transaction vector 2 to obtain transaction feature data 2. The transaction code corresponding to the transaction sequence data 3 is converted into transaction vector 3, and the transaction sequence data 3 is concatenated with the transaction vector 3 to obtain transaction feature data 3. Finally, multiple transaction feature data can be obtained: the obtained transaction feature data 1, transaction feature data 2, and transaction feature data 3 (the transaction feature data is Figure 2 The mcc features in the result can eventually get a series of mcc features, that is, multiple mcc features).
[0072] In some embodiments, the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data. In specific implementation, it may include:
[0073] Performing attention calculation on the target feature data and the user attribute data respectively;
[0074] The attention calculation result of the target feature data and the attention calculation result of the user attribute data are spliced to obtain fused feature data.
[0075] In some embodiments, the feature fusion module may include a self-attention mechanism, which uses a weighted average operation based on the input feature context, and dynamically calculates the attention weight through the similarity function between related pixel pairs, which can capture more features, filter out reused information, and filter unimportant information. Among them, the self-attention mechanism may include a multi-head self-attention mechanism, which can perform multiple independent attention calculations on the input features, and splice the attention calculation results together as the final output. The above method can improve the expression and generalization capabilities of the model and speed up the calculation speed. Specifically, the target feature data (the target feature data is the output of the feature extraction module, that is, the output of the feature extraction module can be used as the input of the feature fusion module) and the user attribute data in the input feature fusion module (self-attention mechanism) can be subjected to multiple independent attention calculations, and then the attention calculation results of the target feature data and the attention calculation results of the user attribute data are spliced together to finally obtain the fused feature data. Among them, the attention calculation process of the target feature data can be: calculating the first similarity between the target feature data and the internal parameters of the self-attention mechanism, and then normalizing the first attention weight through the activation function (such as softmax function) inside the self-attention mechanism, and then weighted summing the first attention weight and the target feature data, that is, obtaining the attention calculation result of the target feature data, and the attention calculation result of the target feature data can represent the importance of the target feature data to the product recommendation value. The attention calculation process of the user attribute data can be: calculating the second similarity between the user attribute data and the internal parameters of the self-attention mechanism, and then normalizing the second attention weight through the activation function (such as softmax function) inside the self-attention mechanism, and then weighted summing the second attention weight and the user attribute data, that is, obtaining the attention calculation result of the user attribute data, and the attention calculation result of the user attribute data can represent the importance of the user attribute data to the product recommendation value. By using the feature fusion module to fuse the target feature data and the user attribute data to obtain the fused feature data, the product recommendation value of the target user can be accurately determined, which solves the problem that the prior art only considers a single data (such as: only considers the user attribute data) and cannot accurately determine whether it is necessary to recommend products to the target user, thereby failing to achieve precision marketing for the target user.
[0076] In some embodiments, the preset recommendation model may further include: a mapping module and an output module; accordingly, the product recommendation value is determined according to the fusion feature data, and in specific implementation, may include:
[0077] Inputting the fused feature data into the mapping module, performing nonlinear transformation on the fused feature data, and mapping the fused feature data after the nonlinear transformation;
[0078] The mapped fusion feature data is input into the output module to obtain the product recommendation value.
[0079] In some embodiments, the preset recommendation module may include a mapping module and an output module in addition to the feature extraction module and the feature fusion module. The mapping module may include an FFN layer (i.e., a feedforward neural network layer). The FFN layer may use an activation function called a "gated linear unit". This activation function can adaptively adjust the output response according to the characteristics of the input data. By using the gated linear unit, the FFN layer can maintain high efficiency and accuracy when processing complex language data. The FFN layer may be after self-attention. The FFN may serve as an auxiliary mechanism to focus on local information, while the self-attention may capture global information (the FNN after self-attention may be regarded as an encoder). The FFN may provide an independent, fully connected nonlinear transformation process for each input position. The FFN may perform a replicated nonlinear transformation on the input through a combination of two linear layers and an activation function, thereby enhancing the expressiveness of the features and helping the model to capture the features in the input in a replaceable manner. That is, the role of the FNN is to enhance the expressiveness of the features and improve the independent information between positions through nonlinear changes and mapping. Specifically, the fused feature data output by the feature fusion module (self-attention mechanism) can be input into the above-mentioned mapping module (FFN layer) to perform nonlinear transformation on the fused feature data, and then the fused feature data after the nonlinear transformation can be mapped. Finally, the mapped fused feature data can be input into the output module to obtain the product recommendation value for the target user.
[0080] See also Figure 3 As shown, Figure 3 This is a schematic diagram of the overall structure of the feature fusion module and mapping module provided in the embodiments of this specification. Figure 3 In the above-mentioned multiple MCC features and the above-mentioned user attribute data can be first input into the self-attention mechanism in the feature fusion module, and based on the self-attention mechanism, each MCC feature and the above-mentioned user attribute data can be fused to obtain fused feature data, and then the fused feature data output by the self-attention mechanism is input into the mapping module (FFN layer, i.e., gated FFN (gate-controlled FFN) in Figure 3) to perform nonlinear transformation on the fused feature data, and then the fused feature data after the nonlinear transformation is mapped to obtain the mapped fused feature data.
[0081] See also Figure 4 As shown, Figure 4 A schematic diagram of the specific structure of the mapping module provided in the embodiments of this specification. Figure 4 In the process, the mcc feature can be used as input and then transformed nonlinearly through two linear layers (i.e., two branches, one of which is provided with a nonlinear activation function sigmoid) respectively. Specifically, the output obtained through the linear layer containing the nonlinear activation function sigmoid is element-wise multiplied with the output obtained through the other linear layer. Finally, the feature data obtained after the dot multiplication operation is added to the input feature data through linear activation to obtain the output of the FFN layer, i.e., the fused feature data after the mapping mentioned above is obtained.
[0082] In some embodiments, the above-mentioned inputting the mapped fusion feature data into the output module to obtain the product recommendation value may include:
[0083] Performing dimensionality reduction processing on the mapped fusion feature data to obtain dimensionality reduction feature data;
[0084] The reduced-dimensional feature data is mapped to an output terminal based on an activation function in an output module to obtain a product recommendation value.
[0085] In some embodiments, the output module includes a pooling layer and a fully connected layer. Among them, the fused feature data after mapping can be subjected to dimensionality reduction processing in the pooling layer to obtain the target feature data after dimensionality reduction processing (the target feature data after dimensionality reduction processing can be a single vector). Specifically, the fused feature data after mapping can be subjected to a pooling operation to obtain the reduced dimensionality feature data after dimensionality reduction processing, such as: the fused feature data after mapping can be subjected to an average pooling operation or a maximum pooling operation or a global average pooling operation, etc., and a specific pooling operation form can be selected according to actual needs, and this specification does not specifically limit this. By performing a pooling operation on the fused feature data after mapping, unimportant feature data can be lost, the main feature data can be retained, and the model performance can be improved. The fully connected layer can include an activation function, in which each neuron receives the output of all neurons in the upper layer, and weights and sums these inputs, and then performs a nonlinear transformation through the activation function to obtain the output of the neuron. The activation function can be used to perform a nonlinear transformation on the fused feature data after mapping output by the above-mentioned mapping module, so as to realize mapping the input of the neuron to the output end, thereby improving the model performance, and a specific product recommendation value can be obtained through the above-mentioned activation function. Among them, the above-mentioned activation functions may include but are not limited to: Sigmoid, Tanh, ReLU, ELU and Softmax. A suitable activation function can be selected according to actual needs, and this specification does not make specific limitations on this.
[0086] In some embodiments, a loss function can also be constructed to measure the gap between the real product recommendation value and the product recommendation value output by the activation function. If the loss value calculated by the loss function (the gap or difference between the real product recommendation value and the output product recommendation value) is greater than the loss threshold, the model coefficient of the preset recommendation model can be adjusted with the goal of minimizing the loss value, so that the product recommendation value output by the output module is close to the real product recommendation value, thereby improving the accuracy of obtaining the product recommendation value. Among them, the loss function can include but is not limited to: mean square error, cross entropy.
[0087] S103: Determine a product recommendation result for the target user according to the product recommendation value, wherein the product recommendation result is used to determine whether to recommend a product to the target user.
[0088] In some embodiments, the above-mentioned determining the product recommendation result for the target user according to the product recommendation value may include:
[0089] Compare the product recommendation value with a preset product recommendation threshold;
[0090] When the product recommendation value is greater than a preset product recommendation threshold, recommending products to the target user;
[0091] When the product recommendation value is less than or equal to a preset product recommendation threshold, no product recommendation is made to the target user.
[0092] In some embodiments, the higher the product recommendation value is, the more it is necessary to recommend the product to the target user, and the lower the product recommendation value is, the less it is necessary to recommend the product to the target user. After obtaining the product recommendation value of the target user, the product recommendation value of the target user can be compared with a preset product recommendation threshold (which can be set according to actual needs, and this specification does not specifically limit this). The comparison result may include: the product recommendation value of the target user is greater than or equal to the preset product recommendation threshold, and the product recommendation value of the target user is less than the preset product recommendation threshold. When the comparison result is that the product recommendation value of the target user is greater than or equal to the preset product recommendation threshold, the product recommendation result of the target user can be determined to be "recommended", that is, the product can be recommended to the target user. When the comparison result is that the product recommendation value of the target user is less than the preset product recommendation threshold, the product recommendation result of the target user can be determined to be "not recommended", that is, the product can not be recommended to the target user.
[0093] In some embodiments, when the product recommendation value is greater than or equal to a preset product recommendation threshold, the product information to be recommended (such as product name, product details, etc.) can be sent to the target user's terminal device so that the target user can view the product information in time, thereby achieving precise marketing to the target user, helping to promote marketing conversion and increase user stickiness.
[0094] In some embodiments, the feature extraction module, feature fusion module, mapping module, and output module can also be applied in other business scenarios to conduct all-round mining of user features, and can be flexibly used in various downstream modeling tasks to greatly improve the expression ability of the model. For example, it can also be applied in risk assessment scenarios, using the above modules to build a risk assessment model to conduct all-round mining of user features in the risk assessment scenario, and finally output a risk assessment value to assess the user's risk level.
[0095] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For details, please refer to the description of the above-mentioned related processing related embodiments, and no further description is given here.
[0096] The above is an explanation of the present invention, however, it is worth noting that the specific embodiment is only for the purpose of better illustrating the present application and describing a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0097] The above method is described below in conjunction with a specific embodiment. However, it should be noted that this specific embodiment is only for better illustrating the present application and does not constitute an improper limitation on the present application.
[0098] Before specific implementation, the CNN-transformer model can be trained in advance based on user interaction data samples and user attribute data samples to obtain a preset recommendation model.
[0099] In the specific implementation, first, the user data of the target user is obtained. The user data may include user interaction data and user attribute data. The user interaction data may include transaction sequence data, transaction codes corresponding to the transaction sequence data, and other sequence data other than the transaction sequence data. Then, the user data is input into the preset recommendation model to determine the product recommendation value of the target user. Finally, according to the product recommendation value, the product recommendation result of the target user is determined, that is, whether to recommend the product to the target user is determined.
[0100] Specifically, the preset recommendation model may include a feature extraction module, a feature fusion module, a mapping module, and an output module. First, the feature extraction unit in the feature extraction module may be used to extract the first feature data in the transaction sequence data and the second feature data in other sequence data, and the splicing unit in the feature extraction module may be used to convert the transaction code into a transaction vector, and then the feature data in the transaction sequence data and the corresponding transaction vector may be spliced to obtain transaction feature data, and then the transaction feature data and the second feature data may be spliced to obtain target feature data. Then, the feature fusion module may be used to perform attention calculation on the target feature data and the user attribute data, respectively, and then the attention calculation results of the target feature data and the attention calculation results of the user attribute data may be spliced to obtain fused feature data. The mapping module may then be used to perform nonlinear transformation on the fused feature data, and the fused feature data after the nonlinear transformation may be mapped. Finally, the output module may be used to perform dimensionality reduction processing on the mapped fused feature data to obtain reduced dimensionality feature data, and the reduced dimensionality feature data may be mapped to the output end based on the activation function in the output module to obtain the product recommendation value for the target user. The product recommendation value of the target user may be compared with a preset product recommendation threshold. When the product recommendation value is greater than or equal to the preset product recommendation threshold, the product is recommended to the target user; otherwise, the product is not recommended to the target user.
[0101] The above method can accurately determine whether to recommend products to target users, thereby achieving precision marketing to target users.
[0102] Although this specification provides examples such as the following embodiments or the attached Figure 5The method operation steps or device structure shown in the figure, but based on routine or no creative labor, the method or device may include more or fewer operation steps or module units after partial merger. In the steps or structures that do not logically have a necessary causal relationship, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure shown in the embodiments of this specification or the drawings. When the method or module structure is applied to an actual device, server or terminal product, it can be executed sequentially or in parallel according to the method or module structure shown in the embodiments or drawings (for example, in an environment of parallel processors or multi-threaded processing, or even in an implementation environment of distributed processing and server clusters). Based on the above-mentioned product recommendation method, the embodiments of this specification also propose an embodiment of a product recommendation device. As Figure 5 As shown, the device may specifically include the following modules:
[0103] The acquisition module 501 may be used to acquire user data of a target user, wherein the user data includes user interaction data and user attribute data;
[0104] The determination module 502 may be used to input the user data into a preset recommendation model to determine the product recommendation value for the target user; the preset recommendation model includes a feature extraction module and a feature fusion module, the feature extraction module is used to extract target feature data from the user interaction data, the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined based on the fused feature data;
[0105] The recommendation module 503 may be used to determine a product recommendation result for the target user according to the product recommendation value, and the product recommendation result is used to determine whether to recommend a product to the target user.
[0106] In some embodiments, the feature extraction module in the above-mentioned determination module 502 may include: a feature extraction unit and a splicing unit; accordingly, the above-mentioned determination module 502 can be specifically used to use the feature extraction unit to extract feature data in the user interaction data; and use the splicing unit to splice the feature data to obtain target feature data.
[0107] In some embodiments, the user interaction data in the above-mentioned determination module 502 may include transaction sequence data, a transaction code corresponding to the transaction sequence data, and other sequence data except the transaction sequence data; accordingly, the above-mentioned determination module 502 may also be specifically used to extract the first feature data in the transaction sequence data and the second feature data in other sequence data by using the feature extraction unit; convert the transaction code into a transaction vector; concatenate the first feature data with the corresponding transaction vector to obtain transaction feature data; concatenate the transaction feature data and the second feature data to obtain target feature data.
[0108] In some embodiments, the above-mentioned determination module 502 can also be specifically used to perform attention calculation on the target feature data and the user attribute data respectively; splice the attention calculation results of the target feature data and the attention calculation results of the user attribute data to obtain fused feature data.
[0109] In some embodiments, the preset recommendation model in the above-mentioned determination module 502 may also include: a mapping module and an output module; accordingly, the above-mentioned determination module 502 may also be specifically used to input the fused feature data into the mapping module, perform nonlinear transformation on the fused feature data, and map the fused feature data after the nonlinear transformation; input the mapped fused feature data into the output module to obtain a product recommendation value.
[0110] In some embodiments, the above-mentioned determination module 502 can also be specifically used to perform dimensionality reduction processing on the mapped fusion feature data to obtain reduced-dimensionality feature data; map the reduced-dimensionality feature data to the output end based on the activation function in the output module to obtain a product recommendation value.
[0111] In some embodiments, the above-mentioned recommendation module 503 can be specifically used to compare the product recommendation value with a preset product recommendation threshold; when the product recommendation value is greater than or equal to the preset product recommendation threshold, the product is recommended to the target user; when the product recommendation value is less than the preset product recommendation threshold, the product is not recommended to the target user.
[0112] As can be seen from the above, a product recommendation device provided based on the embodiments of this specification can accurately determine whether to recommend a product to a target user, can achieve precision marketing for the target user, and help promote marketing conversion and increase user stickiness.
[0113] The embodiment of the present specification also provides an electronic device based on the product recommendation method, including a processor and a memory for storing processor executable programs / instructions, wherein the processor can perform the following steps according to the program / instructions when implemented: obtaining user data of a target user, wherein the user data includes user interaction data and user attribute data; inputting the user data into a preset recommendation model to determine a product recommendation value for the target user; the preset recommendation model includes a feature extraction module and a feature fusion module, wherein the feature extraction module is used to extract target feature data from the user interaction data, and the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined based on the fused feature data; based on the product recommendation value, determining a product recommendation result for the target user, and the product recommendation result is used to determine whether to recommend a product to the target user.
[0114] In order to complete the above instructions more accurately, refer to Figure 6 As shown, the embodiment of this specification also provides another specific electronic device, wherein the electronic device includes a network communication port 601, a processor 602 and a memory 603, and the above structures are connected through internal cables so that each structure can perform specific data interaction.
[0115] The network communication port 601 may be used to obtain user data of a target user, wherein the user data includes user interaction data and user attribute data;
[0116] The processor 602 may be specifically configured to input the user data into a preset recommendation model to determine a product recommendation value for a target user; the preset recommendation model includes a feature extraction module and a feature fusion module, the feature extraction module is configured to extract target feature data from the user interaction data, the feature fusion module is configured to fuse the target feature data and the user attribute data to obtain fused feature data, the product recommendation value is determined based on the fused feature data; a product recommendation result for the target user is determined based on the product recommendation value, and the product recommendation result is used to determine whether to recommend a product to the target user;
[0117] The memory 603 may be specifically used to store corresponding instruction programs.
[0118] In this embodiment, the network communication port 601 can be a virtual port that is bound to different communication protocols so that different data can be sent or received. For example, the network communication port can be a port responsible for web data communication, a port responsible for FTP data communication, or a port responsible for email data communication. In addition, the network communication port can also be a physical communication interface or communication chip. For example, it can be a wireless mobile network communication chip, such as GSM, CDMA, etc.; it can also be a Wifi chip; it can also be a Bluetooth chip.
[0119] In this embodiment, the processor 602 may be implemented in any appropriate manner. For example, the processor may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc. This specification does not limit this.
[0120] In this embodiment, the memory 603 may include multiple levels. In a digital system, anything that can store binary data can be a memory; in an integrated circuit, a circuit with a storage function but no physical form is also called a memory, such as RAM, FIFO, etc.; in a system, a storage device with a physical form is also called a memory, such as a memory stick, TF card, etc.
[0121] The embodiments of this specification also provide a computer storage medium based on the above-mentioned product recommendation method, wherein the computer storage medium stores a computer program / instruction, and when the computer program / instruction is executed, the following are achieved: obtaining user data of a target user, wherein the user data includes user interaction data and user attribute data; inputting the user data into a preset recommendation model to determine a product recommendation value for the target user; the preset recommendation model includes a feature extraction module and a feature fusion module, wherein the feature extraction module is used to extract target feature data from the user interaction data, and the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined based on the fused feature data; based on the product recommendation value, determining a product recommendation result for the target user, and the product recommendation result is used to determine whether to recommend a product to the target user.
[0122] In this embodiment, the storage medium includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, a hard disk (HDD), or a memory card. The memory may be used to store computer program instructions. The network communication unit may be an interface for network connection communication set in accordance with the standard specified by the communication protocol.
[0123] In this embodiment, the functions and effects specifically implemented by the program instructions stored in the computer storage medium can be explained in comparison with other implementations and will not be described in detail here.
[0124] The embodiments of this specification also provide a computer program product based on the above-mentioned product recommendation method, including a non-transitory computer-readable storage medium storing a computer program / instruction, wherein the computer program / instruction is operable to cause a computer to perform the following steps: obtaining user data of a target user, wherein the user data includes user interaction data and user attribute data; inputting the user data into a preset recommendation model to determine a product recommendation value for the target user; the preset recommendation model includes a feature extraction module and a feature fusion module, wherein the feature extraction module is used to extract target feature data from the user interaction data, and the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined based on the fused feature data; based on the product recommendation value, determining a product recommendation result for the target user, and the product recommendation result is used to determine whether to recommend a product to the target user.
[0125] Although the present specification provides method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps, and does not represent a unique execution order. When the device or client product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, product or device. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. The first, second, etc. words are used to represent the name, and do not represent any particular order.
[0126] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.
[0127] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media including storage devices.
[0128] Through the description of the above embodiments, it can be known that those skilled in the art can clearly understand that the present specification can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present specification can essentially be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in each embodiment of the present specification or some parts of the embodiments.
[0129] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. This specification can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0130] Although the present specification is described through embodiments, persons skilled in the art will appreciate that there are many variations of the present specification without departing from the spirit of the present specification, and it is intended that the appended claims include these variations without departing from the spirit of the present specification.
Claims
1. A product recommendation method, characterized in that: include: Acquire user data of a target user, wherein the user data includes user interaction data and user attribute data; Inputting the user data into a preset recommendation model to determine the product recommendation value for the target user; The preset recommendation model includes a feature extraction module and a feature fusion module, wherein the feature extraction module is used to extract target feature data from the user interaction data, and the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined according to the fused feature data; A product recommendation result for the target user is determined based on the product recommendation value, and the product recommendation result is used to determine whether to recommend a product to the target user.
2. The method according to claim 1, characterized in that The feature extraction module includes: a feature extraction unit and a splicing unit; accordingly, the feature extraction module is used to extract target feature data from the user interaction data, including: Extracting feature data from the user interaction data using the feature extraction unit; The feature data are spliced using the splicing unit to obtain target feature data.
3. The method according to claim 2, characterized in that The user interaction data includes transaction sequence data, a transaction code corresponding to the transaction sequence data, and other sequence data except the transaction sequence data; accordingly, the extracting feature data from the user interaction data using the feature extraction unit includes: Extracting first feature data from the transaction sequence data and second feature data from other sequence data using the feature extraction unit; Correspondingly, the step of using the splicing unit to splice the feature data to obtain target feature data includes: Converting the transaction code into a transaction vector; Concatenating the first feature data with the corresponding transaction vector to obtain transaction feature data; The transaction feature data and the second feature data are concatenated to obtain target feature data.
4. The method according to claim 1, characterized in that: The feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, including: Performing attention calculation on the target feature data and the user attribute data respectively; The attention calculation result of the target feature data and the attention calculation result of the user attribute data are spliced to obtain fused feature data.
5. The method according to claim 4, characterized in that The preset recommendation model further includes: a mapping module and an output module; accordingly, the product recommendation value is determined according to the fusion feature data, including: Inputting the fused feature data into the mapping module, performing nonlinear transformation on the fused feature data, and mapping the fused feature data after the nonlinear transformation; The mapped fusion feature data is input into the output module to obtain the product recommendation value.
6. The method according to claim 5, characterized in that The mapped fusion feature data is input into the output module to obtain the product recommendation value, including: Performing dimensionality reduction processing on the mapped fusion feature data to obtain dimensionality reduction feature data; The reduced-dimensional feature data is mapped to an output terminal based on an activation function in an output module to obtain a product recommendation value.
7. The method according to claim 1, characterized in that Determining the product recommendation result for the target user according to the product recommendation value includes: Compare the product recommendation value with a preset product recommendation threshold; When the product recommendation value is greater than or equal to a preset product recommendation threshold, recommending the product to the target user; When the product recommendation value is less than a preset product recommendation threshold, no product recommendation is made to the target user.
8. A product recommendation device, characterized in that: include: An acquisition module, used to acquire user data of a target user, wherein the user data includes user interaction data and user attribute data; A determination module, used to input the user data into a preset recommendation model to determine the product recommendation value for the target user; The preset recommendation model includes a feature extraction module and a feature fusion module, wherein the feature extraction module is used to extract target feature data from the user interaction data, and the feature fusion module is used to fuse the target feature data and the user attribute data to obtain fused feature data, and the product recommendation value is determined according to the fused feature data; The recommendation module is used to determine the product recommendation result for the target user according to the product recommendation value, and the product recommendation result is used to determine whether to recommend the product to the target user.
9. A computer device comprising a memory, a processor and a computer program / instruction stored in the memory, characterized in that: The processor executes the computer program / instructions to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program / instructions, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Information recommendation method, electronic device, storage medium and computer program product
CN119809746A
