User behavior analysis method and device for public domain traffic operation
By collecting and analyzing user behavior data in public domain traffic operations, identifying abnormal behaviors, and optimizing operational strategies, the problem of untimely data processing in existing technologies is solved, user satisfaction and conversion rates are improved, and operational efficiency is improved.
Patent Information
- Application Number
- CN202410726190.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Existing user behavior analysis methods fail to effectively process and filter data in public domain traffic operations, resulting in increased workload on the operation team, inability to respond to user needs in a timely manner, and reduced user satisfaction and conversion rates.
Adopting user behavior analysis methods for public domain traffic operations, by collecting historical user behavior data, presetting behavior evaluation thresholds, calculating behavior evaluation coefficients, identifying abnormal user behavior, training models of abnormal operation strategy types, and calculating the covariance matrix of the operation strategy , quantify the degree of anomalies, and optimize operational strategies based on these data.
It improves the operation team's understanding and response ability to user needs, optimizes operation strategies, improves user satisfaction and conversion rates, and improves operational efficiency and accuracy.
Smart Images

Figure CN118296544B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of user behavior analysis, and more specifically, to a user behavior analysis method and device for public domain traffic operation. Background Art
[0002] Public domain traffic operation refers to marketing and promotion activities conducted through network traffic in the public domain. User behavior analysis refers to statistics and analysis of user behavior based on basic data such as the number of website clicks to discover patterns and regularities in user visits to websites. By combining these findings with network operation strategies, potential network marketing problems can be identified, and a basis can be provided for further optimization or reformulation of network operation strategies. In public domain traffic operation, it is crucial to understand user behavior and interests in order to better optimize operation strategies and increase the number of comments and likes. However, existing user analysis methods mainly include analysis based on log data, analysis based on page tags, etc. to help companies understand user behavior preferences. For example, a Chinese patent with publication number CN116860820A discloses a user product preference analysis method and system based on data security. Although the above method can analyze according to individual user preferences and improve user satisfaction, the inventor has studied and applied the above method and prior art and found that the above method and prior art have at least the following defects:
[0003] 1. The collected data is not processed and screened, and all data is sent to the behavior monitoring platform, which leads to a heavy workload for the operation team, making it impossible to respond to user needs in a timely manner, and reducing user satisfaction;
[0004] 2. Unable to optimize operational strategies based on abnormal user behavior, which reduces operational efficiency and accuracy, and in turn reduces user conversion rate and satisfaction.
[0005] To this end, the present invention provides a user behavior analysis method and device for public domain traffic operation. Summary of the invention
[0006] In order to overcome the above-mentioned defects of the prior art, the present invention provides a user behavior analysis method and device for public domain traffic operation, so as to better understand user needs, optimize content strategies, improve user experience, implement precise operations and monitor operation results, thereby improving the utilization efficiency of public domain resources and user satisfaction, so as to solve the problems raised in the above-mentioned background technology.
[0007] To achieve the above-mentioned purpose, the present invention provides the following technical solution: a user behavior analysis method for public domain traffic operation, comprising:
[0008] Step 1: Collect n sets of historical user behavior data, where n is an integer greater than 1; the historical user behavior data includes page views, clicks, dwell time, and number of likes on comments;
[0009] Step 2: Preset a behavior evaluation threshold, calculate the corresponding behavior evaluation coefficient based on n groups of historical user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, determine whether to generate an abnormal scoring instruction, and mark the user behavior data corresponding to the abnormal scoring instruction as abnormal user behavior data; obtain abnormal user behavior data and train a behavior analysis model to predict abnormal operation strategy types;
[0010] Step 3: Collect user behavior data in real time, calculate the behavior evaluation coefficient based on the real-time collected user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, and determine whether to generate a scoring abnormality instruction. If an abnormal instruction is generated, input the real-time user behavior abnormality data into the behavior analysis model and output the abnormal operation strategy type;
[0011] Step 4: Calculate the covariance matrix of the operation strategy, and calculate the Z-Score value of the abnormal user behavior data based on the covariance matrix; set up an abnormal behavior degree mapping table, and obtain the corresponding abnormal degree of user behavior data based on the Z-Score value;
[0012] Step 5: Collect R groups of historical user abnormal behavior data, where R is an integer greater than 1. The historical user abnormal behavior data includes abnormal behavior feature data and optimization strategies corresponding to the abnormal behavior feature data; the abnormal behavior feature data includes the abnormal operation strategy type and the abnormal degree of user behavior data;
[0013] Step 6: Based on historical user abnormal behavior data, train an operational optimization model for predicting optimization strategies; input real-time abnormal behavior feature data into the operational optimization model, obtain the corresponding optimization strategy number, and optimize the website according to the optimization method corresponding to the optimization strategy number. If the optimization strategy number corresponds to non-optimizable conditions, generate a warning instruction.
[0014] Furthermore, the number of page views refers to the total number of times a user views a page when visiting a website; the number of clicks refers to the total number of times a user clicks a link, button or interactive element on a page; the dwell time refers to the average dwell time of a user on the website, that is, the time interval from the time a user opens a page to the time they leave the page; the number of comment likes refers to the number of comments and likes completed by a user on the website; the methods for obtaining the number of page views, number of clicks, dwell time and number of comment likes include but are not limited to obtaining through website analysis tools, social media analysis tools, advertising platforms or custom data collection tools.
[0015] Furthermore, the method for calculating the corresponding behavior evaluation coefficient according to n groups of historical user behavior data is as follows:
[0016] ;
[0017] In the formula, is the behavior evaluation coefficient corresponding to the nth group of historical user behavior data, is the number of page views, is the number of clicks, is the dwell time, Number of likes for the comment, , , and The preset weights.
[0018] Furthermore, comparing the behavior evaluation coefficient with the behavior evaluation threshold to determine whether to generate a scoring abnormality instruction includes:
[0019] If the behavior evaluation coefficient is greater than the behavior evaluation threshold, no scoring abnormality instruction is generated, and the user behavior data of the group is marked as normal user behavior data;
[0020] If the behavior evaluation coefficient is less than or equal to the behavior evaluation threshold, a scoring abnormality instruction is generated to mark the user behavior data of the group as user behavior abnormality data.
[0021] Furthermore, the training of a behavior analysis model for predicting abnormal operation strategy types includes:
[0022] Setting an abnormal operation strategy type for abnormal user behavior data, wherein the abnormal operation strategy type corresponds to the abnormal user behavior data one by one;
[0023] Pre-set a number for the abnormal operation strategy type and obtain the abnormal operation strategy type number;
[0024] Each group of abnormal user behavior data and the corresponding abnormal operation strategy type number are used as sample sets, and the sample sets are divided into training sets and test sets; a behavior analysis model is constructed, and the abnormal user behavior data in the training set are used as the input data of the behavior analysis model, and the abnormal operation strategy type number in the training set is used as the output data of the behavior analysis model, and the behavior analysis model is trained to obtain an initial behavior analysis model; the initial behavior analysis model is verified using the test set, and the initial behavior analysis model with a prediction error less than or equal to the target prediction error is output as the behavior analysis model for predicting abnormal operation strategy types; wherein the calculation formula for the prediction error is: ,in, is the group number of the abnormal user behavior data. is the prediction error, For the The predicted abnormal operation strategy type number corresponding to the abnormal behavior data of the group user, For the The actual abnormal operation strategy type number corresponding to the abnormal behavior data of the group user; the behavior analysis model is specifically a specific one of the model algorithms such as decision tree regression, support vector machine regression, random forest regression, long short-term memory network or recurrent neural network.
[0025] Furthermore, the calculation method of the covariance matrix of the operation strategy includes:
[0026] Record an operation strategy m times, and obtain m groups of user behavior data under the operation strategy. Each group of user behavior data under the operation strategy includes n groups of user behavior data. The nth group of user behavior data of the m groups of operation strategies are sequentially added and then divided by m as the mean of the first behavior data. The mean of each group of first behavior data includes the mean of the first page views, the mean of the first clicks, the mean of the first stay time, and the mean of the first comment likes. At this time, the mean of the n groups of first behavior data is represented as an n×4 matrix, marked as X, where m and n are both integers greater than 0.
[0027] The mean of the second behavior data is calculated by adding up the means of the first behavior data of n groups in sequence and then dividing by n. The mean of the second behavior data includes the mean of the second page views, the mean of the second clicks, the mean of the second stay time, and the mean of the second comment likes, denoted as E. ;in, is the average number of second page views, is the mean of the second click times, is the mean of the second residence time, The average number of likes for the second comment;
[0028] Subtract the mean of the first line of data from the mean of the second line of data in each group to get a new matrix, recorded as , , the dimension of matrix G is the same as that of matrix X;
[0029] Calculate the covariance matrix based on the matrix G ;
[0030] ;
[0031] In the formula, Representation Matrix The transposed matrix of Indicates that the first row is the number of data means.
[0032] Furthermore, the calculation method of the Z-Score value of the user behavior abnormal data according to the covariance matrix is as follows:
[0033] a1. Based on the covariance matrix , subtract the mean of the corresponding column from each data point , and obtain the standardized data matrix .
[0034] a2. Standardized data matrix For each element in , use the following Z-Score formula to calculate the Z-Score value of the abnormal user behavior data:
[0035] ;
[0036] In the formula, is the Z-Score value, Represents the standardized data matrix The value of each element in represents the average value of the corresponding column, Indicates the standard deviation of the corresponding column.
[0037] Furthermore, the abnormal behavior degree mapping table is set as follows:
[0038] The Z-Score values of multiple groups of abnormal user behavior data of the same operation strategy are calculated, and different abnormal degrees of user behavior data are pre-set for the Z-Score values corresponding to different abnormal user behavior data. The Z-Score value corresponds to the abnormal degree of user behavior data one by one.
[0039] Furthermore, the operation optimization model trained to predict the optimization strategy includes:
[0040] In the experimental environment, G groups of different abnormal behavior feature data are collected in advance, where G is an integer greater than 1. Different optimization strategies are used to optimize each group of abnormal behavior feature data, and the user behavior data of the optimized operation strategy is recorded. The optimization strategy with normal user behavior data is used as the optimization strategy corresponding to the group of abnormal behavior feature data. If the operation strategy still has abnormal user behavior data after optimization using different optimization strategies, the optimization strategy corresponding to the group of abnormal behavior feature data is not optimized.
[0041] Set numbers for abnormal behavior feature data and optimization strategies;
[0042] The abnormal behavior feature data is used as the input of the operation optimization model. The operation optimization model uses the prediction optimization strategy corresponding to each group of abnormal behavior feature data as the output, uses the optimization strategy actually corresponding to the group of abnormal behavior feature data as the prediction target, and uses minimizing the sum of the prediction errors of all abnormal behavior feature data as the training target; wherein the calculation formula of the prediction error is:
[0043] ,in is the prediction error, is the number of abnormal behavior feature data, For the The prediction optimization strategy corresponding to the abnormal behavior feature data of the group, For the The actual optimization strategy corresponding to the abnormal behavior feature data of the group is obtained; the operation optimization model is trained until the sum of the prediction errors reaches convergence and the training is stopped; the operation optimization model is any one of a deep neural network model and a deep belief network model.
[0044] In a second aspect, the present invention provides a user behavior analysis device for public domain traffic operation, which is used to implement the above-mentioned user behavior analysis method for public domain traffic operation, including:
[0045] A user behavior data collection module is used to collect n groups of historical user behavior data, where n is an integer greater than 1; the historical user behavior data includes the number of page views, the number of clicks, the dwell time, and the number of comment likes;
[0046] A judgment module is used to preset a behavior evaluation threshold, calculate a corresponding behavior evaluation coefficient based on n groups of historical user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, determine whether to generate an abnormal scoring instruction, and mark the user behavior data corresponding to the abnormal scoring instruction as abnormal user behavior data; obtain abnormal user behavior data, and train a behavior analysis model to predict abnormal operation strategy types;
[0047] The type analysis module is used to collect user behavior data in real time, calculate the behavior evaluation coefficient based on the real-time collected user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, and determine whether to generate a scoring abnormality instruction. If an abnormal instruction is generated, the real-time user behavior abnormality data is input into the behavior analysis model to output the abnormal operation strategy type;
[0048] The data processing module is used to calculate the covariance matrix of the operation strategy, and calculate the Z-Score value of the abnormal user behavior data according to the covariance matrix; set the abnormal behavior degree mapping table, and obtain the corresponding abnormal degree of user behavior data according to the Z-Score value;
[0049] The abnormal data collection module is used to collect R groups of historical user abnormal behavior data, where R is an integer greater than 1. The historical user abnormal behavior data includes abnormal behavior feature data and optimization strategies corresponding to the abnormal behavior feature data; the abnormal behavior feature data includes abnormal operation strategy type and abnormal degree of user behavior data;
[0050] The optimization module trains an operational optimization model for predicting optimization strategies based on historical user abnormal behavior data; inputs real-time abnormal behavior feature data into the operational optimization model, obtains the corresponding optimization strategy number, and optimizes the website according to the optimization method corresponding to the optimization strategy number. If the optimization strategy number corresponds to non-optimizable conditions, an early warning instruction is generated.
[0051] In a third aspect, the present invention provides an electronic device, comprising: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0052] The processor executes the above-mentioned user behavior analysis method for public domain traffic operation by calling the computer program stored in the memory.
[0053] In a fourth aspect, the present invention provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above-mentioned user behavior analysis method for public domain traffic operation.
[0054] Technical effects and advantages of the present invention:
[0055] The present invention calculates a behavior evaluation coefficient by presetting a behavior evaluation threshold and combining historical user behavior data, thereby detecting abnormal user behavior in a timely manner and marking and recording abnormal user behavior data. It is helpful for the operation team to identify and understand the problems that users encounter when using products or services, and take timely measures to improve them; by training a behavior analysis model that predicts abnormal operation strategy types, the corresponding behavior evaluation coefficient is calculated based on the real-time collected user behavior data and compared with the behavior evaluation threshold, the user behavior abnormal data is obtained in real time, and the behavior analysis model is used to predict the abnormal operation strategy type, which is helpful for the operation team to better understand the user loss situation and reasons, and take targeted measures to retain and convert users; by calculating the covariance matrix of the operation strategy, and calculating the Z-Score value of the user behavior abnormal data based on the covariance matrix, quantifying the abnormal degree of user behavior data, and obtaining the corresponding user behavior data abnormal degree according to the abnormal behavior degree mapping table, and sending the user behavior abnormal data to the behavior monitoring platform, it is helpful for the operation team to timely discover and handle abnormal user behavior, timely optimize the operation strategy, optimize the page content, layout and navigation, or optimize the operation strategy according to the user's historical behavior and preferences, and improve the user's conversion rate and satisfaction; by training an operation optimization model that predicts the optimization strategy, the corresponding optimization strategy number is obtained according to the real-time abnormal behavior feature data, and the operation strategy is optimized according to the optimization strategy control corresponding to the optimization strategy number. This helps the operations team to more accurately optimize operations strategies based on user behavior and characteristics, and improve operational efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 is a flow chart of the method of Example 1;
[0057] Figure 2 This is a schematic diagram of the device of Example 2;
[0058] Figure 3 This is a schematic diagram of an electronic device according to Embodiment 3;
[0059] Figure 4 A schematic diagram of a computer-readable storage medium of Example 4. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities are implemented in software form, or in one or more hardware modules or integrated circuits, or in different network and / or processor methods and / or microcontroller methods.
[0062] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, a first unit is referred to as a second unit, and a similar second unit is referred to as a first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0063] Example 1
[0064] See also Figure 1 As shown, this embodiment discloses a user behavior analysis method for public domain traffic operation, including:
[0065] Step 1: Collect n sets of historical user behavior data, where n is an integer greater than 1; the historical user behavior data includes page views, clicks, dwell time, and number of likes on comments;
[0066] It should be noted that public domain traffic includes but is not limited to the traffic of websites and applications. The present invention is explained by taking a website as an example. The number of page views refers to the total number of times a user views a page when visiting the website; the number of clicks refers to the total number of times a user clicks a link, button or interactive element on the page; the dwell time refers to the average dwell time of a user on the website, that is, the time interval from the time a user opens the page to the time he leaves the page; the number of comment likes refers to the number of comments and likes completed by the user on the website; the method for obtaining the number of page views, number of clicks, dwell time and number of comment likes includes but is not limited to obtaining through website analysis tools, social media analysis tools, advertising platforms or custom data collection tools.
[0067] Step 2: Preset a behavior evaluation threshold, calculate the corresponding behavior evaluation coefficient based on n groups of historical user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, determine whether to generate an abnormal scoring instruction, and mark the user behavior data corresponding to the abnormal scoring instruction as abnormal user behavior data; obtain abnormal user behavior data and train a behavior analysis model to predict abnormal operation strategy types;
[0068] Specifically, the method for calculating the corresponding behavior evaluation coefficient according to n groups of historical user behavior data is as follows:
[0069] ;
[0070] In the formula, is the behavior evaluation coefficient corresponding to the nth group of historical user behavior data, is the number of page views, is the number of clicks, is the dwell time, Number of likes for the comment, , , and is the preset weight;
[0071] Specifically, the method for determining whether to generate a scoring abnormality instruction includes:
[0072] If the behavior evaluation coefficient is greater than the behavior evaluation threshold, no scoring abnormality instruction is generated, and the user behavior data of the group is marked as normal user behavior data;
[0073] If the behavior evaluation coefficient is less than or equal to the behavior evaluation threshold, a scoring abnormality instruction is generated to mark the user behavior data of the group as abnormal user behavior data, indicating that there is abnormal user behavior data. The cause of the abnormal user behavior data is further analyzed, and the operation strategy is optimized according to the analysis results to better meet user needs and improve user experience.
[0074] The behavior evaluation threshold is calculated based on the user behavior data threshold of the user group obtained by the operation team using a custom data collection tool. The user behavior data threshold is calculated according to the above-mentioned behavior evaluation coefficient calculation method.
[0075] Specifically, the behavior analysis model trained to predict abnormal operation strategy types includes:
[0076] The operation team sets abnormal operation strategy types for abnormal user behavior data based on work experience, and the abnormal operation strategy types correspond to abnormal user behavior data one by one;
[0077] Pre-set a number for the abnormal operation strategy type and obtain the abnormal operation strategy type number;
[0078] Each group of abnormal user behavior data and the corresponding abnormal operation strategy type number are used as sample sets, and the sample sets are divided into training sets and test sets; a behavior analysis model is constructed, and the abnormal user behavior data in the training set are used as the input data of the behavior analysis model, and the abnormal operation strategy type number in the training set is used as the output data of the behavior analysis model, and the behavior analysis model is trained to obtain an initial behavior analysis model; the initial behavior analysis model is verified using the test set, and the initial behavior analysis model with a prediction error less than or equal to the target prediction error is output as the behavior analysis model for predicting abnormal operation strategy types; wherein the calculation formula for the prediction error is: ,in, is the group number of the abnormal user behavior data. is the prediction error, For the The predicted abnormal operation strategy type number corresponding to the abnormal behavior data of the group user, For the The actual abnormal operation strategy type number corresponding to the abnormal behavior data of the group user;
[0079] It should be noted that: the behavior analysis model is specifically one of the model algorithms such as decision tree regression, support vector machine regression, random forest regression, long short-term memory network or recurrent neural network;
[0080] Step 3: Collect user behavior data in real time, calculate the behavior evaluation coefficient based on the real-time collected user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, and determine whether to generate a scoring abnormality instruction. If an abnormal instruction is generated, input the real-time user behavior abnormality data into the behavior analysis model and output the abnormal operation strategy type;
[0081] It should be noted that abnormal operation strategy types include natural churn, competitive churn, technical churn, service churn or value perception churn, among which technical churn and service churn can improve user conversion rate by improving website loading speed, optimizing page content, layout and navigation, or optimizing push content according to user's historical behavior and preferences. However, natural churn, competitive churn and value perception churn are non-optimizable abnormalities and cannot be optimized by improving website loading speed, optimizing page content, layout and navigation, or optimizing push content according to user's historical behavior and preferences. These situations require the operation team to improve other aspects to reduce user churn rate;
[0082] Further explanation is: Improve website loading speed: Users are often frustrated by slow loading websites, which may cause users to choose to leave. By optimizing the performance of the website, reducing loading time, improving user satisfaction and retention, and thus increasing conversion rate;
[0083] Optimize page content, layout, and navigation: High-quality page content, clear layout, and concise navigation improve user experience, increase user dwell time and interaction rate, and thus improve conversion rate. Ensure that page content is relevant and easy to understand, and that the navigation structure is clear, which will help users find the information they need faster and increase their willingness to convert.
[0084] Step 4: Calculate the covariance matrix of the operation strategy, and calculate the Z-Score value of the abnormal user behavior data based on the covariance matrix; set up an abnormal behavior degree mapping table, and obtain the corresponding abnormal degree of user behavior data based on the Z-Score value;
[0085] Specifically, the calculation method of the covariance matrix of the operation strategy includes:
[0086] Record an operation strategy m times, obtain m groups of user behavior data under the operation strategy, each group of user behavior data under the operation strategy includes n groups of user behavior data, add the nth group of user behavior data of the m groups of operation strategies in sequence and divide by m as the mean of the first behavior data; the mean of each group of first behavior data includes the mean of the first page views, the mean of the first clicks, the mean of the first stay time and the mean of the first comment likes. At this time, represent each group of first behavior data mean as an n×4 matrix, marked as X, where m and n are both integers greater than 0;
[0087] The mean of the second behavior data is calculated by adding up the means of the first behavior data of n groups in sequence and then dividing by n. The mean of the second behavior data includes the mean of the second page views, the mean of the second clicks, the mean of the second stay time, and the mean of the second comment likes, denoted as E. ;
[0088] in, is the average number of second page views, is the mean of the second click times, is the mean of the second residence time, The average number of likes for the second comment;
[0089] Subtract the mean of the first line of data from the mean of the second line of data in each group to get a new matrix, recorded as , , the dimension of matrix G is the same as that of matrix X;
[0090] Calculate the covariance matrix based on the matrix G ;
[0091] ;
[0092] In the formula Representation Matrix The transposed matrix of Indicates that the first row is the number of data means.
[0093] Furthermore, the calculation method of the Z-Score value of the user behavior abnormal data according to the covariance matrix is as follows:
[0094] a1. Based on the covariance matrix , subtract the mean of the corresponding column from each data point , and obtain the standardized data matrix .
[0095] For example: suppose a set of user behavior data includes the first page views, the first clicks, the first dwell time, and the first comment likes. The user behavior data under three operation strategies are collected, and the mean of the first behavior data of each set of data is calculated to form a 3×4 matrix X.
[0096] First, calculate the mean of each column (each variable). Suppose the calculated mean values are:
[0097] Average number of first page views ;
[0098] Average first clicks ;
[0099] The average first dwell time ; The unit is seconds;
[0100] Average number of likes for the first comment ;
[0101] Then, for each data point in matrix X , subtract the mean of the corresponding column. For example, for the first data point (represents the number of first page views under the first operation strategy), the calculation formula is: , thus, we get a new data matrix , data matrix Each element of represents the value after subtracting the mean value of the corresponding column from the original data point. Through such standardization, the scale differences between different variables are eliminated, making the data easier to analyze and compare;
[0102] a2. Standardized data matrix For each element in , use the following Z-Score formula to calculate the Z-Score value of the abnormal user behavior data:
[0103] ;
[0104] In the formula, is the Z-Score value, Represents the standardized data matrix The value of each element in represents the average value of the corresponding column, Indicates the standard deviation of the corresponding column;
[0105] It should be noted that the purpose of conducting two data analyses is that the first data analysis conducts a preliminary analysis of the user behavior data to determine whether there is abnormal user behavior data, but it is impossible to know the degree of abnormality of the user behavior data. It is necessary to conduct a second data analysis on the user behavior data corresponding to the abnormal instructions to obtain the degree of abnormality of the user behavior data. If the second data analysis is conducted directly, a large amount of data needs to be calculated, which increases the response time and the time delay for data transmission to the behavior monitoring platform, resulting in poor real-time response effect when monitoring the operation strategy. Based on the Z-Score value, the effect of the operation strategy and changes in user behavior can be more accurately evaluated. Identifying outliers and trends will help the operation team make better decisions, optimize the operation strategy, and improve user satisfaction and retention rate.
[0106] It should be noted that the abnormal behavior degree mapping table is stored in the database and is a two-dimensional mapping table, which includes the Z-Score value and the abnormal degree of user behavior data corresponding to the Z-Score value. After the Z-Score value is calculated in step 5, the abnormal degree of the corresponding user behavior data can be queried, and the abnormal operation strategy can be modified in a targeted and timely manner;
[0107] Specifically, the method for setting the abnormal behavior degree mapping table is:
[0108] In the experimental environment, based on various abnormal user behavior data encountered by the operation team in long-term work practice, multiple groups of abnormal user behavior data of the same operation strategy are calculated by Z-Score value. Different abnormal degrees of user behavior data are pre-set for the Z-Score values corresponding to different abnormal user behavior data. The Z-Score value corresponds to the abnormal degree of user behavior data one by one. The larger the Z-Score value, the greater the abnormal degree of user behavior data.
[0109] Step 5: Collect R groups of historical user abnormal behavior data, where R is an integer greater than 1. The historical user abnormal behavior data includes abnormal behavior feature data and optimization strategies corresponding to the abnormal behavior feature data; the abnormal behavior feature data includes the abnormal operation strategy type and the abnormal degree of user behavior data;
[0110] Step 6: Based on historical user abnormal behavior data, train an operation optimization model for predicting optimization strategies; input real-time abnormal behavior feature data into the operation optimization model, obtain the corresponding optimization strategy number, optimize the website according to the optimization method corresponding to the optimization strategy number, and generate an early warning instruction if the optimization strategy number corresponds to non-optimization; send the abnormal operation strategy type and abnormal degree of user behavior data corresponding to the early warning instruction to the behavior supervision platform to prompt the operation team to modify the operation strategy;
[0111] The optimization strategy includes but is not limited to optimizing the website's page content, layout and navigation, and optimizing push content based on the user's historical behavior and preferences;
[0112] Specifically, the specific training methods of the operation optimization model include:
[0113] In the experimental environment, G groups of different abnormal behavior feature data are collected in advance, where G is an integer greater than 1. Different optimization strategies are used to optimize each group of abnormal behavior feature data, and the user behavior data of the optimized operation strategy is recorded. The optimization strategy with normal user behavior data is used as the optimization strategy corresponding to the group of abnormal behavior feature data. If the operation strategy still has abnormal user behavior data after optimization using different optimization strategies, the optimization strategy corresponding to the group of abnormal behavior feature data is not optimized.
[0114] Set numbers for abnormal behavior feature data and optimization strategies;
[0115] The abnormal behavior feature data is used as the input of the operation optimization model. The operation optimization model uses the prediction optimization strategy corresponding to each group of abnormal behavior feature data as the output, uses the optimization strategy actually corresponding to the group of abnormal behavior feature data as the prediction target, and uses minimizing the sum of the prediction errors of all abnormal behavior feature data as the training target; wherein the calculation formula of the prediction error is:
[0116] ,in is the prediction error, is the number of abnormal behavior feature data, For the The prediction optimization strategy corresponding to the abnormal behavior feature data of the group, For the The actual optimization strategy corresponding to the abnormal behavior feature data of the group is obtained; the operation optimization model is trained until the sum of the prediction errors reaches convergence and the training is stopped; the operation optimization model is any one of a deep neural network model or a deep belief network model;
[0117] The formulas involved in the above are all calculated by removing dimensions and taking their numerical values. They are a formula that is closest to the actual situation obtained by collecting a large amount of data and performing software simulation. The weight factors in the formula and the preset thresholds in the analysis process are set by technicians in this field according to actual conditions or obtained by simulating a large amount of data; the size of the weight factor is to quantify each parameter to obtain a specific value for subsequent comparison. The size of the weight factor depends on the amount of sample data and the corresponding processing coefficient initially set by technicians in this field for each group of sample data; as long as it does not affect the proportional relationship between the parameter and the quantized value.
[0118] This embodiment calculates a behavior evaluation coefficient by presetting a behavior evaluation threshold and combining historical user behavior data, thereby detecting abnormal user behavior in a timely manner and marking and recording abnormal user behavior data. It is helpful for the operation team to identify and understand the problems that users encounter when using products or services, and take timely measures to improve them; by training a behavior analysis model that predicts abnormal operation strategy types, the corresponding behavior evaluation coefficient is calculated based on the real-time collected user behavior data and compared with the behavior evaluation threshold, the user behavior abnormal data is obtained in real time, and the behavior analysis model is used to predict the abnormal operation strategy type, which is helpful for the operation team to better understand the user loss situation and reasons, and take targeted measures to retain and convert users; by calculating the covariance matrix of the operation strategy, and calculating the Z-Score value of the user behavior abnormal data based on the covariance matrix, quantifying the abnormal degree of user behavior data, and obtaining the corresponding user behavior data abnormal degree according to the abnormal behavior degree mapping table, and sending the user behavior abnormal data to the behavior monitoring platform, it is helpful for the operation team to timely discover and handle abnormal user behavior, timely optimize the operation strategy, optimize the page content, layout and navigation, or optimize the operation strategy according to the user's historical behavior and preferences, and improve the user's conversion rate and satisfaction; by training an operation optimization model that predicts the optimization strategy, the corresponding optimization strategy number is obtained according to the real-time abnormal behavior feature data, and the operation strategy is optimized according to the optimization strategy control corresponding to the optimization strategy number. This helps the operations team to more accurately optimize operations strategies based on user behavior and characteristics, and improve operational efficiency and accuracy.
[0119] Example 2
[0120] See also Figure 2 As shown, this embodiment provides a user behavior analysis device for public domain traffic operation, including:
[0121] A user behavior data collection module is used to collect n groups of historical user behavior data, where n is an integer greater than 1; the historical user behavior data includes the number of page views, the number of clicks, the dwell time, and the number of comment likes;
[0122] A judgment module is used to preset a behavior evaluation threshold, calculate a corresponding behavior evaluation coefficient based on n groups of historical user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, determine whether to generate an abnormal scoring instruction, and mark the user behavior data corresponding to the abnormal scoring instruction as abnormal user behavior data; obtain abnormal user behavior data, and train a behavior analysis model to predict abnormal operation strategy types;
[0123] The type analysis module is used to collect user behavior data in real time, calculate the behavior evaluation coefficient based on the real-time collected user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, and determine whether to generate a scoring abnormality instruction. If an abnormal instruction is generated, the real-time user behavior abnormality data is input into the behavior analysis model to output the abnormal operation strategy type;
[0124] The data processing module is used to calculate the covariance matrix of the operation strategy, and calculate the Z-Score value of the abnormal user behavior data according to the covariance matrix; set the abnormal behavior degree mapping table, and obtain the corresponding abnormal degree of user behavior data according to the Z-Score value;
[0125] The abnormal data collection module is used to collect R groups of historical user abnormal behavior data, where R is an integer greater than 1. The historical user abnormal behavior data includes abnormal behavior feature data and optimization strategies corresponding to the abnormal behavior feature data; the abnormal behavior feature data includes abnormal operation strategy type and abnormal degree of user behavior data;
[0126] The optimization module trains an operational optimization model for predicting optimization strategies based on historical user abnormal behavior data; inputs real-time abnormal behavior feature data into the operational optimization model, obtains the corresponding optimization strategy number, and optimizes the website according to the optimization method corresponding to the optimization strategy number. If the optimization strategy number corresponds to non-optimizable conditions, an early warning instruction is generated.
[0127] Example 3
[0128] See also Figure 3 As shown, this embodiment provides an electronic device, including: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0129] The processor executes the user behavior analysis method for public domain traffic operation of Example 1 by calling the computer program stored in the memory.
[0130] Example 4
[0131] See also Figure 4 As shown, this embodiment provides a computer-readable storage medium storing instructions. When the instructions are executed on a computer, the computer executes the user behavior analysis method for public domain traffic operation of embodiment 1.
[0132] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0133] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A user behavior analysis method for public domain traffic operation, characterized in that: include: Step 1: Collect n sets of historical user behavior data, where n is an integer greater than 1; the historical user behavior data includes page views, clicks, dwell time, and number of likes on comments; Step 2: Preset a behavior evaluation threshold, calculate the corresponding behavior evaluation coefficient based on n groups of historical user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, determine whether to generate an abnormal scoring instruction, and mark the user behavior data corresponding to the abnormal scoring instruction as abnormal user behavior data; obtain abnormal user behavior data and train a behavior analysis model to predict abnormal operation strategy types; Step 3: Collect user behavior data in real time, calculate the behavior evaluation coefficient based on the real-time collected user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, and determine whether to generate a scoring abnormality instruction. If an abnormal instruction is generated, input the real-time user behavior abnormality data into the behavior analysis model and output the abnormal operation strategy type; Step 4: Calculate the covariance matrix of the operation strategy, and calculate the Z-Score value of the abnormal user behavior data based on the covariance matrix; set up an abnormal behavior degree mapping table, and obtain the corresponding abnormal degree of user behavior data based on the Z-Score value; Step 5: Collect R groups of historical user abnormal behavior data, where R is an integer greater than 1. The historical user abnormal behavior data includes abnormal behavior feature data and optimization strategies corresponding to the abnormal behavior feature data; the abnormal behavior feature data includes the abnormal operation strategy type and the abnormal degree of user behavior data; Step 6: Based on historical user abnormal behavior data, train an operational optimization model for predicting optimization strategies; input real-time abnormal behavior feature data into the operational optimization model, obtain the corresponding optimization strategy number, and optimize the website according to the optimization method corresponding to the optimization strategy number. If the optimization strategy number corresponds to non-optimizable conditions, generate a warning instruction.
2. The user behavior analysis method for public domain traffic operation according to claim 1 is characterized in that: The number of page views refers to the total number of times a user views a page when visiting a website; the number of clicks refers to the total number of times a user clicks a link, button or interactive element on a page; the dwell time refers to the average dwell time of a user on the website, that is, the time interval from the time a user opens a page to the time they leave the page; the number of comment likes refers to the number of comments and likes completed by a user on the website; the number of page views, number of clicks, dwell time and number of comment likes are obtained using website analysis tools, social media analysis tools, advertising platforms or custom data collection tools.
3. The user behavior analysis method for public domain traffic operation according to claim 2 is characterized in that: The calculation method for calculating the corresponding behavior evaluation coefficient based on n groups of historical user behavior data is as follows: ; In the formula, is the behavior evaluation coefficient corresponding to the nth group of historical user behavior data, is the number of page views, is the number of clicks, is the dwell time, Number of likes for the comment, , , and The preset weights.
4. The user behavior analysis method for public domain traffic operation according to claim 3 is characterized in that: The step of comparing the behavior assessment coefficient with the behavior assessment threshold to determine whether to generate a scoring abnormality instruction includes: If the behavior evaluation coefficient is greater than the behavior evaluation threshold, no scoring abnormality instruction is generated, and the user behavior data of the group is marked as normal user behavior data; If the behavior evaluation coefficient is less than or equal to the behavior evaluation threshold, a scoring abnormality instruction is generated to mark the user behavior data of the group as user behavior abnormality data.
5. The user behavior analysis method for public domain traffic operation according to claim 4 is characterized in that: The behavior analysis model trained to predict abnormal operation strategy types includes: Setting an abnormal operation strategy type for abnormal user behavior data, wherein the abnormal operation strategy type corresponds to the abnormal user behavior data one by one; Pre-set a number for the abnormal operation strategy type and obtain the abnormal operation strategy type number; Each group of abnormal user behavior data and the corresponding abnormal operation strategy type number are used as sample sets, and the sample sets are divided into training sets and test sets; a behavior analysis model is constructed, and the abnormal user behavior data in the training set are used as the input data of the behavior analysis model, and the abnormal operation strategy type number in the training set is used as the output data of the behavior analysis model, and the behavior analysis model is trained to obtain an initial behavior analysis model; the initial behavior analysis model is verified using the test set, and the initial behavior analysis model with a prediction error less than or equal to the target prediction error is output as the behavior analysis model for predicting abnormal operation strategy types; wherein the calculation formula for the prediction error is: ,in, is the group number of the abnormal user behavior data. is the prediction error, For the The predicted abnormal operation strategy type number corresponding to the abnormal behavior data of the group user, For the The actual abnormal operation strategy type number corresponding to the abnormal behavior data of the group user; the behavior analysis model is specifically one of the decision tree regression, support vector machine regression, random forest regression, long short-term memory network or recurrent neural network model algorithm.
6. The user behavior analysis method for public domain traffic operation according to claim 5 is characterized in that: The calculation method of the covariance matrix of the operation strategy includes: Record an operation strategy m times, and obtain m groups of user behavior data under the operation strategy. Each group of user behavior data under the operation strategy includes n groups of user behavior data. The nth group of user behavior data of the m groups of operation strategies are sequentially added and then divided by m as the mean of the first behavior data. The mean of each group of first behavior data includes the mean of the first page views, the mean of the first clicks, the mean of the first stay time, and the mean of the first comment likes. At this time, the mean of the n groups of first behavior data is represented as an n×4 matrix, marked as X, where m and n are both integers greater than 0. The mean values of the first behavior data of n groups are added up in sequence and then divided by n to calculate the mean value of the second behavior data. The mean value of the second behavior data includes the mean value of the second page views, the mean value of the second clicks, the mean value of the second stay time, and the mean value of the second comment likes, denoted as E. ; in, is the average number of second page views, is the mean of the second click times, is the mean of the second residence time, The average number of likes for the second comment; Subtract the mean of the first line of data from the mean of the second line of data in each group to get a new matrix, recorded as , , the dimension of matrix G is the same as that of matrix X; Calculate the covariance matrix based on the matrix G ; ; In the formula Representation Matrix The transposed matrix of Indicates that the first row is the number of data means.
7. The user behavior analysis method for public domain traffic operation according to claim 6 is characterized in that: The method for calculating the Z-Score value of user behavior abnormal data based on the covariance matrix is as follows: a1. Based on the covariance matrix , subtract the mean of the corresponding column from each data point , and obtain the standardized data matrix ; a2. Standardized data matrix For each element in , use the following Z-Score formula to calculate the Z-Score value of the abnormal user behavior data: ; In the formula, is the Z-Score value, Represents the standardized data matrix The value of each element in represents the average value of the corresponding column, Indicates the standard deviation of the corresponding column.
8. The user behavior analysis method for public domain traffic operation according to claim 7 is characterized in that: The method for setting the abnormal behavior degree mapping table is: The Z-Score values of multiple groups of abnormal user behavior data of the same operation strategy are calculated, and different abnormal degrees of user behavior data are pre-set for the Z-Score values corresponding to different abnormal user behavior data. The Z-Score value corresponds to the abnormal degree of user behavior data one by one.
9. The user behavior analysis method for public domain traffic operation according to claim 8 is characterized in that: The operation optimization model for training the prediction optimization strategy includes: G groups of different abnormal behavior feature data are collected in advance, where G is an integer greater than 1. Different optimization strategies are used to optimize each group of abnormal behavior feature data, and the user behavior data of the optimized operation strategy is recorded. The optimization strategy with normal user behavior data is used as the optimization strategy corresponding to the group of abnormal behavior feature data. If the operation strategy still has abnormal user behavior data after optimization using different optimization strategies, the optimization strategy corresponding to the group of abnormal behavior feature data is used as the non-optimizable optimization strategy. Set numbers for abnormal behavior feature data and optimization strategies; The abnormal behavior feature data is used as the input of the operation optimization model. The operation optimization model uses the prediction optimization strategy corresponding to each group of abnormal behavior feature data as the output, uses the optimization strategy actually corresponding to the group of abnormal behavior feature data as the prediction target, and uses minimizing the sum of the prediction errors of all abnormal behavior feature data as the training target; wherein the calculation formula of the prediction error is: ,in is the prediction error, is the number of the abnormal behavior feature data, For the The prediction optimization strategy corresponding to the abnormal behavior feature data of the group, For the The actual optimization strategy corresponding to the abnormal behavior feature data of the group is obtained; the operation optimization model is trained until the sum of the prediction errors reaches convergence and the training is stopped; the operation optimization model is any one of a deep neural network model and a deep belief network model.
10. A user behavior analysis device for public domain traffic operation, used to implement the user behavior analysis method for public domain traffic operation according to any one of claims 1 to 9, characterized in that: include: A user behavior data collection module is used to collect n groups of historical user behavior data, where n is an integer greater than 1; the historical user behavior data includes the number of page views, the number of clicks, the dwell time, and the number of comment likes; A judgment module is used to preset a behavior evaluation threshold, calculate a corresponding behavior evaluation coefficient based on n groups of historical user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, determine whether to generate an abnormal scoring instruction, and mark the user behavior data corresponding to the abnormal scoring instruction as abnormal user behavior data; obtain abnormal user behavior data, and train a behavior analysis model to predict abnormal operation strategy types; The type analysis module is used to collect user behavior data in real time, calculate the behavior evaluation coefficient based on the real-time collected user behavior data, compare the behavior evaluation coefficient with the behavior evaluation threshold, and determine whether to generate a scoring abnormality instruction. If an abnormal instruction is generated, the real-time user behavior abnormality data is input into the behavior analysis model to output the abnormal operation strategy type; The data processing module is used to calculate the covariance matrix of the operation strategy, and calculate the Z-Score value of the abnormal user behavior data according to the covariance matrix; set the abnormal behavior degree mapping table, and obtain the corresponding abnormal degree of user behavior data according to the Z-Score value; The abnormal data collection module is used to collect R groups of historical user abnormal behavior data, where R is an integer greater than 1. The historical user abnormal behavior data includes abnormal behavior feature data and optimization strategies corresponding to the abnormal behavior feature data; the abnormal behavior feature data includes abnormal operation strategy type and abnormal degree of user behavior data; The optimization module trains an operational optimization model for predicting optimization strategies based on historical user abnormal behavior data; inputs real-time abnormal behavior feature data into the operational optimization model, obtains the corresponding optimization strategy number, and optimizes the website according to the optimization method corresponding to the optimization strategy number. If the optimization strategy number corresponds to non-optimizable conditions, an early warning instruction is generated.
11. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a computer program that can be called by the processor; The processor executes the user behavior analysis method for public domain traffic operation described in any one of claims 1 to 9 by calling the computer program stored in the memory.
12. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer executes the user behavior analysis method for public domain traffic operation as described in any one of claims 1-9.
