Abstract

In digital marketing, the core advantages of scientific and technological means such as artificial intelligence and big data analysis gradually appear and pay attention to them. This paper studies the accuracy of digital marketing and proposes an intelligent algorithm based on data analysis, which improves the effect of marketing communication. Through the combination of intelligent algorithms and big data analysis, the data are convincing. Through the comparison and improvement of intelligent algorithm logistic regression and XGBoost, this paper puts forward an improved algorithm of XGBoost based on Bayesian optimization parameters, which can improve the efficiency of digital marketing communication and enhance the social influence of digital marketing.

1. Introduction

In recent years, the purchasing power of the former Millennium baby has gradually appeared in the market. Major businesses are also actively formulating marketing strategies. At present, major Internet platforms are also competing for this market cake and actively applying digital marketing communication strategies to influence the purchasing behavior of this generation and actively communicate with consumers through digital media interactions such as short videos and social media [1]. By adding chat robots and introducing platform intelligent algorithms, each platform actively communicates with target consumers, designs the company’s marketing strategy, and collects and analyzes data with consumers before and after purchase to assist the platform to formulate reasonable and effective digital marketing plans and assist decision-making and support [2].

The research on digital marketing has been gradually deepened. Some researchers have incorporated consumer identity into purchase decision support, created consumer demand unconsciously through social platforms, and formed the intervention of social psychological mechanism, which can tap the potential consumption of consumers and provide targeted sales suggestions for manufacturers [3].

In the process of digital marketing, integrating computer and communication technology, innovatively adopting digital tools, carrying out interactive digital marketing research, and providing market decision support for manufacturers through data-driven marketing are a new direction of future development [4].

In the industrial market, some studies put forward the method of evaluating the marketing performance of industrial enterprises through correlation analysis, optimizing the communication efficiency by using digital marketing, and increasing the sales opportunities in the industrial market through statistical analysis of data [5].

In the process of brand marketing communication, through artificial intelligence algorithm, a large number of data are collected based on consumers’ personal emotions, and the empathy mechanism in the network environment is to build a communication bridge between consumers and producers and improve brand communication awareness through consumer emotion subdivision. [6] In the development process of digital marketing, artificial intelligence, and big data technology, it is the development trend of digital marketing to effectively evaluate the marketing effect and customize the marketing for you. Compared with the traditional mode, digital marketing embodies high efficiency, measurability, and flexibility [7].

With the prevalence of digitalization, combined with AI algorithm analysis and big data environment, the strategic decision-making of enterprises can be enhanced, and the risks and opportunities of business operations can be discovered early. Through structural equation technology modeling of the questionnaire survey, it is found that big data and AI algorithm have a positive impact on the marketing activities of digital marketing [8].

Network marketing and digital marketing complement each other in modern enterprise marketing, and the current fashion market is gradually migrating from offline to online, establishing corporate brand image online and offline [9]. In the digital marketing environment, this paper combines the common artificial intelligence algorithm logistic regression algorithm and XGBoost algorithm to improve and proposes Bayesian optimization algorithm to improve the parameter optimization process of XGBoost algorithm.

2. Digital Marketing Communication Mode

Marketing model [10] has experienced three historical times, namely, traditional marketing model, network marketing model, and digital marketing model. Fundamentally speaking, the three marketing methods are distinguished based on route, category, and methodology. The changes in each stage are brought about by the changes in consumers’ shopping technology and the results of scientific and technological progress.

Digital marketing is a combination of computer, communication, digital multimedia, and other technologies to achieve the purpose of traditional marketing, and its essence is a marketing method derived from traditional marketing methods or replaced by tools [11]. The pursuit of digital marketing is to effectively extract the target customer information from the massive data information and to maximize the use of computer technology to efficiently open up the market and tap the needs of consumers to meet the needs. Digital marketing through marketing matrix [12]: using popular interactive digital multimedia means, such as Douyin short video, Aauto Quicker, Weibo, forum, WeChat circle of friends, select effective targets in the database for targeted marketing to achieve a high conversion rate. Digital marketing acts as a bridge, reduces marketing costs, and embodies customized, targeted, and efficient communication. Through the multichannel cooperation of digital marketing communication, it can effectively interact with consumers, improve the communication efficiency between consumers and manufacturers, and enhance the digital transformation of enterprises. The specific marketing system model is shown in Figure 1.

A product is alive, and this problem should be fully considered in the process of digital marketing. From entering the market, a product will enter the market from 0 blank (opening period, introduction period) to 1 market recognition (growth period, maturity period), and to 0 exit from the market (recession period). This life cycle mainly includes four stages. Marketing strategies and algorithms are combined with the life cycle of different products, so as to enhance the activity of products in the life cycle and, at the same time, make consumers resonate and have a high sense of identity with products. The following is a comparison of product life cycle and product sales curve, as shown in Figure 2.

3. Intelligent Algorithm

