Online advertising optimization method and system based on machine learning
By constructing an accurate advertising delivery model and optimizing the processing of repeated ads, the problem of inaccurate and repeated online advertising is solved, and the advertising effect and user experience are improved.
Patent Information
- Application Number
- CN202410313722.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-19
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-03-19
AI Technical Summary
Existing online advertising suffers from inaccurate advertising, resulting in users being uninterested, wasting resources, reducing click-through rates and conversion rates, and affecting brand image; at the same time, repeated advertising leads to user brand fatigue and reduces brand awareness and favorability.
Using a method based on machine learning, through the collection and preprocessing of advertising delivery data, we build an accurate advertising delivery model and use logistic regression hypothesis function and maximum likelihood estimation to screen target users; at the same time, we process repeated advertisements by calculating initial node values and priority queues. Optimize based on page relevance.
It achieves accuracy in advertising and reduces duplication, increases advertising click-through rate and conversion rate, and enhances brand image and user experience.
Smart Images

Figure CN118212015B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of data processing technology, and specifically relates to an online advertising delivery optimization method and system based on machine learning. Background Art
[0002] Online advertising is a digital marketing strategy that attracts potential customers, increases brand awareness, and promotes sales by displaying advertisements on the Internet. It accurately targets the target audience based on their characteristics and behaviors to improve advertising effectiveness and return on investment. However, existing online advertising has technical problems such as inaccurate advertising, lack of user interest, waste of advertiser resources, reduced ad click-through rate and conversion rate, and impact on brand image; and repeated advertising leads to brand fatigue among users, reducing brand awareness and favorability. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an online advertising delivery optimization method and system based on machine learning. In view of the technical problems that inaccurate advertising delivery and user lack of interest lead to waste of advertisers' resources, reduce advertising click-through rate and conversion rate, and affect brand image, the target audience of advertising delivery is determined, an advertising precision delivery model is constructed, the hypothesis function of logistic regression is used, the update vector is solved by maximum likelihood estimation and stochastic gradient ascent method, and the probability that the classifier judgment parameter is a positive example is calculated according to the feature vector, and the probability threshold is set to screen out the target users who need advertising delivery and perform precise delivery; in view of the technical problem that repeated advertising delivery leads to brand fatigue among users and reduces brand awareness and favorability, the value of the initial node is calculated, a priority queue is constructed, the head node is accessed and the access list is updated, the operation is repeated, the system goal is clarified, and repeated advertising is processed according to page relevance.
[0004] The technical solution adopted by the present invention is as follows: The online advertising delivery optimization method based on machine learning provided by the present invention comprises the following steps:
[0005] Step S1: Advertisement delivery data collection, collecting advertisement delivery related data, including user behavior data, advertisement click data, and advertisement display data;
[0006] Step S2: data preprocessing;
[0007] Step S3: precise advertising delivery, specifically determining the target audience for advertising delivery, building a precise advertising delivery model, using the hypothesis function of logistic regression, using maximum likelihood estimation and stochastic gradient ascent method to solve the update vector, and calculating the probability that the classifier judgment parameter is a positive example based on the feature vector, setting the probability threshold, screening out the target users who need advertising delivery, and performing precise delivery;
[0008] Step S4: Repeated advertisement processing, specifically calculating the value of the initial node, building a priority queue, accessing the head node and updating the access list, repeating the operation, clarifying the system goal and performing repeated advertisement processing according to page relevance;
[0009] Step S5: Regular evaluation and adjustment.
[0010] Furthermore, in step S1, the advertising delivery data collection specifically collects advertising delivery related data, including user behavior data, advertisement click data and advertisement display data.
[0011] Furthermore, in step S2, the data preprocessing includes the following steps:
[0012] Step S21: data cleaning, filling in missing data and processing abnormal data;
[0013] Step S22: Data dimensionality reduction, dimensionality reduction processing is performed on high-dimensional data to reduce the dimension of data features and reduce the risk of overfitting.
[0014] Furthermore, in step S3, the advertisement is accurately delivered, including the following steps:
[0015] Step S31: Determine the target audience for advertisement delivery, collect target audience information, the target audience information includes the characteristics, interests and behaviors of the target audience, and create a user portrait based on the target audience information to more accurately locate the target user group;
[0016] Step S32: construct an accurate advertising delivery model, determine whether the user is the target audience of the advertisement, and perform accurate advertising delivery, including the following steps:
[0017] Step S321: define a training data set, establish a correspondence between sample features and labels, and use it to train an accurate advertising delivery model. The formula used is as follows:
[0018] T={(x 1 ,y 1 ), (x 2 ,y 2 ),...,(x i ,y i )};
[0019] In the formula, T represents the training data set, which contains multiple sample data pairs, (x i ,y i ) represents the i-th sample data pair in the training data set T, i represents the index of the sample, x i is an n-dimensional vector containing the characteristic information of the sample, y iis the corresponding label, which is used to indicate whether the sample data is a positive example or a negative example. The value is 0 or 1. 1 indicates a positive example, that is, the advertisement is accurately delivered, and 0 indicates a negative example, that is, the advertisement is not accurately delivered.
[0020] Step S322: define the hypothesis function of logistic regression, the formula used is as follows:
[0021]
[0022] In the formula, h θ (x) is the hypothesis function. In logistic regression, the value output by the hypothesis function represents the probability that the sample belongs to a positive example. θ is the parameter vector, which is the parameter of the logistic regression model and is used to fit the relationship between the feature vector and the label. x is the input feature vector, which contains the eigenvalues of the sample. The hypothesis function obtains the predicted value by operating the feature vector x and the parameter vector θ. T x represents the dot product of the parameter vector θ and the eigenvector x. The dot product is the scalar product of two vectors, which represents their angular relationship in space. T represents the transpose of the vector.
[0023] Step S323: Establish a logistic regression hypothesis and calculate the probability of the sample label given the input feature vector and parameter vector. The formula used is as follows:
[0024] P(y|x;θ)=(h θ (x) y (1-h θ (x) 1-y ;
[0025] Where P(y|x; θ) represents the probability of the sample label given the input feature vector x and parameter vector θ, and y is the sample label;
[0026] Step S324: Use maximum likelihood estimation and stochastic gradient ascent method to solve the parameter vector, narrow the gap between the model prediction value and the true label, and implement model training. The formula used is as follows:
[0027]
[0028]
[0029] In the formula, L(θ) represents the loss function, which is used to measure the gap between the model prediction value and the true label, N represents the number of samples, and h(x i ) represents the predicted value of the i-th sample, that is, the probability that the sample calculated by the hypothesis function is a positive example, θ j represents the updated value of the jth parameter, j represents the index of the parameter, and α is the update step size, which is used to control the convergence speed of the parameter solution. represents the eigenvalue of the jth parameter of the i-th sample;
[0030] Step S325: Calculate the probability of positive examples based on the obtained parameters, calculate the probability of the classifier judging it as a positive example under the feature vector x through the given feature vector, pre-set the probability threshold, the classifier judges the instance with probability value greater than the threshold as a positive number, and judges the instance with probability value less than the threshold as a negative number, and screens out the precise target users for advertising delivery. The formula used is as follows:
[0031]
[0032] Where P(y=1|x;θ) represents the probability of sample label y=1 given the input feature vector x and parameter vector θ, which represents the probability that the sample is classified as a positive example. is the sigmoid function in logistic regression, which is the linear combination θ T x is mapped to [0, 1], indicating the probability that the sample belongs to a positive example, θ T represents the transpose of the parameter vector θ, and x represents the input feature vector;
[0033] Step S326: Calculate the classification error rate on the training set to evaluate the performance of the basic classifier. The formula used is as follows:
[0034] G m (x): X→{-1,+1};
[0035]
[0036] In the formula, G m (x) represents the mth basic classifier, which is used to classify and predict the input feature vector x, X represents the input sample space, and {-1, +1} represents the output result of the basic classifier, which is used for the binary classification task; e m represents the classification error rate of the mth basic classifier, which is used to measure the performance of the classifier on the training set, w m,i represents the weight of the i-th sample in the m-th classifier, I() represents the indicator function, when the condition in the brackets is met, the function value is 1, otherwise it is 0, and m is the index of the basic classifier;
[0037] Step S33: Monitor the effectiveness of advertising. Set clear monitoring indicators, including click-through rate, conversion rate and ROI. Regularly monitor the effectiveness of advertising. Analyze the changing trends of various monitoring indicators. According to the monitoring results and evaluation reports, timely adjust the advertising strategy, including adjusting the target audience positioning, advertising content creativity and delivery time.
[0038] Furthermore, in step S4, the duplicate advertisement processing adopts the best priority strategy, including the following steps:
[0039] Step S41: Calculate the value of the initial node, the value of the initial node represents the weight of the node, add the value of the initial node to the priority queue to be visited, and initialize an empty list to save the visited nodes;
[0040] Step S42: access the head node and update the access list, obtain the head node of the priority queue, access the head node, and add the head node to the accessed node list, indicating that the node has been visited;
[0041] Step S43: Process the child nodes, obtain all the child nodes of the currently visited node, and if the child node does not exist in the visited node list, calculate the value of the child node and add it to the priority queue of the node to be visited, to ensure that the system processes the node according to the priority;
[0042] Step S44: repeat the operation, repeating steps S42 and S43 until the priority queue of the node to be visited is empty and all nodes have been visited;
[0043] Step S45: clarifying the system goal and analyzing the page relevance, analyzing the similarity and relevance between the URLs of all pages to be crawled and the system goal, which helps the system to process duplicate advertisements more effectively and improve processing efficiency, including the following steps:
[0044] Step S451: Identify relevant pages and perform similarity and correlation analysis on URLs to help the system better identify pages related to system targets and obtain useful advertising information more quickly;
[0045] Step S452: Set the crawling priority. Based on the similarity and correlation analysis results of the URL, the system sets different crawling priorities for different pages, focusing on pages with high relevance to the target and giving priority to pages with high relevance.
[0046] Furthermore, in step S5, the periodic evaluation and adjustment includes the following steps:
[0047] Step S51: adjusting the content and copy of the advertisement, and optimizing the creativity and content of the advertisement according to the results of data analysis to make it more attractive;
[0048] Step S52: Optimize the target webpage. If the advertisement click-through rate is high but the conversion rate is low, it is necessary to optimize the design and content of the target webpage to improve the user conversion rate.
[0049] The online advertising delivery optimization system based on machine learning provided by the present invention includes an advertising delivery data collection module, a data preprocessing module, a precision delivery module, a duplicate advertisement processing module and a regular evaluation and adjustment module;
[0050] The advertising data collection module is specifically used to collect advertising related data, including user behavior data, advertising click data and advertising display data;
[0051] The data preprocessing module is specifically used for data cleaning and data dimension reduction;
[0052] The precise advertising delivery module specifically determines the target audience for advertising delivery, builds a precise advertising delivery model, uses the hypothesis function of logistic regression, uses maximum likelihood estimation and stochastic gradient ascent method to solve the update vector, and calculates the probability that the classifier judgment parameter is a positive example based on the feature vector, sets the probability threshold, and screens out the target users who need advertising delivery;
[0053] The duplicate advertisement processing module specifically calculates the value of the initial node, builds a priority queue, accesses the head node and updates the access list, repeats the operation, clarifies the system goal and processes duplicate advertisements according to page relevance;
[0054] The regular evaluation and adjustment module specifically adjusts the advertisement content and copywriting and optimizes the target web page.
[0055] The beneficial results achieved by the present invention using the above scheme are as follows:
[0056] (1) To address the technical issues of inaccurate advertising, lack of user interest, waste of advertiser resources, reduced click-through rate and conversion rate, and impact on brand image, we determined the target audience for advertising, built an advertising precision delivery model, used the hypothesis function of logistic regression, used maximum likelihood estimation and stochastic gradient ascent method to solve the update vector, and calculated the probability of the classifier judgment parameter being a positive example based on the feature vector, set the probability threshold, screened out the target users who needed advertising, and carried out precise delivery;
[0057] (2) To address the technical problem of repeated advertising, which causes brand fatigue among users and reduces brand awareness and favorability, we calculated the value of the initial node, built a priority queue, accessed the head node and updated the access list, repeated the operation, clarified the system goals, and processed duplicate advertisements based on page relevance. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A schematic diagram of the process of the online advertising delivery optimization method based on machine learning provided by the present invention;
[0059] Figure 2 A schematic diagram of an online advertising delivery optimization system based on machine learning provided by the present invention;
[0060] Figure 3 is a schematic flow chart of step S3;
[0061] Figure 4 It is a schematic diagram of the process of step S4.
[0062] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0063] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0064] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0065] Example 1, see Figure 1 The online advertising delivery optimization method based on machine learning provided by the present invention comprises the following steps:
[0066] Step S1: Advertisement delivery data collection, collecting advertisement delivery related data, including user behavior data, advertisement click data, and advertisement display data;
[0067] Step S2: data preprocessing;
[0068] Step S3: precise advertising delivery, specifically determining the target audience for advertising delivery, building a precise advertising delivery model, using the hypothesis function of logistic regression, using maximum likelihood estimation and stochastic gradient ascent method to solve the update vector, and calculating the probability that the classifier judgment parameter is a positive example based on the feature vector, setting the probability threshold, screening out the target users who need advertising delivery, and performing precise delivery;
[0069] Step S4: Repeated advertisement processing, specifically calculating the value of the initial node, building a priority queue, accessing the head node and updating the access list, repeating the operation, clarifying the system goal and performing repeated advertisement processing according to page relevance;
[0070] Step S5: Regular evaluation and adjustment.
[0071] Example 2, see Figure 1 This embodiment is based on the above embodiment. In step S1, the advertising delivery data collection specifically collects advertising delivery related data, including user behavior data, advertising click data and advertising display data.
[0072] Example 3, see Figure 1 This embodiment is based on the above embodiment. In step S2, the data preprocessing includes the following steps:
[0073] Step S21: data cleaning, filling in missing data and processing abnormal data;
[0074] Step S22: Data dimensionality reduction, dimensionality reduction processing is performed on high-dimensional data to reduce the dimension of data features and reduce the risk of overfitting.
[0075] Example 4, see Figure 1 and Figure 3 This embodiment is based on the above embodiment. In step S3, the advertisement is accurately delivered, including the following steps:
[0076] Step S31: Determine the target audience for advertisement delivery, collect target audience information, the target audience information includes the characteristics, interests and behaviors of the target audience, and create a user portrait based on the target audience information to more accurately locate the target user group;
[0077] Step S32: construct an accurate advertising delivery model, determine whether the user is the target audience of the advertisement, and perform accurate advertising delivery, including the following steps:
[0078] Step S321: define a training data set, establish a correspondence between sample features and labels, and use it to train an accurate advertising delivery model. The formula used is as follows:
[0079] T={(x 1 ,y 1 ), (x 2 ,y 2 ),...,(x i ,y i )};
[0080] In the formula, T represents the training data set, which contains multiple sample data pairs, (x i ,y i ) represents the i-th sample data pair in the training data set T, i represents the index of the sample, x i is an n-dimensional vector containing the characteristic information of the sample, y i is the corresponding label, which is used to indicate whether the sample data is a positive example or a negative example. The value is 0 or 1. 1 indicates a positive example, that is, the advertisement is accurately delivered, and 0 indicates a negative example, that is, the advertisement is not accurately delivered.
[0081] Step S322: define the hypothesis function of logistic regression, the formula used is as follows:
[0082]
[0083] In the formula, h θ (x) is the hypothesis function. In logistic regression, the value output by the hypothesis function represents the probability that the sample belongs to a positive example. θ is the parameter vector, which is the parameter of the logistic regression model and is used to fit the relationship between the feature vector and the label. x is the input feature vector, which contains the eigenvalues of the sample. The hypothesis function obtains the predicted value by operating the feature vector x and the parameter vector θ. T x represents the dot product of the parameter vector θ and the eigenvector x. The dot product is the scalar product of two vectors, which represents their angular relationship in space. T represents the transpose of the vector.
[0084] Step S323: Establish a logistic regression hypothesis and calculate the probability of the sample label given the input feature vector and parameter vector. The formula used is as follows:
[0085] P(y|x;θ)=(h θ (x)) y (1-h θ (x)) 1-y ;
[0086] Where P(y|x; θ) represents the probability of the sample label given the input feature vector x and parameter vector θ, and y is the sample label;
[0087] Step S324: Use maximum likelihood estimation and stochastic gradient ascent method to solve the parameter vector, narrow the gap between the model prediction value and the true label, and implement model training. The formula used is as follows:
[0088]
[0089]
[0090] In the formula, L(θ) represents the loss function, which is used to measure the gap between the model prediction value and the true label, N represents the number of samples, and h(x i ) represents the predicted value of the i-th sample, that is, the probability that the sample calculated by the hypothesis function is a positive example, θ j represents the updated value of the jth parameter, j represents the index of the parameter, and α is the update step size, which is used to control the convergence speed of the parameter solution. represents the eigenvalue of the jth parameter of the i-th sample;
[0091] Step S325: Calculate the probability of positive examples based on the obtained parameters, calculate the probability of the classifier judging it as a positive example under the feature vector x through the given feature vector, pre-set the probability threshold, the classifier judges the instance with probability value greater than the threshold as a positive number, and judges the instance with probability value less than the threshold as a negative number, and screens out the precise target users for advertising delivery. The formula used is as follows:
[0092]
[0093] Where P(y=1|x;θ) represents the probability of sample label y=1 given the input feature vector x and parameter vector θ, which represents the probability that the sample is classified as a positive example. is the sigmoid function in logistic regression, which is the linear combination θ T x is mapped to [0, 1], indicating the probability that the sample belongs to a positive example, θ T represents the transpose of the parameter vector θ, and x represents the input feature vector;
[0094] Step S326: Calculate the classification error rate on the training set to evaluate the performance of the basic classifier. The formula used is as follows:
[0095] G m (x): X→{-1,+1};
[0096]
[0097] In the formula, G m (x) represents the mth basic classifier, which is used to classify and predict the input feature vector x, X represents the input sample space, and {-1, +1} represents the output result of the basic classifier, which is used for the binary classification task; e m represents the classification error rate of the mth basic classifier, which is used to measure the performance of the classifier on the training set, w m,i represents the weight of the i-th sample in the m-th classifier, I() represents the indicator function, when the condition in the brackets is met, the function value is 1, otherwise it is 0, and m is the index of the basic classifier;
[0098] Step S33: Monitor the effectiveness of advertising. Set clear monitoring indicators, including click-through rate, conversion rate and ROI. Regularly monitor the effectiveness of advertising. Analyze the changing trends of various monitoring indicators. According to the monitoring results and evaluation reports, timely adjust the advertising strategy, including adjusting the target audience positioning, advertising content creativity and delivery time.
[0099] By performing the above operations, a precise advertising delivery model is constructed, the hypothesis function of logistic regression is used, the update vector is solved by maximum likelihood estimation and stochastic gradient ascent method, and the probability that the classifier judgment parameter is a positive example is calculated based on the feature vector. The probability threshold is set, and the target users who need advertising delivery are screened out for precise delivery. This solves the technical problems of inaccurate advertising delivery, user lack of interest, waste of advertisers' resources, reduced advertising click-through rate and conversion rate, and impact on brand image.
[0100] Example 5, see Figure 1 and Figure 4 This embodiment is based on the above embodiment. In step S4, the duplicate advertisement processing adopts the best priority strategy, including the following steps:
[0101] Step S41: Calculate the value of the initial node, the value of the initial node represents the weight of the node, add the value of the initial node to the priority queue to be visited, and initialize an empty list to save the visited nodes;
[0102] Step S42: access the head node and update the access list, obtain the head node of the priority queue, access the head node, and add the head node to the accessed node list, indicating that the node has been visited;
[0103] Step S43: Process the child nodes, obtain all the child nodes of the currently visited node, and if the child node does not exist in the visited node list, calculate the value of the child node and add it to the priority queue of the node to be visited, to ensure that the system processes the node according to the priority;
[0104] Step S44: repeat the operation, repeating steps S42 and S43 until the priority queue of the node to be visited is empty and all nodes have been visited;
[0105] Step S45: clarifying the system goal and analyzing the page relevance, analyzing the similarity and relevance between the URLs of all pages to be crawled and the system goal, which helps the system to process duplicate advertisements more effectively and improve processing efficiency, including the following steps:
[0106] Step S451: Identify relevant pages and perform similarity and correlation analysis on URLs to help the system better identify pages related to system targets and obtain useful advertising information more quickly;
[0107] Step S452: Set the crawling priority. Based on the similarity and correlation analysis results of the URL, the system sets different crawling priorities for different pages, focusing on pages with high relevance to the target and giving priority to pages with high relevance.
[0108] By performing the above operations, the value of the initial node is calculated, the priority queue is constructed, the head node is accessed and the access list is updated, the operation is repeated, the system goals are clarified, and repeated advertising is processed according to page relevance. This solves the technical problem of repeated advertising, which causes brand fatigue among users and reduces brand awareness and favorability.
[0109] Example 6, see Figure 1 This embodiment is based on the above embodiment. In step S5, the periodic evaluation and adjustment includes the following steps:
[0110] Step S51: adjusting the content and copy of the advertisement, and optimizing the creativity and content of the advertisement according to the results of data analysis to make it more attractive;
[0111] Step S52: Optimize the target webpage. If the advertisement click-through rate is high but the conversion rate is low, it is necessary to optimize the design and content of the target webpage to improve the user conversion rate.
[0112] Embodiment 7, see Figure 2 , this embodiment is based on the above embodiment, and the online advertising delivery optimization system based on machine learning provided by the present invention includes an advertising delivery data collection module, a data preprocessing module, a precise delivery module, a duplicate advertising processing module and a regular evaluation and adjustment module;
[0113] The advertising data collection module is specifically used to collect advertising related data, including user behavior data, advertising click data and advertising display data;
[0114] The data preprocessing module is specifically used for data cleaning and data dimension reduction;
[0115] The precise advertising delivery module specifically determines the target audience for advertising delivery, builds a precise advertising delivery model, uses the hypothesis function of logistic regression, uses maximum likelihood estimation and stochastic gradient ascent method to solve the update vector, and calculates the probability that the classifier judgment parameter is a positive example based on the feature vector, sets the probability threshold, and screens out the target users who need advertising delivery;
[0116] The duplicate advertisement processing module specifically calculates the value of the initial node, builds a priority queue, accesses the head node and updates the access list, repeats the operation, clarifies the system goal and processes duplicate advertisements according to page relevance;
[0117] The regular evaluation and adjustment module specifically adjusts the advertisement content and copywriting and optimizes the target web page.
[0118] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0119] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.
[0120] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. An online advertising delivery optimization method based on machine learning, characterized in that: The method comprises the following steps: Step S1: Collecting advertisement data; Step S2: data preprocessing; Step S3: precise advertising delivery, specifically determining the target audience for advertising delivery, building a precise advertising delivery model, using the hypothesis function of logistic regression, using maximum likelihood estimation and stochastic gradient ascent method to solve the update vector, and calculating the probability that the classifier judgment parameter is a positive example based on the feature vector, setting the probability threshold, screening out the target users who need advertising delivery, and performing precise delivery; Step S4: Repeated advertisement processing, specifically calculating the value of the initial node, building a priority queue, accessing the head node and updating the access list, repeating the operation, clarifying the system goal and performing repeated advertisement processing according to page relevance; Step S5: Regular evaluation and adjustment; In step S3, the advertisement is accurately delivered, including the following steps: Step S31: determine the target audience for advertising, collect target audience information, and create a user portrait based on the target audience information; Step S32: constructing an accurate advertising delivery model, including the following steps: Step S321: define a training data set, establish a correspondence between sample features and labels, and use it to train an accurate advertising delivery model. The formula used is as follows: ; In the formula, T represents the training data set, which contains multiple sample data pairs. represents the i-th sample data pair in the training data set T, i represents the index of the sample, x i is an n-dimensional vector containing the characteristic information of the sample, y i is the corresponding label, which is used to indicate whether the sample data is a positive example or a negative example. The value is 0 or 1. 1 indicates a positive example, that is, the advertisement is accurately delivered, and 0 indicates a negative example, that is, the advertisement is not accurately delivered. Step S322: define the hypothesis function of logistic regression, the formula used is as follows: ; In the formula, is the hypothesis function, θ is the parameter vector, which is the parameter of the logistic regression model and is used to fit the relationship between the feature vector and the label. x is the input feature vector, which contains the eigenvalues of the samples. represents the dot product of the parameter vector θ and the eigenvector x. The dot product is the scalar product of two vectors, which represents their angular relationship in space. T represents the transpose of the vector. Step S323: Establish a logistic regression hypothesis and calculate the probability of the sample label given the input feature vector and parameter vector. The formula used is as follows: ; In the formula, represents the probability of the sample label under the condition of a given input feature vector x and parameter vector θ, y is the sample label; Step S324: Use maximum likelihood estimation and stochastic gradient ascent method to solve the parameter vector and implement model training. The formula used is as follows: ; ; In the formula, L(θ) represents the loss function, which is used to measure the gap between the model prediction value and the true label, N represents the number of samples, represents the predicted value of the i-th sample, that is, the probability that the sample calculated by the hypothesis function is a positive example, θ j represents the updated value of the jth parameter, j represents the index of the parameter, and α is the update step size, which is used to control the convergence speed of the parameter solution. represents the eigenvalue of the jth parameter of the i-th sample; Step S325: Calculate the probability of positive examples based on the obtained parameters, calculate the probability of the classifier judging it as a positive example under the feature vector x through the given feature vector, pre-set the probability threshold, the classifier judges the instance with probability value greater than the threshold as a positive number, and judges the instance with probability value less than the threshold as a negative number, and screens out the precise target users for advertising delivery. The formula used is as follows: ; In the formula, represents the probability of sample label y=1 given the input feature vector x and parameter vector θ, indicating the probability that the sample is classified as a positive example, It is the sigmoid function in logistic regression, which combines the linear Mapped to [0, 1], indicating the probability that the sample belongs to a positive example, θ T represents the transpose of the parameter vector θ, and x represents the input feature vector; Step S326: Calculate the classification error rate on the training set to evaluate the performance of the basic classifier. The formula used is as follows: ; ; In the formula, G m (x) represents the mth basic classifier, which is used to classify and predict the input feature vector x, X represents the input sample space, and {-1, +1} represents the output result of the basic classifier, which is used for the binary classification task; e m Represents the classification error rate of the mth basic classifier, which is used to measure the performance of the classifier on the training set. represents the weight of the i-th sample in the m-th classifier, I() represents the indicator function, when the condition in the brackets is met, the function value is 1, otherwise it is 0, and m is the index of the basic classifier; Step S33: Monitor the effect of advertising, set clear monitoring indicators, regularly monitor the effect of advertising, analyze the changing trends of various monitoring indicators, and adjust the advertising strategy in a timely manner according to the monitoring results and evaluation reports; In step S4, the duplicate advertisement processing includes the following steps: Step S41: Calculate the value of the initial node, the value of the initial node represents the weight of the node, add the value of the initial node to the priority queue to be visited, and initialize an empty list to save the visited nodes; Step S42: access the head node and update the access list, obtain the head node of the priority queue, access the head node, and add the head node to the accessed node list, indicating that the node has been visited; Step S43: Process the child nodes, obtain all the child nodes of the currently visited node, and if the child node does not exist in the visited node list, calculate the value of the child node and add it to the priority queue of the node to be visited, to ensure that the system processes the node according to the priority; Step S44: repeat the operation, repeating steps S42 and S43 until the priority queue of the node to be visited is empty and all nodes have been visited; Step S45: clarifying the system target and analyzing the page relevance, analyzing the similarity and relevance between the URLs of all pages to be crawled and the system target, including the following steps: Step S451: Identify related pages and perform similarity and correlation analysis on URLs to help the system better identify pages related to the system target; Step S452: Set the crawling priority. Based on the similarity and correlation analysis results of the URL, the system sets different crawling priorities for different pages, focusing on pages with high relevance to the target and giving priority to pages with high relevance.
2. The online advertising delivery optimization method based on machine learning according to claim 1, characterized in that: In step S1, the advertising data collection specifically collects advertising related data, including user behavior data, advertising click data and advertising display data.
3. The online advertising delivery optimization method based on machine learning according to claim 1, characterized in that: In step S2, the data preprocessing includes the following steps: Step S21: data cleaning, filling in missing data and processing abnormal data; Step S22: Data dimensionality reduction, performing dimensionality reduction processing on high-dimensional data.
4. The online advertising delivery optimization method based on machine learning according to claim 1, characterized in that: In step S5, the periodic evaluation and adjustment includes the following steps: Step S51: adjusting the advertisement content and copywriting, and optimizing the advertisement creativity and content according to the results of data analysis; Step S52: Optimize the target webpage. When the advertisement click rate is high but the conversion rate is low, optimize the design and content of the target webpage.
5. An online advertising delivery optimization system based on machine learning, used to implement the online advertising delivery optimization method based on machine learning as described in any one of claims 1 to 4, characterized in that: It includes an advertising data collection module, a data preprocessing module, an advertising precision delivery module, a duplicate advertising processing module and a regular evaluation and adjustment module.
6. The online advertising delivery optimization system based on machine learning according to claim 5, characterized in that: The advertising data collection module is specifically used to collect advertising related data, including user behavior data, advertising click data and advertising display data; The data preprocessing module is specifically used for data cleaning and data dimension reduction; The precise advertising delivery module specifically determines the target audience for advertising delivery, builds a precise advertising delivery model, uses the hypothesis function of logistic regression, uses maximum likelihood estimation and stochastic gradient ascent method to solve the update vector, and calculates the probability that the classifier judgment parameter is a positive example based on the feature vector, sets a threshold, and screens out the target users who need advertising delivery; The duplicate advertisement processing module specifically calculates the value of the initial node, builds a priority queue, accesses the head node and updates the access list, repeats the operation, clarifies the system goal and processes duplicate advertisements according to page relevance; The regular evaluation and adjustment module specifically adjusts the advertisement content and copywriting and optimizes the target web page.
