Product information push method and system
By obtaining customer attribute information and using a decision tree model to determine product categories, it solves the problems of low accuracy and high labor costs caused by the reliance on human experience in questionnaire surveys in the existing technology, and improves the objectivity and accuracy of product push. It is applicable for massive data processing.
Patent Information
- Application Number
- CN202010235011.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-03-30
AI Technical Summary
In the existing technology, questionnaires rely on human experience to set up and lack scientific basis, resulting in low accuracy of product push, and manual analysis is time-consuming and unsuitable for processing massive data, making it impossible to provide customers with suitable products in a timely manner.
By obtaining the product demand model and the customer's current attribute information, the decision tree model is used to determine the product category and push the corresponding product information to the customer, improving the objectivity and accuracy of product push and reducing labor costs.
It improves the objectivity and accuracy of product push, reduces labor costs, provides customers with appropriate products in a timely manner, and is suitable for processing massive data.
Smart Images

Figure CN111353860B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data analysis, and in particular to a method and system for pushing product information. Background Art
[0002] Currently, customer evaluation information on products is obtained mainly through questionnaire surveys, and the risks and benefits of products are manually analyzed to determine the specific product promotion plan. This method has the following defects:
[0003] 1. Questionnaires are set up based on human experience and lack scientific basis, which will affect the accuracy of product push.
[0004] 2. Manual analysis to determine product push solutions is time-consuming and low-productivity, and is not suitable for processing massive amounts of data. Summary of the invention
[0005] The main purpose of the embodiments of the present invention is to provide a product information push method and system to improve the objectivity and accuracy of product push, reduce labor costs, and provide customers with suitable products in a timely manner.
[0006] In order to achieve the above object, an embodiment of the present invention provides a product information push method, comprising:
[0007] Obtain product demand model;
[0008] Get the current customer attribute information of the customer;
[0009] Input the current customer attribute information into the product demand model to obtain the current product category;
[0010] Push product information corresponding to the current product category to customers.
[0011] The embodiment of the present invention also provides a product information push system, including:
[0012] A model acquisition unit, used to acquire a product demand model;
[0013] An information acquisition unit, used to acquire the current customer attribute information of the customer;
[0014] The product category unit is used to input the current customer attribute information into the product demand model to obtain the current product category;
[0015] The product information unit is used to push product information corresponding to the current product category to customers.
[0016] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the steps of the product information push method when executing the computer program.
[0017] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the product information push method are implemented.
[0018] The product information push method and system of the embodiment of the present invention first obtains the customer's current customer attribute information, then inputs the current customer attribute information into the product demand model to obtain the current product category, and finally pushes the product information corresponding to the current product category to the customer, which can improve the objectivity and accuracy of product push, reduce labor costs, and provide customers with suitable products in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 is a flow chart of a method for pushing product information in one embodiment of the present invention;
[0021] Figure 2 is a flow chart of obtaining a product demand model in one embodiment of the present invention;
[0022] Figure 3 is a flow chart of S202 in an embodiment of the present invention;
[0023] Figure 4 is a schematic diagram of data preprocessing in an embodiment of the present invention;
[0024] Figure 5 is a schematic diagram of a decision tree training model in one embodiment of the present invention;
[0025] Figure 6 is a structural block diagram of a product information push system in an embodiment of the present invention;
[0026] Figure 7 It is a structural block diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] 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 only 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.
[0028] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0029] In view of the fact that the prior art affects the accuracy of product push and is not suitable for processing massive data, an embodiment of the present invention provides a product information push method to improve the objectivity and accuracy of product push, reduce labor costs, and provide customers with appropriate products in a timely manner. The present invention is described in detail below in conjunction with the accompanying drawings.
[0030] Figure 1 FIG. 1 is a flow chart of a method for pushing product information in one embodiment of the present invention. Figure 1 As shown, the product information push method includes:
[0031] S101: Obtain product demand model.
[0032] S102: Acquire the current customer attribute information of the customer.
[0033] S103: Input the current customer attribute information into the product demand model to obtain the current product category.
[0034] In one embodiment, S103 includes: determining the classification condition satisfied by the current customer attribute information; and taking the product category of the leaf node corresponding to the classification condition as the current product category.
[0035] For example, the current customer attribute information includes attribute 1, attribute 2, and attribute 3. Attribute 1 is less than the first threshold N1, attribute 2 is less than the second threshold N2, and greater than the third threshold N3. The above classification conditions correspond to leaf node 3, and product category 1 of leaf node 3 is the current product category.
[0036] In one embodiment, before executing S103, the steps include: obtaining customer attribute information at the previous moment; comparing the current customer attribute information (e.g., attribute 1, attribute 2, and attribute 3) with corresponding thresholds (e.g., first threshold, second threshold, third threshold) to obtain a current comparison result; comparing the customer attribute information (e.g., attribute 1, attribute 2, and attribute 3) at the previous moment with corresponding thresholds (e.g., first threshold, second threshold, third threshold) to obtain a comparison result at the previous moment; when the current comparison result is different from the comparison result at the previous moment, executing S103.
[0037] S104: Push product information corresponding to the current product category to the customer.
[0038] Figure 1The execution subject of the product information push method shown can be a computer. Figure 1 As can be seen from the process shown, the product information push method and system of the embodiment of the present invention first obtains the customer's current customer attribute information, then inputs the current customer attribute information into the product demand model to obtain the current product category, and finally pushes the product information corresponding to the current product category to the customer, which can improve the objectivity and accuracy of product push, reduce labor costs, and provide customers with suitable products in a timely manner.
[0039] Figure 2 FIG. 1 is a flowchart of obtaining a product demand model in one embodiment of the present invention. Figure 2 As shown, before executing S101, the process further includes: obtaining a product demand model in advance in the following manner;
[0040] S201: Divide the pre-acquired historical customer attribute information and the corresponding historical product categories into training data and test data.
[0041] The historical customer attribute information and the corresponding historical product categories are taken as historical original data. Before the historical original data is divided, it is necessary to pre-process the historical original data.
[0042] Figure 4 Schematic diagram of data preprocessing in an embodiment of the present invention. Figure 4 As shown, there are N customers in total, and the historical customer attribute information includes n attributes, and the attribute value can be AE. The historical product category can be category 1 to category 5. After data preprocessing, binary numbers are used to represent each attribute value.
[0043] Data preprocessing includes operations such as data cleaning and feature selection. Figure 4 As shown in the figure, there are multiple key attribute values in the data of customer 2 that are empty, so the data of customer 2 is deleted through data cleaning. After feature selection, attribute 4 is determined to be a non-key attribute, so attribute 4 in the historical original data is deleted to highlight the significant attributes and maximize the effectiveness of the data. The decision tree model is trained and tested on the data after data preprocessing, which can directly and efficiently process valid data.
[0044] The ratio of training data to test data can be 4:1.
[0045] S202: Train a preset initial decision tree model according to the training data to obtain a decision tree training model.
[0046] S203: Input the test data into each decision tree training model to obtain the corresponding test product category.
[0047] S204: Determine the accuracy of each decision tree training model according to the test product category and the corresponding historical product category.
[0048] The accuracy rate is the ratio of the number of test data that are consistent with the test product category and the corresponding historical product category to the total test data.
[0049] S205: The decision tree training model corresponding to the maximum accuracy rate is used as the product demand model.
[0050] Among them, when the maximum accuracy is less than or equal to the preset accuracy threshold, the training parameters of the decision tree training model (such as the minimum data amount of leaf nodes, whether to perform pruning and whether to perform cross-validation, etc.) are optimized and adjusted until a decision tree training model with a maximum accuracy greater than the accuracy threshold is obtained through training.
[0051] Figure 3 is a flow chart of S202 in an embodiment of the present invention. Figure 3 As shown, S202 includes:
[0052] S301: Obtain classification conditions corresponding to each leaf node in a decision tree training model according to training data.
[0053] Among them, the decision tree training model is the CART (Classification And Regression Trees) model. CART is a binary decision tree, that is, only two child nodes are generated after each feature segmentation, which can fully utilize all data and discover the complete tree structure as much as possible.
[0054] Figure 5 FIG. 1 is a schematic diagram of a decision tree training model in one embodiment of the present invention. Figure 5 As shown, the classification condition of leaf node 1 is that the value of attribute 1 is greater than or equal to the first threshold value N1, and the classification condition of leaf node 2 is that the value of attribute 2 is greater than or equal to the second threshold value N2. When the value of attribute 1 in the customer attribute information is greater than or equal to N1, the customer attribute information will be classified into leaf node 1, otherwise it will be determined whether the value of attribute 2 in the customer attribute information is greater than or equal to N2. When the value of attribute 2 is greater than or equal to N2, the customer attribute information will be classified into leaf node 2.
[0055] S302: Determine the product category of each leaf node according to the historical product category in each leaf node.
[0056] In one embodiment, S302 includes:
[0057] The weight of each historical product category in each leaf node is determined according to the number of each historical product category in each leaf node, the number of each historical product category in the training data, and the number of training data in each leaf node.
[0058] In one embodiment, the weight of each historical product category in each leaf node may be determined by the following formula:
[0059]
[0060] Among them, ω ij is the weight of the jth historical product category of the i-th leaf node, δ ij is the number of the jth historical product category in the i-th leaf node, m j is the number of the jth historical product category in the training data, k i is the number of training data in the i-th leaf node.
[0061] The historical product category corresponding to the maximum value of the weight in each leaf node is used as the product category of each leaf node.
[0062] like Figure 5 As shown, for example, when the historical product category corresponding to the maximum value of the weight in leaf node 1 is category 1, category 1 is the product category of leaf node 1.
[0063] S303: Obtain a decision tree training model according to the classification conditions corresponding to each leaf node and the product category of each leaf node.
[0064] The specific process of the embodiment of the present invention is as follows:
[0065] 1. Obtain historical customer attribute information and corresponding historical product categories, and divide them into training data and test data.
[0066] 2. According to the training data, the classification conditions corresponding to each leaf node in the decision tree training model are obtained.
[0067] 3. Determine the weight of each historical product category in each leaf node according to the number of each historical product category in each leaf node, the number of each historical product category in the training data, and the number of training data in each leaf node.
[0068] 4. Obtain a decision tree training model based on the classification conditions corresponding to each leaf node and the product category of each leaf node.
[0069] 5. Input the test data into each decision tree training model to obtain the corresponding test product category.
[0070] 6. Determine the accuracy of each decision tree training model based on the test product category and the corresponding historical product category, and use the decision tree training model corresponding to the maximum accuracy as the product demand model.
[0071] 7. Obtain the customer's current customer attribute information and determine the classification conditions that the current customer attribute information satisfies.
[0072] 8. The product category of the leaf node corresponding to the classification condition is used as the current product category, and the product information corresponding to the current product category is pushed to the customer.
[0073] In summary, the product information push method of the embodiment of the present invention first obtains the customer's current customer attribute information, then inputs the current customer attribute information into the product demand model to obtain the current product category, and finally pushes the product information corresponding to the current product category to the customer, which can improve the objectivity and accuracy of product push, reduce labor costs, and provide customers with suitable products in a timely manner.
[0074] Based on the same inventive concept, an embodiment of the present invention also provides a product information push system. Since the principle of solving the problem by the system is similar to that of the product information push method, the implementation of the system can refer to the implementation of the method, and the repeated parts will not be repeated.
[0075] Figure 6 : is a structural block diagram of a product information push system in an embodiment of the present invention. Figure 6 As shown, the product information push system includes:
[0076] A model acquisition unit, used to acquire a product demand model;
[0077] An information acquisition unit, used to acquire the current customer attribute information of the customer;
[0078] The product category unit is used to input the current customer attribute information into the product demand model to obtain the current product category;
[0079] The product information unit is used to push product information corresponding to the current product category to customers.
[0080] In one embodiment, it also includes:
[0081] A division unit, used to divide the pre-acquired historical customer attribute information and the corresponding historical product categories into training data and test data;
[0082] A training unit, used to train a preset initial decision tree model according to training data to obtain a decision tree training model;
[0083] The testing unit is used to input the test data into each decision tree training model to obtain the corresponding test product category;
[0084] An accuracy unit, used to determine the accuracy of each decision tree training model based on the test product category and the corresponding historical product category;
[0085] The model determination unit is used to use the decision tree training model corresponding to the maximum accuracy as the product demand model.
[0086] In one embodiment, the training unit is specifically used for:
[0087] According to the training data, the classification conditions corresponding to each leaf node in the decision tree training model are obtained;
[0088] Determine the product category of each leaf node based on the historical product category in each leaf node;
[0089] A decision tree training model is obtained according to the classification conditions corresponding to each leaf node and the product category of each leaf node.
[0090] In one embodiment, the training unit is specifically used for:
[0091] Determine the weight of each historical product category in each leaf node according to the number of each historical product category in each leaf node, the number of each historical product category in the training data, and the number of training data in each leaf node;
[0092] The historical product category corresponding to the maximum value of the weight in each leaf node is used as the product category of each leaf node.
[0093] In one embodiment, the product category unit is specifically used to:
[0094] Determine the classification conditions satisfied by the current customer attribute information;
[0095] The product category of the leaf node corresponding to the classification condition is used as the current product category.
[0096] In summary, the product information push system of the embodiment of the present invention first obtains the customer's current customer attribute information, then inputs the current customer attribute information into the product demand model to obtain the current product category, and finally pushes the product information corresponding to the current product category to the customer, which can improve the objectivity and accuracy of product push, reduce labor costs, and provide customers with suitable products in a timely manner.
[0097] The embodiment of the present invention also provides a specific implementation of a computer device that can implement all the steps in the product information push method in the above embodiment. Figure 7 is a block diagram of a computer device in an embodiment of the present invention, see Figure 7 , the computer equipment specifically includes the following contents:
[0098] Processor (processor) 701 and memory (memory) 702.
[0099] The processor 701 is used to call the computer program in the memory 702. When the processor executes the computer program, all steps in the product information push method in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0100] Obtain product demand model;
[0101] Get the current customer attribute information of the customer;
[0102] Input the current customer attribute information into the product demand model to obtain the current product category;
[0103] Push product information corresponding to the current product category to customers.
[0104] In summary, the computer device of the embodiment of the present invention first obtains the customer's current customer attribute information, then inputs the current customer attribute information into the product demand model to obtain the current product category, and finally pushes the product information corresponding to the current product category to the customer, which can improve the objectivity and accuracy of product push, reduce labor costs, and provide customers with suitable products in a timely manner.
[0105] The embodiment of the present invention also provides a computer-readable storage medium capable of implementing all the steps of the product information push method in the above embodiment. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps of the product information push method in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0106] Obtain product demand model;
[0107] Get the current customer attribute information of the customer;
[0108] Input the current customer attribute information into the product demand model to obtain the current product category;
[0109] Push product information corresponding to the current product category to customers.
[0110] In summary, the computer-readable storage medium of the embodiment of the present invention first obtains the customer's current customer attribute information, then inputs the current customer attribute information into the product demand model to obtain the current product category, and finally pushes the product information corresponding to the current product category to the customer, which can improve the objectivity and accuracy of product push, reduce labor costs, and provide customers with suitable products in a timely manner.
[0111] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0112] Those skilled in the art may also understand that the various illustrative logical blocks, units, and steps listed in the embodiments of the present invention may be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly demonstrate the interchangeability of hardware and software, the various illustrative components, units, and steps described above have generally described their functions. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present invention.
[0113] The various illustrative logic blocks, or units, or devices described in the embodiments of the present invention can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of the above. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any conventional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.
[0114] The steps of the method or algorithm described in the embodiments of the present invention can be directly embedded in hardware, a software module executed by a processor, or a combination of the two. The software module can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or other storage media of any form in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a user terminal. Optionally, the processor and the storage medium can also be arranged in different components in the user terminal.
[0115] In one or more exemplary designs, the above functions described in the embodiments of the present invention can be implemented in hardware, software, firmware or any combination of the three. If implemented in software, these functions can be stored on a computer-readable medium, or transmitted in the form of one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media that facilitate the transfer of computer programs from one place to another. The storage medium can be any available medium that can be accessed by any general or special computer. For example, such computer-readable media can include but are not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store program codes in the form of instructions or data structures and other forms that can be read by general or special computers, or general or special processors. In addition, any connection can be appropriately defined as a computer-readable medium, for example, if the software is transmitted from a website site, server or other remote resource through a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wirelessly, such as infrared, wireless and microwave, it is also included in the defined computer-readable medium. The disk and disc include compact disk, laser disk, optical disk, DVD, floppy disk and blue-ray disk. Disks usually copy data magnetically, while discs usually copy data optically with lasers. The above combination can also be included in computer readable media.
Claims
1. A product information push method, characterized in that: include: Obtain product demand model; Get the current customer attribute information of the customer; Input the current customer attribute information into the product demand model to obtain the current product category; wherein, before inputting the current customer attribute information into the product demand model, the method further includes: obtaining the customer attribute information at the previous moment; comparing the current customer attribute information and the customer attribute information at the previous moment with the corresponding thresholds respectively to obtain the current comparison result and the comparison result at the previous moment; when it is determined that the current comparison result is different from the comparison result at the previous moment, triggering the input of the current customer attribute information into the product demand model; Pushing product information corresponding to the current product category to the customer; The product demand model is obtained in the following manner: pre-acquired historical customer attribute information and corresponding historical product categories are divided into training data and test data; a preset initial decision tree model is trained according to the training data to obtain a decision tree training model; the test data is input into each decision tree training model to obtain a corresponding test product category; the accuracy of each decision tree training model is determined according to the test product category and the corresponding historical product category; the decision tree training model corresponding to the maximum accuracy is used as the product demand model; Wherein, training a preset initial decision tree model according to the training data includes: obtaining classification conditions corresponding to each leaf node in the decision tree training model according to the training data; determining the product category of each leaf node according to the historical product category in each leaf node; obtaining the decision tree training model according to the classification conditions corresponding to each leaf node and the product category of each leaf node; Wherein, determining the product category of each leaf node includes: determining the weight of each historical product category in each leaf node according to the number of each historical product category in each leaf node, the number of each historical product category in the training data, and the number of training data in each leaf node; taking the historical product category corresponding to the maximum value of the weight in each leaf node as the product category of each leaf node; and specifically determining the weight of each historical product category in each leaf node by the following formula: Among them, ω ij is the weight of the jth historical product category of the i-th leaf node, δ ij is the number of the jth historical product category in the i-th leaf node, m j is the number of the jth historical product category in the training data, k i is the number of training data in the i-th leaf node.
2. The product information push method according to claim 1, characterized in that: Get the current product categories including: Determine the classification conditions satisfied by the current customer attribute information; The product category of the leaf node corresponding to the classification condition is used as the current product category.
3. A product information push system, characterized in that: include: A model acquisition unit, used to acquire a product demand model; An information acquisition unit, used to acquire the current customer attribute information of the customer; A product category unit is used to input the current customer attribute information into the product demand model to obtain the current product category; wherein the system also obtains the customer attribute information of the previous moment; respectively compares the current customer attribute information and the customer attribute information of the previous moment with the corresponding threshold value to obtain the current comparison result and the comparison result of the previous moment; when it is determined that the current comparison result is different from the comparison result of the previous moment, the product category unit is triggered to input the current customer attribute information into the product demand model; A product information unit, used to push product information corresponding to the current product category to the customer; The system further comprises: a division unit for dividing the pre-acquired historical customer attribute information and the corresponding historical product categories into training data and test data; a training unit for training a preset initial decision tree model according to the training data to obtain a decision tree training model; a testing unit for inputting the test data into each decision tree training model to obtain a corresponding test product category; an accuracy unit for determining the accuracy of each decision tree training model according to the test product category and the corresponding historical product category; a model determination unit for using the decision tree training model corresponding to the maximum value of the accuracy as the product demand model; The training unit is specifically used to: obtain the classification conditions corresponding to each leaf node in the decision tree training model according to the training data; determine the product category of each leaf node according to the historical product category in each leaf node; obtain the decision tree training model according to the classification conditions corresponding to each leaf node and the product category of each leaf node; The training unit is specifically used to: determine the weight of each historical product category in each leaf node according to the number of each historical product category in each leaf node, the number of each historical product category in the training data, and the number of training data in each leaf node; and use the historical product category corresponding to the maximum value of the weight in each leaf node as the product category of each leaf node; The training unit specifically determines the weight of each historical product category in each leaf node through the following formula: Among them, ω ij is the weight of the jth historical product category of the i-th leaf node, δ ij is the number of the jth historical product category in the i-th leaf node, m j is the number of the jth historical product category in the training data, k i is the number of training data in the i-th leaf node.
4. The product information push system according to claim 3, characterized in that: The product category unit is specifically used for: Determine the classification conditions satisfied by the current customer attribute information; The product category of the leaf node corresponding to the classification condition is used as the current product category.
5. A computer device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the product information push method according to any one of claims 1 to 2 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the product information push method according to any one of claims 1 to 2 are implemented.