By understanding the needs of consumers, Peter Drucker, a famous management guru, pointed out that the ultimate goal of marketing is to gain business insight and understand users’ needs. With the development of artificial intelligence and big data technology [13], enterprises can understand the actual needs of users, improve the service quality of enterprises, and establish the brand image of enterprises through technical means. Through big data technology, we analyze the consumption and purchase behavior of each user, compile the “portrait” of users, distinguish customers, and provide differentiated and valuable targeted services [14]. For example, Xiao Li bought a pair of running shoes online, and his purchase records were recorded in the database. Then, he would push all kinds of socks, sportswear, running-related items, and fitness knowledge for Xiao Li. Through the data recorded by users’ daily online consumption, purchase, and browsing, combined with artificial intelligence algorithms and other technologies, the consumption logic of consumers’ purchase behavior is excavated, which provides decision-making basis for digital marketing and promotes market transactions. [15] The daily behavior data of users through technical means are analyzed, predicted the future behavior consumption path, gradually enriched the “portraits” of characters, spread the company’s cultural values, aroused consumers’ recognition, improved marketing efficiency, and achieved marketing effects. Figure 3 shows a digital marketing feedback training model for consumer demand, forming a closed-loop effect of interactive feedback.

Mobile Internet makes digital marketing grow rapidly. The massive data generated by major Internet platforms every day are the real content of public actual participation. Enterprises are closely concerned about making good use of the data of major Internet platforms and carrying out targeted marketing communication. Nowadays, short videos and online dramas are very popular with the younger generation [16], and most of these videos are entertaining. By recording users’ usage habits and combining with corresponding artificial intelligence algorithms, the platform makes targeted recommendations to target customers, creating fan product economy, achieving accurate marketing, and realizing traffic realization while harvesting large traffic [17]. In order to achieve accurate marketing, decision-making will be more and more based on data and analysis, and enterprises will optimize their operations based on data analysis [18]. The essence of machine learning is to count and find similar data with certain statistical laws, and its goal is to find an optimized model from the regular data space [19]. The framework of digital marketing design by machine learning algorithm is shown in Figure 4. Evaluation criteria and marketing communication performance are important basis for measuring the quality of a model. Combined with specific needs, the evaluation indicators and communication performance reference parameters suitable for this problem are selected. Intelligent algorithm can improve the accuracy of digital marketing, improve personalization and recommendation system, optimize paid advertising, optimize the time and channel of marketing promotion, improve the automation of marketing process, and understand and predict user behavior, etc.

In this paper, several classification algorithms which are relatively frequently used in real life are selected, and the optimal combination method suitable for digital marketing is found by modeling, comparative analysis, and comparison results, and quantitative and qualitative indicators are distinguished [20]. The selection algorithm and improved algorithm are introduced below.

3.1. Multivariate Logistic Regression

This paper is based on the classification of digital marketing user categories. If there are N categories, they can be expressed as {1, 2, ..., k}. Suppose the dataset , ; , i = 1, ..., n.

The binary logistic regression [21] model assumes that the logarithm of the ratio of posterior probabilities belonging to two categories 0 and 1 is linear, as shown by the following formula:

By the logic of the above formula, the logistic regression model can also be called the logarithmic probability model [22]. It is a model with Class 0 as the base class. By analogy, extending to multiple classes, and setting class K as the base class, the logarithmic probability of K−1 is also as follows:where .

Formulas (4) and (5) are derived from formula (3) as follows:

From the above derivation, we can know that logarithmic probability can be reflected by the prediction results of the linear regression model in multivariate logistic regression. This model is called “logarithmic probability regression,” also known as logistic regression [23], and the logistic regression function will not be affected by wrong assumptions, so data modeling can be carried out directly.

3.2. XGBoost

XGBoost algorithm [24], whose full name is the limit gradient lifting algorithm, is an improved learning algorithm of the decision tree. It was proposed by Dr. Chen Tianqi of Washington University in 2014. This algorithm has excellent ability and is widely used in industry, medicine, aviation, economy, and other fields. The algorithm is characterized by parallel computing, giving full play to the advantages of CPU multithreading, and improving the efficiency of data propagation through the improved algorithm.

Given n data samples , with m characteristic attributes, the additive model is used to predict the output.where the regression tree space is represented by which represents all trees, and the structure of each tree is denoted by Q, and the total number of leaves on the tree is denoted by T. Each learner corresponds to an independent tree structure q and leaf weight , and it is determined whether the selection algorithm parameters are the best effect [25] by using an objective function defined as follows:

As can be seen from the above formula, it contains two parts. The left part of the plus sign is the loss function , also known as the differentiable loss function, and it is used to measure the difference between the predicted value and actual value . This result is also called training error. The right part of the plus sign is represented as a regular term, which punishes the weight of leaf nodes and achieves the purpose of optimizing the objective function through addition training [26] to avoid the influence of overfitting.

Incorporating the predicted value into the following formula minimizes the loss function:

Put the loss term at [27], as shown in the following formula:

