Information push method, device, computer equipment and storage medium based on data analysis
Process user behavior data through web crawler collection and feature engineering, and use potential user mining models to identify potential customers and push information. This solves the problem of low accuracy in mining potential customers in the auto insurance industry and achieves more efficient advertising push and cost reduction. .
Patent Information
- Application Number
- CN201910745385.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2039-08-13
AI Technical Summary
It is difficult for the existing auto insurance industry to accurately mine potential customers who are willing to insure online, resulting in low mining accuracy and high costs.
Collect user behavior data through web crawlers, perform one-hot encoding and normalization processing, input the pre-trained potential user mining model to output potential user prediction values, and determine potential users based on preset thresholds for information push.
It improves the accurate mining of potential insured users and the accuracy of advertising push, and reduces the cost for enterprises to obtain user information.
Smart Images

Figure CN110688553B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an information push method, device, computer equipment and storage medium based on data analysis. Background Art
[0002] With the development of science and technology and the economy, people's living standards are improving day by day, and people's pursuit of quality of life is getting higher and higher. Cars have gradually become an indispensable part of people's lives, and car insurance also provides protection for cars and people's lives. Existing car insurance customers usually learn about car insurance information through channels such as 4S stores or car maintenance shops and then purchase car insurance. However, this way of obtaining customer sources is relatively simple, and they are usually rigid customers for car insurance, and it is impossible to obtain information about potential customers. For some customers who are willing to take out insurance online, mining is usually carried out based on the user's browsing history. However, this mining method has low accuracy and high cost, and it is difficult to identify real and effective potential users. Summary of the invention
[0003] The embodiments of the present invention provide a method, device, computer equipment and storage medium for information push based on data analysis, aiming to solve the problem of low accuracy in mining online customers who are willing to purchase insurance.
[0004] In the first aspect, an embodiment of the present invention provides an information push method based on data analysis, which includes: collecting user behavior data by means of a web crawler; performing feature engineering processing on the behavior data by means of one-hot encoding and normalization to obtain target data; inputting the target data into a pre-trained potential user mining model to output a potential user prediction value, wherein the potential user prediction value is used to characterize the possibility that the user is a potential user; comparing the potential user prediction value with a preset threshold to determine the potential user and push information to the potential user.
[0005] In the second aspect, an embodiment of the present invention also provides an information push device based on data analysis, which includes: a crawler unit, used to collect user behavior data by means of a web crawler; a feature engineering unit, used to perform feature engineering processing on the behavior data by means of one-hot encoding and normalization to obtain target data; a prediction unit, used to input the target data into a pre-trained potential user mining model to output a potential user prediction value, and the potential user prediction value is used to characterize the possibility that the user is a potential user; a push unit, used to determine the potential user according to the comparison of the potential user prediction value with a preset threshold and push information to the potential user.
[0006] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0007] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
[0008] The embodiment of the present invention provides a method, device, computer equipment and storage medium for information push based on data analysis. The method includes: collecting user behavior data by means of a web crawler; performing feature engineering processing on the behavior data by means of unique hot encoding and normalization to obtain target data; inputting the target data into a pre-trained potential user mining model to output a potential user prediction value, the potential user prediction value is used to characterize the possibility that the user belongs to a potential user; comparing the potential user prediction value with a preset threshold to determine the potential user and push information to the potential user. The embodiment of the present invention collects user behavior data and processes the data by means of feature engineering processing, and then predicts the behavior data by means of a potential user mining model to mine potential users, thereby pushing advertisements to potential users, thereby improving the accuracy of mining potential insured users, effectively pushing advertisements, and reducing the cost of enterprises to obtain user information. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] 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.
[0010] Figure 1 A schematic diagram of an application scenario of the information push method based on data analysis provided by an embodiment of the present invention;
[0011] Figure 2 A schematic diagram of a flow chart of an information push method based on data analysis provided by an embodiment of the present invention;
[0012] Figure 3 A schematic diagram of a sub-process of an information push method based on data analysis provided by an embodiment of the present invention;
[0013] Figure 4 A schematic diagram of a sub-process of an information push method based on data analysis provided by an embodiment of the present invention;
[0014] Figure 5A schematic diagram of a sub-process of an information push method based on data analysis provided by an embodiment of the present invention;
[0015] Figure 6 A schematic diagram of a flow chart of an information push method based on data analysis provided by another embodiment of the present invention;
[0016] Figure 7 A schematic block diagram of an information push device based on data analysis provided by an embodiment of the present invention;
[0017] Figure 8 A schematic block diagram of specific units of the information push device based on data analysis provided by an embodiment of the present invention;
[0018] Fig. 9 A schematic block diagram of an information push device based on data analysis provided by another embodiment of the present invention; and
[0019] Fig.10 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] 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.
[0021] 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.
[0022] 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.
[0023] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0024] See also Figure 1 and Figure 2 , Figure 1A schematic diagram of an application scenario of the information push method based on data analysis provided in an embodiment of the present invention. Figure 2 The schematic flow chart of the information push method based on data analysis provided by the embodiment of the present invention is as follows: The potential user mining is applied in the terminal 10 and is realized through the interaction between the terminal 10 and the server 20.
[0025] Figure 2 1 is a flow chart of an information push method based on data analysis provided by an embodiment of the present invention. As shown in the figure, the method includes the following steps S110-S140.
[0026] S110, collecting user behavior data by means of a web crawler.
[0027] In one embodiment, the user's behavior data refers to data on the user's actions on the network and the network records the actions, for example, the user searches for compulsory traffic insurance on Taobao. A web crawler is a program or script that automatically crawls World Wide Web information according to certain rules. Specifically, firstly, a certain part of the web pages is selected as the starting page, and the web pages are crawled from the starting page by means of a web crawler. After the crawling is completed, the large number of crawled web pages are screened to obtain the target web page, which is the web page that the user will browse. Finally, the user's behavior data of browsing the target web page is obtained from the preset database of the target web page.
[0028] In one embodiment, if Figure 3 As shown, the step S110 may include steps: S111-S113.
[0029] S111, crawling a preset web page by means of a web crawler.
[0030] Specifically, a web crawler refers to a program that automatically crawls World Wide Web information according to certain rules, which mainly includes three parts: collection, storage, and processing. Specifically, first select the URL of a representative web page as the initial URL to start crawling data from the server. The preset web page is a representative web page. The initial URL is based on the customer's perspective. Usually, customers will search for car insurance information through search engines. Therefore, for example, the result page of searching for compulsory traffic insurance on Baidu can be used as the initial URL, and the result page of searching for compulsory traffic insurance on Taobao can also be used as the initial URL; then the crawled web page is stored and parsed and filtered. The crawled initial URL contains a new URL. The initial URL is parsed to filter the new URL and select insurance-related URLs. For example, the URL of FAQ about insurance is put into the URL queue waiting to be crawled, and the other irrelevant URLs are abandoned; finally, the URL of the web page to be crawled next is selected in the URL queue to be crawled, and the above process is repeated until the entire network is traversed and stopped.
[0031] S112: Screen the crawled web pages according to a preset web page index to obtain a target web page.
[0032] Specifically, since the crawled web pages contain a large number of worthless web pages, it is necessary to further screen the crawled web pages, select some valuable web pages as target web pages, that is, web pages that users are likely to browse, and evaluate and screen the crawled web pages according to the preset web page index to obtain the target web pages. Among them, the preset web page index refers to the web page index provided by the data sharing platform based on the massive search and browsing behavior data of netizens from major search engines. The web page index is specifically a value obtained by a series of evaluations based on the browsing data of the website (views, browsing time, number of views). For example, the official website of Insurance Company A has a web page index of 89. Obtain the preset web page index of the crawled web pages, sort the crawled web pages from high to low according to the preset web page index, and select the top ten web pages as the target web pages. Of course, it is understandable that other numbers of web pages can also be selected as target web pages.
[0033] S113: Acquire user behavior data from a preset database according to the target webpage.
[0034] Specifically, the preset database refers to a database storing target web pages, and the preset database stores all data related to the target web pages. Specifically, after the target web page is screened, the interface of the target web page is called according to the URL of the target web page, and the interface is provided after the target web page operator agrees. The web page log of the target web page is obtained from the preset database by calling the interface of the target web page. After the web page log is obtained, the obtained web page log is parsed to finally obtain the user's behavior data, wherein the user's behavior data includes: user information, user browsing history, user IP address, etc.
[0035] S120, performing feature engineering processing on the behavior data by means of one-hot encoding and normalization to obtain target data.
[0036] In one embodiment, feature engineering refers to the process of converting raw data into target data for a model. Common feature engineering methods include: timestamp processing, decomposing category attributes, binning / partitioning, cross-features, feature selection, feature scaling, and feature extraction. Behavioral data is mainly divided into two categories, one is numerical behavioral data, such as vehicle age, browsing time, and annual income, and the other is non-numerical behavioral data, such as favorites, comments, follows, and adding to shopping carts. Specifically, non-numerical behavioral data is converted into target data for model input by decomposing category attributes, and numerical behavioral data is converted into target data for model input by feature scaling.
[0037] In one embodiment, if Figure 4 As shown, the step S120 may include steps: S121 - S122.
[0038] S121. Perform one-hot encoding on the non-numeric behavior data to obtain target data.
[0039] Specifically, for non-numerical features, feature engineering is performed by decomposing categories. The specific method of decomposing category attributes is to encode behavioral data through one-hot encoding, which uses an N-bit state register to encode N states. Each state has its own independent register bit, and at any time, only one of them is valid. For example, the attributes of gender include male and female. After one-hot encoding, the target data of "male" is [1,0], and the target data of "female" is [0,1]. For another example, whether the user has collected the webpage, after one-hot encoding, the target data of "collected" is [1,0], and the target data of "not collected" is [0,1].
[0040] S122. Normalizing the numerical behavior data according to a preset formula to obtain target data.
[0041] Specifically, feature engineering is performed by feature scaling for numerical features. Since some numerical features have much higher span values than other features, such as annual income and age, in order to avoid a large difference in the size of some features with other features, the feature values need to be scaled to the same range. Specifically, a preset formula is used to normalize the numerical target data. The preset formula is as follows:
[0042] ;
[0043] in, is the normalized feature value, X is the current user feature parameter, minX is the minimum parameter of the current user feature, and maxX is the maximum parameter of the current user feature. For example, the maximum annual income is 500,000, the minimum annual income is 60,000, and the current user's annual income is 100,000. After normalization, the normalized feature value between 0 and 1 is 0.09.
[0044] S130: Input the target data into a pre-trained potential user mining model to output a potential user prediction value, where the potential user prediction value is used to characterize the possibility that the user is a potential user.
[0045] In one embodiment, the potential user mining model is specifically constructed using the Gradient Boosting Decision Tree algorithm. The Gradient Boosting Decision Tree is a combined decision tree algorithm, which is mainly achieved by connecting multiple decision trees in series. The next decision tree learns to use the residual of the previous decision tree, and the residual is obtained by the gradient. All decision trees combined together are the Gradient Boosting Decision Tree. For example, predicting potential users, where the features include: user age and user annual income, the ages of users A, B, C, and D are 18, 26, 36, and 41, respectively, and the annual incomes are 0, 300,000, 100,000, and 500,000, respectively. First, the first decision tree divides users AB into the category of under 30 years old and CD into the category of over 30 years old according to the age label (based on 30 years old). The predicted values of ABCD as potential users are 0.1, 0.3, 0.6, and 0.8, respectively. The residual of AB is the difference between the average value of the predicted value of AB and the predicted value. Therefore, the average value of the predicted value of AB is 0.2, and the residuals of AB are -0.1 and -0.1, respectively. 0.1; the average value of CD's prediction value is 0.7, and CD's residuals are -0.1 and 0.1 respectively. Then the next decision tree predicts based on the residual of the previous decision tree, and divides AC into those below 150,000 and BD into those above 150,000 according to the annual income label (based on 150,000). The next decision tree solves based on the residual of the previous decision tree, and the residual value of AC obtained by the next decision tree is 0, that is, (-0.1+0.1) / 2=0, and the residual value of BC is also 0. Finally, the residuals of all users are 0, so the final prediction values of ABCD are 0, 0.4, 0.5 and 0.9 respectively. The final prediction value is the sum of the prediction value and the residual. The core of its prediction is that each tree learns the residual of the sum of the conclusions of all previous trees. The potential user mining model has been pre-trained and is run on the Spark platform to predict the target data. Spark is a fast and general computing engine designed for large-scale data processing. The Spark platform includes the algorithm component Spark MLlib (Machine Learning Library). Spark MLlib includes an algorithm library, which includes a gradient boosting decision tree algorithm. Spark MLlib provides an algorithm interface for the gradient boosting decision tree algorithm to predict the target data.
[0046] In one embodiment, if Figure 5 As shown, the step S130 may include steps: S131 - S132.
[0047] S131. Construct a target sample according to the target data.
[0048] Specifically, the target sample refers to a sample consisting of target data and a label that can be used as input for the model. The target sample is divided into positive samples and negative samples. The label value of the positive sample is 1, and the label value of the negative sample is 0. For example, a positive sample is an annual income greater than or equal to 100,000, and a negative sample is an example of not buying a car. If the customer's annual income is 100,000, then the target sample is (0.09, 1), where 0.09 is the feature value and 1 is the label value; if the customer does not buy a car, then the target sample is (0, 0).
[0049] S132: Input the target sample into a gradient boosting decision tree model to iteratively update and output a predicted value of the potential user.
[0050] Specifically, the potential user mining model uses the gradient boosting decision tree algorithm. The gradient boosting decision tree algorithm is through multiple rounds of iterations. Each round of iteration obtains a decision tree. Each round of decision trees is fitted based on the loss function of the previous round of decision trees. Finally, the conclusions of all decision trees are accumulated to obtain the predicted value. Specifically, the formula of the gradient boosting decision tree algorithm is as follows:
[0051] ;
[0052] in, Represents the model, represents a decision tree, is the decision tree parameter, m is the number of decision trees, L is the loss function, x is the sample feature, y is the sample label, the sample feature and sample label constitute the target sample, the label value is 0 or 1, i is the number of samples, and T uses the CART decision tree, which is a typical binary decision tree that can be used for classification or regression. Specifically, first initialize the decision tree, that is, , then calculate the loss function based on the target sample, then update the model based on the loss function, continue to iterate the model until the iteration ends to obtain the final model, and finally sum and average the predicted values of each decision tree in the model to obtain the predicted value of the potential user.
[0053] S140: Determine potential users according to the potential user prediction value and a preset threshold value, and push information to the potential users.
[0054] In one embodiment, after obtaining the predicted value of a potential user, the predicted value of the potential user is compared with a preset threshold. If the predicted value of the potential user is greater than the preset threshold, the user is determined to be a potential user; if the predicted value of the potential user is less than the preset threshold, the user is determined to be a non-potential user. For example, if the preset threshold is 0.6 and the predicted value of the potential user is 0.8, then the predicted value of the user is greater than the preset threshold and the user is determined to be a potential user. After obtaining the potential users, advertisements are pushed to these potential users. The pushed advertisements may be insurance information, automobile insurance product information, and insurance links. Specifically, the list of potential users and the advertising link are sent to the operator of the target web page, and the operator pushes the advertising link when the potential user logs in to browse the web page according to the user's IP address.
[0055] In one embodiment, if Figure 6 As shown, after step S140, steps S150-S160 are also included.
[0056] S150: Obtain feedback results of the advertisement push.
[0057] In one embodiment, the feedback result refers to whether the potential user has opened the advertisement link pushed by the target webpage. If the user has opened the advertisement link pushed by the target webpage, it is positive feedback; if the user has not opened the advertisement link pushed by the target webpage, it is negative feedback. Specifically, the feedback result is obtained from the target webpage, and the feedback result is stored in the preset database of the target webpage operator in the form of a webpage log. Therefore, the interface is called to obtain and parse the webpage log from the preset database of the target webpage, and then the URL of the pushed advertisement link is set as a rule string through a regular expression, and the browsing record of browsing the advertisement link is filtered out from the webpage log, and the browsing record is the feedback result.
[0058] S160: Prompt optimization of the potential user mining model through email according to the feedback result.
[0059] In one embodiment, whether the user mining model needs to be optimized is mainly judged by the conversion rate. The conversion rate refers to the ratio of the number of potential users who browsed the pushed advertising links to the number of all potential users. The more potential users who browsed the pushed advertising links, the higher the conversion rate. Specifically, the actual conversion rate is compared with the expected conversion rate. If the actual conversion rate is greater than the expected conversion rate, it means that the conversion effect of the potential user mining model is good and the model does not need to be optimized; if the actual conversion rate is less than the expected conversion rate, it means that the conversion effect of the potential user mining model is poor and the model needs to be optimized. A prompt email is generated based on the feedback results and sent to the email address of the model manager to prompt that the model needs to be optimized.
[0060] The embodiment of the present invention demonstrates an information push method based on data analysis, which collects user behavior data by means of a web crawler; performs feature engineering processing on the behavior data by means of one-hot encoding and normalization to obtain target data; inputs the target data into a pre-trained potential user mining model to output a potential user prediction value, and the potential user prediction value is used to characterize the possibility that the user is a potential user; compares the potential user prediction value with a preset threshold to determine the potential user and pushes information to the potential user, thereby mining potential insured users, effectively pushing advertisements, and reducing the cost for enterprises to obtain user information.
[0061] Figure 7 FIG. 2 is a schematic block diagram of an information push device 200 based on data analysis provided by an embodiment of the present invention. Figure 7 As shown, corresponding to the above-mentioned information push method based on data analysis, the present invention also provides an information push device 200 based on data analysis. The information push device 200 based on data analysis includes a unit for executing the above-mentioned information push method based on data analysis, and the device can be configured in a desktop computer, a tablet computer, a laptop computer, etc. Specifically, please refer to Figure 7 The information pushing device 200 based on data analysis includes: a crawler unit 210, a feature engineering unit 220, a prediction unit 230 and a pushing unit 240.
[0062] The crawler unit 210 is used to collect user behavior data by means of a network crawler.
[0063] In one embodiment, user behavior data refers to data on the user's actions on the Internet and the network records the actions, for example, a user searches for compulsory traffic insurance on Taobao. A web crawler is a program or script that automatically crawls World Wide Web information according to certain rules. Specifically, firstly, a certain number of web pages are selected as the starting page, and the web pages are crawled from the starting page by means of a web crawler. After the crawling is completed, the large number of crawled web pages are screened to obtain the target web page, which is the web page that the user will browse. Finally, the user's behavior data on browsing the target web page is obtained from the preset database of the target web page.
[0064] In one embodiment, if Figure 8 As shown, the crawler unit 210 includes: a crawler sub-unit 211, a screening unit 212 and an acquisition sub-unit 213.
[0065] The crawler subunit 211 is used to crawl preset web pages by means of a web crawler.
[0066] Specifically, a web crawler refers to a program that automatically crawls World Wide Web information according to certain rules, which mainly includes three parts: collection, storage, and processing. Specifically, first select the URL of a representative web page as the initial URL to start crawling data from the server. The preset web page is a representative web page. The initial URL is based on the customer's perspective. Usually, customers will search for car insurance information through search engines. Therefore, for example, the result page of searching for compulsory traffic insurance on Baidu can be used as the initial URL, and the result page of searching for compulsory traffic insurance on Taobao can also be used as the initial URL; then the crawled web page is stored and parsed and filtered. The crawled initial URL contains a new URL. The initial URL is parsed to filter the new URL and select insurance-related URLs. For example, the URL of FAQ about insurance is put into the URL queue waiting to be crawled, and the other irrelevant URLs are abandoned; finally, the URL of the web page to be crawled next is selected in the URL queue to be crawled, and the above process is repeated until the entire network is traversed and stopped.
[0067] The screening unit 212 is used to screen the crawled web pages according to a preset web page index to obtain a target web page.
[0068] Specifically, since the crawled web pages contain a large number of worthless web pages, it is necessary to further screen the crawled web pages, select some valuable web pages as target web pages, that is, web pages that users are likely to browse, and evaluate and screen the crawled web pages according to the preset web page index to obtain the target web pages. Among them, the preset web page index refers to the web page index provided by the data sharing platform based on the massive search behavior data of netizens from major search engines. Obtain the preset web page index of the crawled web pages, sort the crawled web pages from high to low according to the preset web page index, and select the top ten web pages as the target web pages. Of course, it is understandable that other numbers of web pages can also be selected as target web pages.
[0069] The acquisition subunit 213 is used to acquire the user's behavior data from a preset database according to the target web page.
[0070] Specifically, the preset database refers to a database storing target web pages, and the preset database stores all data related to the target web pages. Specifically, after the target web page is screened, the interface of the target web page is called according to the URL of the target web page, and the interface is provided after the target web page operator agrees. The web page log of the target web page is obtained from the preset database by calling the interface of the target web page. After the web page log is obtained, the obtained web page log is parsed to finally obtain the user's behavior data, wherein the user's behavior data includes: user information, user browsing history, user IP address, etc.
[0071] The feature engineering unit 220 is used to perform feature engineering processing on the behavior data by one-hot encoding and normalization to obtain target data.
[0072] In one embodiment, feature engineering refers to the process of converting raw data into target data for a model. Common feature engineering methods include: timestamp processing, decomposing category attributes, binning / partitioning, cross-features, feature selection, feature scaling, and feature extraction. Behavioral data is mainly divided into two categories, one is numerical behavioral data, such as vehicle age, browsing time, and annual income, and the other is non-numerical behavioral data, such as favorites, comments, follows, and adding to shopping carts. Specifically, non-numerical behavioral data is converted into target data for model input by decomposing category attributes, and numerical behavioral data is converted into target data for model input by feature scaling.
[0073] In one embodiment, if Figure 8 As shown, the feature engineering unit 220 includes: an encoding unit 221 and a normalization unit 222.
[0074] The encoding unit 221 is used to perform one-hot encoding on the non-numeric behavior data to obtain target data.
[0075] Specifically, for non-numerical features, feature engineering is performed by decomposing categories. The specific method of decomposing category attributes is to encode behavioral data through one-hot encoding, which uses an N-bit state register to encode N states. Each state has its own independent register bit, and at any time, only one of them is valid. For example, the attributes of gender include male and female. After one-hot encoding, the target data of "male" is [1,0], and the target data of "female" is [0,1]. For another example, whether the user has collected the webpage, after one-hot encoding, the target data of "collected" is [1,0], and the target data of "not collected" is [0,1].
[0076] The normalization unit 222 is used to normalize the numerical behavior data according to a preset formula to obtain target data.
[0077] Specifically, feature engineering is performed by feature scaling for numerical features. Since some numerical features have much higher span values than other features, such as annual income and age, in order to avoid a large difference in the size of some features with other features, the feature values need to be scaled to the same range. Specifically, a preset formula is used to normalize the numerical target data. The preset formula is as follows:
[0078] ;
[0079] in, is the normalized feature value, X is the current user feature parameter, minX is the minimum parameter of the current user feature, and maxX is the maximum parameter of the current user feature. For example, the maximum annual income is 500,000, the minimum annual income is 60,000, and the current user's annual income is 100,000. After normalization, the normalized feature value between 0 and 1 is 0.09.
[0080] The prediction unit 230 is used to input the target data into a pre-trained potential user mining model to output a potential user prediction value, where the potential user prediction value is used to characterize the possibility that the user is a potential user.
[0081] In one embodiment, the potential user mining model is specifically constructed using the Gradient Boosting Decision Tree algorithm. The Gradient Boosting Decision Tree is a combined decision tree algorithm, which is mainly achieved by connecting multiple decision trees in series. The next decision tree learns to use the residual of the previous decision tree, and the residual is obtained by the gradient. All decision trees combined together are the Gradient Boosting Decision Tree. For example, predicting potential users, where the features include: user age and user annual income, the ages of users A, B, C, and D are 18, 26, 36, and 41, respectively, and the annual incomes are 0, 300,000, 100,000, and 500,000, respectively. First, the first decision tree divides users AB into the category of under 30 years old and CD into the category of over 30 years old according to the age label (based on 30 years old). The predicted values of ABCD as potential users are 0.1, 0.3, 0.6, and 0.8, respectively. The residual of AB is the difference between the average value of the predicted value of AB and the predicted value. Therefore, the average value of the predicted value of AB is 0.2, and the residuals of AB are -0.1 and -0.1, respectively. 0.1; the average value of CD's prediction value is 0.7, and CD's residuals are -0.1 and 0.1 respectively. Then the next decision tree predicts based on the residual of the previous decision tree, and divides AC into those below 150,000 and BD into those above 150,000 according to the annual income label (based on 150,000). The next decision tree solves based on the residual of the previous decision tree, and the residual value of AC obtained by the next decision tree is 0, that is, (-0.1+0.1) / 2=0, and the residual value of BC is also 0. Finally, the residuals of all users are 0, so the final prediction values of ABCD are 0, 0.4, 0.5 and 0.9 respectively. The final prediction value is the sum of the prediction value and the residual. The core of its prediction is that each tree learns the residual of the sum of the conclusions of all previous trees. The potential user mining model has been pre-trained and is run on the Spark platform to predict the target data. Spark is a fast and general computing engine designed for large-scale data processing. The Spark platform includes an algorithm component SparkMLlib (Machine Learning Library). Spark MLlib includes an algorithm library, which includes a gradient boosting decision tree algorithm. Spark MLlib provides an algorithm interface for the gradient boosting decision tree algorithm to predict the target data.
[0082] In one embodiment, if Figure 8 As shown, the feature engineering unit 220 includes: a construction unit 231 and a prediction subunit 232.
[0083] The construction unit 231 is used to construct a target sample according to the target data.
[0084] Specifically, the target sample refers to a sample consisting of target data and a label that can be used as input for the model. The target sample is divided into positive samples and negative samples. The label value of the positive sample is 1, and the label value of the negative sample is 0. For example, a positive sample is an annual income greater than or equal to 100,000, and a negative sample is an example of not buying a car. If the customer's annual income is 100,000, then the target sample is (0.09, 1), and if the customer does not buy a car, then the target sample is (0, 0).
[0085] The prediction subunit 232 is used to input the target sample into the gradient boosting decision tree model to iteratively update and output the prediction value of the potential user.
[0086] Specifically, the potential user mining model uses the gradient boosting decision tree algorithm. The gradient boosting decision tree algorithm is through multiple rounds of iterations. Each round of iteration obtains a decision tree. Each round of decision trees is fitted based on the loss function of the previous round of decision trees. Finally, the conclusions of all decision trees are accumulated to obtain the predicted value. Specifically, the formula of the gradient boosting decision tree algorithm is as follows:
[0087] ;
[0088] in, Represents the model, represents a decision tree, is the decision tree parameter, m is the number of decision trees, L is the loss function, x is the sample feature, y is the sample label, the sample feature and sample label constitute the target sample, the label value is 0 or 1, i is the number of samples, and T uses the CART decision tree, which is a typical binary decision tree that can be used for classification or regression. Specifically, first initialize the decision tree, that is, , then calculate the loss function based on the target sample, then update the model based on the loss function, continue to iterate the model until the iteration ends to obtain the final model, and finally sum and average the predicted values of each decision tree in the model to obtain the predicted value of the potential user.
[0089] The push unit 240 is used to determine the potential user according to the comparison between the potential user prediction value and a preset threshold value and push information to the potential user.
[0090] In one embodiment, after obtaining the predicted value of a potential user, the predicted value of the potential user is compared with a preset threshold. If the predicted value of the potential user is greater than the preset threshold, the user is determined to be a potential user; if the predicted value of the potential user is less than the preset threshold, the user is determined to be a non-potential user. For example, if the preset threshold is 0.6 and the predicted value of the potential user is 0.8, then the predicted value of the user is greater than the preset threshold and the user is determined to be a potential user. After obtaining the potential users, advertisements are pushed to these potential users. The pushed advertisements may be insurance information, automobile insurance product information, and insurance links. Specifically, the list of potential users and the advertising link are sent to the operator of the target web page, and the operator pushes the advertising link when the potential user logs in to browse the web page according to the user's IP address.
[0091] In one embodiment, if Fig. 9 As shown, the information push device 200 based on data analysis further includes: an acquisition unit 250 and a prompt unit 260 .
[0092] The acquisition unit 250 is used to acquire the feedback result of the advertisement push.
[0093] In one implementation, the feedback result refers to whether the potential user has opened the advertising link pushed by the target webpage. If the user has opened the advertising link pushed by the target webpage, it is positive feedback; if the user has not opened the advertising link pushed by the target webpage, it is negative feedback. Specifically, the feedback result is obtained from the target webpage, and the feedback result is stored in the preset database of the target webpage operator in the form of a webpage log. Therefore, the interface is called to obtain and parse the webpage log from the preset database of the target webpage, and then the URL of the pushed advertising link is set as a rule string through a regular expression, and the browsing record of browsing the advertising link is filtered out from the webpage log, and the browsing record is the feedback result.
[0094] The prompting unit 260 is used to prompt optimization of the potential user mining model through email according to the feedback result.
[0095] In one implementation, whether the user mining model needs to be optimized is mainly judged by the conversion rate. The conversion rate refers to the ratio of the number of potential users who browsed the pushed advertising links to the number of all potential users. The more potential users who browsed the pushed advertising links, the higher the conversion rate. Specifically, the actual conversion rate is compared with the expected conversion rate. If the actual conversion rate is greater than the expected conversion rate, it means that the conversion effect of the potential user mining model is good and the model does not need to be optimized; if the actual conversion rate is less than the expected conversion rate, it means that the conversion effect of the potential user mining model is poor and the model needs to be optimized.
[0096] The embodiment of the present invention demonstrates an information push device based on data analysis, which collects user behavior data by means of a web crawler; performs feature engineering processing on the behavior data by means of one-hot encoding and normalization to obtain target data; inputs the target data into a pre-trained potential user mining model to output a potential user prediction value, and the potential user prediction value is used to characterize the possibility that the user is a potential user; compares the potential user prediction value with a preset threshold to determine the potential user and pushes information to the potential user, thereby mining potential insured users, effectively pushing advertisements, and reducing the cost for enterprises to obtain user information.
[0097] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned information push device 200 based on data analysis and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0098] The above-mentioned information push device based on data analysis can be implemented in the form of a computer program. The computer program can be used in Fig.10 Runs on the computer device shown.
[0099] See also Fig.10 , Fig.10 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. Fig.10 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 .
[0100] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute an information push method based on data analysis.
[0101] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0102] 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 an information push method based on data analysis.
[0103] The network interface 505 is used to communicate with other devices over the network. Fig.10 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application 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.
[0104] Among them, the processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps: collect user behavior data by means of a web crawler; perform feature engineering processing on the behavior data by means of one-hot encoding and normalization to obtain target data; input the target data into a pre-trained potential user mining model to output a potential user prediction value, and the potential user prediction value is used to characterize the possibility that the user is a potential user; compare the potential user prediction value with a preset threshold to determine the potential user and push information to the potential user.
[0105] In one embodiment, when the processor 502 implements the step of collecting user behavior data by means of a web crawler, it specifically implements the following steps: crawling a preset web page by means of a web crawler; filtering the crawled web pages according to a preset web page index to obtain a target web page; and obtaining the user's behavior data from a preset database according to the target web page.
[0106] In one embodiment, when the processor 502 implements the step of performing feature engineering processing on the behavior data by one-hot encoding and normalization to obtain target data, it specifically implements the following steps: performing one-hot encoding on the non-numeric behavior data to obtain target data; and normalizing the numeric behavior data according to a preset formula to obtain target data.
[0107] In one embodiment, when the processor 502 implements the step of inputting the target data into a pre-trained potential user mining model to output a potential user prediction value, wherein the potential user prediction value is used to characterize the possibility that the user is a potential user, the processor 502 specifically implements the following steps: constructing a target sample based on the target data; inputting the target sample into a gradient boosting decision tree model to iteratively update and output a prediction value for the potential user.
[0108] In one embodiment, after implementing the steps of comparing the potential user prediction value with a preset threshold to determine the potential user and pushing information to the potential user, the processor 502 also implements the following steps: obtaining the feedback result of the advertisement push; and optimizing the potential user mining model through email according to the feedback result.
[0109] It should be understood that in the embodiment of the present application, 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.
[0110] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0111] Therefore, the present invention also provides a storage medium. The storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by the processor, the processor executes the following steps: collecting user behavior data by means of a web crawler; performing feature engineering processing on the behavior data by means of unique hot encoding and normalization to obtain target data; inputting the target data into a pre-trained potential user mining model to output a potential user prediction value, wherein the potential user prediction value is used to characterize the possibility that the user belongs to a potential user; comparing the potential user prediction value with a preset threshold to determine the potential user and push information to the potential user.
[0112] In one embodiment, when the processor executes the program instructions to implement the step of collecting user behavior data by means of a web crawler, it specifically implements the following steps: crawling a preset web page by means of a web crawler; filtering the crawled web pages according to a preset web page index to obtain a target web page; and obtaining the user's behavior data from a preset database according to the target web page.
[0113] In one embodiment, when the processor executes the program instructions to implement the step of performing feature engineering processing on the behavior data by one-hot encoding and normalization to obtain target data, the processor specifically implements the following steps: performing one-hot encoding on the non-numeric behavior data to obtain target data; and normalizing the numeric behavior data according to a preset formula to obtain target data.
[0114] In one embodiment, when the processor executes the program instructions to implement the step of inputting the target data into a pre-trained potential user mining model to output a potential user prediction value, wherein the potential user prediction value is used to characterize the possibility that the user is a potential user, the following steps are specifically implemented: constructing a target sample based on the target data; inputting the target sample into a gradient boosting decision tree model to iteratively update and output the prediction value of the potential user.
[0115] In one embodiment, after the processor executes the program instructions to implement the steps of comparing the potential user prediction value with a preset threshold to determine the potential user and pushing information to the potential user, it also implements the following steps: obtaining feedback results of the advertisement push; and optimizing the potential user mining model through email based on the feedback results.
[0116] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0117] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in 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 terms of function in the above description. Whether these functions are performed 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 be beyond the scope of the present invention.
[0118] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0119] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0120] 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 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. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0121] 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 method for pushing information based on data analysis, characterized in that: include: Collect user behavior data through web crawlers; Performing feature engineering processing on the behavior data by one-hot encoding and normalization to obtain target data; Inputting the target data into a pre-trained potential user mining model to output a potential user prediction value, wherein the potential user prediction value is used to characterize the possibility that the user is a potential user; Determine potential users based on the comparison between the potential user prediction value and a preset threshold value and push information to the potential users; The method of performing feature engineering on the behavior data by one-hot encoding and normalization to obtain target data includes: performing one-hot encoding on the non-numerical behavior data to obtain target data, specifically, performing feature engineering on non-numerical features by decomposing categories, and the method of decomposing category attributes is specifically to encode the behavior data by one-hot encoding, wherein the method is to encode N states by using an N-bit state register, each state has its own independent register bit, and only one of them is valid at any time; The numerical behavior data is normalized according to a preset formula to obtain target data. Specifically, feature engineering is performed on numerical features by using feature scaling, and the numerical target data is normalized by using a preset formula. The preset formula is as follows: X′=(X-minX) / (maxX-minX) Among them, X′ is the normalized feature value, X is the current user feature parameter, minX is the minimum parameter of the current user feature, and maxX is the maximum parameter of the current user feature; The step of inputting the target data into a pre-trained potential user mining model to output a potential user prediction value, wherein the potential user prediction value is used to characterize the possibility that the user is a potential user, comprises: constructing a target sample according to the target data; The target sample is input into the gradient boosting decision tree model for iterative update to output the predicted value of the potential user, wherein the formula of the gradient boosting decision tree algorithm is as follows: ; in, Represents the model, represents a decision tree, is the decision tree parameter, m is the number of decision trees, L is the loss function, x is the sample feature, y is the sample label, the sample feature and sample label constitute the target sample, the label value is 0 or 1, i is the number of samples, and T uses the CART decision tree; specifically, the decision tree is initialized, that is, , calculate the loss function based on the target sample, update the model based on the loss function, continue to iterate the model until the iteration ends to obtain the final model, and sum and average the predicted values of each decision tree in the model to obtain the predicted value of the potential user; After comparing the potential user prediction value with a preset threshold to determine the potential user and push information to the potential user, the method further includes: obtaining feedback results of the advertisement push; Prompt optimization of the potential user mining model through email according to the feedback result; Whether the user mining model needs to be optimized is judged by the conversion rate, wherein the conversion rate refers to the ratio of the number of potential users who browsed the pushed advertising link to the total number of potential users; the actual conversion rate is compared with the expected conversion rate, and if the actual conversion rate is lower than the expected conversion rate, the model is optimized.
2. The information push method based on data analysis according to claim 1, characterized in that: The collecting of user behavior data by means of a web crawler includes: crawling a preset web page by means of a web crawler; The crawled web pages are screened according to a preset web page index to obtain a target web page; The user's behavior data is obtained from a preset database according to the target webpage.
3. An information push device based on data analysis, characterized in that: include: A crawler unit is used to collect user behavior data by means of a web crawler; A feature engineering unit, used for performing feature engineering processing on the behavior data by one-hot encoding and normalization to obtain target data; The feature engineering unit includes: an encoding unit, which is used to perform one-hot encoding on the non-numerical behavior data to obtain target data. Specifically, for non-numerical features, feature engineering is performed by decomposing categories. The decomposing category attribute method is specifically to encode the behavior data by one-hot encoding, that is, one-hot encoding, in which an N-bit state register is used to encode N states, each state has its own independent register bit, and at any time, only one of them is valid; The normalization unit is used to normalize the numerical behavior data according to a preset formula to obtain target data. Specifically, feature engineering is performed for numerical features by using feature scaling, and the preset formula is used to normalize the numerical target data. The preset formula is as follows: X′=(X-minX) / (maxX-minX) Among them, X′ is the normalized feature value, X is the current user feature parameter, minX is the minimum parameter of the current user feature, and maxX is the maximum parameter of the current user feature; The prediction unit is used to input the target data into a pre-trained potential user mining model to output a potential user prediction value, and the potential user prediction value is used to characterize the possibility that the user belongs to a potential user, including: constructing a target sample according to the target data; inputting the target sample into a gradient boosting decision tree model for iterative update to output the prediction value of the potential user, wherein the formula of the gradient boosting decision tree algorithm is as follows: ; in, Represents the model, represents a decision tree, is the decision tree parameter, m is the number of decision trees, L is the loss function, x is the sample feature, y is the sample label, the sample feature and sample label constitute the target sample, the label value is 0 or 1, i is the number of samples, and T uses the CART decision tree; specifically, the decision tree is initialized, that is, , calculate the loss function based on the target sample, update the model based on the loss function, continue to iterate the model until the iteration ends to obtain the final model, and sum and average the predicted values of each decision tree in the model to obtain the predicted value of the potential user; A push unit is used to determine potential users by comparing the potential user prediction value with a preset threshold and push information to the potential users; obtain feedback results of advertisement push; prompt optimization of the potential user mining model through email according to the feedback results; whether the user mining model needs to be optimized is judged by conversion rate, wherein the conversion rate refers to the ratio of the number of potential users who browse the pushed advertisement link to the number of all potential users; compare the actual conversion rate with the expected conversion rate, and if the actual conversion rate is lower than the expected conversion rate, optimize the model.
4. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 2 when executing the computer program.
5. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 2 can be implemented.
