Product recommendation method, device and computer equipment based on user matching
Through clustering and fully connected hidden layer models, it solves the problem in the existing technology of being unable to recommend products without the user purchasing, and achieves wider user matching and product recommendation applicability.
Patent Information
- Application Number
- CN201910662549.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-07-22
AI Technical Summary
The existing technology cannot recommend products when the user has not purchased the company's products, and there is a problem of limited use.
By receiving the customer information table input by the administrator, clustering is performed to obtain customer group information, and a fully connected hidden layer customer matching model is constructed, the model is trained to obtain the target customer group, and product information is filtered and recommended based on the target customer group.
It is possible to obtain matching user groups based on user matching and recommend target products even if the user has not purchased the company's products, thereby expanding the applicability and effect of product recommendations.
Smart Images

Figure CN110533453B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a product recommendation method, device, computer equipment and storage medium based on user matching. Background Art
[0002] In order to promote their own products, companies will push specific information about the products to users. Currently, the most widely used technology is to calculate the predicted scores of the customer's unrated products through the score prediction model and the score data of the customer's rated products, and select some products from the unrated products through the predicted scores and push them to the user. However, the product recommendation method in the prior art can only recommend the corresponding target product to the user if the user has purchased some of the products. If the user has not purchased the company's products, the target product cannot be recommended to the user. Therefore, the existing product recommendation method has limitations in actual use and cannot meet the actual needs of enterprises. Therefore, the existing technical methods have the problem of limited use when recommending products to users. Summary of the invention
[0003] The embodiments of the present invention provide a product recommendation method, apparatus, computer device and storage medium based on user matching, aiming to solve the problem of limited use when recommending products to users in the prior art methods.
[0004] In a first aspect, an embodiment of the present invention provides a product recommendation method based on user matching, which includes:
[0005] If a customer information table input by an administrator is received, the customers included in the customer information table are clustered according to a preset clustering rule to obtain customer group information, wherein the customer information table also includes product information purchased by each customer;
[0006] Constructing a customer matching model including input nodes and output nodes according to the customer group information and the preset fully connected hidden layer;
[0007] Training the constructed customer matching model according to preset training parameters to obtain a trained customer matching model;
[0008] If the recommended customer information input by the recommended customer through the user terminal is received, the recommended customer information is input into the trained customer matching model, and the customer group with the highest matching degree with the recommended customer in the customer matching model is obtained as the target customer group;
[0009] The product information in the customer information table is screened according to preset target product screening rules and the target customer group to obtain the target product and push it to the user terminal.
[0010] In a second aspect, an embodiment of the present invention provides a product recommendation device based on user matching, which includes:
[0011] A clustering unit, for clustering the customers included in the customer information table according to preset clustering rules to obtain customer group information if a customer information table input by an administrator is received, wherein the customer information table also includes product information purchased by each customer;
[0012] A customer matching model building unit, used to build a customer matching model including input nodes and output nodes according to the customer group information and a preset fully connected hidden layer;
[0013] A customer matching model training unit, used to train the constructed customer matching model according to preset training parameters to obtain a trained customer matching model;
[0014] A target customer group matching unit is used to input the recommended customer information input by the recommended customer through the user terminal, and obtain the customer group with the highest matching degree with the recommended customer in the customer matching model as the target customer group.
[0015] The product information screening unit is used to screen the product information in the customer information table according to preset target product screening rules and the target customer group to obtain the target product and push it to the user terminal.
[0016] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the product recommendation method based on user matching described in the first aspect is implemented.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the product recommendation method based on user matching described in the first aspect above.
[0018] The embodiments of the present invention provide a product recommendation method, device, computer equipment and storage medium based on user matching. According to the clustering rules, the customers included in the customer information table are clustered to obtain customer group information, a customer matching model is constructed according to the customer group information and the fully connected hidden layer, the customer matching model is trained according to the training parameters, and the target customer group corresponding to the recommended customer is obtained according to the trained customer matching model. According to the target product screening rules and the target customer group, the product information in the customer information table is screened to obtain the target product and push it. Through the above method, when the user has not purchased the company's products, a user group matching the user can be obtained based on user matching, and the target product corresponding to the user group can be further obtained and recommended to the customer. It has a wider applicability and has achieved good technical effects in actual application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0020] Figure 1 A flowchart of a product recommendation method based on user matching provided by an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of an application scenario of a product recommendation method based on user matching provided by an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of a sub-process of a product recommendation method based on user matching provided by an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of another sub-process of the product recommendation method based on user matching provided by an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of another sub-process of the product recommendation method based on user matching provided by an embodiment of the present invention;
[0025] Figure 6 A schematic diagram of another sub-process of the product recommendation method based on user matching provided by an embodiment of the present invention;
[0026] Figure 7 Another schematic diagram of a process flow of a product recommendation method based on user matching provided by an embodiment of the present invention;
[0027] Figure 8A schematic block diagram of a product recommendation device based on user matching provided by an embodiment of the present invention;
[0028] Fig. 9 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0031] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0032] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0033] See also Figure 1 , Figure 1 is a flowchart of a product recommendation method based on user matching provided by an embodiment of the present invention; Figure 2 Schematic diagram of application scenarios of the product recommendation method based on user matching provided in an embodiment of the present invention. The product recommendation method based on user matching is applied to the management server 10, and the method is executed by the application software installed in the management server 10, and the user terminal 20 establishes a network connection with the management server 10 to realize the transmission of data information. The management server 10 is used to execute the product recommendation method based on user matching to push the target product to the enterprise terminal of the customer to be recommended, and the user terminal 20 is a terminal device used to send data information to the management server 10, such as a desktop computer, a laptop computer, a tablet computer or a mobile phone. Figure 2The diagram only illustrates information transmission between the management server 10 and one user terminal 20 . In actual applications, the management server 10 may also transmit information to multiple user terminals 20 .
[0034] like Figure 1 As shown, the method includes steps S110 to S150.
[0035] S110: If a customer information table input by an administrator is received, cluster the customers included in the customer information table according to a preset clustering rule to obtain customer group information.
[0036] If a customer information table input by an administrator is received, the customers included in the customer information table are clustered according to preset clustering rules to obtain customer group information, wherein the customer information table contains customer information of multiple customers and information about products purchased by each customer. The administrator is the user of the management server, and the clustering rule is the rule information used to perform cluster analysis on all customers. After clustering customers based on customer information, similar customers can be classified into one customer group. After clustering all customers, customer group information containing multiple customer groups can be obtained.
[0037] For example, a customer information table is shown in Table 1.
[0038] Customer Name age Profession Hobbies Product Information Customer 1 28 lawyer running Product 1, Product 3 Customer 2 36 Civil servants travel Product 2 Customer 3 22 student swim Product 1 Client 4 31 Self-employed running Product 3, Product 4
[0039] Table 1
[0040] In one embodiment, if Figure 3 As shown, step S110 includes sub-steps S111 and S112.
[0041] S111 . Convert the customer information included in the customer information table into feature variables according to the feature variable conversion rule in the clustering rule.
[0042] The customer information contained in the customer information table is converted into a characteristic variable according to the characteristic variable conversion rule in the clustering rule. Specifically, the customer information includes information such as the customer's name, age, occupation, hobbies, etc. The characteristic variable conversion rule is the rule information used to convert the customer information of each customer into a characteristic variable. Each item of information in the customer information can be converted into a corresponding vector value through the characteristic variable conversion rule for representation, so each customer information can be converted into a multi-dimensional characteristic vector, that is, a characteristic variable. Each customer in the customer information table has corresponding customer information, so the customer information of all customers in the customer information table can be obtained. The customer information of all customers can be obtained and converted into corresponding characteristic variables through the characteristic variable conversion rule. The characteristic variable conversion rule is the rule used to convert customer information into a characteristic variable. Each item of information in the customer information corresponds to a vector value in the characteristic variable conversion rule.
[0043] For example, the customer information of the first customer in Table 1 includes several items of information: name "Customer 1", age "28", occupation "lawyer", and hobby "running". The vector value of the age information in the feature variable conversion rule is the numerical value of the information, the vector value corresponding to the occupation information "lawyer" is 5, and the vector value corresponding to the hobby information "running" is "12". The corresponding feature variable obtained by conversion is D = {28,5,12}.
[0044] S112: Clustering customers according to the clustering algorithm in the clustering rule and the characteristic variables to obtain customer group information including multiple customer groups.
[0045] According to the clustering algorithm in the clustering rule and the characteristic variables, customers are clustered to obtain customer group information containing multiple customer groups. The customer group information contains multiple customer groups and characteristic variable values of the centroid of each customer group. Specifically, the clustering algorithm is a K-means clustering algorithm. The number k of clusters required in the end is preset in the K-means clustering algorithm. Specifically, based on the three-dimensional coordinate system, the characteristic variables corresponding to each customer information are represented by point coordinates, and all three-dimensional coordinate points are clustered according to the value of k to obtain k customer groups and the three-dimensional coordinate value of the centroid of each customer group. The three-dimensional coordinate value of the centroid is also the characteristic variable value of the centroid.
[0046] For example, if K=15 is set in the K-means clustering algorithm, 15 customer groups and the characteristic variable value of the centroid of each customer group will be obtained. The centroid is the center point of the customer group, and the characteristic variable value of the centroid is the mean of all characteristic variables in the customer group.
[0047] S120: Construct a customer matching model including input nodes and output nodes according to the customer group information and the preset fully connected hidden layer.
[0048] A customer matching model including input nodes and output nodes is constructed according to the customer group information and the preset fully connected hidden layer. The customer group information is information obtained by clustering algorithm and includes multiple customer groups, each of which includes customer information of multiple customers and feature information of the corresponding centroid of the customer group. The customer matching model includes multiple input nodes and multiple output nodes, wherein each dimension in the customer feature variable corresponds to an input node, each customer group corresponds to an output node, each output node corresponds to an output node value, and the output node value can represent the matching degree between a certain customer and the customer group corresponding to the output node. Since the number of dimensions contained in the feature variables of each customer obtained by the conversion rules is the same, the same number of input nodes can be generated by the dimensions of the feature variables, and the same number of output nodes can be generated by the number of customer groups in the customer group information. The fully connected hidden layer is an intermediate layer used to connect the input nodes with the output nodes. The fully connected hidden layer contains several feature units, each of which is associated with all input nodes and all output nodes. The feature units can be used to reflect the relationship between each item of customer information and the customer group. The number of feature units can be set according to the customer group information. The preferred number of feature units can be set to 1 / 3-1 / 2 of the number of customer groups.
[0049] For example, if the number of customer groups in the customer group information is 15, the number of feature units may be set to 7.
[0050] In one embodiment, if Figure 4 As shown, step S120 includes sub-steps S121, S122, S123 and S124.
[0051] S121. Construct an input node of a customer matching model according to the dimensions of the customer characteristic variables in the customer group information.
[0052] The input nodes of the customer matching model are constructed according to the dimensions of the customer characteristic variables in the customer group information. Specifically, each dimension in the customer characteristic variables corresponds to an input node, so the same number of input nodes can be generated by the dimensions of the characteristic variables, and the dimensions contained in the characteristic variables correspond to the input nodes one by one.
[0053] S122. Construct an output node of a customer matching model according to the number of customer groups in the customer group information.
[0054] The output nodes of the customer matching model are constructed according to the customer group information. Specifically, each customer group corresponds to an output node, so the same number of output nodes can be generated according to the number of customer groups in the customer group information, and the customer groups in the customer group information correspond to the output nodes one by one.
[0055] S123, according to the feature units in the preset fully connected hidden layer and the constructed input nodes, a first formula group from the input node to the feature unit is constructed with the input node value as the input value and the feature unit value as the output value.
[0056] According to the multiple feature units in the preset fully connected hidden layer and the multiple input nodes constructed, the first formula group from the input node to the feature unit is constructed with the input node value as the input value and the feature unit value as the output value, wherein the first formula group includes formulas from all input nodes to all feature units. The input node is the node used to input the feature variable of a certain customer in the customer matching model, and the specific value of the input node is the input node value, which is also the vector value of the corresponding dimension in the feature variable of the customer. Since each input node corresponds to a dimension in the feature variable, all input node values correspond to one customer feature variable, and the feature unit value is the calculated value of the feature unit in the fully connected hidden layer.
[0057] For example, the input node value of an input node is x1, and the feature unit value of a feature unit is y1, then the formula from the input node to the feature unit is y1=a×x1+b; where a and b are parameters in the formula, and the parameter values in the formula are randomly generated numbers.
[0058] S124. According to the feature units in the preset fully connected hidden layer and the constructed output nodes, a second formula group from the feature units to the output nodes is constructed with the feature unit values as input values and the output node values as output values.
[0059] According to the multiple feature units in the preset fully connected hidden layer and the multiple output nodes constructed, the second formula group from the feature unit to the output node is constructed with the feature unit value as the input value and the output node value as the output value, wherein the second formula group includes formulas from all feature units to all output nodes. The output node is the node used to output the matching degree between the customer and the corresponding customer group in the customer matching model, the specific value of the output node is the output node value, the output node value can represent the matching degree between a certain customer and the customer group corresponding to the output node, and the feature unit value is the calculated value of the feature unit in the fully connected hidden layer.
[0060] For example, the feature unit value of a feature unit is y1, and the output node value of an output node is z1, then the formula from the feature unit to the output node is z1=c×y1+d; wherein c and d are parameters in the formula, and the parameter values in the formula are randomly generated numbers.
[0061] S130: Train the constructed customer matching model according to preset training parameters to obtain a trained customer matching model.
[0062] The constructed customer matching model is trained according to the preset training parameters to obtain a trained customer matching model. In order to improve the accuracy of the customer matching model, the constructed customer matching model can be trained by the preset training parameters to obtain a trained customer matching model. The training parameters include characteristic variables of multiple customers and the matching degree between each customer and the corresponding target customer group. The target customer group is the customer group with the highest matching degree with the customer in the customer group information.
[0063] In one embodiment, if Figure 5 As shown, step S130 includes sub-steps S131, S132, S133 and S134.
[0064] S131. Obtain a characteristic variable of a customer in the preset training parameters, and calculate the characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formula in the first formula group and the input node value.
[0065] Obtain a characteristic variable of a customer in the preset training parameters, and calculate the characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formula in the first formula group and the input node value. Since each dimension in the customer's characteristic variable corresponds to an input node, the vector value contained in the characteristic variable is used as the input node value of the corresponding input node, and the characteristic variable of the user can be input into the customer matching model. Each characteristic unit in the customer matching model is associated with all input nodes and all output nodes, that is, the characteristic unit values of all characteristic units in the fully connected hidden layer can be calculated by the corresponding formula in the first formula group and the input node value. If a certain characteristic unit in the calculation result of the corresponding formula in the first formula group contains multiple calculated values, the average value of the multiple calculated values is taken as the characteristic unit value of the characteristic unit.
[0066] S132. Calculate the output node value of the corresponding output node according to the corresponding formula in the second formula group and the characteristic unit value.
[0067] The output node value of the corresponding output node is calculated according to the corresponding formula and characteristic unit value in the second formula group. Since the customer groups contained in the customer group information correspond to the output nodes one by one, the output node value can be calculated by the corresponding formula and characteristic unit value in the second formula group. The output node value can represent the matching degree between a certain customer and the customer group corresponding to the output node, that is, the matching degree between the current customer and each customer group is calculated. Since the parameters of the formula in the customer matching model have not been adjusted and updated through training, the output node value currently calculated can only be used to train the customer matching model, and cannot be used as the final result to match the customer with the corresponding customer group.
[0068] S133, obtaining the matching degree between the current customer and the corresponding target customer group and the target output node value corresponding to the target customer group, and calculating the matching degree and the target output node value of the target customer group according to the mean square error function to obtain the mean square error value of the current customer.
[0069] Obtain the matching degree between the current customer and the corresponding target customer group and the target output node value corresponding to the target customer group, the matching degree between each customer and the corresponding target customer group in the training parameters, the target customer group is the customer group with the highest matching degree with the customer in the customer group information, then the matching degree of the customer to the target customer group can be obtained, and an output node value corresponding to the target customer group among all output node values is obtained as the target output node value. The matching degree of the target customer group and the target output node value are calculated according to the mean square error function to obtain the mean square error value of the current customer. The mean square error function (MSE function) is a calculation function used to reflect the degree of difference between the estimator and the estimated quantity. The mean square error function can be used to calculate the error value between the matching degree of the target customer group in the training parameters and the target output node value calculated by the customer matching model. The larger the mean square error value, the greater the error between the matching degree of the target customer group in the customer training parameters and the target output node value calculated by the customer matching model. The smaller the mean square error value, the smaller the error between the matching degree of the target customer group in the customer training parameters and the target output node value calculated by the customer matching model.
[0070] S134. Judging whether the mean square error value is less than the mean square error threshold according to the preset mean square error threshold, and adjusting and updating the parameters of the formula in the customer matching model according to the judgment result and the parameter adjustment coefficient.
[0071] Whether the mean square error value is less than the mean square error threshold is judged according to the preset mean square error threshold, and the parameters of the formula in the customer matching model are adjusted and updated according to the judgment result and the parameter adjustment coefficient. Specifically, the parameter adjustment coefficient includes a parameter adjustment direction and a parameter adjustment amplitude. The parameter adjustment direction includes a positive adjustment and a negative adjustment. The parameter adjustment amplitude is the specific amplitude value for adjustment. The specific steps for adjusting and updating the parameters of the formula in the customer matching model include: if the judgment result is that the mean square error value is not greater than the preset mean square error threshold, the parameters of the formula in the customer matching model are adjusted and updated according to the positive adjustment in the parameter adjustment direction and the amplitude value in the parameter adjustment amplitude; if the judgment result is that the mean square error value is greater than the preset mean square error threshold, the parameters of the formula in the customer matching model are adjusted and updated according to the reverse adjustment in the parameter adjustment direction and the amplitude value in the parameter adjustment amplitude. After completing an adjustment and update of the parameters of the formula in the customer matching model, the characteristic variables of the next customer in the training parameters and the matching degree of the customer to the target customer group can be obtained to iteratively train the customer matching model. After iteratively training the customer matching model through the characteristic variables of multiple customers in the training parameters and the matching degree of each customer to the target customer group, the trained customer matching model can be obtained.
[0072] For example, the amplitude value in the parameter adjustment amplitude is 2%, and the judgment result is that the mean square error value is not greater than the preset mean square error threshold, then this adjustment needs to be made in a positive direction. This adjustment is based on the original value of the parameter in the formula in the customer matching model multiplied by 1.02 to obtain a new parameter value.
[0073] S140: If the customer information to be recommended is received from the customer to be recommended via the user terminal, the customer information to be recommended is input into the trained customer matching model, and the customer group with the highest matching degree with the customer to be recommended in the customer matching model is obtained as the target customer group.
[0074] If the information of the customer to be recommended is received from the user terminal, the information of the customer to be recommended is input into the trained customer matching model, and the customer group with the highest matching degree with the customer to be recommended in the customer matching model is obtained as the target customer group. The customer to be recommended is the user of the user terminal, and the information of the customer to be recommended includes the characteristic variables of the customer to be recommended.
[0075] In one embodiment, if Figure 6 As shown, step S140 includes sub-steps S141, S142 and S143.
[0076] S141. Acquire characteristic variables of the customer to be recommended as input node values of the corresponding formula in the first formula group, and calculate characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formula in the first formula group and the input node values.
[0077] The characteristic variables of the customer to be recommended are obtained as the input node values of the corresponding formula in the first formula group, and the characteristic unit values of all the characteristic units in the fully connected hidden layer are calculated according to the corresponding formula and the input node values in the first formula group. Since each dimension in the characteristic variables of the customer to be recommended corresponds to an input node, the vector value contained in the characteristic variable is used as the input node value of the corresponding input node, and the characteristic variable of the user can be input into the customer matching model. Each characteristic unit in the customer matching model is associated with all input nodes and all output nodes, that is, the characteristic unit values of all the characteristic units in the fully connected hidden layer can be calculated by the corresponding formula and the input node value in the first formula group. If a certain characteristic unit in the calculation result of the corresponding formula in the first formula group contains multiple calculated values, the average value of the multiple calculated values is taken as the characteristic unit value of the characteristic unit.
[0078] S142. Calculate the output node values of all output nodes according to the corresponding formulas in the second formula group and the characteristic unit values.
[0079] The output node values of all output nodes are calculated according to the corresponding formulas and feature unit values in the second formula group. Since the parameters of all formulas in the second formula group in the customer matching model have been adjusted and updated after training, the output node values of all output nodes can be calculated through all formulas and feature unit values in the second formula group. The output node value can represent the matching degree between a certain customer and the customer group corresponding to the output node, that is, the matching degree between the customer to be recommended and each customer group is calculated.
[0080] S143. According to the calculated output node values, obtain the customer group corresponding to the highest output node value as the target customer group.
[0081] According to the calculated output node value, the customer group corresponding to the highest output node value is obtained as the target customer group. Each output node in the customer matching model corresponds to a customer group. The customer group with the highest output node value is obtained and the target customer group corresponding to the customer to be recommended can be obtained.
[0082] S150: Filter the product information in the customer information table according to preset target product screening rules and the target customer group to obtain the target product and push it to the user terminal.
[0083] The product information in the customer information table is screened according to the preset target product screening rules and the target customer group to obtain the target product and push it to the user terminal. Specifically, the customer information table contains the customer information of each customer and the product information purchased by each customer, and the product information corresponding to each customer contains at least one product. The target customer group contains multiple customers, and the target product information corresponding to the target customer group in the customer information table can be obtained according to the customers included in the target customer group, and the target product information can be screened according to the target product screening rules to obtain the target product, and the target product can be pushed to the user terminal to complete the product recommendation for the recommended customer.
[0084] In one embodiment, if Figure 7 As shown, step S150 includes sub-steps S151 and S152.
[0085] S151, obtaining target product information corresponding to the target customer group from the product information in the customer information table.
[0086] The target product information corresponding to the target customer group in the product information of the customer information table is obtained. Specifically, the customer information table contains the customer information of each customer and the product information purchased by the customer. By obtaining the corresponding product information of each customer in the target customer group in the customer information table, the target product information corresponding to the target customer group in the product information can be obtained.
[0087] S152: Filter the target product information according to the target product screening rule to obtain the target product and push it to the user terminal.
[0088] The target product information is filtered according to the target product filtering rules to obtain the target product and push it to the user terminal. Specifically, the number of times each product in the target product information appears is counted to obtain the product frequency statistics result, and the obtained product frequency statistics result is filtered according to the target product filtering rules, and finally the target product recommended to the recommended customer is obtained, and the target product is pushed to the user terminal.
[0089] For example, the number of products in the target product recommendation rule can be set to three, and the top three products in the product frequency statistics are obtained as target products to be recommended to the customers.
[0090] In the product recommendation method based on user matching provided in the embodiment of the present invention, the customers included in the customer information table are clustered according to the clustering rules to obtain customer group information, a customer matching model is constructed according to the customer group information and the fully connected hidden layer, the customer matching model is trained according to the training parameters, the target customer group corresponding to the customer to be recommended is obtained according to the trained customer matching model, and the product information in the customer information table is screened according to the target product screening rules and the target customer group to obtain the target product and push it. Through the above method, in the case where the user has not purchased the company's products, a user group matching the user can be obtained based on user matching, and the target product corresponding to the user group can be further obtained and recommended to the customer. It has a wider applicability and has achieved good technical effects in actual application.
[0091] The embodiment of the present invention further provides a product recommendation device based on user matching, which is used to execute any embodiment of the product recommendation method based on user matching. Figure 8 , Figure 8 1 is a schematic block diagram of a product recommendation device based on user matching provided by an embodiment of the present invention. The product recommendation device based on user matching can be configured in the management server 10.
[0092] like Figure 8 As shown, the product recommendation device 100 based on user matching includes a clustering unit 110 , a customer matching model building unit 120 , a customer matching model training unit 130 , a target customer group matching unit 140 and a product information screening unit 150 .
[0093] The clustering unit 110 is used to cluster the customers included in the customer information table according to preset clustering rules to obtain customer group information if a customer information table input by the administrator is received.
[0094] If a customer information table input by an administrator is received, the customers included in the customer information table are clustered according to preset clustering rules to obtain customer group information, wherein the customer information table contains customer information of multiple customers and information about products purchased by each customer. The administrator is the user of the management server, and the clustering rule is the rule information used to perform cluster analysis on all customers. After clustering customers based on customer information, similar customers can be classified into one customer group. After clustering all customers, customer group information containing multiple customer groups can be obtained.
[0095] In other inventive embodiments, the clustering unit 110 includes subunits: a feature variable conversion unit 111 and a customer clustering unit 112 .
[0096] The feature variable conversion unit 111 is used to convert the customer information included in the customer information table into feature variables according to the feature variable conversion rule in the clustering rule.
[0097] The customer information contained in the customer information table is converted into a characteristic variable according to the characteristic variable conversion rule in the clustering rule. Specifically, the customer information includes information such as the customer's name, age, occupation, hobbies, etc. The characteristic variable conversion rule is the rule information used to convert the customer information of each customer into a characteristic variable. Each item of information in the customer information can be converted into a corresponding vector value through the characteristic variable conversion rule for representation, so each customer information can be converted into a multi-dimensional characteristic vector, that is, a characteristic variable. Each customer in the customer information table has corresponding customer information, so the customer information of all customers in the customer information table can be obtained. The customer information of all customers can be obtained and converted into corresponding characteristic variables through the characteristic variable conversion rule. The characteristic variable conversion rule is the rule used to convert customer information into a characteristic variable. Each item of information in the customer information corresponds to a vector value in the characteristic variable conversion rule.
[0098] The customer clustering unit 112 is used to cluster customers according to the clustering algorithm in the clustering rule and the characteristic variables to obtain customer group information including multiple customer groups.
[0099] According to the clustering algorithm in the clustering rule and the characteristic variables, customers are clustered to obtain customer group information containing multiple customer groups. The customer group information contains multiple customer groups and characteristic variable values of the centroid of each customer group. Specifically, the clustering algorithm is a K-means clustering algorithm. The number k of clusters required in the end is preset in the K-means clustering algorithm. Specifically, based on the three-dimensional coordinate system, the characteristic variables corresponding to each customer information are represented by point coordinates, and all three-dimensional coordinate points are clustered according to the value of k to obtain k customer groups and the three-dimensional coordinate value of the centroid of each customer group. The three-dimensional coordinate value of the centroid is also the characteristic variable value of the centroid.
[0100] The customer matching model building unit 120 is used to build a customer matching model including input nodes and output nodes according to the customer group information and a preset fully connected hidden layer.
[0101] A customer matching model including input nodes and output nodes is constructed according to the customer group information and the preset fully connected hidden layer. The customer group information is information obtained by clustering algorithm and includes multiple customer groups, each of which includes customer information of multiple customers and feature information of the corresponding centroid of the customer group. The customer matching model includes multiple input nodes and multiple output nodes, wherein each dimension in the customer feature variable corresponds to an input node, each customer group corresponds to an output node, each output node corresponds to an output node value, and the output node value can represent the matching degree between a certain customer and the customer group corresponding to the output node. Since the number of dimensions contained in the feature variables of each customer obtained by the conversion rules is the same, the same number of input nodes can be generated by the dimensions of the feature variables, and the same number of output nodes can be generated by the number of customer groups in the customer group information. The fully connected hidden layer is an intermediate layer used to connect the input nodes with the output nodes. The fully connected hidden layer contains several feature units, each of which is associated with all input nodes and all output nodes. The feature units can be used to reflect the relationship between each item of customer information and the customer group. The number of feature units can be set according to the customer group information. The preferred number of feature units can be set to 1 / 3-1 / 2 of the number of customer groups.
[0102] In other inventive embodiments, the customer matching model building unit 120 includes sub-units: an input node building unit 121 , an output node building unit 122 , a first formula group building unit 123 and a second formula group building unit 124 .
[0103] The input node construction unit 121 is used to construct an input node of a customer matching model according to the dimensions of the customer characteristic variables in the customer group information.
[0104] The input nodes of the customer matching model are constructed according to the dimensions of the customer characteristic variables in the customer group information. Specifically, each dimension in the customer characteristic variables corresponds to an input node, so the same number of input nodes can be generated by the dimensions of the characteristic variables, and the dimensions contained in the characteristic variables correspond to the input nodes one by one.
[0105] The output node construction unit 122 is used to construct the output node of the customer matching model according to the number of customer groups in the customer group information.
[0106] The output nodes of the customer matching model are constructed according to the customer group information. Specifically, each customer group corresponds to an output node, so the same number of output nodes can be generated according to the number of customer groups in the customer group information, and the customer groups in the customer group information correspond to the output nodes one by one.
[0107] The first formula group construction unit 123 is used to construct the first formula group from the input node to the feature unit according to the feature unit in the preset fully connected hidden layer and the constructed input node, with the input node value as the input value and the feature unit value as the output value.
[0108] According to the multiple feature units in the preset fully connected hidden layer and the multiple input nodes constructed, the first formula group from the input node to the feature unit is constructed with the input node value as the input value and the feature unit value as the output value, wherein the first formula group includes formulas from all input nodes to all feature units. The input node is the node used to input the feature variable of a certain customer in the customer matching model, and the specific value of the input node is the input node value, which is also the vector value of the corresponding dimension in the feature variable of the customer. Since each input node corresponds to a dimension in the feature variable, all input node values correspond to one customer feature variable, and the feature unit value is the calculated value of the feature unit in the fully connected hidden layer.
[0109] The second formula group construction unit 124 is used to construct a second formula group from the feature unit to the output node based on the feature unit in the preset fully connected hidden layer and the constructed output node, using the feature unit value as the input value and the output node value as the output value.
[0110] According to the multiple feature units in the preset fully connected hidden layer and the multiple output nodes constructed, the second formula group from the feature unit to the output node is constructed with the feature unit value as the input value and the output node value as the output value, wherein the second formula group includes formulas from all feature units to all output nodes. The output node is the node used to output the matching degree between the customer and the corresponding customer group in the customer matching model, the specific value of the output node is the output node value, the output node value can represent the matching degree between a certain customer and the customer group corresponding to the output node, and the feature unit value is the calculated value of the feature unit in the fully connected hidden layer.
[0111] The customer matching model training unit 130 is used to train the constructed customer matching model according to preset training parameters to obtain a trained customer matching model.
[0112] The constructed customer matching model is trained according to the preset training parameters to obtain a trained customer matching model. In order to improve the accuracy of the customer matching model, the constructed customer matching model can be trained by the preset training parameters to obtain a trained customer matching model. The training parameters include characteristic variables of multiple customers and the matching degree between each customer and the corresponding target customer group. The target customer group is the customer group with the highest matching degree with the customer in the customer group information.
[0113] In other inventive embodiments, the customer matching model training unit 130 includes subunits: a feature unit value calculation unit 131 , an output node value acquisition unit 132 , a mean square error value calculation unit 133 and a parameter adjustment unit 134 .
[0114] The feature unit value calculation unit 131 is used to obtain a feature variable of a customer in the preset training parameters, and calculate the feature unit values of all feature units in the fully connected hidden layer according to the corresponding formula in the first formula group and the input node value.
[0115] Obtain a characteristic variable of a customer in the preset training parameters, and calculate the characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formula in the first formula group and the input node value. Since each dimension in the customer's characteristic variable corresponds to an input node, the vector value contained in the characteristic variable is used as the input node value of the corresponding input node, and the characteristic variable of the user can be input into the customer matching model. Each characteristic unit in the customer matching model is associated with all input nodes and all output nodes, that is, the characteristic unit values of all characteristic units in the fully connected hidden layer can be calculated by the corresponding formula in the first formula group and the input node value. If a certain characteristic unit in the calculation result of the corresponding formula in the first formula group contains multiple calculated values, the average value of the multiple calculated values is taken as the characteristic unit value of the characteristic unit.
[0116] The output node value obtaining unit 132 is used to calculate the output node value of the corresponding output node according to the corresponding formula in the second formula group and the characteristic unit value.
[0117] The output node value of the corresponding output node is calculated according to the corresponding formula and characteristic unit value in the second formula group. Since the customer groups contained in the customer group information correspond to the output nodes one by one, the output node value can be calculated by the corresponding formula and characteristic unit value in the second formula group. The output node value can represent the matching degree between a certain customer and the customer group corresponding to the output node, that is, the matching degree between the current customer and each customer group is calculated. Since the parameters of the formula in the customer matching model have not been adjusted and updated through training, the output node value currently calculated can only be used to train the customer matching model, and cannot be used as the final result to match the customer with the corresponding customer group.
[0118] The mean square error value calculation unit 133 is used to obtain the matching degree between the current customer and the corresponding target customer group and the target output node value corresponding to the target customer group, and calculate the matching degree and the target output node value of the target customer group according to the mean square error function to obtain the mean square error value of the current customer.
[0119] Obtain the matching degree between the current customer and the corresponding target customer group and the target output node value corresponding to the target customer group, the matching degree between each customer and the corresponding target customer group in the training parameters, the target customer group is the customer group with the highest matching degree with the customer in the customer group information, then the matching degree of the customer to the target customer group can be obtained, and an output node value corresponding to the target customer group among all output node values is obtained as the target output node value. The matching degree of the target customer group and the target output node value are calculated according to the mean square error function to obtain the mean square error value of the current customer. The mean square error function (MSE function) is a calculation function used to reflect the degree of difference between the estimator and the estimated quantity. The mean square error function can be used to calculate the error value between the matching degree of the target customer group in the training parameters and the target output node value calculated by the customer matching model. The larger the mean square error value, the greater the error between the matching degree of the target customer group in the customer training parameters and the target output node value calculated by the customer matching model. The smaller the mean square error value, the smaller the error between the matching degree of the target customer group in the customer training parameters and the target output node value calculated by the customer matching model.
[0120] The parameter adjustment unit 134 is used to judge whether the mean square error value is less than the mean square error threshold according to the preset mean square error threshold, and adjust and update the parameters of the formula in the customer matching model according to the judgment result and the parameter adjustment coefficient.
[0121] Whether the mean square error value is less than the mean square error threshold is judged according to the preset mean square error threshold, and the parameters of the formula in the customer matching model are adjusted and updated according to the judgment result and the parameter adjustment coefficient. Specifically, the parameter adjustment coefficient includes a parameter adjustment direction and a parameter adjustment amplitude. The parameter adjustment direction includes a positive adjustment and a negative adjustment. The parameter adjustment amplitude is the specific amplitude value for adjustment. The specific steps for adjusting and updating the parameters of the formula in the customer matching model include: if the judgment result is that the mean square error value is not greater than the preset mean square error threshold, the parameters of the formula in the customer matching model are adjusted and updated according to the positive adjustment in the parameter adjustment direction and the amplitude value in the parameter adjustment amplitude; if the judgment result is that the mean square error value is greater than the preset mean square error threshold, the parameters of the formula in the customer matching model are adjusted and updated according to the reverse adjustment in the parameter adjustment direction and the amplitude value in the parameter adjustment amplitude. After completing an adjustment and update of the parameters of the formula in the customer matching model, the characteristic variables of the next customer in the training parameters and the matching degree of the customer to the target customer group can be obtained to iteratively train the customer matching model. After iteratively training the customer matching model through the characteristic variables of multiple customers in the training parameters and the matching degree of each customer to the target customer group, the trained customer matching model can be obtained.
[0122] The target customer group matching unit 140 is used to input the recommended customer information input by the recommended customer through the user terminal, input the recommended customer information into the trained customer matching model, and obtain the customer group with the highest matching degree with the recommended customer in the customer matching model as the target customer group.
[0123] If the information of the customer to be recommended is received from the user terminal, the information of the customer to be recommended is input into the trained customer matching model, and the customer group with the highest matching degree with the customer to be recommended in the customer matching model is obtained as the target customer group. The customer to be recommended is the user of the user terminal, and the information of the customer to be recommended includes the characteristic variables of the customer to be recommended.
[0124] In other inventive embodiments, the target customer group matching unit 140 includes subunits: a first calculation unit 141 , a second calculation unit 142 and a target customer group acquiring unit 143 .
[0125] The first calculation unit 141 is used to obtain the characteristic variables of the customer to be recommended as the input node values of the corresponding formula in the first formula group, and calculate the characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formula in the first formula group and the input node values.
[0126] The characteristic variables of the customer to be recommended are obtained as the input node values of the corresponding formula in the first formula group, and the characteristic unit values of all the characteristic units in the fully connected hidden layer are calculated according to the corresponding formula and the input node values in the first formula group. Since each dimension in the characteristic variables of the customer to be recommended corresponds to an input node, the vector value contained in the characteristic variable is used as the input node value of the corresponding input node, and the characteristic variable of the user can be input into the customer matching model. Each characteristic unit in the customer matching model is associated with all input nodes and all output nodes, that is, the characteristic unit values of all the characteristic units in the fully connected hidden layer can be calculated by the corresponding formula and the input node value in the first formula group. If a certain characteristic unit in the calculation result of the corresponding formula in the first formula group contains multiple calculated values, the average value of the multiple calculated values is taken as the characteristic unit value of the characteristic unit.
[0127] The second calculation unit 142 is used to calculate the output node values of all output nodes according to the corresponding formulas in the second formula group and the characteristic unit values.
[0128] The output node values of all output nodes are calculated according to the corresponding formulas and feature unit values in the second formula group. Since the parameters of all formulas in the second formula group in the customer matching model have been adjusted and updated after training, the output node values of all output nodes can be calculated through all formulas and feature unit values in the second formula group. The output node value can represent the matching degree between a certain customer and the customer group corresponding to the output node, that is, the matching degree between the customer to be recommended and each customer group is calculated.
[0129] The target customer group acquisition unit 143 is used to acquire the customer group corresponding to the highest output node value as the target customer group according to the calculated output node value.
[0130] According to the calculated output node value, the customer group corresponding to the highest output node value is obtained as the target customer group. Each output node in the customer matching model corresponds to a customer group. The customer group with the highest output node value is obtained and the target customer group corresponding to the customer to be recommended can be obtained.
[0131] The product information screening unit 150 is used to screen the product information in the customer information table according to preset target product screening rules and the target customer group to obtain the target product and push it to the user terminal.
[0132] The product information in the customer information table is screened according to the preset target product screening rules and the target customer group to obtain the target product and push it to the user terminal. Specifically, the customer information table contains the customer information of each customer and the product information purchased by each customer, and the product information corresponding to each customer contains at least one product. The target customer group contains multiple customers, and the target product information corresponding to the target customer group in the customer information table can be obtained according to the customers included in the target customer group, and the target product information can be screened according to the target product screening rules to obtain the target product, and the target product can be pushed to the user terminal to complete the product recommendation for the recommended customer.
[0133] In other inventive embodiments, the product information screening unit 150 includes subunits: a target product information acquiring unit 151 and a target product acquiring unit 152 .
[0134] The target product information acquisition unit 151 is used to acquire the target product information corresponding to the target customer group from the product information in the customer information table.
[0135] The target product information corresponding to the target customer group in the product information of the customer information table is obtained. Specifically, the customer information table contains the customer information of each customer and the product information purchased by the customer. By obtaining the corresponding product information of each customer in the target customer group in the customer information table, the target product information corresponding to the target customer group in the product information can be obtained.
[0136] The target product acquisition unit 152 is used to filter the target product information according to the target product filtering rule to obtain the target product and push it to the user terminal.
[0137] The target product information is filtered according to the target product filtering rules to obtain the target product and push it to the user terminal. Specifically, the number of times each product in the target product information appears is counted to obtain the product frequency statistics result, and the obtained product frequency statistics result is filtered according to the target product filtering rules, and finally the target product recommended to the recommended customer is obtained, and the target product is pushed to the user terminal.
[0138] The product recommendation device based on user matching provided in the embodiment of the present invention applies the above-mentioned product recommendation method based on user matching, clusters the customers included in the customer information table according to the clustering rules to obtain customer group information, builds a customer matching model according to the customer group information and the fully connected hidden layer, trains the customer matching model according to the training parameters, obtains the target customer group corresponding to the customer to be recommended according to the trained customer matching model, and screens the product information in the customer information table according to the target product screening rules and the target customer group to obtain the target product and push it. Through the above-mentioned method, when the user has not purchased the company's products, the user group matching the user can be obtained based on the user matching method, and the target product corresponding to the user group can be further obtained and recommended to the customer. It has a wider applicability and has achieved good technical effects in the actual application process.
[0139] The above-mentioned product recommendation device based on user matching can be implemented in the form of a computer program, and the computer program can be used in Fig. 9 Runs on the computer device shown.
[0140] See also Fig. 9 , Fig. 9 It is a schematic block diagram of a computer device provided by an embodiment of the present invention.
[0141] See also Fig. 9 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0142] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute a product recommendation method based on user matching.
[0143] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0144] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a product recommendation method based on user matching.
[0145] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0146] The processor 502 is used to run a computer program 5032 stored in the memory to implement the following functions: if a customer information table input by an administrator is received, the customers included in the customer information table are clustered according to preset clustering rules to obtain customer group information, wherein the customer information table also includes product information purchased by each customer; a customer matching model including input nodes and output nodes is constructed according to the customer group information and a preset fully connected hidden layer; the constructed customer matching model is trained according to preset training parameters to obtain a trained customer matching model; if the customer information to be recommended is received input by the customer to be recommended through the user terminal, the customer information to be recommended is input into the trained customer matching model, and the customer group with the highest matching degree with the customer to be recommended in the customer matching model is obtained as the target customer group; the product information in the customer information table is screened according to the preset target product screening rule and the target customer group to obtain the target product and push it to the user terminal.
[0147] In one embodiment, when the processor 502 receives a customer information table input by an administrator and executes the step of clustering the customers included in the customer information table according to preset clustering rules to obtain customer group information, the processor 502 performs the following operations: converting the customer information included in the customer information table into feature variables according to the feature variable conversion rules in the clustering rules; clustering the customers according to the clustering algorithm in the clustering rules and the feature variables to obtain customer group information including multiple customer groups.
[0148] In one embodiment, when executing the step of constructing a customer matching model including input nodes and output nodes according to the customer group information and the preset fully connected hidden layer, the processor 502 performs the following operations: constructing the input nodes of the customer matching model according to the dimensions of the customer feature variables in the customer group information; constructing the output nodes of the customer matching model according to the number of customer groups in the customer group information; constructing a first formula group from the input node to the feature unit with the input node value as the input value and the feature unit value as the output value according to the feature units in the preset fully connected hidden layer and the constructed input nodes; constructing a second formula group from the feature unit to the output node with the feature unit value as the input value and the output node value as the output value according to the feature units in the preset fully connected hidden layer and the constructed output nodes.
[0149] In one embodiment, when the processor 502 executes the step of training the constructed customer matching model according to preset training parameters to obtain a trained customer matching model, the processor 502 performs the following operations: obtaining a characteristic variable of a customer in the preset training parameters, and calculating the characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formula in the first formula group and the input node value; calculating the output node value of the corresponding output node according to the corresponding formula in the second formula group and the characteristic unit value; obtaining the matching degree between the current customer and the corresponding target customer group and the target output node value corresponding to the target customer group, and calculating the matching degree of the target customer group and the target output node value according to the mean square error function to obtain the mean square error value of the current customer; judging whether the mean square error value is less than the mean square error threshold according to the preset mean square error threshold, and adjusting and updating the parameters of the formula in the customer matching model according to the judgment result and the parameter adjustment coefficient.
[0150] In one embodiment, when the processor 502 receives the information of the customer to be recommended input by the customer to be recommended through the user terminal, inputs the information of the customer to be recommended into the trained customer matching model, and obtains the customer group with the highest matching degree with the customer to be recommended in the customer matching model as the target customer group, it performs the following operations: obtains the characteristic variables of the customer to be recommended as the input node values of the corresponding formulas in the first formula group, calculates the characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formulas and the input node values in the first formula group; calculates the output node values of all output nodes according to the corresponding formulas and the characteristic unit values in the second formula group; and obtains the customer group corresponding to the highest output node value as the target customer group according to the calculated output node values.
[0151] In one embodiment, when the processor 502 executes the step of filtering the product information in the customer information table according to the preset target product filtering rules and the target customer group to obtain the target product and push it to the user terminal, it performs the following operations: obtaining the target product information corresponding to the target customer group in the product information in the customer information table; filtering the target product information according to the target product filtering rules to obtain the target product and push it to the user terminal.
[0152] Those skilled in the art will understand that Fig. 9 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Fig. 9 The embodiments shown are consistent and will not be described again here.
[0153] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0154] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein the computer program implements the following steps when executed by a processor: if a customer information table input by an administrator is received, the customers contained in the customer information table are clustered according to a preset clustering rule to obtain customer group information, wherein the customer information table also includes product information purchased by each customer; a customer matching model including input nodes and output nodes is constructed according to the customer group information and a preset fully connected hidden layer; the constructed customer matching model is trained according to preset training parameters to obtain a trained customer matching model; if the customer information to be recommended is received input by a customer to be recommended through a user terminal, the customer information to be recommended is input into the trained customer matching model, and the customer group with the highest matching degree with the customer to be recommended in the customer matching model is obtained as the target customer group; the product information in the customer information table is screened according to the preset target product screening rule and the target customer group to obtain the target product and push it to the user terminal.
[0155] In one embodiment, if a customer information table input by an administrator is received, the step of clustering the customers contained in the customer information table according to preset clustering rules to obtain customer group information includes: converting the customer information contained in the customer information table into feature variables according to feature variable conversion rules in the clustering rules; clustering the customers according to the clustering algorithm in the clustering rules and the feature variables to obtain customer group information including multiple customer groups.
[0156] In one embodiment, the step of constructing a customer matching model including input nodes and output nodes according to the customer group information and the preset fully connected hidden layer includes: constructing the input nodes of the customer matching model according to the dimensions of the customer feature variables in the customer group information; constructing the output nodes of the customer matching model according to the number of customer groups in the customer group information; constructing a first formula group from the input node to the feature unit with the input node value as the input value and the feature unit value as the output value according to the feature units in the preset fully connected hidden layer and the constructed input nodes; and constructing a second formula group from the feature unit to the output node with the feature unit value as the input value and the output node value as the output value according to the feature units in the preset fully connected hidden layer and the constructed output nodes.
[0157] In one embodiment, the step of training the constructed customer matching model according to preset training parameters to obtain a trained customer matching model includes: obtaining a characteristic variable of a customer in the preset training parameters, and calculating the characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formula in the first formula group and the input node value; calculating the output node value of the corresponding output node according to the corresponding formula in the second formula group and the characteristic unit value; obtaining the matching degree between the current customer and the corresponding target customer group and the target output node value corresponding to the target customer group, and calculating the matching degree of the target customer group and the target output node value according to the mean square error function to obtain the mean square error value of the current customer; judging whether the mean square error value is less than the mean square error threshold according to the preset mean square error threshold, and adjusting and updating the parameters of the formula in the customer matching model according to the judgment result and the parameter adjustment coefficient.
[0158] In one embodiment, if the information of the customer to be recommended is received from the customer to be recommended via the user terminal, the information of the customer to be recommended is input into the trained customer matching model, and the customer group with the highest matching degree with the customer to be recommended in the customer matching model is obtained as the target customer group, the step includes: obtaining the characteristic variables of the customer to be recommended as the input node values of the corresponding formulas in the first formula group, and calculating the characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formulas and the input node values in the first formula group; calculating the output node values of all output nodes according to the corresponding formulas and the characteristic unit values in the second formula group; and obtaining the customer group corresponding to the highest output node value as the target customer group according to the calculated output node values.
[0159] In one embodiment, the step of filtering the product information in the customer information table according to preset target product filtering rules and the target customer group to obtain the target product and push it to the user terminal includes: obtaining the target product information corresponding to the target customer group in the product information in the customer information table; filtering the target product information according to the target product filtering rules to obtain the target product and push it to the user terminal.
[0160] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0161] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0162] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0163] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0164] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk or an optical disk.
[0165] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A product recommendation method based on user matching, characterized in that: include: If a customer information table input by an administrator is received, the customers included in the customer information table are clustered according to a preset clustering rule to obtain customer group information, wherein the customer information table also includes product information purchased by each customer; A customer matching model including input nodes and output nodes is constructed according to the customer group information and the preset fully connected hidden layer; the number of feature units included in the fully connected hidden layer of the customer matching model is 1 / 3-1 / 2 of the number of customer groups in the customer group information; Training the constructed customer matching model according to preset training parameters to obtain a trained customer matching model; If the recommended customer information input by the recommended customer through the user terminal is received, the recommended customer information is input into the trained customer matching model, and the customer group with the highest matching degree with the recommended customer in the customer matching model is obtained as the target customer group; Filter the product information in the customer information table according to preset target product screening rules and the target customer group to obtain the target product and push it to the user terminal; The step of clustering the customers included in the customer information table according to a preset clustering rule to obtain customer group information includes: Converting the customer information contained in the customer information table into feature variables according to the feature variable conversion rule in the clustering rule; The customers are clustered according to the clustering algorithm in the clustering rule and the characteristic variables to obtain customer group information including multiple customer groups; the customer group information includes multiple customer groups and the characteristic variable value of the centroid of each customer group.
2. The product recommendation method based on user matching according to claim 1, characterized in that: The customer matching model including input nodes and output nodes is constructed according to the customer group information and the preset fully connected hidden layer, including: Construct the input node of the customer matching model according to the dimensions of the customer characteristic variables in the customer group information; Construct an output node of the customer matching model according to the number of customer groups in the customer group information; According to the feature units in the preset fully connected hidden layer and the constructed input nodes, a first formula group from the input node to the feature unit is constructed with the input node value as the input value and the feature unit value as the output value; According to the feature units in the preset fully connected hidden layer and the constructed output nodes, a second formula group from the feature units to the output nodes is constructed with the feature unit values as input values and the output node values as output values.
3. The product recommendation method based on user matching according to claim 1, characterized in that: The training parameters include parameter adjustment coefficients, characteristic variables of multiple customers, and the matching degree between each customer and the corresponding target customer group. The customer matching model constructed is trained according to the preset training parameters to obtain the trained customer matching model, including: Obtain a characteristic variable of a customer in the preset training parameters, and calculate characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formula in the first formula group and the input node value; The output node value of the corresponding output node is calculated according to the corresponding formula in the second formula group and the characteristic unit value; Obtaining the matching degree between the current customer and the corresponding target customer group and the target output node value corresponding to the target customer group, and calculating the matching degree and the target output node value of the target customer group according to the mean square error function to obtain the mean square error value of the current customer; Whether the mean square error value is less than the mean square error threshold is judged according to the preset mean square error threshold, and the parameters of the formula in the customer matching model are adjusted and updated according to the judgment result and the parameter adjustment coefficient.
4. The product recommendation method based on user matching according to claim 1, characterized in that: The customer information to be recommended includes characteristic variables of the customer to be recommended, and the step of inputting the customer information to be recommended into a trained customer matching model, and obtaining a customer group with the highest matching degree with the customer to be recommended in the customer matching model as a target customer group, comprises: Acquire the characteristic variables of the customer to be recommended as the input node values of the corresponding formula in the first formula group, and calculate the characteristic unit values of all characteristic units in the fully connected hidden layer according to the corresponding formula in the first formula group and the input node values; Calculate the output node values of all output nodes according to the corresponding formulas in the second formula group and the characteristic unit values; According to the calculated output node values, the customer group corresponding to the highest output node value is obtained as the target customer group.
5. The product recommendation method based on user matching according to claim 1, characterized in that: The step of screening the product information in the customer information table according to the preset target product screening rule and the target customer group to obtain the target product and push it to the user terminal includes: Obtain target product information corresponding to the target customer group from the product information in the customer information table; The target product information is screened according to the target product screening rule to obtain the target product and push it to the user terminal.
6. A product recommendation device based on user matching, characterized in that: include: A clustering unit, for clustering the customers included in the customer information table according to preset clustering rules to obtain customer group information if a customer information table input by an administrator is received, wherein the customer information table also includes product information purchased by each customer; A customer matching model construction unit, used to construct a customer matching model including input nodes and output nodes according to the customer group information and a preset fully connected hidden layer; the number of feature units included in the fully connected hidden layer of the customer matching model is 1 / 3-1 / 2 of the number of customer groups in the customer group information; A customer matching model training unit, used to train the constructed customer matching model according to preset training parameters to obtain a trained customer matching model; A target customer group matching unit is used to input the recommended customer information input by the recommended customer through the user terminal, and obtain the customer group with the highest matching degree with the recommended customer in the customer matching model as the target customer group. A product information screening unit, configured to screen the product information in the customer information table according to preset target product screening rules and the target customer group to obtain the target product and push it to the user terminal; The clustering unit comprises: A feature variable conversion unit, configured to convert the customer information contained in the customer information table into feature variables according to a feature variable conversion rule in the clustering rule; The customer clustering unit is used to cluster customers according to the clustering algorithm in the clustering rule and the characteristic variables to obtain customer group information containing multiple customer groups; the customer group information includes multiple customer groups and the characteristic variable value of the centroid of each customer group.
7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the product recommendation method based on user matching according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to perform the product recommendation method based on user matching according to any one of claims 1 to 5.
Citation Information
Patent Citations
Product intelligent recommendation method, device, computer device and storage medium
CN109146193A
System for recommending goods and method thereof
KR1020100020365A