Here are the first and second partial derivatives of the loss function L, respectively [28]. The constant term is removed and changed it to the following formula:

Through the function defined above, the regularization term is defined as

In formula (9), the smaller the values of γ and λ, the more complex the model is. Let be the sample of leaf node j, and the formula can be changed as follows:

The weight of j in the value corresponding to the objective function is as follows:

The optimal solution can be obtained by bringing the above formula into the objective function as follows:

3.3. Algorithm Improvement

Through the idea of optimizing model parameters, we can choose Bayesian optimization algorithm to improve parameter optimization. By setting good values, we train the model for Bayesian optimization and finally form the results for classification evaluation. The optimal parameters are substituted into XGBoost algorithm [29]. Specific steps are as follows:(1)Let t = 0, the parameter initial population (0).(2)Select the candidate solution S(T) from P(T) is selected.(3)The Bayesian mesh is constructed according to the following formula:(4)A new solution O(T) is generated according to the above formula.(5)A new population P(T + 1) is deduced from O(T).(6)Cycle calculation terminates when the calculation is over and outputs the final optimization result. If it is not finished, jump to (2) and continue to execute in sequence until the optimal result is found at the end of the calculation. By optimizing the XGBoost algorithm model with the above Bayesian optimization parameter method, literature [30] can increase the prediction accuracy of the final result.

4. Data Modeling

The data acquisition model is shown in Figure 5.

Through network data crawling and data modeling, according to descriptive statistics, we screened out key indicators as follows: category browsing times, purchase times, brand browsing times, brand last stay viewing time, and last viewing time of this category, and user’s gender, level, age, marriage, education level, occupation, unit price, and purchasing power of each customer in the latest month, including 13 indicators and predicted value γ [31].

4.1. Logistic Regression Modeling

Through data processing and cleaning, the program is executed by R language software, and 33 variables of parameter estimated value are obtained, as shown in Table 1. From the table, it can be found that 23 variables with significant changes are retained in the table, for example, category browsing times , additional purchase times , purchase times , etc.; consider removing insignificant variables, such as brand purchase times , age , unit price per customer in the latest month, etc., which are not significant, so as to test whether the new model fits better. In the new fitting results obtained by experiments, it is found that every regression coefficient in the new model is very significant ( < 0.5) [32].

According to the results of variance analysis in Table 2, the chi-square value is not significant (p = 0.28), which shows that the fitting effect of the new model with 23 independent variables is basically consistent with that of the model with 33 complete variables. Therefore, we can choose a simple model to calculate.

The comparison diagram of the two models is shown in Figure 6. Under different standards of all independent variables, the important values of independent variables corresponding to different independent variables are selected.

The corresponding relationship between algorithm and error evolved from decision tree is shown in Figure 7.

The probability prediction value is obtained by logistic regression model, the probability prediction value of counterexample is less than or equal to 0.5, and the probability prediction value of positive example is greater than 0.5, and the training set error matrix is obtained, as shown in Table 3.

Using this model in the test set, the error matrix of the test set is obtained, as shown in Table 4.

The logistic regression model was analyzed and calculated, and the results are shown in Figure 8.

4.2. XGBoost Modeling

The training set is also modeled and used in the XGBoost algorithm, and the error matrix is shown in Table 5.

Similarly, when the XGBoost model is used for the test set, the resulting error matrix is shown in Table 6.

The model accuracy and recall on the training set and test set are calculated by analyzing the data in Table 6 as shown in Figure 9.

The method proposed in this paper solves the classification accuracy of digital marketing. The XGBoost takes into account the case that the training data are sparse, which can improve the efficiency of the algorithm. The XGBoost algorithm model is simpler and prevents overfitting. The XGBoost uses not only the first derivative but also the second derivative.

4.3. Improved Bayesian Optimization Algorithm XGBoost

Through Bayesian optimization parameters, XGBoost is improved, and some important attribute parameters are selected as shown in Figure 10.

From Figure 10, the importance of algorithm features is improved and compared according to the selection of optimized parameters.

The training set is also modeled and used in the improved XGBoost algorithm, and the error matrix is shown in Table 7.

Similarly, using the XGBoost model for the test set, the resulting error matrix is shown in Table 8.

The data are compared as shown in Figure 11.

5. Conclusion

In this paper, the intelligent data analysis algorithm logistic regression and XGBoost algorithm, and the improved Bayesian optimization parameter XGBoost algorithm are integrated into digital marketing. Combined with the product life cycle, the data that have been crawled through the network are processed, and the data set is modeled, in which 60% of the data are randomly selected as training sets, 40% as test sets, and accuracy and recall are used as performance measurement methods of the model. Through verification, the improved XGBoost algorithm based on Bayesian parameter selection is obviously superior to logistic regression in accuracy and recall, and its computational efficiency is also obviously superior to logistic regression, which shows certain advantages in data processing and analysis.

Data Availability

The experimental data used to support the findings of this study are available upon request to the author.

Conflicts of Interest

The author declares that there are no conflicts of interest regarding this work.